0

Getting error Failed to load OSM in PAT

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?

Rwadhwa910's avatar
383
Rwadhwa910
asked 2021-06-22 12:36:15 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2021-07-09 16:42:13 -0500
edit flag offensive 0 remove flag 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's avatar David Goldwasser (2021-06-23 00:27:06 -0500) 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's avatar Rwadhwa910 (2021-06-23 08:20:00 -0500) edit

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

BrianLBall's avatar BrianLBall (2021-06-23 11:34:58 -0500) 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's avatar Rwadhwa910 (2021-06-23 11:48:29 -0500) edit
add a comment see more comments

1 Answer

1

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?

BrianLBall's avatar
2k
BrianLBall
answered 2021-06-23 11:51:47 -0500
edit flag offensive 0 remove flag delete link

Comments

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

Rwadhwa910's avatar Rwadhwa910 (2021-06-24 10:43:22 -0500) edit
add a comment see more comments