The messages were:
1 Power::infy: Infinite expression - encountered. 0 Sin::argx: Sin called with 2 arguments; 1 argument is expected.
The print output was:
2 The result is x
These are some evaluations that will cause messages to be generated by Mathematica. There is also a Mathematica print statement.