From my understanding, the issue you are facing is due to an infinite value returned by one of the blocks that you are using. This infinite value is being fed to the integrator block and thus the error described is being thrown at the integrator block.
To find out which block is giving the output as an infinite value, set the Configuration Parameters by the following steps:
- Go to 'Model Settings' of Top Model from Toolstrip
- Search for 'Inf or NaN block output' using the search bar present above in Configuration Parameters panel.
- Set the value of 'Inf or NaN block output' to 'error' (by default it would be 'none')
- Click Apply and OK. Run the model again.
Now you can see an error in the 'Diagnostic Viewer' saying,
An error occurred while running the simulation and the simulation was terminated
Block 'aaa/PV_Boost1/PV Array/Diode Rsh/Math Function' outputs 'Inf' for element 1 of output port 1 at major time step 4E-06
This means that the 'Math Function' block gives an infinite output value. There is a Product block which performs division of inputs and provides the input to the 'Math Function' block, thus causing the error. There is a case where this Product block gets its input as zero thus performing the 'division by zero' and giving out an infinite value. After observing the signals using a Log viewer, I can see that 'VT_ref_array' does give some of the outputs as zero which are passed onto the Product block.
You will have to avoid this division by zero logic in the model to fix this issue.