Whenever I try to run my simulink system I get the following error:
"Derivative of state '1' in block 'nonlinearsim/Integrator1' at time 0.036489575 is not finite. The simulation will be stopped. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)"
I have tried messing with the step size and error tolerances but it did not help. Any suggestions?