How to attach static mesh to static mesh by socket in an actor?

Did you try following these instructions?

If that still does not work, you may try dragging StaticMesh1 out of being a child of StaticMesh and see if that gives you different results when you try to attach it.