I just discovered a bad bug because I trusted Simulink too much to care about all dependencies when using Rapid Accelerator.
Basically I have hundreds of iterations running over the same model but with different input data (coming from MATLAB workspace over "From Workspace").
Simulink seems to ignore dependencies on input data and won't rebuild the target accordingly for fresh input data.
Now I can force a rebuild for every iteration but this is not the point of an optimized model ...
How can I tell Simulink to just compile a single file containg the input + linker (which is build every iteration) rather than building the whole model?
Even if this does not work: How do I force a rebuild in the first place?
Neither
Simulink.BlockDiagram.buildRapidAcceleratorTarget('my_model');
more setting "Rebuild all (including libraries)" in the Simulation Target settings seems to force a rebuild ....