Hello,
In my Simulink model I want to simulate a battery pack with about 5000 individual cells. These should differ slightly from each other, which is why I use the generic battery model from Simscape for each cell (I don't have the license for Simscape Battery). Now it is not surprising that the simulation time is very high with this number. However, since the blocks are repeated with serial and parallel connection, I tried to improve the simulation time with Scalable Compilation (Referenced Subsystems) according to the following instructions:
https://de.mathworks.com/help/simscape/ug/prepare-your-model-for-scalable-compilation.html
Contrary to expectations, this worsened the simulation time.
Is there another way to simulate such an extensive model in a reasonable time? I would be very grateful for any suggestions.