How can I resolve: model continues in compilation mode indefinitely with no error.
52 views (last 30 days)
Show older comments
Sameer
on 23 Oct 2024 at 16:29
Commented: Sameer
on 27 Oct 2024 at 18:59
Hello,
Using MATLAB (R2024a), I have built a battery pack library (1 Pack having 20 Module Assemblies, each module assembly having 5 modules, each module assembly having 20 parallel assemblies, with each parallel assembly having 120 cells). Then, I am trying to simulate (using Simulink and simscape components), a system where this battery pack is connected to a resistance as load and monitoring current flowing out of the battery pack and temparature of the pack.
When I run this integrated model (this battery pack library with the battery thermal monitoring, current monitoring and boost DC-DC Converter with resistive load), the model remains in the compilation mode for many hours. The status in the status bar at the righthand side below the diagnostic window shows: "Compiling: Evaluating Block Parameters: Completed". There is no error displayed in the diagnostic window. During this time, the MATLAB does not allow any other operation on the model and must be terminated via task manager to exit.
This issue is encoutered on a MATLAB student version downloaded on an i7 machine with 16GB RAM as well as MATLAB online.
I tried to run the same model, this time with a smaller battery pack library (1 Pack having 2 Module Assemblies, each module assembly having 2 modules, each module having 1 parallel assembly of 2 cells) instead of the larger battery pack. WIth a smaller battery pack, the model compiles and runs without any error or any issue.
I wish to design the model with the larger battery pack mentioned earlier.
Kindly suggest a possible solution for my issue.
Thanks, and Regards,
Sameer Phatak
0 Comments
Accepted Answer
Xiangchun
on 24 Oct 2024 at 13:06
Hi Sameer,
Have you tried different model resolution, such as "lumped" or "grouped" resolution? The battery pack has 240,000 cells, which is quite a lot. In this case, it is a good idea to avoid using "detailed" resolution.
As described in the following documentation page, "Set a suitable model resolution or simulation strategy by specifying the ModelResolution property in the ParallelAssembly and Module levels. When you specify the resolution of your battery model, you must consider the trade-off between model resolution and model speed." "To obtain optimal performance, keep the number of models to lower than or equal to 30."
Best wishes,
Xiangchun
More Answers (0)
See Also
Categories
Find more on Energy Storage in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!