Singularity and NaN's in two-agents model

Your model has a unit root. That explains the message.

may be related.