-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The simulation of Buildings.Fluid.FixedResistances.BuriedPipes.Examples.DiscretizedBuriedPipe get stuck in omc due to the coarse sampling of the output #4062
Comments
Changing in the model - experiment(StopTime=63072000, Tolerance=1e-06),
+ experiment(
+ StopTime=63072000,
+ Tolerance=1e-06,
+ Interval=1200), causes the model to simulate with OMC. However, it takes in OMC 218 seconds, and in Dymola 0.5 seconds. I think changing this will hide some other underlying issue. The log is
whereas Dymola (with dassl) has
@AndreaBartolini : I can make the change to the library, but first like to double check if this simulation performance issue is dealt with otherwise as well. |
@casella, can you add some comment/idea? |
Given the reported analysis, it is clear that OMC has some issues with this model, which is otherwise well-behaved, according to the Dymola results. Hence, we shouldn't sweep the dirt under the rug 😃 @AndreaBartolini can you please report @mwetter's results into the original ticket? Then, we can continue the analysis to figure out why OMC is taking such small steps |
The simulation of the model model
Buildings.Fluid.FixedResistances.BuriedPipes.Examples.DiscretizedBuriedPipe
get stuck under omc leading the CI to abort it after the timeout of 400s.The problem is related to the
Number of Intervals
used to integrate the model. By using the default (500
) the integrator got stuck, by increasing theNumber of Intervals
to50000
the simulation finished successfully.The simulation time spans over 6.3072e+07s, so 500 samples seems to be very coarse taking into account that omc uses it in some way in order to decide the integration step variation.
The suggestion is to calculate the
Number of Intervals
according to the simulation total time.See also OpenModelica/OpenModelica#13195 (comment)
The text was updated successfully, but these errors were encountered: