NREL / OpenStudio-ERI

Energy Rating Index (ERI) calculation via OpenStudio/EnergyPlus.
Other
17 stars 8 forks source link

Relative EPW file path may cause EnergyPlus errors #666

Open belg4mit opened 1 year ago

belg4mit commented 1 year ago

I can run sample_files/base.xml just fine (although there are quite a few of the same warnings that show up below). But once I add the messing elements to an in.xml from BEopt, the workflow fails and run.log is blank.

C:\openstudio-3.5.0\ERI\workflow>....\bin\openstudio.exe energy_rating_index.rb -x C:\Users\jpierce\Documents\BEopt_3.0.0\TEMP2\32\run\in.xml HPXML: C:\Users\jpierce\Documents\BEopt_3.0.0\TEMP2\32\run\in.xml ERICalculation/Version: 2019ABCD EnergyStarCalculation/Version: None IECCERICalculation/Version: 2021 ZERHCalculation/Version: None Generating 10 HPXMLs... Running 6 Simulations... [openstudio.measure.OSRunner] <1> Cannot find current Workflow Step [openstudio.measure.OSRunner] <1> Cannot find current Workflow Step [openstudio.measure.OSRunner] <1> Cannot find current Workflow Step [openstudio.measure.OSRunner] <1> Cannot find current Workflow Step [openstudio.measure.OSRunner] <1> Cannot find current Workflow Step [openstudio.measure.OSRunner] <1> Cannot find current Workflow Step [openstudio.EpwFile] <0> Successive data points (1988-Jan-31 to 1981-Feb-01, ending on line 753) are greater than 1 day apart in EPW file '../USA_GA_Atlanta-Hartsfield-Jackson.Intl.AP.722190_TMY3.epw'. Data will be treated as typical (TMY) [openstudio.EpwFile] <0> Successive data points (1988-Jan-31 to 1981-Feb-01, ending on line 753) are greater than 1 day apart in EPW file '../USA_GA_Atlanta-Hartsfield-Jackson.Intl.AP.722190_TMY3.epw'. Data will be treated as typical (TMY) [openstudio.EpwFile] <0> Successive data points (1988-Jan-31 to 1981-Feb-01, ending on line 753) are greater than 1 day apart in EPW file '../USA_GA_Atlanta-Hartsfield-Jackson.Intl.AP.722190_TMY3.epw'. Data will be treated as typical (TMY) [openstudio.EpwFile] <0> Successive data points (1988-Jan-31 to 1981-Feb-01, ending on line 753) are greater than 1 day apart in EPW file '../USA_GA_Atlanta-Hartsfield-Jackson.Intl.AP.722190_TMY3.epw'. Data will be treated as typical (TMY) [openstudio.EpwFile] <0> Successive data points (1988-Jan-31 to 1981-Feb-01, ending on line 753) are greater than 1 day apart in EPW file '../USA_GA_Atlanta-Hartsfield-Jackson.Intl.AP.722190_TMY3.epw'. Data will be treated as typical (TMY) [openstudio.EpwFile] <0> Successive data points (1988-Jan-31 to 1981-Feb-01, ending on line 753) are greater than 1 day apart in EPW file '../USA_GA_Atlanta-Hartsfield-Jackson.Intl.AP.722190_TMY3.epw'. Data will be treated as typical (TMY) [openstudio.WorkflowStepResult] <0> WorkflowStepResult value called with undefined stepResult, returning 'Success' [openstudio.WorkflowStepResult] <0> WorkflowStepResult value called with undefined stepResult, returning 'Success' [openstudio.WorkflowStepResult] <0> WorkflowStepResult value called with undefined stepResult, returning 'Success' [openstudio.WorkflowStepResult] <0> WorkflowStepResult value called with undefined stepResult, returning 'Success' [openstudio.WorkflowStepResult] <0> WorkflowStepResult value called with undefined stepResult, returning 'Success' [openstudio.WorkflowStepResult] <0> WorkflowStepResult value called with undefined stepResult, returning 'Success' Simulation unsuccessful. Simulation unsuccessful. Simulation unsuccessful. Simulation unsuccessful. Simulation unsuccessful. Calculating results... Errors encountered. Aborting...

belg4mit commented 1 year ago

BEopt 3.zip Another attempt at attaching the HPXML

shorowit commented 1 year ago

@belg4mit Your in.xml HPXML actually ran successfully for me. Can you zip up and attach your C:\openstudio-3.5.0\ERI\workflow\ERIRatedHome directory? Maybe it will shed some light for me on why the simulations failed.

belg4mit commented 1 year ago

Here you go ERIRatedHome.zip

Just noticed a separate error log there. Looks like maybe the ERI invocation and XML validation tools are being run from different directories by the software, and so the relative path (the default style in the XML) to the weather data is invalid for OpenStudio-ERI. I'll try an absolute path,

shorowit commented 1 year ago

Great, that clearly shows the error: Could not find weather file: C:\openstudio-3.5.0\ERI\workflow\USA_GA_Atlanta-Hartsfield-Jackson.Intl.AP.722190_TMY3.epw. For some reason OpenStudio-ERI is finding the weather file but EnergyPlus is not. I'll have to look into what might cause this issue, it definitely sounds like a bug somewhere.

In the meantime, you can at least work around it by specifying an absolute path instead of relative path in the HPXML file. E.g., change <EPWFilePath>../USA_GA_Atlanta-Hartsfield-Jackson.Intl.AP.722190_TMY3.epw</EPWFilePath> to <EPWFilePath>C:/path/to/USA_GA_Atlanta-Hartsfield-Jackson.Intl.AP.722190_TMY3.epw</EPWFilePath>

belg4mit commented 1 year ago

The absolute path seems to have worked once I navigated out of one of the directories; it's not obvious that the system would unlink and recreate those at each invocation, and fail if it is unable to do so :-P