-
Notifications
You must be signed in to change notification settings - Fork 179
faq 165642241
by Stephan Lehmler on 2018-02-02 14:20:34
Hello,
I am currently trying to run a simulation with public transport for the area of strasbourg.
After generating the necessary files using pt2matsim, I am starting a test-run it with a small (random) population. The configuration file is based off of the one from the pt-tutorial. I attached all the used files to this question.
Now, I first notice the following strange warning messages. They seem strange to me, because I checked the link with the id 100906 in my network file manually and it doesn't have length 0.0 (indeed no link has 0 length).
WARN LinkImpl:149 [length=0.0 of link id 100906 may cause problems]
WARN LinkImpl:151 Future occurences of this logging statement are suppressed.
WARN LinkImpl:108 [from=to=[id=571457482][coord=[x=1031770.7553737939 [y=6845517.4979984155]] [type=null][nof_inlinks=1][nof_outlinks=1] link is a loop]
WARN LinkImpl:110 Future occurences of this logging statement are suppressed.
WARN NodeImpl:87 [id=571457482][coord=[x=1031770.7553737939][y=6845517.4979984155]] [type=null][nof_inlinks=1][nof_outlinks=2][inlink_id=100906 is now in- and out-link]
WARN NodeImpl:88 This message given only once.
But okay, the simulation-preparation continues until the point
760 INFO TransitRouterNetwork:433 add transfer links
Here it stays for quite a long while until it crashes with a message that it used up all the available memory. I tried it with 1,6 and 12 GIB, but it always crashes (sometimes after a few hours of running).
As I cannot believe that my network is too big to work with and I can't find any documentations on the add transfer links procedure, I would like to ask you for help and/or insights, into the source of my problem.
Thank you very much in advance.
ERROR MatsimRuntimeModifications:54 Getting uncaught Exception in Thread main
com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) Error injecting constructor, java.lang.OutOfMemoryError: Java heap space
at org.matsim.pt.router.TransitRouterImplFactory.<init>(TransitRouterImplFactory.java:42)
at org.matsim.pt.router.TransitRouterImplFactory.class(TransitRouterImplFactory.java:33)
while locating org.matsim.pt.router.TransitRouterImplFactory
while locating org.matsim.pt.router.TransitRouter
for the 1st parameter of org.matsim.core.router.Transit.<init>(Transit.java:20)
while locating org.matsim.core.router.Transit
while locating org.matsim.core.router.RoutingModule annotated with @com.google.inject.name.Named(value=pt)
while locating org.matsim.core.router.RoutingModule annotated with @com.google.inject.multibindings.Element(setName=,uniqueId=40, type=MAPBINDER, keyType=java.lang.String)
at org.matsim.core.router.TripRouter.<init>(TripRouter.java:75)
while locating org.matsim.core.router.TripRouter
((etc......))
by Enoch Lee on 2018-02-02 16:02:12
There are some links with same from node and to node in your network. For example, link id 100906 and 100907 have 571457482 as from node and to node. It is not reasonable, that's why there is a warning.
On the other hand, the coordinates of your stop facilities are very close (the coordinate is in Euclidean space with metre as unit). MATSim would create transfer links for transit stops in some distances, say 500m, so I guess that's why it spent a lot of time to create transfer links till used up your memory.
by Stephan Lehmler on 2018-02-02 16:07:46
Thank you for your answer.
Do you maybe have any experience on how to improve the network?
As I said, it was generated automatically using pt2matsim and based on osm and gtfs, so I don't really know what went wrong.
You are viewing an archive of the previous MATSim Q&A site. The real site is now at https://matsim.org/faq