- Go to "Model Settings" of Top Model from toolstrip.
- Search for "Inf or NaN block output" using the search bar present above in the Configuration Parameters panel.
- Set the value of "Inf or NaN block output" to "error" (by default it would be "none")
- Click Apply and OK. Run the model again.
Derivative of state '5' in block 'Simulation_of_Six_DoF_PADS/Integrator' at time 0.0 is not finite. The simulation will be stopped. There may be a singularity in the solution.
5 views (last 30 days)
Show older comments
Steps taken to try to fix the error:
- reducing step size
- changing solver type
Any other potential steps I can take to try to fix the error?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1643626/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1643636/image.png)
0 Comments
Answers (1)
Dhruv
on 20 Mar 2024
A possible reason for getting the error message 'Derivative of state '5' in block 'Simulation_of_Six_DoF_PADS/Integrator' at time 0.0 is not finite' is the incorrect implementation of the logic or the use of an unstable equation while creating the Simulink model.
This error message appears if one of the blocks is generating either an infinite or NaN value at some point in time. These infinite or NaN values get passed to the "Integrator" block which generates this error.
In order to find out which block is responsible for generating infinite or NaN value, you can set the Configuration Parameters by performing the below steps:
Now you can see an error in the "Diagnostic Viewer" which points to the block that is creating infinite or NaN value. To avoid such errors you can always check for any logical errors relating to that block (such as division by zero) or the correctness of the equations.
0 Comments
See Also
Categories
Find more on Discontinuities 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!