MATLAB Answers

SimScape Gas simulation error

19 views (last 30 days)
Hi, I'm working to a simscape project, and the results of the simulations were fine (no warnings, no errors, physical results accurate and control logics accomplished) till yesterday. Today I opened the project, I executed it without applying any modifications in the model parameters nor in the simulator parameters, and I riceived the following warnings:
First solve for initial conditions failed to converge. Trying again with all high priorities relaxed to low.
Component:Simulink | Category:Model warning
Second solve for initial conditions failed to converge. Trying again with all variable targets ignored.
Component:Simulink | Category:Model warning
Unable to satisfy all initial conditions. The variables involved are listed below.
The following variables' targets could not be honored:
'Tank_1.T_I' (Temperature of gas volume)
'Tank_1.p_I' (Pressure of gas volume)
'Tank_2.T_I' (Temperature of gas volume)
'Tank_2.p_I' (Pressure of gas volume)
'Tank_3.T_I' (Temperature of gas volume)
'Tank_3.p_I' (Pressure of gas volume)
'Tank_4.T_I' (Temperature of gas volume)
'Tank_4.p_I' (Pressure of gas volume)
'Tank_5.T_I' (Temperature of gas volume)
'Tank_5.p_I' (Pressure of gas volume)
'Tank_6.T_I' (Temperature of gas volume)
'Tank_6.p_I' (Pressure of gas volume)
'Tank_9.T_I' (Temperature of gas volume)
'Tank_9.p_I' (Pressure of gas volume)
Those are pressures and temperatures of the tanks in my plant.
As a consequence, the simulation doesn't run because of simulation errors. The fact is that I didn't modify anything. Between the two runs I didn't even use my PC.
If I try to modify slightly the initial conditions the simulation runs, but way faster than before and it gives an error after a few seconds.
Does anyone have ever experienced something like this? And how did you manage?
Thank you a lot

Accepted Answer

Juan Sagarduy
Juan Sagarduy on 16 Mar 2021
Hello Federico
Debugging such model is often difficult, and various settings may affect. My recommendation would be to reach MathWorks technical support and share the files as well.
Br Juan

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by