Hi Bence,
I understand from your query that you are looking to resolve the error "failed to converge, residual norm too large."
Please provide the uninitialized variables 'm' and 'N' that the model requires. Often, this error arises when a model is overly idealized and exhibits abrupt transitions, leading the solver to fail in achieving convergence. In such scenarios, the solver attempts transient initialization.
To help address the error, I recommend implementing the following changes:
1. Decrease the maximum time step to determine whether a smaller time step assists in achieving simulation convergence.
2. Increase the solver's consistency tolerance in the configuration block.
3. Adjust component parameters such as 'Open resistance' or 'Closed Conductance' to render the model more realistic and mitigate idealizations.
4. Review the model for any errors, inconsistencies, or incorrect assumptions. Streamline the model by eliminating superfluous components or subsystems.
You may refer the following documentation to learn more about troubleshooting simulation errors :
Hope this helps.