Crank Angle Synchronous Modelling and Real- Time Simulation of Diesel Engines for ECU Function Development and Testing