diff --git a/PySpice/Spice/NgSpice/Shared.py b/PySpice/Spice/NgSpice/Shared.py index 183c08a4..56832145 100644 --- a/PySpice/Spice/NgSpice/Shared.py +++ b/PySpice/Spice/NgSpice/Shared.py @@ -623,6 +623,12 @@ def _send_char(message_c, ngspice_id, user_data): # elif content.startswith('Warning:'): else: self._error_in_stderr = True + # Non-standard convergence trials are reported to stderr + # but can complete successfully + completed = ("completed" in content) or ("finished" in content) + if content.startswith("Note:") and completed: + self._error_in_stderr = False + func = self._logger.error if content.strip() == "Note: can't find init file.": self._spinit_not_found = True