Error: Exception in thread "main" java.lang.RuntimeException: teleportation does not work when travel time is undefined. #1232
Replies: 2 comments 4 replies
-
I guess you are running the code you mentioned in this discussion: #1230? |
Beta Was this translation helpful? Give feedback.
-
I am fairly sure that the network mode of your PT vehicle types it not (There might be other issues into the same direction. I think there is a pt tutorial. You should follow it to the letter, and change things away from it only after it works. In that sense, I am a bit sceptical if your last change re the teleported mode is really helping here.) And I am certainly not saying that this is totally logical or intuitive. I will close the issue with this answer; if this does not fix it, please reopen it, thanks. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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.
However, I'm encountering the following error:
2025-05-05T11:43:46,247 INFO ControlerListenerManagerImpl:135 calling notifyShutdown on org.matsim.analysis.IterationTravelStatsControlerListener with priority 0.0
2025-05-05T11:43:46,247 INFO PersonWriter:36 Writing all Persons to personscsv
2025-05-05T11:43:46,273 INFO PersonWriter:54 ...done
2025-05-05T11:43:46,273 INFO ControlerListenerManagerImpl:135 calling notifyShutdown on org.matsim.analysis.LinkStatsControlerListener with priority 0.0
2025-05-05T11:43:49,791 INFO ControlerListenerManagerImpl:138 all ControlerShutdownListeners called.2025-05-05T11:43:49,791 ERROR MatsimRuntimeModifications:100 ERROR --- MATSim unexpectedly terminated. Please check the output or the logfile with warnings and errors for hints.
2025-05-05T11:43:49,791 INFO MatsimRuntimeModifications:103 S H U T D O W N --- shutdown completed.
2025-05-05T11:43:49,791 ERROR MatsimRuntimeModifications:101 ERROR --- results should not be used for further analysis.
2025-05-05T11:43:49,791 ERROR MatsimRuntimeModifications:105 ERROR --- This was an unexpected shutdown! See the log file for a possible reason.
Exception in thread "main" java.lang.RuntimeException: teleportation does not work when travel time is undefined. There is also really no magic fix for this, since we cannot guess travel times for arbitrary modes and arbitrary landscapes. kai/mz, apr'15 & feb'16
at org.matsim.core.mobsim.qsim.DefaultTeleportationEngine.handleDeparture(DefaultTeleportationEngine.java:93)
at org.matsim.core.mobsim.qsim.QSim.arrangeAgentDeparture(QSim.java:496)
at org.matsim.core.mobsim.qsim.QSim.arrangeNextAgentAction(QSim.java:450)
at org.matsim.core.mobsim.qsim.QSim$1.arrangeNextAgentState(QSim.java:152)
at org.matsim.core.mobsim.qsim.ActivityEngineDefaultImpl.doSimStep(ActivityEngineDefaultImpl.java:109)
at org.matsim.core.mobsim.qsim.QSim.doSimStep(QSim.java:397)
at org.matsim.core.mobsim.qsim.QSim.run(QSim.java:245)
at org.matsim.core.controler.NewControler.runMobSim(NewControler.java:125)
at org.matsim.core.controler.AbstractController$8.run(AbstractController.java:214)
at org.matsim.core.controler.AbstractController.iterationStep(AbstractController.java:246)
at org.matsim.core.controler.AbstractController.mobsim(AbstractController.java:210)
at org.matsim.core.controler.AbstractController.iteration(AbstractController.java:157)
at org.matsim.core.controler.AbstractController.doIterations(AbstractController.java:124)
at org.matsim.core.controler.AbstractController$1.run(AbstractController.java:84)
at org.matsim.core.controler.MatsimRuntimeModifications.run(MatsimRuntimeModifications.java:70)
at org.matsim.core.controler.MatsimRuntimeModifications.run(MatsimRuntimeModifications.java:53)
at org.matsim.core.controler.AbstractController.run(AbstractController.java:92)
at org.matsim.core.controler.NewControler.run(NewControler.java:83)
at org.matsim.core.controler.Controler.run(Controler.java:259)
at org.matsim.project.RunMatsim.main(RunMatsim.java:74)
The simulation did not run properly. Error/Exit code: 1
And here is my config.xml file:
Any suggestions would be greatly appreciated. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions