Corrected wrong output variable name.
Changed variable names and cleaned up code.
Introduced uStart.
Added reference results.
Changed loop upper bound.

This is required as otherwise, p in the connector is not used and removed by Dymola.
Corrected wrong html
Corrected index.

The counter of Q_flow_fixed was incorrect.
Changed source.

This avoids a numerical Jacobian for the initialization problem.
Removed small term to avoid a nonlinear equation.
Removed T0 and used instead Medium.T_default.
Set start attribute of y.