Engine for locomotivecms