Mesosimulation of within-day dynamics in transportation systems