Reverted debug changes of Media.
Applied patch from Adrian Pop.

This allows simulation of the example of the volume flow rate sensor with OpenModelica.