Drive trains are modeled in a "natural" way using the object-oriented modeling language Dymola. A drive train consists of shafts, rotors, gears and force elements like springs and dampers. Variable structure elements like bearing friction, clutches or brakes may be present. The number of operations in the generated code is O(n).