This issue is related to the 'Discrete solver model' selected for the saturation model of the transformers. The solver used in your model can be checked by opening the Transformer block> 'Advanced' > see drop down menu for 'Discrete solver model'. There are two options to resolve this:
- 'Trapezoidal iterative' solver
When using the saturation model of the transformer, the default solver, 'Trapezoidal iterative' solver creates an algebraic loop within the block. The algebraic loop cannot be deterministically solved, therefore the option 'Break Algebraic loop in discrete saturation model' (located right above the drop down menu) must be enabled to successfully compile the model. However, this can lead to less accurate results, such as introducing unwanted numerical oscillations.
- 'Trapezoidal robust' solver
You also have the option of selecting 'Trapezoidal robust' in the 'Discrete solver model' drop down menu. With this solver, an algebraic loop is not created within the transformer block, therefore the model should successfully compile without having to enableĀ 'Break Algebraic loop in discrete saturation model'. We recommend this solution. Please see the link below for more information on discrete solver options:
https://www.mathworks.com/help/physmod/sps/powersys/ref/threephasetransformertwowindings.html#bra9ddu-3
Best Answer