Why am I receiving error messages about singularities in my Simulink model?
Show older comments
I am receiving the following error messages about singularities in my Simulink model:
ERROR: Derivative of block at time is Inf of NaN. Stopping Simulation. 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 reducing the step size and adjusting tolerances, but I still receive this error message. I have also tried changing solvers, some solvers will just get to one point of the simulation, and hang.
Accepted Answer
More Answers (1)
Sorelys Sandoval
on 21 Aug 2016
3 votes
Hi, I had the same problem and the next thing worked for me:
Go to model configuration parameters/Solver/Solver Options: Type: Variable-step Solver: ode15s (stiff/NDF)
and that's all. Hope it works for you :D
1 Comment
Qu Cao
on 9 Jan 2017
In the case of a stiff system, changing the solver type could help resolve the issue.
Categories
Find more on Diagnostics in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!