Modeling and Simulation of the Rail Port Cycle