Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative EPW file path may cause EnergyPlus errors #666

Open
belg4mit opened this issue Jan 13, 2023 · 5 comments
Open

Relative EPW file path may cause EnergyPlus errors #666

belg4mit opened this issue Jan 13, 2023 · 5 comments
Labels

Comments

@belg4mit
Copy link

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
Copy link
Author

belg4mit commented Jan 13, 2023

BEopt 3.zip
Another attempt at attaching the HPXML

@shorowit
Copy link
Collaborator

@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
Copy link
Author

belg4mit commented Jan 17, 2023

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
Copy link
Collaborator

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>

@shorowit shorowit added the bug label Jan 17, 2023
@belg4mit
Copy link
Author

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

@shorowit shorowit changed the title BEopt v3 HPXML does not run Relative EPW file path may cause EnergyPlus errors Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants