Repaired Simulink model