The structural, electronic, elastic, vibration and thermodynamic properties of GdMg