15" MacBook Pro freezes My 15" MacBook Pro, running macOS Sierra freezes frequently. This happens randomly, it freezes and only a force-shutdown (hold the power button) works. First, the Beachball just spins, then sometimes a black screen appears without any description or explanation. At this point, other buttons do not respond. 

I tried DiskUtil, CleanMyMac and OnyX to check the SSD, tried reparing permissions and other decisions. But my MacBook continues to hang, although now a little less. 

Please recommend me other programs for testing and troubleshooting. Is my MacBook dying? Which devices can cause this problem?
First, back up all the data on your Mac with Time Machine, SuperDuper!, etc.

Second, create an installer of macOS Sierra (latest version) with DiskMaker X or other tools.

Third, reinstall macOS Sierra with the installer, but don't erase the hard disk your Mac. All settings and data will still be there as before.

Just to see if the issue occurs again or not. Try to erase your hard disk and reinstall macOS Sierra, if it happens again. Remember to back up all your files before the operation.