1

Unable to use ComStock 2024_R1 measures with OS_SDK 3.7

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.

James_BC's avatar
51
James_BC
asked 2024-04-22 19:14:42 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

3

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

Julien Marrec's avatar
29.7k
Julien Marrec
answered 2024-04-23 10:01:46 -0500
edit flag offensive 0 remove flag delete link

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 -0500) 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 -0500) 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 -0500) 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 -0500) edit
add a comment see more comments