Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
2

BEopt HPXML to OSM Error: No matching global declaration available

asked 2024-06-24 16:37:25 -0600

Moritz Vogel's avatar

updated 2024-06-25 19:40:32 -0600

Hello,

as there are no templates for residential buildings for OpenStudio, I would like to use a residential building model generated in BEopt as a template for an OpenStudio model. Therefore I have exported the BEopt model to an HPXML file and downloaded the NREL/OpenStudio-HPXML measures. When trying to run the HPXMLtoOpenStudio measure with the HPXML file obtained from BEopt, I receive the following error message:

Failed to run workflow. Last Error: 
Found error in state 'OpenStudioMeasures' with message: 'Measure 'HPXMLtoOpenStudio' reported an error with [Element '{http://hpxmlonline.com/2019/10}HPXML': No matching global declaration available for the validation root. at C:/Users/User/7/BEoptHPXML.xml:2]'

As I have never worked with HPXML files before I dont know how to approach this problem. My guess is, that there is a problem with the validation of the file, because I cannot reach http://hpxmlonline.com/2019/10 with my browser. Furthermore I cannot validate the HPXML file with the validator provided at https://hpxml.nrel.gov/validator/. Trying to upload the file there results in the following error:

403 Forbidden

When turning of the validation in the measure settings, the error message changes to:

Failed to run workflow. Last Error: 
Found error in state 'OpenStudioMeasures' with message: 'Measure 'HPXMLtoOpenStudio' reported an error with [Design temp cooling not calculated for living space. 
C:/Users/User/OpenStudio/Measures/HPXMLtoOpenStudio/resources/hvac_sizing.rb:346:in `process_design_temp_cooling' 
C:/Users/User/OpenStudio/Measures/HPXMLtoOpenStudio/resources/hvac_sizing.rb:160:in `block in process_site_calcs_and_design_temps' 
C:/Users/User/OpenStudio/Measures/HPXMLtoOpenStudio/resources/hvac_sizing.rb:145:in `each' 
C:/Users/User/OpenStudio/Measures/HPXMLtoOpenStudio/resources/hvac_sizing.rb:145:in `process_site_calcs_and_design_temps' 
C:/Users/User/OpenStudio/Measures/HPXMLtoOpenStudio/resources/hvac_sizing.rb:12:in `calculate' 
C:/Users/User/OpenStudio/Measures/HPXMLtoOpenStudio/resources/hpxml_defaults.rb:2840:in `apply_hvac_sizing' 
C:/Users/User/OpenStudio/Measures/HPXMLtoOpenStudio/resources/hpxml_defaults.rb:66:in `apply' 
C:/Users/User/OpenStudio/Measures/HPXMLtoOpenStudio/measure.rb:163:in `block in run' 
C:/Users/User/OpenStudio/Measures/HPXMLtoOpenStudio/measure.rb:154:in `each' 
C:/Users/User/OpenStudio/Measures/HPXMLtoOpenStudio/measure.rb:154:in `each_with_index' 
C:/Users/User/OpenStudio/Measures/HPXMLtoOpenStudio/measure.rb:154:in `run']'

Any help in solving these issue or recommendations for other ways to obtain a residential building template is much appreciated. I am using OpenStudio-Application 1.7.1, BEopt 3.0.1.0 and OpenStudio-HPXML v1.7.0.

Best Moritz

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2024-06-26 09:22:07 -0600

updated 2024-06-26 13:53:40 -0600

You're doing all the right things, but the fundamental issue is that you're using the latest version of OpenStudio-HPXML while BEopt requires an older version.

There are a couple options to do this:

  1. Use the OpenStudio-HPXML measures that are bundled with BEopt (found at e.g. C:\Program Files (x86)\NREL\BEopt_3.0.1\Include\OpenStudio-HPXML). Or...

  2. Change args['debug'] = debug to args['debug'] = true on line 66 of C:\Program Files (x86)\NREL\BEopt_3.0.1\Workflow\run_simulation.rb.This will cause BEopt to create OSM files (and other simulation files) by default for any simulation.

Since we've had a few requests for getting the OS model, we'll look into adding a setting to BEopt that allows the OSM to be generated.

One final note: 3D geometry from BEopt v3 is not currently preserved in the resulting OpenStudio model; you can read more about that in the documentation here. Some users are confused by this.

edit flag offensive delete link more

Comments

Thanks a lot for your reply! I was able to obtain an osm file by following the second path outlined in your instruction. However, I have noticed that the osm file is not suitable for being used as a template for my own osm model. For example, the construction "FoundationWall1 construction" in the osm file that I assume to represent the option selected in "Finished Basement" in BEopt, does not change when the option in BEopt is changed. I have tried the options "Uninsulated", "Whole Wall R-20 XPS" and "Whole Wall R-13 Fiberglass Batt, 2x4, 16 in o.c., R-10 XPS". Is that intended behavior?

Moritz Vogel's avatar Moritz Vogel  ( 2024-06-26 14:44:30 -0600 )edit

So the osm model doesnt reflect changes made in BEopt as far as I can tell.

Moritz Vogel's avatar Moritz Vogel  ( 2024-06-26 14:44:51 -0600 )edit

Can you share your BEopt model via e.g. Google Drive or Dropbox?

shorowit's avatar shorowit  ( 2024-06-26 17:08:10 -0600 )edit
Moritz Vogel's avatar Moritz Vogel  ( 2024-06-26 17:24:48 -0600 )edit

I requested access.

shorowit's avatar shorowit  ( 2024-06-27 15:49:58 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2024-06-24 16:37:25 -0600

Seen: 120 times

Last updated: Jun 27