Error in powergui while running a PV array model, Error reported by S-function 'fun_spssw_discc_DSS'.

I am runnin a grid connected PV array (number of PV module connected in series and parallel) model, for fault analysis in PV array. While running simulation i got an error message:
=== Simulation (Elapsed: 56 sec) ===
Error:An error occurred while running the simulation and the simulation was terminated
Caused by:
Error reported by S-function 'sfun_spssw_discc_DSS' in 'file_name/powergui/EquivalentModel1/State-Space':
Nonlinear element(s) (RnonLin, Lsat) failed to converge after 100 iterations, t=0.80005 sec
How to rectify the error, and what is the cause of error, as error is reported in powergui. Please suggest something.

Answers (1)

The error message you encountered indicates that there was a convergence issue during the simulation of your grid-connected PV array model.
To rectify this error, you can try the following steps:
1. Increase the number of iterations: The error message states that the nonlinear elements failed to converge after 100 iterations. You can try increasing the maximum number of iterations allowed for convergence. Look for a parameter or setting related to the maximum number of iterations in your simulation software and increase it to a higher value.
2. Adjust simulation time: The error message also provides the time at which the convergence issue occurred (t=0.80005 sec). You can try adjusting the simulation time to a larger value and see if the convergence issue persists. This can be done by extending the simulation duration or adjusting the time step used in the simulation.
3. Check model parameters: Review the parameters of the nonlinear elements (RnonLin and Lsat) in the State-Space block. Ensure that the values assigned to these parameters are appropriate for your PV array model. Incorrect or unrealistic parameter values can lead to convergence problems.
4. Verify model connections: Double-check the connections between different components in your PV array model. Incorrect or mismatched connections can cause convergence issues. Ensure that all the components are properly connected as per the specifications of your PV array system.
To read more about PV array kindly view the following documentation:Implement PV array modules - Simulink (mathworks.com)
If the above steps do not resolve the error, kindly provide some more information regarding model and the data.

Products

Release

R2022b

Asked:

on 17 Jun 2023

Moved:

on 30 Jun 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!