same time. In 1942, global production of simple military steam locomotives, DR Kriegslok BR52 (PKP class Ty2), in Poznań and Chrzanów, and of steam boilers for these locomotives started in Sosnowiec. In 1944, production of the first steam locomotive BR52 in Chrzanów started. The Warsaw Uprising caused widespread damage of Warsaw rolling stock, network and electric traction; both bridges over the Vistula River and the tunnel on the Warsaw Cross-City Line were destroyed. The unfinished Warszawa Główna railway station was partially destroyed several times 1939-1941 and finally blown up by the Germans. Communist period At the beginning of 1945, the Ministry of Transport was created, as well as the Regional Directorate of National Railways. Many pre-war locomotives were sent to the Soviet Union. Poland received many German locomotives as a compensation for war losses. In June, the rail connection with Warsaw was opened, using a temporary railway station made of warehouses. On 15 September 1945, PKP took over management of all railway lines on new Polish territory from the Soviet Union. Most of these lines were either destroyed or inaccessible. The railways in the country were divided into 10 districts. In 1946, the Fablok and Cegielski factories started the production of PKP class Pt47 (pre-war PKP class Pt31) and PKP class Ty45 (pre-war PKP class Ty37) locomotives. Meanwhile, the production of PKP class Ty42 (German BR52) was in process and Poznań prepared to start the production of PKP class Ty43 (German BR42) which had been produced in Szczecin previously. The situation in the Polish railways was disastrous, so the government decided to buy 75 USATC S160 (Polish PKP class Tr201) American locomotives (on UNRRA basis), 30 British 9F (Polish PKP class Tr202) locomotives, and 500 S160 Polish PKP class Tr203) locomotives, what was left from American army in Europe. Another 100 locomotives ordered from USA (Decapol – Polish PKP class Ty246) were sent to service Śląsk–Gdynia line. In the same year, electric trains started an operating line from Warszawa to Otwock. Polish railways regained pre-war locomotives from Hungary, Czechoslovakia and Yugoslavia (in 1947), yet units from the eastern parts of Poland were taken over by USSR and rebuilt to operate on a wide gauge. Two years after the war's end, the first passenger cars are built in Cegielski (Poznań) and PaFaWag (Wrocław), while freight cars were being built in Chrzanów and Zielona Góra. At the same time, Warsaw railway lines