Using the Idaklu Solver causing a memory leak

Hello @Marc,

Thank you very much for your timely reply, I have run the code with your speed-up, and can certainly notice it, however I am running into another error:


Looking at the currents, it looks as though the time is referenced to the start of the experiment, is it possible to reference it to the start of the step? I am trying to understand this example:
https://docs.pybamm.org/en/stable/source/examples/notebooks/expression_tree/expression-tree.html
however I am very new to this and so it is not coming easily at the moment.

Where might I be able to understand more efficiency techniques like this one?

Also one of the reasons that I was running the long experiments like this broken up into cycles was so that I was able to “look into” the experiment as it was running (Before I was letting it run for a few days as the duty-cycle had frequencies around 100Hz). Can you think of any way I might be able to do this using this method?