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

BEopt to OpenStudio measures

asked 2017-05-05 21:07:37 -0500

mcdonaa1 gravatar image

updated 2017-08-05 07:41:06 -0500

Attempting to model residential buildings in OpenStudio using the BEopt measures NREL has created, but am unable to run the measures. I need help understanding how to execute them.

The working files have been downloaded from the website above and added to the OpenStudio directory. I followed the command prompt directions for running the measures as follows:

Running the Measures ... If interested in programatically driving the simulations, you will likely find it easiest to use the Command Line Interface approach. The Command Line Interface is a self-contained executable that can run an OpenStudio Workflow file, which defines a series of OpenStudio measures to apply. An example OpenStudio Workflow (create-model-example.osw) is provided with a pre-populated selection of residential measures and arguments. It can be modified as needed and then run like so:

openstudio.exe run -w create-model-example.osw

This will apply the measures to the OpenStudio seed model specified in the .osw, run the EnergyPlus simulation, and produce output.

I am attempting to use the "Workflow: Create Model" method image description

Upon executing, I get the following errors:

1) When I put the unzipped files from github in the "\openstudio-2.1.0\OpenStudio-BEopt-master" directory image description

2) When I take the unzipped folders out of the master directory from github and place them in the "\openstudio-2.1.0\" directory, I get a request for a Warning about a weather data file image description

3) Seeing the "ResidentialLocation" measure folder being referenced above, I placed TMY3 Weather Data (.epw) and design days data and (.ddy) in the "\openstudio-2.1.0\measures\ResidentialLocation", and get the following error image description

Any ideas on how to execute the BEopt to OpenStudio measures? I am struggling to figure it out.

edit retag flag offensive close merge delete


Have you tried using them in PAT? That's probably the quickest way to generate a residential model.

ljbrackney gravatar imageljbrackney ( 2017-05-05 21:50:20 -0500 )edit

Will give PAT a go by attempting to execute the measures as listed by the JSON code in the order it calls for... (

That being said, any ideas as to my trouble regarding the command prompt approach?

mcdonaa1 gravatar imagemcdonaa1 ( 2017-05-05 22:12:53 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2017-05-05 23:08:41 -0500

updated 2017-05-06 08:29:46 -0500

To use the measures straight from the GitHub repo, you need to follow these steps:

Eventually the "official" measures will be posted on the BCL and it'll become easier.

EDIT: I changed the repo so you can more easily use the measures without going through the above steps. Pull the latest repo changes and it should now work for you.

edit flag offensive delete link more


Hi, I am interested to use this set of measures as well. I want to be able to run these measures from the OpenStudio interface / PAT interface. I followed the instructions and installed bundler and the devkit. But when I tried to run bundler ruby returns some errors. I want to make sure I am running bundler under the right directory. Am I supposed to run bundler under the directory with all the BEopt measures? or the whole "OpenStudio-Beopt-master" repo copied from github? How would that link to OpenStudio interface usage?

ytliang gravatar imageytliang ( 2017-05-30 15:39:23 -0500 )edit

Also I tried pasting all the measures into my local measure library and access them directly in OpenStudio. Most of these measures appears to have a red icon flagged to it and says "cannot load such file". Is this the correct way to use these measures directly in OpenStudio? Or am I missing some steps. Thanks.

ytliang gravatar imageytliang ( 2017-05-30 15:43:42 -0500 )edit

answered 2017-05-07 23:04:27 -0500

mcdonaa1 gravatar image

updated 2017-05-07 23:05:08 -0500

I tried both Ruby and PAT methods to no avail.

I was unable to execute some files in the GitHub repo folder as per ( 64-bit Ruby was successfully installed. On the Windows setup, I was able to get through steps 1-3. On Step 4 I ran into an error. I do not know which Gemfile I should be accessing. Should I be downloading a new Gemfile from here ( And replacing the existing one? Do I need download the new Gemfile and place it in the c:\RubyDevKit\ directory? How am I supposed to access the Gemfile? And then what do I no next?

image descriptionimage descriptionimage description

Being unsuccessful at that, I attempted to run it in PAT using these instructions (, and no luck. See attached photos indicating the order the measures were placed, and the "completed Fail" error I ran into on the Run-tab. I am unsure why it is not running. What follows is the order I placed the PAT files in, and the associated Run-tab error.

image descriptionimage descriptionimage descriptionimage description


edit flag offensive delete link more


Did you see the Edit in my answer below?

If you want to go the bundler/PAT approach, you need to run "bundler" from the OpenStudio-BEopt directory.

shorowit gravatar imageshorowit ( 2017-05-08 08:32:45 -0500 )edit

Yes, I tried both methods. I could not get bundler to execute (maybe I am doing it wrong?), and PAT ran into an error. Not certain as to why.

mcdonaa1 gravatar imagemcdonaa1 ( 2017-05-08 16:59:40 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer


Question Tools

1 follower


Asked: 2017-05-05 21:07:37 -0500

Seen: 519 times

Last updated: May 07 '17