Diesel engine modelling and control