Mario Huegi
Mario Huegi
I quickly tried your solution: ```Python def workaround_sulzer_01(): model = pb.lithium_ion.SPM() para = pb.ParameterValues(chemistry=pb.parameter_sets.Chen2020) exp = pb.Experiment(["Discharge at 0.2C until 2.9V (1 minutes period)"]) solver = pb.CasadiSolver(mode="safe") for i in...
I am updating the model every iteration, based on data from a PV System. It is a kind of lifetime simulation for PV batteries based on real data and I...
```python def workaround_RAM_loss(): model = pb.lithium_ion.SPM() para = pb.ParameterValues(chemistry=pb.parameter_sets.Chen2020) exp = pb.Experiment(["Rest for 5 minutes"]) solver = pb.CasadiSolver(mode="safe") sim = pb.Simulation(model, experiment=exp, parameter_values=para, solver=solver) for i in range(100): sim.solve() sim.set_up_experiment(...
Found out that the method solver.step triggers the additional memory leak.  I was able to track it down to the base_solver class. I see that this func is a...
Thank you for your idea with `model.events = []` @tinosulzer I added it [here](https://github.com/pybamm-team/PyBaMM/blob/develop/pybamm/solvers/base_solver.py#L173) in the base_solver. Now it seems to free up the memory after every iteration correctly. ...
I'm using `sim.set_up_experiment` because I am trying to emulate the behaviour of my actual code. There I'm running new experiments on an hour base and therefore I have to update...