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

Primary Ruby Script Path not set for passed in measure

asked 2015-04-14 02:19:20 -0500

MattStewart's avatar

updated 2017-08-20 15:04:17 -0500

Dear Sirs, I am getting an unusual error when attempting to run Pat 1.7. My baseline runs just fine. The error message is: An unhandled exception has occurred. Passed in measure does not have a primaryRubyScriptPath set, which is required for RubyJobBuilder.

Your directions to solve this problem are greatly appreciated. Thank you, Matt

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2015-04-14 07:23:36 -0500

updated 2015-08-18 17:20:19 -0500

That is an odd error, we will look into it. In the meantime, can you see if running scan for tools solves your issue?

Update

The issue is that the 'calibration_reports_copy' measure does not have a 'measure.rb' file in the directory. It seems like this measure was created, added to the workflow, then the measure.rb file was removed. The measure.rb file is the actual code to execute the measure so this is a valid error. However, the apps should catch this without crashing. To fix this right now, remove the 'Calibration Reports Copy' measure from your workflow. You might as well delete it from disk too so you don't get burned by this again.

edit flag offensive delete link more

Comments

1

Thank you. I tried that and a lot of other stuff related to file location. I am thinking that adding the exterior lighting might be the culprit. I do not see an exterior lighting measure in the measures folders.

MattStewart's avatar MattStewart  ( 2015-04-14 08:38:06 -0500 )edit

How did you create the measure that you are trying to run? Did you copy and paste from another measure? If so, you need to change the UUID (unique identified) in the measure.xml file after you copy it. This error indicates to me that you might not have a measure.rb file in the measure you are trying to use?

macumber's avatar macumber  ( 2015-04-14 10:57:28 -0500 )edit

Can you zip the measure you are trying to run, upload it somewhere, and post a link here?

macumber's avatar macumber  ( 2015-04-14 11:08:15 -0500 )edit

Dan, The add exterior lighting measure was added in Open Studio and not PAT. I have been letting Open Studio and PAT put measures wherever they normally do and have not been moving measures around.
Seems that all measures end up with PAT but I am not entirely sure about that. I can go back to an earlier version of the model that did not have the exterior lighting measure and upload it into PAT then add the exterior lighting. As it stands I would say that OS failed to generate the necessary files to run the measure using PAT.

MattStewart's avatar MattStewart  ( 2015-04-14 14:39:05 -0500 )edit

@MattStewart are you still stuck or did you find a solution?

macumber's avatar macumber  ( 2015-04-15 21:26:27 -0500 )edit

Yes - scanning for tools was one of my first guesses. The model was updated from OS 1.6.2 to 1.70 and just after loading OS and PAT I scanned for Tools in both of these. I've just started using the Add Exterior Lights and did this using OS 1.7. I am not seeing the expected measure.rb files as I see with other measures such as the end use breakdown or QC measures.

MattStewart's avatar MattStewart  ( 2015-04-16 11:17:14 -0500 )edit

Thanks for the details, is this the measure you are referring to? Did you download it from the BCL website or using PAT or OpenStudio Application?

macumber's avatar macumber  ( 2015-04-16 17:22:32 -0500 )edit

Mr. Macumber, I added it from the OS software. I remember this because PAT has been what I typically use to add measures.

MattStewart's avatar MattStewart  ( 2015-04-16 18:09:13 -0500 )edit

The measure came from the BCL and I used the Components & Measures tab in the main menu.

MattStewart's avatar MattStewart  ( 2015-04-16 18:20:29 -0500 )edit

We are still having this issue. Is it possible that we need to manage measure.rb files when sharing models on something like DropBox?

MattStewart's avatar MattStewart  ( 2015-08-13 16:24:07 -0500 )edit

I am providing the link for the zipped files of the project: https://www.dropbox.com/s/yp5xpwbfwho...Link

MattStewart's avatar MattStewart  ( 2015-08-18 09:46:52 -0500 )edit

Thanks @MattStewart, I got your file and can reproduce the error. I'll look into this now.

macumber's avatar macumber  ( 2015-08-18 16:09:00 -0500 )edit

Added issue #1781

macumber's avatar macumber  ( 2015-08-18 17:23:03 -0500 )edit

"To fix this right now, remove the 'Calibration Reports Copy' measure from your workflow. You might as well delete it from disk too so you don't get burned by this again.**

Thank you for your reply. As a novice, I am not familiar with what is considered a workflow in regard to using OS and PAT - but will try some experimentation. A search of my directory for OS 1.8.0 has a folder named CalibrationReports. Should I remove this?
I am not sure where to look for the Copy and how to delete.
Does this Linkhelp: https://www.

MattStewart's avatar MattStewart  ( 2015-08-19 12:23:15 -0500 )edit

Hi Dan, I found the folder named scripts for the model that I sent you. Once I have deleted this folder where do I go next to find the 'root' that may add this back later? Thanks again.

https://www.dropbox.com/s/2lzyr6gp3rv...

MattStewart's avatar MattStewart  ( 2015-08-19 12:33:28 -0500 )edit

I'm not exactly sure what you are asking? You should delete measures from your workflow using the PAT (tab 1) or OpenStudio Application (measures tab) interface. You can then add measures using those same interfaces. This documentation explains the process. Does that answer your question?

macumber's avatar macumber  ( 2015-08-20 11:22:19 -0500 )edit

Also, I'm not sure why you were trying to add the calibration reports measure in the first place? That measure is used when you have input utility bill data into your model via the OpenStudio application. The measure then computes difference metrics comparing the entered utility bill data with simulation data. Your OSM did not seem to have any measured utility bill data in it.

macumber's avatar macumber  ( 2015-08-20 12:02:13 -0500 )edit

Yes. I am doing the calibration and runs fine in OS but fails in PAT. The utility data is entered and the AMY weather file is included. You must select year 2014 or else it will not show the Calibration results. https://www.dropbox.com/s/rcdl2ynt5e8...

PAT (tab 1) allows you to add and copy measure but not delete them.
https://www.dropbox.com/s/m42nn0ixvai...

In Pat - I used the small my tab at the lower right to see if there would be something to delete but did not see Calibration Reports Copy. https://www.dropbox.com/s/lorkys1sxgu...

MattStewart's avatar MattStewart  ( 2015-08-20 13:27:31 -0500 )edit
MattStewart's avatar MattStewart  ( 2015-08-20 13:47:49 -0500 )edit

Ok, your new file does not have any measures in the workflow, I think this is related to https://github.com/NREL/OpenStudio/is.... I am looking into this to fix it in 1.9.0. I think the bug is related to the Utility Bill object. In the meantime, can you try removing the Utility Bills from your OSM and then create a new PAT project with that OSM?

macumber's avatar macumber  ( 2015-08-20 15:08:49 -0500 )edit

Hi Dan, That worked. Thank you.
Matt

MattStewart's avatar MattStewart  ( 2015-08-21 12:19:53 -0500 )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: 2015-04-14 02:19:20 -0500

Seen: 299 times

Last updated: Aug 18 '15