Dear SUMO community,
I hope you’re doing well.
I'm working on a simulation involving a subway line, where subway vehicles are generated every 4 minutes using the <flow> element. Each subway train follows the same route and is scheduled to stop at several defined stops for a fixed duration.
To start the simulation with some warm-up traffic present, I use “load-state” to load a previously saved simulation state. However, after doing so, I’ve observed the following issues:
- Some subway trains stop at the bus stops as expected while others do not stop at all, even though the stop definitions are identical.
- Without the loaded state, in the west to east route the second vehicle (flow1.1) enters the simulation with a depart delay of 440 seconds. Only by applying insertionChecks= “none” it enters normally but then load-state gives the error: attribute 'insertionChecks' is not declared for element 'vehicle'.
The inconsistent behavior mentioned in the first point only occurs after loading the state. When running the simulation from the beginning (without loading a state), everything behaves correctly — all subway vehicles stop properly.
I am attaching a few example files (load-state, flow of subways, subway stops and net-file) that demonstrate the issue.
Moreover, I’ve encountered another issue. I’m also trying to simulate intermodal routing, where persons walk to a bus stop (which is the last stop of the bus route), board the bus there, and then exit the simulation while still on board — without specifying a further destination edge. However, when I define the trip (see screenshot) I receive an error indicating that a “to” attribute is expected in the <ride> element. However, since this is the last stop on the line and the last edge of the network, there is no next edge, and I intend for the person to board the bus there and leave the simulation inside the vehicle (as it exits).
Is there a way in SUMO to simulate this kind of behavior, where a person boards a bus at its final stop and exits the network on board without specifying a “to” edge?
Thank you in advance for your time and support.
Kind Regards,
Stavros Kontorinis
Centre for Research and Technology Hellas (CERTH)
Hellenic Institute of Transport (HIT)