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

SWIG director type 'bool' mispatch error when running measures

asked 2024-05-13 18:29:59 -0600

llisell's avatar

updated 2024-07-30 16:00:41 -0600

When I am trying to run measures, I get the following error: SWIG director type mismatch in output value of type "bool"

I watched the youtube videos on running measures (https://www.youtube.com/watch?v=AllpY...), and have appropriate inputs for space and zones, but the measure still won't run. I am running a model that came out of Asset Score. I am adding a some screenshots below. The first is the error that I am getting when I try and run the measure. image description The second is a screenshot of the spaces tab showing space types assigned to each of the spaces.

image description

edit retag flag offensive close merge delete

Comments

1

@llisell you can refer to other posts about SWIG errors here and here. In summary, you'll need to share more information about:

  • what measure you're trying to apply
  • where you got that measure from (if not the BCL)
  • any other error/warning messages from trying to apply the measure
Aaron Boranian's avatar Aaron Boranian  ( 2024-05-13 18:38:23 -0600 )edit

@Aaron Boranian I am trying to run the "CreateBaselineBuilding" measure from BCL to create an ASHRAE 90.1 baseline building. Also added a screenshot of the output screen to the post.

llisell's avatar llisell  ( 2024-05-14 18:01:46 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2024-05-16 05:01:02 -0600

updated 2024-07-30 16:18:03 -0600

Similar to this previous post? I'd check your model for missing space type properties:

  • Standards Template
  • Standards Building Type
  • Standards Space Type

As stated in the video, it is not enough to simply assign space types to spaces. Assigned space types must have valid Standards entries, as show below.


In a nutshell, the CreateBaselineBuilding Measure has OpenStudio-Standards as a gem dependency. The gem itself (not the measure) is tripping over missing space type properties, which in turn may be generating your more severe error. The warnings are clear enough: "template" is OK, yet "building_type" and "space_type" entries are unfortunately nilled.

EDIT: Double-check space type properties (under "Space Types" tab)?

image description

edit flag offensive delete link more

Comments

@Denis Bourgeois this doesn't appear to be the problem, all of my spaces have space types assigned, I added a screenshot above.

llisell's avatar llisell  ( 2024-05-25 05:02:43 -0600 )edit

@llisell : I re-edited my initial answer. Could you double-check so that the selected space types (under "Space Types" tab, under "Measure Tags") have valid Standards properties?

Denis Bourgeois's avatar Denis Bourgeois  ( 2024-05-25 08:19:53 -0600 )edit

I am facing a similar issue. I have all the space types selected too Climate Zone selected and facilities tab is updated as well. What might be the issue then?

Apoorva's avatar Apoorva  ( 2024-07-29 20:54:38 -0600 )edit

@Apoorva, the measure requires valid space type "Standards" properties (as stated in the video, and illustrated above). Can you verify that these properties are correctly set (under "Space Types" tab, under "Measure Tags")? Your issue may lie elsewhere. But if you're coming up with the same errors and warnings, I suggest double-checking space type properties first.

Denis Bourgeois's avatar Denis Bourgeois  ( 2024-07-30 16:25:38 -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-05-13 18:29:59 -0600

Seen: 262 times

Last updated: Jul 30