Antiwindup problem

I’m trying to link PMSM nad inverter model in PSIM with control in MATLAB /Simulink but everything was converging fine until I implemented anti windup so please see the attached files.

This issue required deeper support than can be provided through the forum. please connect with our support team on the web form: