I am trying to simulate a GSC based on simple 3 controlled voltage sources. Basically, I have implemented PQ-controller. When I try to simulate it produces an error;

At t=1.09623965334250585e-22: Could not solve the algebraic loop comprising the following components: 1: PI_PQCtrl_with_L_filter/Circuit1/3ph->SRF/alpha 2: PI_PQCtrl_with_L_filter/Circuit1/Sum2 3: PI_PQCtrl_with_L_filter/Circuit1/V8 4: PI_PQCtrl_with_L_filter/Circuit1/V7 5: PI_PQCtrl_with_L_filter/Circuit1/V6 6: PI_PQCtrl_with_L_filter/Circuit1/3ph Meter 7:

and so on…

I already tried to insert some delay element in the loop but it doesnt work. Could you please point out what are different solutions possible to this problem?

What should I need to change?

Attached the model

PI_PQCtrl_with_L_filter_controlled_voltage_source.slx (52.3 KB)

param_definition.m (407 Bytes)