I've started to play around with OpenModelica and it's Building library version 10.0.0. I am trying to figure out possibilities to create and simulate HVAC system in OpenModelica with building created in EnergyPlus however, I've been experiencing some issues.
I tried all examples in Buildings.ThermalZones.EnergyPlus_9_6_0, but whenever I start a simulation I get following error: Process crashed Simulation process failed. Exited with code 0xffffffffc0000135.
When I look at the error section, translation error appears stating following:[Buildings.BoundaryConditions.WeatherData.ReaderTMY3: 880:29-947:86]: Variable weaBus.TDryBul not found in scope ReaderTMY3. I've looked into ReaderTMY3 in both diagram and text view and it seems that temperature TDryBul is present and connected properly but somehow misread by programme.
I work with 64bit Windows 10 and I have tried to install openmodelica official release 1.22.1 as well nightly build 1.23.0-dev, but it does not make any difference when trying to run models involving Energy+. All other models I tried which do not involve use of Energy+ work perfectly.
I have now tested it and it seems to be working. To make it work you need to:
Download the windows zip from here and unzip it someplace, say
C:\dev\
https://simulationresearch.lbl.gov/modelica/releases/v10.0.0/help/Buildings_ThermalZones_EnergyPlus_9_6_0_UsersGuide.html#Buildings.ThermalZones.EnergyPlus_9_6_0.UsersGuideadd the directory:
C:\dev\Spawn-light-0.4.3-7048a72798-win64\bin
to your PATH variable. This is needed so the simulation executable can find and start spawn.exeadd the directory:
%APPDATA%\.openmodelica\libraries\Buildings 10.0.0\Resources\Library\win64
to your PATH variable. This is needed so the simulation executables can findModelicaBuildingsEnergyPlus_9_6_0.dll
start OMEdit and simulate one of the EnergyPlus models
Alternatively you could also create an OMEdit.bat file containing:
and run that.