You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As reported in #4305, Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls is problematic: Dymola 2024x fails with it and so does OpenModelica. Apparently there are some reasons to generate chattering.
This should be investigated before the 4.1.0 release.
The text was updated successfully, but these errors were encountered:
I tried to debug it and preliminarily it seems that the linear part makes sense, but needed to be applied in additional cases.
Specifically the code has:
if xi1 < x0 or xi2>x1 then
// The limits don't make sense, just use linear interpolation
y := (y1-y0)*(x-x0)/(x1-x0) + y0;
else
And what happens here is that xi1 and xi2 are practically identical, but x0 and x1 are different.
Adding or abs(xi2-xi1)<100*Modelica.Constants.eps fixes this specific case, but it should be investigated a bit more.
As reported in #4305, Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls is problematic: Dymola 2024x fails with it and so does OpenModelica. Apparently there are some reasons to generate chattering.
This should be investigated before the 4.1.0 release.
The text was updated successfully, but these errors were encountered: