The train slammed into the end of the line, leaving it wedged between the floor and ceiling of the platform.