Amtrak posted its third straight year of record ridership, carrying 37.1 million passengers and pulling in $4.1 billion in revenue as expensive flights and pain at the pump drive travelers to the train.