Robuta

https://au.mathworks.com/help/simulink/sfg/sssetdworkrequireresetforsignalsize.html ssSetDWorkRequireResetForSignalSize - Set the block flag for resetting the dIndex Dwork size upon... SimStruct that represents an S-Function block. the blocksetflag