Two bars of masses m1 and m2, connected by a weightless spring of stiffness k, rest on a smooth horizontal plane. Bar 2 is shifted by a small distance x0 to the left and released. The velocity of the centre of mass of the system when bar 1 breaks off the wall is :