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

Simulation Failed After Adding Unmet Load Hours Troubleshooting Measure

asked 8 years ago

lyw0211's avatar

updated 8 years ago

I made a building energy model by OpenStudio v1.10.0 and would like to use the unmet hours troubleshooting measure to reduce the unmet hours according to the following instruction: https://unmethours.com/question/359/w...

The model can run successfully. However, the running failed after adding that measure. The details is showed as the following screen shot.

Does anyone get this problem before?

image description

Preview: (hide)

Comments

@aparker, Hello Mr. Parker. Do you know if this problem is caused by the update of OpenStudio version?

lyw0211's avatar lyw0211  ( 8 years ago )

I had the same issue. The model runs smoothly without this measure and failed with the measure.

BL's avatar BL  ( 8 years ago )

@Bo_Lin, Thanks for your information!

lyw0211's avatar lyw0211  ( 8 years ago )

Probably caused by the update. I haven't used this Measure in a while. Could you send me the .osm it failed on so I can test and fix?

aparker's avatar aparker  ( 8 years ago )

@aparker, Thanks for your reply! Here is the link of the osm file: https://www.dropbox.com/s/chgmmql2fuo...

lyw0211's avatar lyw0211  ( 8 years ago )

2 Answers

Sort by » oldest newest most voted
3

answered 8 years ago

This measure is outdated, but only two lines need to be changed.

#L192: heatingSchedule = setpoint.getHeatingSchedule.get
Change to: heatingSchedule = setpoint.heatingSetpointTemperatureSchedule.get

#L203: coolingSchedule = setpoint.getCoolingSchedule.get
Change to: `coolingSchedule = setpoint.coolingSetpointTemperatureSchedule.get

@aparker

Preview: (hide)
link

Comments

The measure is great by the way, I hadn't tried it before!

Julien Marrec's avatar Julien Marrec  ( 8 years ago )

@Julien Marrec, Thank you!

lyw0211's avatar lyw0211  ( 8 years ago )

@Julien Marrec & @aparker, I tried changing the code like you suggested but it did not work in OS 1.12. The model runs without the measure but fails while applying the measure.

kramerica's avatar kramerica  ( 8 years ago )

OK, I have got it to work and can verify that it was an issue with my model and not the measure. The changes that @Julien Marrec suggest above do work in OpenStudio 1.12. The reason the measure did not work in my model appeared to be with underscores in zone names. When I changed this it worked.

kramerica's avatar kramerica  ( 8 years ago )

You didn't happen to save the stack trace of this error? I'd be curious to see why underscores in the zone zones would make it crash. Anyways, glad you got it working.

Julien Marrec's avatar Julien Marrec  ( 8 years ago )
2

answered 7 years ago

Tim Johnson's avatar

updated 7 years ago

I made this change and still cannot get the measure to run. I am no good at debugging this sort of thing, but it looks to me like it is failing when trying to get the "zone people occupant count". Any tips on fixing this? image description

Preview: (hide)
link

Comments

In your error output, the measure if failing at the coolingSchedule = setpoint.getCoolingSchedule.get line. Are you sure you copied it correctly?

Also, the spaces look like space types that don't have an occupant definition. The measure should check for that, but might not - I'll need to look at the measure in more detail. In the meantime, try adding occupancy definitions to these space types and just set the occupant number to zero.

mdahlhausen's avatar mdahlhausen  ( 7 years ago )

Thanks @mdahlhausen. I am not entirely sure I edited the .rb file correctly, but I went back and double checked that the text is the same as what is shown in this post. The line numbers you show in the post don't quite match. They are off by a couple lines. I also added a people definition to all space types and that cleared up the warning about occupant counts. I think I only have ruleset schedules for Tstats and didn't use underscores in zone names. Still no luck and same error in the same line.

Tim Johnson's avatar Tim Johnson  ( 7 years ago )

Do have heating and cooling thermostats in each conditioned zone? As for thermal zone name, I tend to avoid special characters ":" in the name, as this can cause issues with some measures, though I don't think that is the issue here. Can you post line 205 here?

mdahlhausen's avatar mdahlhausen  ( 7 years ago )

I have thermostats for each zone that has some sort of mechanical equipment serving it and cleared out special characters like "() /" but I do still have "-" in the names. Line 205 is: coolingSchedule = setpoint.coolingSetpointTemperatureSchedule.get

Tim Johnson's avatar Tim Johnson  ( 7 years ago )

post a link to your model.

mdahlhausen's avatar mdahlhausen  ( 7 years ago )

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: 8 years ago

Seen: 426 times

Last updated: Mar 30 '18