i want to ask that i am trying to simulate the foc of pmsm utilizing the svpwm with pi controller but when i run the model the speed and the rotor position goes on decreasing and when i increase the pi current controller to larger value then the speed goes to zero what might be the problem in the model??.anyone please guide me with this problem