Simulation Environment for Analysis and Controller Design of Diesel Engines