Highland Moi wrote:
The Os X wants to reload itself and shuts down on regular basis. Time machine does not work. There is no clear pattern as to what is causing the shut down (E-mail, Safari etc)
As Kappy said, you may have a hardware problem; however, there are a few things you can try yourself before taking it in for service.
One is Resetting the System Management Controller (SMC) on your Mac. I would try that first since one of the indicators that it may need to be reset is unexpected shutdowns. Per the article, to do this on an Intel-based iMac:
1. Shut down the computer.
2. Unplug the power cord.
3. Wait fifteen seconds.
4. Attach the power cord.
5. Wait five seconds, then press the power button to turn on the computer.
You can also try resetting NVRAM. This really isn't very likely to fix your symptoms but it is easy enough to do.
Finally, if you have installed any aftermarket RAM (memory modules) in your iMac, it is possible one or more of them is just far enough out of spec that while it may work fine with earlier OS X versions, it isn't quite able to handle the demands of El Capitan for things like memory compression. So if you have installed aftermarket modules, try testing for this by removing them & using just the modules that came with your iMac. If necessary, refer to the info in iMac: How to remove or install memory for more about how to do this.