-
Notifications
You must be signed in to change notification settings - Fork 58
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
OM Simulation Error with IDEAS.Examples.IBPSA.SingleZoneResidentialHydronicHeatPump #1260
Comments
@dhblum I pushed a potential fix. A temperature sensor was connected backwards. If this fixes the problem it indicates a bug in OpenModelica though since the model had allowFlowReversal=true and therefore the port connection order shouldn't matter. |
Thanks @Mathadon this indeed allows the model to simulate in OMEdit. However, a new problem: the results don't match those from Dymola. I simulated both with cvode tol 1e-6 for 10 days. Outputs are 300s interval with no events stored. Some key variables plotted below (heat pump power, zone temperature, outside dry bulb temperature). Haven't looked into any further, just reporting for now. |
@dhblum remarkable results.. I'm getting (visually) the same results for dymola. My guess is that the temperature set point is computed incorrectly since this strongly affects the control signal in dymola: The set point depends on the CalendarTime block, which uses time events in a relatively complex way. I'm guess that OM causes different results due to that. |
Good point looking at heating set point, indeed it is not being set correctly for the PI controller for the heat pump. The problem is solved if the following changes are made:
Looks like |
I'm hoping this helps with in getting IDEAS supported by OM, and will maybe show up in tests started with #1254.
OM Version: 1.20.0~dev-13-g85ae74c, Nightly build Ubuntu 18.04 x64
MSL Version: 4.0.0 distributed as OMEdit system library
IDEAS Version: master commit ad502f4
Model Path: IDEAS.Examples.IBPSA.SingleZoneResidentialHydronicHeatPump
In OMEdit, simulation error with both Dassl and Euler (tol 1e-6, start time = 0, final time = 864000) right after a seemingly successful initialization:
The text was updated successfully, but these errors were encountered: