added function to Message for logging messages that are send.
Note: we use function getInstanceName(), which is valid for Modelica 3.3
https://www.modelica.org/documents/ModelicaSpec33.pdf page 28
-> Tested with Dymola 2014 FD01