Skip to content

faq 92700681

Billy Charlton edited this page Sep 5, 2018 · 2 revisions

MATSim Zurich Tutorial shuts down suddenly at the 10th iteration. It produces no event file or graphs at the 10th iteration

by makinde on 2016-11-03 09:43:50


Hi can anybody pls help me, i am new to MATSim and i have been trying for days to figure out why my simulation of the MATSim Zurich tutorial gives me the below error at the 10th iteration. I really need help with this, as i am working with a strict deadline.



2016-10-31 17:29:47,731 ERROR MatsimRuntimeModifications:54 Getting uncaught Exception in Thread main
java.lang.NullPointerException
at org.matsim.counts.algorithms.CountsComparisonAlgorithm.setDistanceFilter(CountsComparisonAlgorithm.java:163)
at org.matsim.counts.CountsControlerListener.notifyIterationEnds(CountsControlerListener.java:125)
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$0(AbstractController.java:119)
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:79)
at org.matsim.core.controler.Controler.run(Controler.java:191)
at aaaaa.MyFirstControler.main(MyFirstControler.java:24)
2016-10-31 17:29:47,736 ERROR MatsimRuntimeModifications:60 ERROR --- This is an unexpected shutdown!
2016-10-31 17:29:47,738 ERROR MatsimRuntimeModifications:63 Shutdown possibly caused by the following Exception:
java.lang.NullPointerException
at org.matsim.counts.algorithms.CountsComparisonAlgorithm.setDistanceFilter(CountsComparisonAlgorithm.java:163)
at org.matsim.counts.CountsControlerListener.notifyIterationEnds(CountsControlerListener.java:125)
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$0(AbstractController.java:119)
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:79)
at org.matsim.core.controler.Controler.run(Controler.java:191)
at aaaaa.MyFirstControler.main(MyFirstControler.java:24)
2016-10-31 17:29:47,748 ERROR MatsimRuntimeModifications:78 ERROR --- MATSim unexpectedly terminated. Please check the output or the logfile with warnings and errors for hints.
2016-10-31 17:29:47,750 ERROR MatsimRuntimeModifications:79 ERROR --- results should not be used for further analysis.
2016-10-31 17:29:47,753 ERROR MatsimRuntimeModifications:83 ERROR --- This was an unexpected shutdown! See the log file for a possible reason.


Comments: 2


Re: MATSim Zurich Tutorial shuts down suddenly at the 10th iteration. It produces no event file or graphs at the 10th iteration

by Joschka Bischoff on 2016-11-03 10:01:54

Hi,

unfortunately, it is not quite clear to me, which MATSim tutorial or version you are referring to.

For a smooth "Getting started" tutorial, I strongly recommend to use the latest MATSim version with the latest tutorial:

http://matsim.org/content/2016-matsim-class-tu-berlin-matsim-version-08x


Best regards,

Joschka


Re: MATSim Zurich Tutorial shuts down suddenly at the 10th iteration. It produces no event file or graphs at the 10th iteration

by makinde on 2016-11-05 17:37:32

It seems like at the 10th iteration the simulation tries to compare the result with the count data (the validation data i.e. counts.xml). That's when the error is produces at org.matsim.counts.algorithms.CountsComparisonAlgorithm.setDistanceFilter(CountsComparisonAlgorithm.java:163). Still trying to resolve this.

Clone this wiki locally