How to retrieve value from StringProperty?
You have one small mistake: you are reading the function that creates properties for new classes, while you should be accessing the property itself in the current scene, which has the value you have stored:

print(context.scene.referenceMesh)   instead of print(bpy.types.Scene.referenceMesh)