MATLAB: I’m having convergence problems when I simulated single machine infinite bus with UPFC, how to solve it

currents of the transmission lines

When I simulate single machine infinite bus with UPFC currents of the transmission lines have incoherent values.

Best Answer

Your UPFC block has no connection for output m. If you do not intend to use that output, you should connect it to a sink.
The upgrade advisor reports,
Complex signal mismatch. Input port 1 of 'GeneratorwithUPFC/Unified Power Flow Controller (Phasor Type)/Power Components Modeling (Shunt & Series Converter)/Power Components modeling (Shunt Converter)/Demux1' expects a signal of numeric type real. However, it is driven by a signal of numeric type complex
Complex signal mismatch. Output port 1 of 'GeneratorwithUPFC/Unified Power Flow Controller (Phasor Type)/Power Components Modeling (Shunt & Series Converter)/Power Components modeling (Shunt Converter)/dq-axis model of 3-ph RL branch' is a signal of numeric type complex. However, it is driving a signal of numeric type real
It appears to me that you are attempting to Demux a scalar signal. You might perhaps be thinking of it as complex and are perhaps trying to break out the real and imaginary parts by using demux. However, to break apart a complex signal you need a Complex To Real-Imag block.
Related Question