Development of a software in the loop environment for automotive powertrain systems