not sure what you define as a torture "machine" but the first mechanical devices that were built solely for torture were used in the Spanish Inquisition. torture has been around since the dawn of man though... as soon as the first crime was committed, there had to be a punishment for it