IBM / rl-testbed-for-energyplus

Reinforcement Learning Testbed for Power Consumption Optimization using EnergyPlus
MIT License
186 stars 77 forks source link

EnergyPlus9.3.0 Issue #57

Open rajeevraibhatia opened 3 years ago

rajeevraibhatia commented 3 years ago

I'm trying to run the code on my Mac with EPlus 9.3, but getting the below error. Any thoughts on how to resolve this?

Program terminated: EnergyPlus Terminated--Error(s) Detected.

Below is the output of the eplusout.err

Program Version,EnergyPlus, Version 9.3.0-Unknown, YMD=2021.02.26 00:25, Beginning Zone Sizing Calculations Warning Weather file location will be used rather than entered (IDF) Location object. ~~~ ..Location object=CHICAGO_IL_USA TMY2-94846 ~~~ ..Weather File Location=San Francisco Intl Ap CA USA TMY3 WMO#=724940 ~~~ ..due to location differences, Latitude difference=[4.16] degrees, Longitude difference=[34.65] degrees. ~~~ ..Time Zone difference=[2.0] hour(s), Elevation difference=[98.95] percent, [188.00] meters. Warning Calculated design heating load for zone=WEST ZONE is zero. ~~~ Check Sizing:Zone and ZoneControl:Thermostat inputs. Warning Calculated design heating load for zone=EAST ZONE is zero. ~~~ Check Sizing:Zone and ZoneControl:Thermostat inputs. Beginning System Sizing Calculations Warning ManageSizing: Calculated Heating Design Air Flow Rate for System=WEST ZONE AIR SYSTEM is zero. ~~~ Check Sizing:Zone and ZoneControl:Thermostat inputs. Warning ManageSizing: Calculated Heating Design Air Flow Rate for System=EAST ZONE AIR SYSTEM is zero. ~~~ Check Sizing:Zone and ZoneControl:Thermostat inputs. Beginning Plant Sizing Calculations Testing Individual Branch Integrity All Branches passed integrity testing Testing Individual Supply Air Path Integrity All Supply Air Paths passed integrity testing Testing Individual Return Air Path Integrity All Return Air Paths passed integrity testing No node connection errors were found. Beginning Simulation Severe stoi: no conversion EnergyPlus Warmup Error Summary. During Warmup: 0 Warning; 0 Severe Errors. EnergyPlus Sizing Error Summary. During Sizing: 5 Warning; 0 Severe Errors. EnergyPlus Terminated--Fatal Error Detected. 5 Warning; 1 Severe Errors; Elapsed Time=00hr 00min 1.05sec

antoine-galataud commented 3 years ago

You got this exception reported by EnergyPlus:

** Severe ** stoi: no conversion

stoi is used in EnergyPlus patch code: https://github.com/IBM/rl-testbed-for-energyplus/blob/0854a24ca94e6647369a98b1cf5e0eaa68fbd4d5/EnergyPlus/RL-patch-for-EnergyPlus-9-3-0.patch#L350)

It's used to transform the number of actions sent by the python part. See https://github.com/IBM/rl-testbed-for-energyplus/blob/0854a24ca94e6647369a98b1cf5e0eaa68fbd4d5/gym_energyplus/envs/energyplus_env.py#L211-L218 (especially the first call to writeline, which send the number of actions).

I suspect something is malformed in your idf file, maybe a missing @ExtCtrlAct or wrong indexes.