This example includes a voltage source on the AC side. This will add the synchronization challenge for the controller: in order to provide adequate control of the output current, the duty cycle needs to be carefully in synch with the AC grid voltage.
Plotting the current through the load, the dq setpoints, the grid voltage and the actual computed d value of the current yields the following graph:
After an initial period where the signals are reaching their steady-state values, the current successfully reaches the setpoint value. Since the q setpoint is equal to zero, the output current stays in phase with the grid voltage and the d setpoint value equals the peak current value.