ibpsa / project1-boptest

Building Optimization Performance Tests
Other
104 stars 69 forks source link

Using OpenModelica and Converting to MSL4 #422

Open dhblum opened 2 years ago

dhblum commented 2 years ago

Since JModelica is no longer supported open source, this issue is to track the progress of being able to compile and simulate BOPTEST test case FMUs with OpenModelica. In addition, with the update of primary dependent Modelica libraries (Buildings and IDEAS) to use MSL4, this issue will also convert test cases to be compatible with MSL4 while compiling with OpenModelica. Note that compilation and simulation coverage of Buildings and IDEAS by OpenModelica is still an ongoing task in and of itself. Therefore, the testing within this issue will hope to contribute to those efforts, while also understanding any problems encountered may not be the fault of the test case implementation itself.

To be done also in coordination with #526.

dhblum commented 2 years ago

Branch: https://github.com/ibpsa/project1-boptest/tree/issue422_om_msl4 Ubuntu 18.04 x 64 Last used OpenModelica version: 1.20.0~dev-13-g85ae74c Dymola Version 2021 Modelica Standard Library version: 4.0.0 Buildings master commit: ef6ffe5b3bc001446961d39be21d7d77ceedb767 (development to v9.0.0) IDEAS master commit: da384ee62213f621c7ea344abb030fb0e679ee50 All solvers are cvode with tol 1e-6 x = confirmed 0 = error or problem empty = not tried

TestCase Compile Dymola and/or Impact Simulate Dymola and/or Impact Compile OMEdit Simulate OMEdit OM FMU Compile OM FMU Simulate in pyfmi
bestest_air x x x x x x
bestest_hydronic x x x x x x
bestest_hydronic_heat_pump x x x x x 0
singlezone_commercial_hydronic x x x x x x
multizone_residential_hydronic x x x 0
multizone_office_simple_air 0
twozone_apartment_hydronic
multizone_office_simple_hydronic (not in repo yet) x x
dhblum commented 1 year ago

New chart:

Branch: https://github.com/ibpsa/project1-boptest/tree/issue422_om_msl4 Ubuntu 18.04 x 64 Last used OpenModelica version: 1.21.0~dev-223-g149deda Dymola Version 2022 Modelica Standard Library version: 4.0.0 Buildings v9.1.0 IDEAS v3.0 All solvers are cvode with tol 1e-6 x = confirmed 0 = error or problem empty = not tried

TestCase Compile Dymola Simulate Dymola Compile OMEdit Simulate OMEdit OM FMU Compile OM FMU Simulate in pyfmi
bestest_air x x x x x x
bestest_hydronic x x x x x x
bestest_hydronic_heat_pump x x x x x 0
singlezone_commercial_hydronic x x x 0 x 0
multizone_residential_hydronic x x x 0 0
multizone_office_simple_air
twozone_apartment_hydronic x x 0
multizone_office_simple_hydronic (not in repo yet, see #465, using above versions) 0 0
multizone_office_simple_hydronic (not in repo yet, see #465, using library_versions.json) 0 x x x 0
dhblum commented 1 year ago

parsing/parser.py has the option of using OpenModelica as test case fmu compiler, or optionally JModelica, here: https://github.com/ibpsa/project1-boptest/blob/issue422_om_msl4/parsing/parser.py.

FYI @JavierArroyoBastida

dhblum commented 6 months ago

@EttoreZ Added you as assigned on this issue given our discussions for you to help pick it up again.