Anybody has even the slightest hint? I searched the whole community but didn't find anything helpful...
sldiagnostics counts subsystems which are not visible
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi there
I am modelling a PV system with 3 cells in series and 2 cells in parallel. I am interested in analysing the performance of my model, as I intend to go on large-scale for the purpose of my studies (i.e. 50x40). As such, I used "sldiagnostics" to see where my model spends most of its time. I have two particular question regarding the diagnostics of my model (can be downloaded from my dropbox here; I am sorry for the messy model, I have removed the subsystems in order to understand the diagnostics better, see question 2 below).
- What is the compile process "Cstat 33 = Pre-compile post-eval notifies" doing? It seems that this is the bottleneck of the computation time of my model.
- I can see there are are 51 Subsystems counted, but there are no subsystems added by me to the model. What kind of subsystems are those? Where can I find them?
Thank you all for your contribution and help!
3 Commenti
Arvind Sathyanarayanan
il 29 Mag 2019
Modificato: Arvind Sathyanarayanan
il 29 Mag 2019
Philipp, I don't have 2018b hence, I'm not able to open your model.
The subsytems could be the built-in library blocks that you're using in your model, many of them are modelled as subystems with masks on top. I'm not sure about the compile process, that would be question for the Mathworks support team.
Have you tried using the performance advisor tool in simulink to improve your models performance?
Risposte (1)
Fangjun Jiang
il 29 Mag 2019
When Simulink compiles or updates the model, it went through many steps. I have a guess on what "Pre-compile post-eval notifies" means but there is no document for it. I would think it is related to "Cstat2: Pre_Compile" and "Cstat26: Evaluate block parameters and model args".
Run the following command to find all the subsystem blocks
find_system(ModelName,'FollowLinks','On','LookUnderMasks','all','blocktype','SubSystem')
3 Commenti
Fangjun Jiang
il 3 Giu 2019
If you are using Simulink blocks which contain many masked subsystems, don't worry about it. The number of subsystem blocks is unlikely be the factor of slow down.
The a few seconds compilation time would not be a big factor if you run simulation for 50x40 cells for a period time. I would suggest you run a simulation and then use profiler to improve somewhere else.
The only thing I can think of that is related to compilation time for your case that you might consider is Model Reference. Search in document for Model Reference and pay attention to its benefit regarding compilation time.
Vedere anche
Categorie
Scopri di più su Configure and View Diagnostics in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!