Run URBANopt error

Hi all,
I have syncronize my grasshopper workflow with LB Sync Grasshopper File and the Run URBANopt project doesn’t work. I’m not sure if is related with some measure (tbd and set_ground_temperatures_monthly) or with some gem dependencies.
I have this error in one in.osw file:

E, [2023-09-27T11:16:56.159105 #16116] ERROR -- : Error activating gem :/ruby/2.7.0/specifications/public_suffix-5.0.1.gemspec
E, [2023-09-27T11:16:56.159612 #16116] ERROR -- : Error activating gem :/ruby/2.7.0/specifications/oslg-0.2.6.gemspec
E, [2023-09-27T11:16:56.159728 #16116] ERROR -- : Error activating gem :/ruby/2.7.0/specifications/osut-0.2.8.gemspec
E, [2023-09-27T11:16:56.159955 #16116] ERROR -- : Error activating gem :/ruby/2.7.0/bundler/specifications/tbd-3.2.2.gemspec
E, [2023-09-27T11:16:56.160903 #16116] ERROR -- : Error activating gem :/ruby/2.7.0/specifications/parser-3.2.2.1.gemspec
E, [2023-09-27T11:16:56.161063 #16116] ERROR -- : Error activating gem :/ruby/2.7.0/specifications/rubocop-ast-1.28.0.gemspec
E, [2023-09-27T11:16:56.161161 #16116] ERROR -- : Error activating gem :/ruby/2.7.0/specifications/regexp_parser-2.8.0.gemspec
E, [2023-09-27T11:16:56.161321 #16116] ERROR -- : Error activating gem :/ruby/2.7.0/specifications/parallel-1.19.1.gemspec
E, [2023-09-27T11:16:56.168423 #16116] ERROR -- : Error activating gem :/ruby/2.7.0/specifications/openstudio-extension-0.6.0.gemspec
[openstudio.XMLValidator] <1> xsdValidate.parseFileError: XML error 17.1871: Element 'descrption': This element is not expected. Expected is one of ( short_name, description, type ).
    at C:/Users/Batiste/simulation_SII/27_09_Celra/D/.bundle/install/ruby/2.7.0/gems/urbanopt-reporting-0.8.0/lib/measures/default_feature_reports/measure.xml:42
[openstudio.XMLValidator] <1> xsdValidate.parseFileError: XML error 17.1871: Element 'descrption': This element is not expected. Expected is one of ( short_name, description, type ).
    at C:/Users/Batiste/simulation_SII/27_09_Celra/D/.bundle/install/ruby/2.7.0/gems/urbanopt-reporting-0.8.0/lib/measures/default_feature_reports/measure.xml:42
[11:16:58.353605 ERROR] Found error in state 'initialization' with message ["OpenStudio measure C:/Users/Batiste/SUNO_lib/OutputData/measures/tbd called after after Energyplus simulation.:C:/Users/Batiste/simulation_SII/27_09_Celra/D/.bundle/install/ruby/2.7.0/gems/openstudio-workflow-2.3.1/lib/openstudio/workflow/util/measure.rb:168:in `block in validate_measures'\nC:/Users/Batiste/simulation_SII/27_09_Celra/D/.bundle/install/ruby/2.7.0/gems/openstudio-workflow-2.3.1/lib/openstudio/workflow/util/measure.rb:141:in `each'\nC:/Users/Batiste/simulation_SII/27_09_Celra/D/.bundle/install/ruby/2.7.0/gems/openstudio-workflow-2.3.1/lib/openstudio/workflow/util/measure.rb:141:in `each_with_index'\nC:/Users/Batiste/simulation_SII/27_09_Celra/D/.bundle/install/ruby/2.7.0/gems/openstudio-workflow-2.3.1/lib/openstudio/workflow/util/measure.rb:141:in `validate_measures'\nC:/Users/Batiste/simulation_SII/27_09_Celra/D/.bundle/install/ruby/2.7.0/gems/openstudio-workflow-2.3.1/lib/openstudio/workflow/jobs/run_initialization.rb:122:in `perform'\nC:/Users/Batiste/simulation_SII/27_09_Celra/D/.bundle/install/ruby/2.7.0/gems/openstudio-workflow-2.3.1/lib/openstudio/workflow/run.rb:291:in `step'\nC:/Users/Batiste/simulation_SII/27_09_Celra/D/.bundle/install/ruby/2.7.0/gems/openstudio-workflow-2.3.1/lib/openstudio/workflow/run.rb:233:in `run'\n:/openstudio_cli.rb:1187:in `execute'\n:/openstudio_cli.rb:817:in `execute'\n:/openstudio_cli.rb:1984:in `<main>'\neval:188:in `eval'\neval:188:in `require_embedded_absolute'\neval:173:in `block in require_embedded'\neval:167:in `each'\neval:167:in `require_embedded'\neval:126:in `require'\neval:3:in `<main>'"]}
[openstudio.XMLValidator] <1> xsdValidate.parseFileError: XML error 17.1871: Element 'descrption': This element is not expected. Expected is one of ( short_name, description, type ).
    at C:/Users/Batiste/simulation_SII/27_09_Celra/D/.bundle/install/ruby/2.7.0/gems/urbanopt-reporting-0.8.0/lib/measures/default_feature_reports/measure.xml:42

HI @Batiste ,

It’s a little hard to tell from the message there but it maybe looks like the TBD measure you are using is not a version that is intended to work with the latest OpenStudio/URBANopt. Are you able to run the simulation successfully when you do not use measures?

Hi @chris , I have managed to run UrbanOpt again with the measures mentioned above. The problem arises when I connect the 4th generation, create the GeoJSON, and execute UrbanOpt with the network.

Thanks for clarifying, @Batiste . I figured out what the issue is and I just pushed a fix here:

It should be available with the LB Versioner in a few minutes.

2 Likes

Hi Chris, Batiste. I’m one of the authors of TBD. I came across these posts by accident. For what it’s worth, we do test TBD extensively against any (new) OpenStudio release (while ensuring compatibility with past OpenStudio versions > 3.0). Pretty much any OpenStudio derivative should be able to integrate TBD in their workflows. The only (nasty) stuff we’ve come across deal with invalid OpenStudio geometry, often unintentional (e.g. very thin ‘sliver’ surfaces, overlapping subsurfaces). With every release, we manage to increase/expand pre-TBD geometry checks, and politely log warnings/errors before safely exiting. We plan to release a new (even safer) TBD version next week. We may even be catching more geometry issues than OpenStudio itself (EnergyPlus ultimately catches a far greater number). If users do feel they’ve come across an issue with TBD and/or its dependencies, just file an issue - we’ll look into it.

1 Like

Thanks, @brig .

The issue ended up being completely separate from the TBD measure but I commend you on putting together what I think is probably the most popular measure I have seen people referencing recently on this forum.

That’s great to hear that you’re continuing to improve it and, hopefully, the models coming from our tools are cleaner than most given that we have validation in our software to tell people about invalid geometry in their models. We also automatically strip out any sliver faces smaller than the native E+ tolerance of 1 cm when we export to OpenStudio.

I will note that the [openstudio.XMLValidator] warnings that @Batiste was getting are because his measure does not appear to be the latest. But these are just warnings and not the error that stopped the simulation from running. So it’s not critical that he changes his measure but having an updated version will be nice.

2 Likes