The clock is broken into the four digits. The rightmost digit is digit 0. In a digit, motor 0 is is the top right second hand. Motor 1 is the hour hand.
The clocks are numbered like below when looking at the front of the clock.
[21][18] [15][12] [ 9][6] [3][0]
[22][19] [16][13] [10][7] [4][1]
[23][20] [17][14] [11][8] [5][2]
The “id” of the motor is the clock number * 2 + 1 if it is the hour hand.