Simulink Error Message "Derivative of state '1' in block ____ at time 0.0 is not finite. The simulation will be stopped. There may be a singularity in the solution."

조회 수: 108 (최근 30일)
I need help figuring out why I am getting the error message: "Derivative of state '1' in block 'SimulinkModel/EQ2 Intergrator' 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) ". I have tried reducing the "Absolute Tolerance" in both the "Configuration Paramters" for the solver and each intergrator block's "Block Parameters". However, any combination of decreasing these values does not change the error message.
Please help me figure out why I am getting this error message and how to fix it.
Thank you

답변 (2개)

Nishant Gupta
Nishant Gupta 2020년 1월 24일
In the Configuration Parameters, set the diagnostic "Inf or NaN block output" to 'error', you will get the following error:
"An error occurred while running the simulation and the simulation was terminated"
Caused by:
  • Block 'SimulinkModel/EQ2 Matrix Division 1' outputs 'NaN' for element 1 of output port 1 at major time step 0
This blocks has a divide by zero, which creates a Inf that is fed to an Integrator, generating this error.
So, avoid division by zero in the logic.
  댓글 수: 3

댓글을 달려면 로그인하십시오.


Hammed
Hammed 2023년 12월 18일
Continuous state '1' of 'FCCU/dTreg//dt/Integrator' at time 2.8042556824342819 is not finite. Simulink will terminate the simulation. There may be a singularity in the solution. Check the model 'FCCU' for errors. Try reducing the fixed step size or tighten the error tolerances for variable-step solvers.
please i need help on how to solve this issue

카테고리

Help CenterFile Exchange에서 General Applications에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by