Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Application crashes

Application crashes

Hi,

I am trying to run a simple model to solve a system of equations, but the application crashes (even with a message from Windows that the .exe has stopped working).  In OMEdit I get the following message:
stdout | OMEditInfo | <p>C:/Problem_4_Fanger.exe -port=64535 -logFormat=xml -override=startTime=0,stopTime=10,stepSize=0.02,tolerance=1e-6,solver=dassl,outputFormat=mat,variableFilter=.* -r=Problem_4_Fanger_res.mat -dasslJacobian=coloredNumerical -w -lv=LOG_STATS</p>
stdout | error | <p>Process crashed<br>
Simulation process failed. Exited with code -1073741819.</p>

Does somebody recognize what's wrong?
The code is:

model Problem_4_Fanger
  Real PMV(start = 1);
  Real t_cl(start = 20);
  Real hc(start = 2);
  parameter Real Madu = 90;
  parameter Real eff = 0;
  parameter Real pa = 9.37;
  parameter Real t_a = 21;
  parameter Real t_mrt = 21;
  parameter Real fcl = 1.15;
  parameter Real I_cl = 1.0;
equation
  PMV = (0.352 * exp((-0.042) * Madu) + 0.032) * (Madu * (1 - eff) - 0.35 * (43 - 0.061 * Madu * (1 - eff) - pa) - 0.42 * (Madu * (1 - eff) - 50) - 0.0023 * Madu * (44 - pa) - 0.0014 * Madu * (34 - t_a) - 3.4 * 10 ^ (-8) * fcl * ((t_cl + 273) ^ 4 - (t_mrt + 273) ^ 4) - fcl * hc * (t_cl - t_a));
  t_cl = 35.7 - 0.032 * Madu * (1 - eff) - 0.18 * I_cl * (3.4 * 10 ^ (-8) * fcl * ((t_cl + 273) ^ 4 - (t_mrt + 273) ^ 4) + fcl * hc * (t_cl - t_a));
  hc = 2.05 * (t_cl - t_a) ^ 0.25;
end Problem_4_Fanger;

Edited by: Manrique Delgado - Sep-15-15 09:23:17

Re: Application crashes

I cannot reproduce the crash on Linux. The simulation just terminate with the following message:

Code:


Simulation execution failed for model: Problem_4_Fanger
assert            | debug   | Solving non-linear system 3 failed at time=0.
|                 | |       | For more information please use -lv LOG_NLS.
assert            | info    | simulation terminated by an assertion at initialization

Re: Application crashes

And using all the flags form your post, I get the following messages:

Code:


<message stream="assert" type="debug" text="Solving non-linear system 3 failed at time=0.
For more information please use -lv LOG_NLS.">
<used index="3" />
</message>
<message stream="assert" type="info" text="simulation terminated by an assertion at initialization" />

Edited by: lochel - Sep-15-15 09:55:03

Re: Application crashes

Thanks Iochel.
I have seen the same message in a different model I am also working on, and I haven't been able to find out what's wrong. Do you know what it means?

There are 0 guests and 0 other users also viewing this topic