InnoZ / MAS_Interface

Apache License 2.0
1 stars 0 forks source link

Matsim1.0 fails at some districts without any error output #98

Open paulkitt opened 6 years ago

paulkitt commented 6 years ago

For these districts only network.xml.gz is created and config.xml.gz personAttributes.xml.gz plans.xml.gz are missing. No database entries are created and no error appears int the logs:

District Id Name
03241 Hannover
05315 Köln
09162 München
02000 Hamburg
12070 Prignitz
12060 Barnim

Not yet processed but failed same style before are: 11000 / Berlin

paulkitt commented 6 years ago

After recording the stderror output of the executed jar we got an error now(we need better error logging in the ruby app #102):

Exception in thread "Thread-4" java.lang.StringIndexOutOfBoundsException: String index out of range: 5
        at java.lang.String.substring(String.java:1963)
        at com.innoz.toolbox.io.database.task.ReadPersonDatabaseTask.parse(ReadPersonDatabaseTask.java:89)
        at com.innoz.toolbox.io.database.SurveyDatabaseParserV2.run(SurveyDatabaseParserV2.java:76)
        at com.innoz.toolbox.scenarioGeneration.population.algorithm.SurveyBasedDemandGenerator.createCompletePopulation(SurveyBasedDemandGenerator.java:91)
        at com.innoz.toolbox.scenarioGeneration.population.algorithm.SurveyBasedDemandGenerator.run(SurveyBasedDemandGenerator.java:72)
        at com.innoz.toolbox.run.controller.task.DemandGenerationTask.run(DemandGenerationTask.java:98)
        at com.innoz.toolbox.run.controller.Controller.lambda$run$0(Controller.java:76)
        at java.lang.Thread.run(Thread.java:748)

Log around the crash:

2018-04-11 16:15:20,077  INFO DemandGenerationTask:71 Selected type of population: SURVEY
2018-04-11 16:15:20,086  INFO SurveyDatabaseParserV2:53 Parsing surveys database to create a synthetic population
2018-04-11 16:15:20,086  INFO PsqlAdapter:46 Connecting to database surveyed_mobility as user matsim...
2018-04-11 16:15:20,092  INFO SurveyDatabaseParserV2:74 Creating survey persons...
paulkitt commented 6 years ago

After long debbuging we isolated the Exception. In the failing simulations need Geoinformation(ReadPersonDatabaseTask:85) units are not found or missing the id.

kjoscha commented 6 years ago

seems like all districts excpept berlin has been finsished