The Jacobian or the dynamic model contains Inf

You need to check all equations. Usually there is a timing error somewhere.