-
Notifications
You must be signed in to change notification settings - Fork 311
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
Model Buildings.Controls.OBC.Utilities.Validation.OptimalStartCoolingNegativeStartTime fails verification #12517
Comments
Did you try to reduce the tolerance by a factor 10 in both tools and see what happens? |
The same analysis is also valid for the following similar models:
and
Both of them overlap the reference transients by reducing the tolerance in OpenModelica by a factor 100 (tolerance = 1e-8) |
To me the conclusion is that these models should be tested for validation with a tighter tolerance and that would be the end of the story. I made a proposal to have a specific annotaton for that, see modelica/ModelicaSpecification#3473, but it sparked a lot of controversy. @AndreaBartolini, @mwetter, please also comment on that. In the meantime, I guess we could reduce the tolerance of those experiments in Buildings by a factor 10, since usually verification is carried out by further tightening the tolerance by another factor 10. It's not standardized (as my proposal would allow), there are no guarantees it always works, and it would make the simulation when you don't bother about verification unnecessarily slower, but it should probably work. |
I completely agree with @casella |
I mean, comment on modelica/ModelicaSpecification#3473 |
I added my comment to the MSL discussion. |
Comment was for @AndreaBartolini 😄 Thanks for the support! |
I'll do ASAP ;) |
The model
Buildings.Controls.OBC.Utilities.Validation.OptimalStartCoolingNegativeStartTime
fails the verification vs the data produced by Dymola for the following signal:optStaCoo.tOpt
herebelow the reference and actual transient:
The
optStaCoo.tOpt
signal depends on theoptStaCoo.optCoo.dTHVACOn.y
signal that is the sampling of the max values of the signaloptStaCoo.optCoo.dTHVACOn.u
.The last signal
optStaCoo.optCoo.dTHVACOn.u
is obtained by integrating the signalTRoo.u
.Herebelow the transient of the above listed signals:
It is possible to see that the discrepancy between the reference and the actual value is generated by the integration of the high-frequency components of the signal
TRoo.u
, that shows some numerical differences between Dymola and OpenModelica in the part of the transient in which the model fails the verification.Probably that high-frequency components are generated by some numerical oscillations of the solver, that are slightly different in Dymola and OpenModelica.
The text was updated successfully, but these errors were encountered: