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

Unable to use ComStock 2024_R1 measures with OS_SDK 3.7

asked 2024-04-22 19:14:42 -0600

James_BC's avatar

Hi All,

I have had some success using workflows to create and run .osm files using measures from the ComStock 2023_R2 workflow with OS_SDK 3.6.1.

I recently tried updating to ComStock 2024_R1 and OS_SDK 3.7, and when I run the exact same workflow the simulation fails. Here is a sample of the error message I get in the run.log

[15:23:56.089989 ERROR] [openstudio.measure.OSRunner] SWIG director type mismatch in output value of type 'bool'
[15:23:56.090507 ERROR] [openstudio.workflow.OSWorkflow] Found error in state 'OpenStudioMeasures' with message: 'Runner error: Measure '/... /measures/set_exterior_lighting_template/measure.rb' reported an error with [SWIG director type mismatch in output value of type 'bool']'

I tried downgrading back to OS_SDK 3.6.1 and the workflow works again. It seems odd because the ComStock 2024_R1 release notes say it is compatible with OS_SDK 3.7.

Can anyone offer some advice about how I can try to troubleshoot? I don't know if this is a problem with the ComStock Measures, the OpenStudio-Standards measures (0.4.0 vs 0.5.0), or OS_SDK 3.7.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2024-04-23 10:01:46 -0600

The measure in question is missing return trueat the end of the "regular" path, cf https://github.com/NREL/ComStock/issu...

edit flag offensive delete link more

Comments

Okay, thanks for the fast reply Julien! I'll try to follow along with the issue in GitHub.

BTW if I remove set_exterior_lighting_template from my workflow, I get the same error from these measures too:

  • set_interior_equipment_template
  • set_service_water_heating_template
  • set_hvac_template
James_BC's avatar James_BC  ( 2024-04-23 10:59:13 -0600 )edit

In the mean-time, I think I can do a quick fix in my local version of the set_exterior_lighting_template measure. Would I add return true to line 288? Like this:

...

    log_messages_to_runner(runner, debug = false)
    reset_log
    return true
  end
end
James_BC's avatar James_BC  ( 2024-04-23 11:04:08 -0600 )edit
1

@James_BC thanks for the additional reports, we'll fix those measures as well. The measure run method should finish with return true, so where you placed it in line 288 of 'set_exterior_lighting_template' is correct.

ericringold's avatar ericringold  ( 2024-04-23 11:21:15 -0600 )edit
1

Excellent. Thank you! I made the fix and my workflow is humming along with OS_SDK_3.7

James_BC's avatar James_BC  ( 2024-04-23 14:19:36 -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-04-22 19:14:42 -0600

Seen: 100 times

Last updated: Apr 23