Open sashigurram opened 5 years ago
Ouch.
Could you please say which type of vehicle this is, to which type of agent it belongs, etc.
Also, if possible, could you please make the full output directory available somewhere? Dropbox or google drive or some large file provider? If this is too large, remove all large files in the iteration directories except for the last version of each file type (i.e. if you are crashing in iteration 44 and you are writing events every 10 iterations, then keep the events file from iteration40).
Thanks for your response Dr. Nagel.
I will have to guess the vehicle type here because I did not write output in this iteration. I think this vehicle type is car because I just see a number for the vehicle id (if it is a ride vehicle type it normally would show up as 24267902_ride). I see the error for person ID 24267902.
I uploaded all the data onto a University storage server but unfortunately you may have to download in multiple attempts due to download size restrictions. I was writing outputs every 25 iterations, so the last complete output folder will be it.25 (download from here). If you just want the last full output, then downloading this single folder may be enough. Full output folder including all iterations is here.
Here are the input files including config, original input plans, network, toll links, transit vehicles, transit schedule, and vehicles.
Finally, here is the entire error folder (which includes output and input files) if you want to browse through before downloading.
Please let me know if you need further details or want me to rerun the simulation so that I get a closer output to the error (by writing outputs every 10 iterations).
Dear Sashi,
thanks.
Unfortunately, the git hash of your run does not correspond to anything in our repo. So I cannot stare at the code because I don't know which version it is. Isn't there a way you can run this with a release?
However, very unfortunately such things are terribly difficult to debug. Maybe the first attempt would be to re-run with writing events every 5 iterations so that there will be output in the 45th iteration where it crashes, and we can check if the same car was picked up before.
If you have enough computational power, I would additionally start another run with usingThreadpool=false
(in the qsim config group), based on the wild speculation that this is related to multithreading.
And finally, if you have even more computational power, start with numberOfThreads=1
(also in qsim config group). (I don't think that it will be 20 times slower.)
(All of these runs with writeevents every 5iterations.)
Brrrrrr ....
Thanks Dr. Nagel.
I still am not sure why the runs fail. The error appears to popup randomly; some runs fail in the 87th iteration while some failed in the 92nd iteration. In any case, I started a few runs simultaneously with no settings changed and one of them finished properly. I also started a single thread run with the setting numberOfThreads=1
and this too finished properly. The single thread run took almost 70% more time (about 8.5 days in total) compared to the multi-threaded run.
Annoying. It may indeed be a concurrency issue. I changed the parking queue data structure from LinkedHashMap
to ConcurrentHashMap
and will run the tests over it to see if that fails anything else (since it changes the sort order).
Dear Kai Nagel, faced the same issue. Running UAM extension. Worked well in scenarios with different UAM Station coordinates, just in one specific network the issue occured twice in 4th and once in 6th iteration. I was using numberOfThreads
= 12.
Is there solution yet? Not using Parallel threading is very slow. Thanks
I am getting the following error when I tried a MATSim simulation that includes road pricing and public transit. The error occurs about 44 iterations into the simulation and I have never seen this error before so I am a bit out of my depth here. Any suggestions that address this will be helpful. I am using matsim 0.9.0
Below is the short form of the error:
Here is the complete error from the log file: