Using the Idaklu Solver causing a memory leak #4801
Unanswered
NicholasBudenberg-CAM
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi! We have now moved our discussions to Discourse. Please post your question there. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am running the following code in order to see how the degradation of the cell is effected by different drive cycles. My drive cycle has spiky currents and I have found that using the Casadi Solver fails unless I use a small timestep which is unreasonable for the other steps. I have tried the IDAKLU solver and this solved that issue but seemed to cause another on.
Here you can see the Casadi solver:
![image](https://private-user-images.githubusercontent.com/187708580/406677784-f9228e8e-a678-44fa-9e0c-a0d147f6384d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMDQ4MTEsIm5iZiI6MTczOTAwNDUxMSwicGF0aCI6Ii8xODc3MDg1ODAvNDA2Njc3Nzg0LWY5MjI4ZThlLWE2NzgtNDRmYS05ZTBjLWEwZDE0N2Y2Mzg0ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQwODQ4MzFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kZDQxOTk5YzNlZDdlOTMxZTE0MzEzY2NlNGViNWRmYTQ5OGQxM2U3NDQ1NTYxYjQ4NmQzZWUzYWY3YmFhOTUwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Ju4T34ajDcj2Gdtkg0atI4p_frHSyTD3r7zFJWH8GLU)
however when using the IDAKLU solver there seems to be a memory leak, however the simulation runs a lot more smoothly:
![image](https://private-user-images.githubusercontent.com/187708580/406677912-5051a874-40d7-4128-9b94-9221075e51ed.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMDQ4MTEsIm5iZiI6MTczOTAwNDUxMSwicGF0aCI6Ii8xODc3MDg1ODAvNDA2Njc3OTEyLTUwNTFhODc0LTQwZDctNDEyOC05Yjk0LTkyMjEwNzVlNTFlZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQwODQ4MzFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xZWVhYmFjZjE3YjFhOGJiNDcwYTA1ZjM1Njg2ZWM4NWZjOGNlYmVhNDdiNmUzM2QxYTg1MzViNzZlYzAwNGFhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.ipa_hAzzFWGFUgj5mXPrijWZFzUxHNcfwHq-Q7ITloQ)
Any help as to what I am doing wrong would be much appreciated (or other ways of accomplishing what I am trying to do).
Beta Was this translation helpful? Give feedback.
All reactions