Modeling and simulation in engineering using modelica