Algebraic loop involving PQ CONTROLLER

I’ve been having this issue called " Detected an algebraic loop comprising the following components: " involving my PQ Controller. Do you guys have any idea how to solve this?
Simulacao2.plecs (154.9 KB)

Please see the attached model. You can use the PLECS Compare feature to see the changes made:

  1. Changed VSI bridge from Sub-Cycle Average to Switched. Sub-Cycle Average is typically used in the context of real-time simulation on the RT Box.
  2. You are using a Fixed-Step solver. The Variable-Step solver performs better. Is there a reason why you feel you should be using a Fixed-Step solver?
  3. Your PI parameters are causing your duty cycle output to change faster than the carrier switching frequency. If you plot switch signal you’ll note it’s actually several GHz. This will cause the simulation to slow down near certain control thresholds. I set the PWM carrier sampling to “Regular” which makes the model less sensitive to these kinds of control issues (which you still need to be resolve).

Simulacao2_BL.plecs (166.4 KB)