Implementation of a causalization algorithm for a Modelica Compiler