Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Save and load simulation

Hello,
I can confirm that loading .sbx state files does not work as expected.
As a work-around, you can save the state in .xml format by setting the option
--save-state.suffix .xml

regards,
Jakob

Am Di., 9. Okt. 2018 um 15:48 Uhr schrieb Thuresson, Daniel <daniel.thuresson.2@xxxxxxxxxxxxx>:

Hi,

 

I’m trying to save the state of a simulation and then load and continue.

The saving part seems to be working, but when I try to load the .sbx file and continue simulating I get this:

 

Error: Attribute 'impatience' in definition of vType 'veh101' is empty.

Error: Process Error

Quitting (on error).

 

The syntax I use for saving a state:

C:\temp\bin\sumo.exe --time-to-teleport 80 --step-length 0.1  sumo --save-state.times 3000 -b 0 -e 3001 -n C:\temp\xx.net.xml –r C:\temp\optim_saveState_129_99/AdditionalsRouteFiles/RouteFile_share00ACC3_1speed70.rou.xml -a C:\temp\ optim_saveState_129_99/AdditionalsRouteFiles/additionals_00ADM.xml –start --quit-on-end >NUL 2>NUL &

 

The saving part above seems to be working and I get an .sbx file.

 

And syntax for loading and running simulations:

C:\temp\bin\sumo.exe --time-to-teleport 80 --step-length 0.1  --load-state C:\temp\optim\state_3000.00.sbx -b 3000 -e 3601 -n C:\temp\xx.net.xml –r C:\temp\optim_saveState_129_99/AdditionalsRouteFiles/RouteFile_share00ACC3_1speed70.rou.xml -a C:\temp\ optim_saveState_129_99/AdditionalsRouteFiles/additionals_00ADM.xml –start --quit-on-end >NUL 2>NUL &

 

Net, route file etc are, as you can see, identical.

 

What am I doing wrong?

 

Rgds /Daniel

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

Back to the top