RWTH-EBC / BESMod

A Modelica library providing building energy system modules
Other
16 stars 0 forks source link

Multiple errors while compiling the example BuildingsLibraryRoom #53

Closed salomehohl closed 1 year ago

salomehohl commented 1 year ago

Describe the bug Simulation of the example BuildingsLibraryRoom fails. Tried multiple times on three different computers. All libraries were manually loaded in Dymola (without using Python).

To Reproduce Steps to reproduce the behavior:

  1. In BESMod go to Examples.
  2. Click on BuildingsLibraryRoom to open
  3. Click the simulation button
  4. 94 errors concerning IBPSA.Fluid.Movers occure

Expected behavior Simulation runs.

Screenshots Errors Warnings Messages

Simulation environment and version:

First try:

Second try:

Additional context All the used libraries were reinstalled today. A new computer was also used where BESMod and IBPSA were never installed before. Similar errors occure while trying to run the other examples.

FWuellhorst commented 1 year ago

Thanks for the detailed issue!

Cloning the latest main and running the installation under Dymola 2023 works for me under Windows 10. What Dymola version are you using? And: What is the output of your installation process? Does it differ from this one?

(pyBESMod) D:\00_temp\BESMod>python install_dependencies.py full
Cloning into 'D:\00_temp\BESMod\installed_dependencies\IBPSA'...
remote: Enumerating objects: 84511, done.
remote: Counting objects: 100% (1957/1957), done.
remote: Compressing objects: 100% (771/771), done.
remote: Total 84511 (delta 1211), reused 1832 (delta 1144), pack-reused 82554 eceiving objects: 100% (84511/84511), 58.6Receiving objects: 100% (84511/84511), 62.40 MiB | 10.55 MiB/s, done.

Resolving deltas: 100% (56311/56311), done.
Updating files: 100% (3394/3394), done.
Switched to a new branch 'commit_3eb103a9'
Cloning into 'D:\00_temp\BESMod\installed_dependencies\AixLib'...
remote: Enumerating objects: 112523, done.
remote: Counting objects: 100% (1061/1061), done.
remote: Compressing objects: 100% (555/555), done.
remote: Total 112523 (delta 560), reused 913 (delta 476), pack-reused 111462 eceiving objects: 100% (112523/112523), 199Receiving objects: 100% (112523/112523), 199.83 MiB | 9.93 MiB/s, done.

Resolving deltas: 100% (77928/77928), done.
Updating files: 100% (5965/5965), done.
Switched to a new branch 'commit_3bc1bcd9'
Cloning into 'D:\00_temp\BESMod\installed_dependencies\Buildings'...
remote: Enumerating objects: 335232, done.
remote: Counting objects: 100% (2773/2773), done.
remote: Compressing objects: 100% (1198/1198), done.
remote: Total 335232 (delta 1679), reused 2416 (delta 1444), pack-reused 332459 eceiving objects: 100% (335232/335232), Receiving objects: 100% (335232/335232), 434.81 MiB | 11.52 MiB/s, done.

Resolving deltas: 100% (228749/228749), done.
Updating files: 100% (11627/11627), done.
Updating files: 100% (2765/2765), done.
Filtering content: 100% (7/7), 160.44 MiB | 11.58 MiB/s, done.
Switched to a new branch 'commit_fba63b60'
Cloning into 'D:\00_temp\BESMod\installed_dependencies\BuildingSystems'...
remote: Enumerating objects: 22086, done.
remote: Counting objects: 100% (4305/4305), done.
remote: Compressing objects: 100% (2302/2302), done.
remote: Total 22086 (delta 1940), reused 4203 (delta 1890), pack-reused 17781
Receiving objects: 100% (22086/22086), 58.62 MiB | 3.13 MiB/s, done.
Resolving deltas: 100% (12799/12799), done.
Updating files: 100% (3933/3933), done.
Switched to a new branch 'commit_64adca47'
salomehohl commented 1 year ago

The use of python is not possible at the moment, so all libraries were cloned manually and openend via the load button in Dymola. Thus no installation output is visible (except the loaded libraries). Dymola 2022 with Modelica version 4.0.0 was used.

FWuellhorst commented 1 year ago

Ok, that makes sense then! Can you manually checkout the following commits in the libraries?

"IBPSA": "3eb103a9fafb0ee718661ce6a97ae4f6fc8a99c0"
"AixLib": "3bc1bcd9b33c8991eb50aa8fb3913b6dac6a1a1e"
"Buildings": "fba63b60c75bb0285ede2081ae17dbdc9f38d9e7"
"BuildingSystems": "64adca47eae19d2744d86aa8d1624cbf7ad6326b"
salomehohl commented 1 year ago

With those, the simulation worked ( there are still warnings and messages) but the simulation time was around 15 minutes with the preset simulation setup of a whole year. Interval length of 600 seconds and integration algorith Dassl with a tolerance of 0.0001.

salomehohl commented 1 year ago

That's how the outputs look like. Simulation_ouput The information about the indoor temperature is not included in >output >building and when searching for it in the >building tab above, the result looks like this. grafik Something is definitly not working there.

FWuellhorst commented 1 year ago

Regarding the simulation time: That is weird. For the paper, the simulation time was much lower. I get times higher than 5 months ago, for the buildings room 500 seconds and for the TEASER example 480 seconds. Depending on your device, this may be higher. Some error statistics are new which were not there last time I checked, in the ventilation subsystem. Do you need this subsystem?

Regarding the plot: The BuildingsLibraryRoom is rather a proof of concept that different libraries. If you check the free-floating temperature of the room in the Buildings Library (Buildings.ThermalZones.Detailed.Validation.BESTEST.Cases6xx.Case600FF), the temperature rise as well. The example contains no active cooling. Thats why we can't counter the high temperatures: image

salomehohl commented 1 year ago

Thank you for the moment!