-
Notifications
You must be signed in to change notification settings - Fork 181
faq 116785153
by Zahra Navidi on 2017-10-24 06:26:53
I'm trying to run a simple simulation using doorTodoor DRT. My scenario includes 3 modes: pt, car, and drt. I keep getting the following errors at different iteration (1st or 3rd, or 30th, etc.) each time I run the simulation. I understand that there are some files missing but I don't understand why and why it happens at random iteration each time. I've attached my config file and Warnings&Errors file. I'd appreciate if anyone can give me some hints on what I'm missing that cause this error.
2017-10-24 17:23:30,528 ERROR MatsimRuntimeModifications:54 Getting uncaught Exception in Thread main org.matsim.core.utils.io.UncheckedIOException: java.io.FileNotFoundException: G:\My Drive\1-PhDProject\MyProject\preTest\DRT\output\ITERS\it.2\run0.2.waitStats.csv
(The system cannot find the path specified) at org.matsim.core.utils.io.IOUtils.getBufferedWriter(IOUtils.java:266) at org.matsim.core.utils.io.IOUtils.getBufferedWriter(IOUtils.java:222) at org.matsim.core.utils.io.IOUtils.getBufferedWriter(IOUtils.java:192) at org.matsim.contrib.drt.analysis.DynModeTripsAnalyser.analyseWaitTimes(DynModeTripsAnalyser.java:216) at org.matsim.contrib.drt.analysis.DrtAnalysisControlerListener.notifyIterationEnds(DrtAnalysisControlerListener.java:117) at org.matsim.core.controler.ControlerListenerManagerImpl.fireControlerIterationEndsEvent(ControlerListenerManagerImpl.java:168) at org.matsim.core.controler.AbstractController$5.run(AbstractController.java:168) at org.matsim.core.controler.AbstractController.iterationStep(AbstractController.java:231) at org.matsim.core.controler.AbstractController.iteration(AbstractController.java:164) at org.matsim.core.controler.AbstractController.doIterations(AbstractController.java:121) at org.matsim.core.controler.AbstractController.access$000(AbstractController.java:29) at org.matsim.core.controler.AbstractController$1.run(AbstractController.java:91) at org.matsim.core.controler.MatsimRuntimeModifications.run(MatsimRuntimeModifications.java:48) at org.matsim.core.controler.MatsimRuntimeModifications.run(MatsimRuntimeModifications.java:31) at org.matsim.core.controler.AbstractController.run(AbstractController.java:99) at org.matsim.core.controler.NewControler.run(NewControler.java:75) at org.matsim.core.controler.Controler.run(Controler.java:202) at melbourne.drt.RunDrtMelbourne.main(RunDrtMelbourne.java:41) Caused by: java.io.FileNotFoundException: G:\My Drive\1-PhDProject\MyProject\preTest\DRT\output\ITERS\it.2\run0.2.waitStats.csv (The system cannot find the path specified) at java.base/java.io.FileOutputStream.open0(Native Method) at java.base/java.io.FileOutputStream.open(FileOutputStream.java:276) at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:220) at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:141) at org.matsim.core.utils.io.IOUtils.getBufferedWriter(IOUtils.java:264) ... 17 more 2017-10-24 17:23:30,530 INFO MatsimRuntimeModifications:58 S H U T D O W N --- start shutdown. 2017-10-24 17:23:30,531 ERROR MatsimRuntimeModifications:60 ERROR --- This is an unexpected shutdown! 2017-10-24 17:23:30,532 ERROR MatsimRuntimeModifications:63 Shutdown possibly caused by the following Exception: org.matsim.core.utils.io.UncheckedIOException: java.io.FileNotFoundException: G:\My Drive\1-PhDProject\MyProject\preTest\DRT\output\ITERS\it.2\run0.2.waitStats.csv (The system cannot find the path specified) at org.matsim.core.utils.io.IOUtils.getBufferedWriter(IOUtils.java:266) at org.matsim.core.utils.io.IOUtils.getBufferedWriter(IOUtils.java:222) at org.matsim.core.utils.io.IOUtils.getBufferedWriter(IOUtils.java:192) at org.matsim.contrib.drt.analysis.DynModeTripsAnalyser.analyseWaitTimes(DynModeTripsAnalyser.java:216) at org.matsim.contrib.drt.analysis.DrtAnalysisControlerListener.notifyIterationEnds(DrtAnalysisControlerListener.java:117) at org.matsim.core.controler.ControlerListenerManagerImpl.fireControlerIterationEndsEvent(ControlerListenerManagerImpl.java:168) at org.matsim.core.controler.AbstractController$5.run(AbstractController.java:168) at org.matsim.core.controler.AbstractController.iterationStep(AbstractController.java:231) at org.matsim.core.controler.AbstractController.iteration(AbstractController.java:164) at org.matsim.core.controler.AbstractController.doIterations(AbstractController.java:121) at org.matsim.core.controler.AbstractController.access$000(AbstractController.java:29) at org.matsim.core.controler.AbstractController$1.run(AbstractController.java:91) at org.matsim.core.controler.MatsimRuntimeModifications.run(MatsimRuntimeModifications.java:48) at org.matsim.core.controler.MatsimRuntimeModifications.run(MatsimRuntimeModifications.java:31) at org.matsim.core.controler.AbstractController.run(AbstractController.java:99) at org.matsim.core.controler.NewControler.run(NewControler.java:75) at org.matsim.core.controler.Controler.run(Controler.java:202) at melbourne.drt.RunDrtMelbourne.main(RunDrtMelbourne.java:41) Caused by: java.io.FileNotFoundException: G:\My Drive\1-PhDProject\MyProject\preTest\DRT\output\ITERS\it.2\run0.2.waitStats.csv (The system cannot find the path specified) at java.base/java.io.FileOutputStream.open0(Native Method) at java.base/java.io.FileOutputStream.open(FileOutputStream.java:276) at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:220) at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:141) at org.matsim.core.utils.io.IOUtils.getBufferedWriter(IOUtils.java:264) ... 17 more 2017-10-24 17:23:30,534 INFO ControlerListenerManagerImpl:121 calling notifyShutdown on org.matsim.core.controler.corelisteners.EventsHandlingImpl 2017-10-24 17:23:30,534 INFO ControlerListenerManagerImpl:121 calling notifyShutdown on org.matsim.core.controler.corelisteners.DumpDataAtEndImpl 2017-10-24 17:23:30,534 INFO ControlerListenerManagerImpl:126 calling notifyShutdown on org.matsim.analysis.ModeStatsControlerListener 2017-10-24 17:23:30,541 INFO ControlerListenerManagerImpl:126 calling notifyShutdown on org.matsim.analysis.ScoreStatsControlerListener 2017-10-24 17:23:30,549 INFO ControlerListenerManagerImpl:126 calling notifyShutdown on org.matsim.analysis.TravelDistanceStatsControlerListener 2017-10-24 17:23:30,555 INFO ControlerListenerManagerImpl:129 all ControlerShutdownListeners called. 2017-10-24 17:23:30,555 ERROR MatsimRuntimeModifications:78 ERROR --- MATSim unexpectedly terminated. Please check the output or the logfile with warnings and errors for hints. 2017-10-24 17:23:30,556 ERROR MatsimRuntimeModifications:79 ERROR --- results should not be used for further analysis. 2017-10-24 17:23:30,556 INFO MatsimRuntimeModifications:81 S H U T D O W N --- shutdown completed. 2017-10-24 17:23:30,556 ERROR MatsimRuntimeModifications:83 ERROR --- This was an unexpected shutdown! See the log file for a possible reason. Exception in thread "main" org.matsim.core.utils.io.UncheckedIOException: java.io.FileNotFoundException: G:\My Drive\1-PhDProject\MyProject\preTest\DRT\output\ITERS\it.2\run0.2.waitStats.csv (The system cannot find the path specified) at org.matsim.core.utils.io.IOUtils.getBufferedWriter(IOUtils.java:266) at org.matsim.core.utils.io.IOUtils.getBufferedWriter(IOUtils.java:222) at org.matsim.core.utils.io.IOUtils.getBufferedWriter(IOUtils.java:192) at org.matsim.contrib.drt.analysis.DynModeTripsAnalyser.analyseWaitTimes(DynModeTripsAnalyser.java:216) at org.matsim.contrib.drt.analysis.DrtAnalysisControlerListener.notifyIterationEnds(DrtAnalysisControlerListener.java:117) at org.matsim.core.controler.ControlerListenerManagerImpl.fireControlerIterationEndsEvent(ControlerListenerManagerImpl.java:168) at org.matsim.core.controler.AbstractController$5.run(AbstractController.java:168) at org.matsim.core.controler.AbstractController.iterationStep(AbstractController.java:231) at org.matsim.core.controler.AbstractController.iteration(AbstractController.java:164) at org.matsim.core.controler.AbstractController.doIterations(AbstractController.java:121) at org.matsim.core.controler.AbstractController.access$000(AbstractController.java:29) at org.matsim.core.controler.AbstractController$1.run(AbstractController.java:91) at org.matsim.core.controler.MatsimRuntimeModifications.run(MatsimRuntimeModifications.java:48) at org.matsim.core.controler.MatsimRuntimeModifications.run(MatsimRuntimeModifications.java:31) at org.matsim.core.controler.AbstractController.run(AbstractController.java:99) at org.matsim.core.controler.NewControler.run(NewControler.java:75) at org.matsim.core.controler.Controler.run(Controler.java:202) at melbourne.drt.RunDrtMelbourne.main(RunDrtMelbourne.java:41) Caused by: java.io.FileNotFoundException: G:\My Drive\1-PhDProject\MyProject\preTest\DRT\output\ITERS\it.2\run0.2.waitStats.csv (The system cannot find the path specified) at java.base/java.io.FileOutputStream.open0(Native Method) at java.base/java.io.FileOutputStream.open(FileOutputStream.java:276) at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:220) at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:141) at org.matsim.core.utils.io.IOUtils.getBufferedWriter(IOUtils.java:264) ... 17 more
Thank you very much.
Cheers,
by Joschka Bischoff on 2017-10-24 06:35:59
Hi Zahra,
it looks like there's some problem with writing the output data. There may be several reasons for that (perhaps your hard drive is full, or Windows has some access problems, just to name some).
In your config, could you try to disable both detailed output options? Especially the vehicle stats are creating a huge amount of data that is mostly unneccessary, whereas the Customer stats are generally more important.
<!-- Writes out detailed DRT customer stats in each iteration. True by default. --> <param name="writeDetailedCustomerStats" value="false" />
<!-- Writes out detailed vehicle stats in each iteration. Creates one file per vehicle and iteration. False by default. -->
<param name="writeDetailedVehicleStats" value="false"/>
If the problem persists, try switching paths to a different directory.
Bests,
Joschka
by Zahra Navidi on 2017-10-26 02:15:49
Thank you Joschka. Changing the directory solved the problem.
You are viewing an archive of the previous MATSim Q&A site. The real site is now at https://matsim.org/faq