Why does my iMac go to sleep while I am using it?
Well, that did not work.  Now I'm going to try this in Terminal.app for 5 hours of "don't go to sleep on me":

caffeinate -t 18000


Info on that command is:

man caffeinate