Characterisation and optimisation of a real-time diesel engine model. (December 2017)