The O series was built for the first electrified railway in Sweden, Malmbanan. ASEA started testing out technology with a test unit in 1908, and by 1914 the first Oa locomotive was delivered, along with the passenger hauling Pa. At first it was the northern part of Malmbanan, from Kiruna to Narvik that was electrified. The steam locomotives had been hauling 28 wagons at 10 km/h, but the new agreement signed in 1913 with LKAB meant that SJ had to haul 40 wagons at 30 km/h to transport enough ore. The solution lay in a joint production between Siemens of Germany and ASEA. The Siemens locomotives were designated Oa while the ASEA locomotives were designated Ob. The trains had 1200 kW motors.[1]
These stayed in service on the northern section until 1923 when the southern section to Luleå also was electrified, at which time they were moved to the southern section. A new series of Oe and Of locomotives were delivered. In the 1950s when larger trains were put into service, some of the Ofs were rebuilt to triple units, designated Of3. They were also supplemented with the new Dm-series that eventually replaced them.