-
-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR:pybamm.logger:Simulation error: Error in Function::call for 'F' [IdasInterface] at .../casadi/core/function.cpp:1401: #3669
Comments
Happy new year Akila! I tested this code for 1000 cycles but not for 500, so try again for 1000 cycles. If it still doesn't work, I'll look into it further. |
Hi Dr @DrSOKane , Thank you for your respond and wishing you also a happy new year. Yes, I have tried it for 1000 cycles and it gives me the same error as below. I hope you will have a look about it. Thank you for your consideration. At t = 287.442 and h = 1.18304e-10, the corrector convergence failed repeatedly or with |h| = hmin. |
Hi, |
After several hours of trial and error, I managed to track down the source of the problem. It's to do with the experiment protocol. The original experiment was this:
i.e. everything except for the 1C discharge had a 5 minute period, whereas the 1C discharge itself had the default 1 minue period. The code was subsequently changed so that everything, including the 1C discharge, had a 5 minute period. When I tried restoring the original experiment protocol, it worked. I am shocked that such a small change would make such a difference, but after years of experience with PyBaMM I am no longer surprised. I will make a pull request right away to revert the change to the notebook so that future users won't have this problem. Simon |
Hi @DrSOKane
When I run the Modelling coupled degradation mechanisms in PyBaMM for 500 cycles it gives me the following error.
At t = 292.526 and h = 4.54225e-10, the corrector convergence failed repeatedly or with |h| = hmin.
At t = 294.731 and h = 4.53026e-10, the corrector convergence failed repeatedly or with |h| = hmin.
2023-12-28 12:11:10.017 - [ERROR] callbacks.on_experiment_error(224): Simulation error: Error in Function::call for 'F' [IdasInterface] at .../casadi/core/function.cpp:1401:
Error in Function::call for 'F' [IdasInterface] at .../casadi/core/function.cpp:330:
.../casadi/interfaces/sundials/idas_interface.cpp:596: IDASolve returned "IDA_CONV_FAIL". Consult IDAS documentation.
ERROR:pybamm.logger:Simulation error: Error in Function::call for 'F' [IdasInterface] at .../casadi/core/function.cpp:1401:
Error in Function::call for 'F' [IdasInterface] at .../casadi/core/function.cpp:330:
.../casadi/interfaces/sundials/idas_interface.cpp:596: IDASolve returned "IDA_CONV_FAIL". Consult IDAS documentation.
This is the same in google collab and locally in my computer.
Thanks !
The text was updated successfully, but these errors were encountered: