Hello,
Your case is crashing, with infinite values, so to go further we would need to know when and where this happens, at the first time step or after, and we would need to see more of the listing, to know which step triggers this.
Another possibility is to have a version compiled with every check in the compiler, so that it stops whenever you have a NaN appearing, with a traceback from the compiler showing the subroutine and the line number where it occurs, this is how we debug.
If it works a few steps try to reduce the time step.
With best regards,
Jean-Michel Hervouet