arup-group / elara

Command line utility for processing MATSim events output files.
MIT License
13 stars 4 forks source link

TripLogs output appears to exclude some trips #192

Closed andkay closed 2 years ago

andkay commented 2 years ago

I've discovered a possible bug in the TripLogs handler, which I am currently investigating. The number of trips (using experienced plans) for some agents appears to be incorrect.

Input TripsLog: image

Output TripsLog: image

fredshone commented 2 years ago

Is the plan unachievable? - i think matsim expererienced plans would only be those within (depending on matsim config) 72hrs

andkay commented 2 years ago

Generally, the missing data seems to stem from complex plans with either (a) pt trips requiring lots of transfers or (b) car trips from agents plans containing generally high trip frequency.

For example, the plan agent referenced above ends with pt interaction with an end time well before the end of simulation. This happens during their third trip of the day (which is by bus).

...
<activity type="pt interaction" link="5217153356784779621_5217153356784779621" x="707518.706891855" y="739254.6427297454" start_time="19:57:55" end_time="19:57:56" >
                        </activity>
                </plan>

        </person>

I'm wondering if it may be that MATSim is truncating the plans after some number of lines/elements.

andkay commented 2 years ago

Closing this, as it's stale and with no possible fix in Elara. Fundamentally a MATSim issue.