Removed duplicate declaration of function arguments and corrected reference to Modelica.Media.