Simulation of railroad terminal operations and traffic control strategies in critical scenarios