Model_to_baseline in Appendix G failing

Hi,

I’m trying to run an Appendix G simulation but the model_to_baseline is failing. I was running it on my local PC. I then tried it on the server so I could get some more information from the error (I used a temporary user as we are out of computing hours at the moment).

The error log for the model_to_baseline task: main (1).log (1.4 KB)

The original model:
proposed_model.hbjson (8.1 MB)

I see there are errors related to the HVAC creation and Lighting, but I don’t know what they mean.

Thanks!!

1 Like

Hi @mateo,

Thank you for running the model on Pollination. It makes it much easier to debug.

This is an interesting one. @chriswmackey should be able to help. I’m copying the logs here to make it easier to see.

honeybee_energy.cli.baseline - ERROR - Model baseline HVAC creation failed.

Failed to set identifier to 01_04_Shaft_02_b176dfdf_Lighting. identifier cannot be set on Lighting while it is locked.

The unlock() method can unlock the class but you do so at your own risk.

Objects are typically locked when they are referenced from several other objects.

So it is usually better practice tomake a new instance of Lighting and proceed using that.

Traceback (most recent call last):

File "/usr/local/lib/python3.10/site-packages/honeybee_energy/cli/baseline.py", line 85, in create_baseline

model_to_baseline(

File "/usr/local/lib/python3.10/site-packages/honeybee_energy/baseline/create.py", line 92, in model_to_baseline

model_lighting_to_baseline(model)

File "/usr/local/lib/python3.10/site-packages/honeybee_energy/baseline/create.py", line 286, in model_lighting_to_baseline

dup_light.identifier = '{}_Lighting'.format(room.identifier)

File "/usr/local/lib/python3.10/site-packages/honeybee/_lockable.py", line 55, in lockedsetattr

raise AttributeError(

AttributeError: Failed to set identifier to 01_04_Shaft_02_b176dfdf_Lighting. identifier cannot be set on Lighting while it is locked.

The unlock() method can unlock the class but you do so at your own risk.

Objects are typically locked when they are referenced from several other objects.

So it is usually better practice tomake a new instance of Lighting and proceed using that.

Thank you for finding and reporting the issue, @mateo . It was an edge case bug in the routines that assign baseline lighting to the model. Thanks to your HBJSON, I was able to recreate the issue and push a fix here:

The fastest way to get the fix on your end for your local simulation is to run the LB Versioner component (just give the fix a half hour or so to make it through out system). But the fix will also be included in the next Pollination single-click installer and I’ll work on updating the recipe on Pollination now.

2 Likes