MATLAB: Does the model initialize slowly in Simulink 6.2 (R14SP2)

anddatademuxdimensionsframeinitializationinitializemodelmuxpropagatingsimulinksldiagnosticsslowspeed

I have a large model with a number of MUX and DEMUX blocks. When I try to run the model it takes a long time to initialize. To diagnose the problem, I used the SLDIAGNOSTICS command as shown below:
sldiagnostics('model_name','all')
The following line stood out from the output:
---- CStat38: propagate frame data and dimensions
Elapsed Time: 357.983 seconds
Memory Usage: 0 bytes
I am not sure why propagating frame data and dimensions takes so long.

Best Answer

This bug has been fixed in Release 2006a (R2006a). For previous product releases, read below for any possible workarounds:
There is a bug in Simulink 6.2 (R14SP2) in the way that it handles port dimensions, especially for large models. Sometimes the port dimensions can take a long time to resolve leading to slow model initialization.
To work around this issue, you may wish to place Signal Specification blocks in your model, away from where the signal dimensions are already specified. Try using these blocks especially after the signal has passed through multiple MUX and DEMUX blocks.