Solver debug run #3809
veera-visw
started this conversation in
General
Replies: 1 comment 2 replies
-
Hi @veera-visw, does something of this sort at the top of your script help you? import pybamm
pybamm.set_logging_level("DEBUG"). # i.e., DEBUG instead or INFO This will enable more verbose logging for the various events involved with solving the model equations. If you could share the code snippet that caused the failure or a minimal example for it, that would be helpful for further investigation |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on a battery model based off basic_dfn.py with some modifications to the source terms of the equations. As expected, my first attempt is not working (:D) and I get following error:
Could not find consistent states: Could not find acceptable solution: Error in Function::call for 'roots' [Newton] at .../casadi/core/function.cpp:330:
.../casadi/core/rootfinder.cpp:277: rootfinder process failed. Set 'error_on_fail' option to false to ignore this error.
Just curious if there is a way to run a debug/diagnostic version of the solver with more verbose prints so I can identify which equation is struggling (for example).
Thanks
Beta Was this translation helpful? Give feedback.
All reactions