Feels like you are trying to use Simscape like MATLAB :p, by considering how to use iterations to do the numerical integration. If I understand your intention correctly, you governing equation for this block is
or ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1079820/image.png)
and fio2 is just there to record the integral from last time step.
If so, you can get rid of fio2 totally and define the equation as
or
And, add qo2 to the variable list. The initial condition can be set in the block in the variable tab.