After trying all the methods I went to apps then to the Power management app
Open App Data or App storage 
Cleared app data
cleared app cache
I tried all the above options but non worked.
I tried this and it worked for me. I turned UPSM on and off and everything is fine. I restarted my phone to...