Displaying results in the simulation log from a function in Dymola
Code for function and stream printer