Effort to converting XML to OSM failing
I downloaded building energy models (XML files) from NREL's data repository (https://data.openei.org/s3_viewer?buc...). I intend to convert the files I fetched from here to OSM files so I can use them to run scenarios on PAT. However, when I try to do that, it gives the following error. I tried running the existing sample file measures (base.xml, for example), and they run fine. I wonder what the issue may be with the ones I downloaded from NREL's repository? Is there a way to convert these XML files to OSM?
This element is not expected. Expected is ( SystemIdentifier ). at C:/OpenStudio-HPXML-1.5.1/workflow/sample_files/in_11848.xml:739
Error: Element 'DuctType': This element is not expected. Expected is ( SystemIdentifier ). at C:/OpenStudio-HPXML-1.5.1/workflow/sample_files/in_11848.xml:746
I appreciate any help I can get. Thanks!
See my answer here. Does that help?
Hi Scott,
I made the changes to xml file for the two instances mentioned in your response to the linked post (re: Quantity/Count and Ducts SystemIdentifier). Then I tried running it through the OpenstudioHPXML embedded in my Resstock 3.0.0, but it still gives me the following errors:
Error: Expected 1 element(s) for xpath: FloorType[WoodFrame | StructuralInsulatedPanel | SteelFrame | SolidConcrete] [context: /HPXML/Building/BuildingDetails/Enclosure/Floors/Floor, id: "Floor1"] Error: Expected 1 element(s) for xpath: FloorType[WoodFrame | StructuralInsulatedPanel | SteelFrame | SolidConcrete]
The errors you encounter can be specific to what's in your HPXML building description and what version of OS-HPXML you are using. The two instances I mentioned were examples of what that person was hitting. You'll want to consult with the Changelog to see what breaking changes occurred between the version of your HPXML file and the version of OS-HPXML that you are trying to run. You can also find documentation specific to each OS-HPXML release.
Hey @Aaron Boranian did you get this to work? We are trying to do the same thing and we can get the HPXMLtoOpenStudio measure to output a working IDF that will successfully run after adjusting the references for the external file for file based schedules. However, when we add the "debug" line to make it output an OSM as well, the OSM fails miserably as well after doing the proper accounting for the file based schedules. What did you have to do to the OSM to get it to simulate?
@dpud12 did you mean to tag @hamza_z -- the original author of this post? I just updated the
tags
.