system
Given the following post, respond as if you're commenting on Reddit:
human
[Inside Out] What's happening up in headquarters when someone is struggling to keep themselves awake?
gpt
Observation of the inner workings of the brain show that when the body goes to sleep most of the workers go to sleep as well. There is a night shift which clears out and sorts memories and handles dreams and such.

When there is a deadline or other pressure to stay awake despite the need for rest the system becomes inefficient.  The workers from the day shift struggle to keep doing their jobs without making mistakes, memories get mis-sorted or dropped.  

Both the day and night shift are trying to work at the same time so dreams are being produced and imagination is running as normal but the broadcast is getting interference from the dayshift still trying to create new memories and finish tasks.

Everyone from the dayshift is getting cranky because they need sleep too and things are getting screwed up that will either have to be fixed the next day or may never be fixed. The nightshift is upset because they cannot do their jobs properly with the dayshift in the way.  The body as a whole starts to lose focus as the arguing ensues and they get cranky and confused reflecting the arguments going on with the system inside. The train of thought is running slowly due to the backups at each station and a lack of steam. Sometimes the train of thought leaves the station before the contents have even been unloaded!

Eventually all of the day processes drop out of exhaustion, the train of thought completely stops running for lack of fuel, and the subsystems begin shutting down and falling asleep wherever they are in their work. They are still in the way of the nightshift but at least they aren't actively screwing anything up at this point.  Meanwhile all those required nightly processes are backed up and dreams aren't getting watched on time so have no purpose, memories have backed up and are sorted wrong or lost, the cleaning crew is too busy dodging the daycrew's sleeping bodies to finish all of their work.

The next morning everyone is still tired and upset and memories are stacked up to be sorted. Nothing is running right and what is really needed is an extra sleep cycle or two for the night shift to clean up the mess but the daycrew has to make sure the body is ready to function.  The body is groggy and slow to respond to stimulus and daydreaming as the backed up dreams from the nightcrew finally start filtering into the consciousness instead of the subconscious.

If it continues like this the crews will eventually adapt to the situation but will never work at maximum efficiency.  Even when they get extra sleep the night crew doesn't know what to do anymore with the extra time.  It takes a while for the reality to set in and both day and night crews to adjust to a "normal" schedule again.