MATLAB: Model_X has multiple sample times error

errorsimulinktime

I am getting the following error
'MyTopLevelModel/SubsystemA/Model' has multiple sample times. Only constant (inf) or inherited (-1) sample times are allowed in function call subsystem 'MyTopLevelModel/SubsystemA'.
More info of my setup
SubsystemA has a function call which has a trigger port connected to a port set as "output function call with sample time of 0.001. All my other blocks have sample time -1 (inheritet).
If I go to the model explorer the compiled sample time are not [-1 0] some of the have set the [0.001 0]
Any idea what could be causing this error ?

Best Answer

The problem was that a configuration reference had a time step set to 0.01. This time step was transformed into a CompiledTimeStep and therefore it set a CompiledTimeStep different to -1 or inf. Setting the time step to auto solved the issue.