London Underground, Tube Lines Ltd and Schweerbau GMBH had pleaded guilty to endangering passengers and staff under Health and Safety law, after the 39-tonne maintenance wagon hurtled through seven stations before it could be stopped.
A train in front of it was told to keep going and not stop, while its passengers were told to run to the front carriages, the Old Bailey heard.
Judge Richard Hone said: "There was the potential of terrible tragedy."
He said the runaway train was out of control for four miles during 16 minutes.
"To those involved it must have seemed an extremely frightening eternity," he added.
More top news
ITV News, Producer gives her take on the lack of provisions for disabled supporters of the beautiful game.
Londoners could be at greater risk from terror attacks if Government ministers cut police budgets, Sadiq Khan today warned.
A freedom of information request has found of the 53,640 council-owned garages, 41%, were found to be standing empty.