A digital twin is a simulation of a real thing, created for purposes such as testing engineering outcomes.
[1] The concept of a simulated reality is in itself a common science fiction trope, often a metaphor for complacency towards the influence of modern technology, corporations, and other societal forces on one's behavior and desires.
The film, and its ensuing media franchise, depicts far-future humans being harvested for bioelectricity by intelligent machines while living in a false, computer-generated approximation of late 20th century Earth.
[1][2] The Westworld franchise depicts an advanced adult amusement park populated by androids that simulates life in different historical time periods.
[3] In the TRON franchise, a simulated reality called "the Grid" is populated by programs which appear in the likeness of the programmer who created them.