Singularity error - Simulink

92 views (last 30 days)
Harvijay Raj
Harvijay Raj on 13 Feb 2018
Answered: Suhan on 19 Feb 2018
An error occurred while running the simulation and the simulation was terminated Caused by: Derivative of state '1' in block 'XXXXXX/Receiver/pre-amp/CTLE mode 2/Transfer Fcn15' at time 3.3003349235944607E-9 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)
Please help.
Harvijay Raj
Harvijay Raj on 13 Feb 2018
So r u from Mathworks? R u setting up some remote debug session?

Sign in to comment.

Answers (1)

Suhan on 19 Feb 2018
The singularity issues occur due to model instabilities. Instabilities may occur in a model due to a wide variety of reasons and one of them is the reference is too quick that the plant does not have enough time to respond and runs into singularities. This can be eliminated by putting in a filter on the reference signal.
Below is information on three tools that may assist you in further improving the model stability, if you are not already familiar with them:
1. Solver Profiler: The Solver Profiler can help you visualize your model dynamics and see where they may be unstable. Using the Solver Profile is described at this link:
2. Log the Simulink states, so you may view their values after running the simulation (perhaps stop the simulation before the error or use the above approach to remove the error):
3. Use Stepping Options to pause the simulation and view signal values before the error occurs:


Find more on General Applications in Help Center and File Exchange



Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!