MATLAB: Am I not able to minimize algebraic loops when I test point/log a signal in the subsystem

simulink

I have an atomic subsystem which is part of an algebraic loop. I can remove this algebraic loop by choosing the 'Minimize algebraic loop occurences' option in the Subsystem Parameters. However, if I create a test point inside my Subsystem, the algebraic loop can not be reduced (see TestAlgebraicLoop.mdl below)

Best Answer

This bug has been fixed in Release 2007b (R2007b). For previous product releases, read below for any possible workarounds:
This is not a bug in Simulink. This behavior is by design because the test point/logging of a signal prevents the algebraic-loop minimization from occurring. A test point asserts that the signal must be available for observation after it has been calculated during the outputs phase of the simulation loop. Minimizing an algebraic loop may require the output of a block in the subsystem to be moved to the update or derivatives phase, and thus, the test point will not be available after outputs have been calculated.