A mathematical simulation of an hydraulic brake diesel engine