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

Getting error Failed to load OSM in PAT

asked 2021-06-22 12:36:15 -0600

Rwadhwa910 gravatar image

updated 2021-07-09 16:42:13 -0600

My path for the osm is set correctly but when I am running the simulation i am getting this error.

Found error in state 'initialization' with message ["Failed to load OSM file C:/Users/rwadhwa/OneDrive /Documents/PAT/2_BR/temp_data/analysis_31929370-1acd-4b9a-8c73-5b09a1ccdbbd/seeds/2-BR_EnergyModel1.osm::/ruby/2.5.0/gems/openstudio-workflow-2.0.0/lib/openstudio/workflow/util/model.rb:67:in `load_osm'
:/ruby/2.5.0/gems/openstudio-workflow-2.0.0/lib/openstudio/workflow/jobs/run_initialization.rb:142:in `block in perform'
:/ruby/2.5.0/gems/openstudio-workflow-2.0.0/lib/openstudio/workflow/registry.rb:67:in `register'
:/ruby/2.5.0/gems/openstudio-workflow-2.0.0/lib/openstudio/workflow/jobs/run_initialization.rb:142:in `perform'
:/ruby/2.5.0/gems/openstudio-workflow-2.0.0/lib/openstudio/workflow/run.rb:292:in `step'
:/ruby/2.5.0/gems/openstudio-workflow-2.0.0/lib/openstudio/workflow/run.rb:234:in `run'
:/openstudio_cli.rb:973:in `execute'
:/openstudio_cli.rb:763:in `execute'
:/openstudio_cli.rb:1757:in `<main>'
eval:149:in `eval'
eval:149:in `require_embedded_absolute'
eval:123:in `block in require'
eval:117:in `each'
eval:117:in `require'
eval:3:in `<main>'"]} "

],

Path has the right osm file but still unable to load what could be the issue?

edit retag flag offensive close merge delete

Comments

Is it possible your seed OSM is newer than the version of PAT you are using. If you are running on cloud version of OpenStudio Server you need to make sure that matches the version of PAT.

What happens when you try to open that same OSM file in the OpenStudio Application (same version of OpenStudio as PAT)?

David Goldwasser gravatar image David Goldwasser  ( 2021-06-23 00:27:06 -0600 )edit

@david The OS model is 3.1.0 but I can open it on the latest version of OS 3.2.0. Currently, I am running it in manual mode. I can open the OS model in 3.2.0 and simulate it without any error.

Rwadhwa910 gravatar image Rwadhwa910  ( 2021-06-23 08:20:00 -0600 )edit

looks like there is a space character in the path name? try removing that.

BrianLBall gravatar image BrianLBall  ( 2021-06-23 11:34:58 -0600 )edit

Are you mentioning about the space after onedrive? Becasue that's the name of the company which I deleted intentionally in actual there is no space after one drive.

Rwadhwa910 gravatar image Rwadhwa910  ( 2021-06-23 11:48:29 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-06-23 11:51:47 -0600

hmm, in that case the file path might be too long. can you try with a shorter path, like move the model to C:/Users/rwadhwa/temp or the like?

edit flag offensive delete link more

Comments

Brian, it worked i believe this was the same issue relating to 256 character length limit.

Rwadhwa910 gravatar image Rwadhwa910  ( 2021-06-24 10:43:22 -0600 )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

Stats

Asked: 2021-06-22 12:36:15 -0600

Seen: 45 times

Last updated: Jun 23