I am trying to find the name of a (possible) movie that I only know the plot of partly (since I don’t know the movie completely, it may contain some spoilers). As far as I know, it is as follows:
It takes place in a small normal town but after some point some man starts to stay awake at nights and realizes that every day people change their jobs and life each morning when they wake up, for example the butcher of the town becomes the mayor of the town, or the doctor of the town becomes the bar manager of the town, or the greengrocer of the town becones a housewife, etc., and people think they were doing that job/living that life for ages when they wake up, they think that that is their life for their whole life each morning. The man who stayes awake at nights realizes this and at the end it turns out that the whole town is a part of a huge spaceship controlled by the aliens and it turns out that the aliens are performing an experiment on the humans in that spaceship.
This is everything that I know about the movie, it is probably a 80’s or 90’s movie or older, also I know that it was shown in a local TV channel in my country as far as my uncle told me, who knows the same plot as I do and nothing else, thank you.