Derivative of state '1' in block 'X/Y/Integrator' at time 0.55 is not finite.

1,449 views (last 30 days)
An error occurred while running the simulation and the simulation was terminated Caused by: Derivative of state '1' in block 'X/Y/Integrator' at time 0.55 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). How to fix this error?

Answers (4)

Sorelys Sandoval
Sorelys Sandoval on 21 Aug 2016
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
  15 Comments

Sign in to comment.


Sebastian Castro
Sebastian Castro on 4 Nov 2015
This usually has to do with really large or infinite signals feeding into an Integrator block. Numerical solvers (expectedly) have trouble integrating such large signals and therefore this leads to errors.
Typical causes can be divide by zero (1/0 = inf) or general unstable dynamics that quickly blow up over time. You should check that in your model. It can help to use Port Value Displays as you step through the model to figure out why this happens.
- Sebastian

Abhiram V. P. Premakumar
Abhiram V. P. Premakumar on 1 Apr 2021
Edited: Abhiram V. P. Premakumar on 20 May 2022
I solved this issue by eliminating the infinite signal, using a switch block, and setting a clock as threshold (say at t=1e-2). In my case the problem was due to divide block giving infinite signal, since the signal at denominator was '0' initially.
  7 Comments

Sign in to comment.


ahmet akgün
ahmet akgün on 2 May 2021
Adaptive Sliding-Mode Control for Boost DC–DC Converters simulation simulation fails;''Derivative of state '1' in block 'power_BoostConverter_Adaptive_SMC_math/TSMC Controller/Integrator' at time 0.0 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) ''
How to fix this error?
  5 Comments
Ambe Harrison
Ambe Harrison on 23 Aug 2022
Hello,ahmet akgün. I am presently working on a Back steeping controller. Face thesame problem with the integrator. Please have you solved it.
If possible we may exchange more via email, ambeharrison2000@gmail.com

Sign in to comment.

Categories

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!