Building the impedance model of a real machine