Error java.lang.RuntimeException: Found a trip with multiple legs and no routingMode. #1230
-
Hello, I am setting up a scenario involving, for example, 100 agents commuting daily using public transport. I’ve generated the network.xml, transitSchedule.xml, and transitVehicles.xml files using pt2matsim with GTFS data. I am running it in Matsim GUI, and I got the following error message: 2025-05-02T16:56:54,698 WARN PrepareForSimImpl:265 'usePersonIdForMissingVehicleId' is deprecated. It will be removed soon.
2025-05-02T16:56:54,715 ERROR MatsimRuntimeModifications:82 ERROR --- This is an unexpected shutdown!
2025-05-02T16:56:54,715 INFO ControlerListenerManagerImpl:128 calling notifyShutdown on org.matsim.core.controler.corelisteners.DumpDataAtEndImpl with priority 0.0 2025-05-02T16:56:54,728 INFO ControlerListenerManagerImpl:135 calling notifyShutdown on org.matsim.analysis.IterationTravelStatsControlerListener with priority 0.0 The simulation did not run properly. Error/Exit code: 1 The config.xml file and the file for generating the population are shown below:
The code below generates the population plan: import ... public class CreatePTdemand {
// initialize the population container
// randomize ±50meters in x and y direction around node
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
In
You will have to put "pt interaction activities" in between your legs. I have never done that at this stage; it would probably be easier to not put in the walk legs ... MATSim will do this automatically. So I would try something like
I will close the issue with this answer since I think this will resolve the issue; please re-open if this does not work. |
Beta Was this translation helpful? Give feedback.
In
You will have to put "pt interaction activities" in between your legs. I have never done that at this stage; it would probably be easier to not put in the walk legs ... MATSim will do this automatically. So I would try something like