# Error in running Energy model in Honeybee using EnergyPlus and OpenStudio

**URL:** <https://discourse.ladybug.tools/t/error-in-running-energy-model-in-honeybee-using-energyplus-and-openstudio/6392>\
**Category:** honeybee-legacy\
**Created:** [June 9, 2019, 1:05pm UTC](https://discourse.ladybug.tools/t/error-in-running-energy-model-in-honeybee-using-energyplus-and-openstudio/6392 "2019-06-09T13:05:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ravindra](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/ravindra/32/10676_2.png) [@Ravindra](https://discourse.ladybug.tools/u/Ravindra)\
**Post date:** [June 9, 2019, 1:05pm UTC](https://discourse.ladybug.tools/t/error-in-running-energy-model-in-honeybee-using-energyplus-and-openstudio/6392/1 "2019-06-09T13:05:00Z")

</div>

Hi Everyone

I am trying to set up an energy model for an open office with a parametric geometry built in grasshopper.  
Also, all construction materials, schedules and loads as well as the HVAC system inputs are customized.

When using the exportToOpenStudio component and connect the Boolean toggle (set to true) to the \_writeOSM node, i get the following error:

1. Solution exception:expected int, got str

When I use the runEnergySimulation component I get 15 error messages such as the following:

1. The simulation has not run correctly because of this severe error:  
\*\* Severe \*\* Line: 7504 You must run the ExpandObjects program for “HVACTemplate:Zone:IdealLoadsAirSystem”

The one thing I noticed is that if I create the geometry in Grasshopper, I need to bake it and bring it back as a brep before it will run.  
If I assign a zone program when creating the HoneyBee zones, it does not run.  
If I assign an HVAC system to it, it gives an error message saying that I need to export to OpenStudio.

I am pretty sure that I am missing some pretty basic step but not sure what it is.

Any help would be greatly appreciated.

Thanks

[TestBuidling 2019-06-07.gh](https://discourse.ladybug.tools/uploads/default/original/2X/4/499f8c7aa836fdc91f7f8528db1bd1f01f0d9ab8.gh) (796.8 KB)

---

<div class="post-metadata">

**Author:** ![chris](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/chris/32/10179_2.png) [@chris](https://discourse.ladybug.tools/u/chris)\
**Post date:** [June 9, 2019, 6:49pm UTC](https://discourse.ladybug.tools/t/error-in-running-energy-model-in-honeybee-using-energyplus-and-openstudio/6392/2 "2019-06-09T18:49:17Z")

</div>

@Ravindra ,

Please respect the [forum guidelines](https://discourse.ladybug.tools/t/ladybug-tools-forum-guidelines/2129) and only upload a file that is needed to recreate a certain error. You have a few issues with your file but it would probably help you to know that detailed HVAC systems (other than ideal air) are only available when you export your model to E+ through the OpenStudio component.

---

<div class="post-metadata">

**Author:** ![Ravindra](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/ravindra/32/10676_2.png) [@Ravindra](https://discourse.ladybug.tools/u/Ravindra)\
**Post date:** [June 9, 2019, 7:05pm UTC](https://discourse.ladybug.tools/t/error-in-running-energy-model-in-honeybee-using-energyplus-and-openstudio/6392/3 "2019-06-09T19:05:21Z")

</div>

@chris

Noted and thanks.  
What I did notice is that when I used exportToOpenStudio component “Ver0.064 Jun\_01\_2019” as per the previously attached file, i get the " 1. Solution exception:expected int, got str" error but not when I used the previous version of it dated “Nov\_20\_2018”.  
Is there a bug with this newer version of the component?

---

<div class="post-metadata">

**Author:** ![chris](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/chris/32/10179_2.png) [@chris](https://discourse.ladybug.tools/u/chris)\
**Post date:** [June 9, 2019, 7:14pm UTC](https://discourse.ladybug.tools/t/error-in-running-energy-model-in-honeybee-using-energyplus-and-openstudio/6392/4 "2019-06-09T19:14:34Z")

</div>

@Ravindra,

Thank you and I see now what the issue was. Yes, there was a bug in the OpenStudio component that was in the latest version of the component for ~5 days before I noticed it (I was wondering if anyone would post to the forum about finding it). I fixed it 3 days ago:

> <https://github.com/mostaphaRoudsari/honeybee/commit/25a902bec8bc0478f8cf1c7cbc0a9d3f7ccd2527>

  
So, if you update to the very latest versions of the component, you should be all good to go.

I’m glad that you posted this. Hopefully, this means that, if other people encounter this issue, they will find this post and know to update.

---

<div class="post-metadata">

**Author:** ![Ravindra](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/ravindra/32/10676_2.png) [@Ravindra](https://discourse.ladybug.tools/u/Ravindra)\
**Post date:** [June 9, 2019, 7:34pm UTC](https://discourse.ladybug.tools/t/error-in-running-energy-model-in-honeybee-using-energyplus-and-openstudio/6392/5 "2019-06-09T19:34:36Z")

</div>

@chris

Thanks! I will give it a try.

Just to clarify, if I want to run the energy simulation with a defined HVAC system I need to use the exportToOpenStudio component. Otherwise I can use a “generic” energy simulation using the runEnergySimulation component?

Is it a requirement that the geometry be brought in to Grasshopper as a brep instead of being drawn in Grasshopper itself?

 ![image](https://discourse.ladybug.tools/uploads/default/original/2X/b/bff1ebaf1610d6aef039214fe0235f853b113225.png) I seem to get the attached errors when I connect my “Grasshopper” created geometry up, but it runs if the geometry is baked out then brought in as a brep?

Thanks
