Hello Daniel,
Without the model itself, or at least the error log you are receiving, it would be very difficult for us to determine the reason for the compilation failure.
Based on my experience, I can say that the dimensions of input signals for this component can sometimes be counterintuitive. For example, I would advise you to double-check whether the signals connected to the 'Pref' and 'Qref' terminals have a dimension of 3 as indicated in the documentation (LINK).
Best,
Dusan