This is an averaging model of a dc/dc-converter, working with voltages and currents averaged over a switching period. The battery current is controlled by a fast integral controller ensuring power balance between battery and motor / machine. Compared with a time discrete control, dead time in applying voltage and measuring current is modeled with first order.