Thanks Frank. But this is a Mathematica code. I am asking about Modelica code (the language on which SystemModeler is based) !
Anyway, I used this function:
function int "Integrate variable with respect to time"
extends Modelica.Icons.Function;
input Real u;
output Real y;
algorithm
u:=der(y);
annotation(Diagram(coordinateSystem(extent={{-148.5,-105.0},{148.5,105.0}}, preserveAspectRatio=true, initialScale=0.1, grid={5,5})));
end int;
It is working fine until now.