Sometimes my mac mini doesn't go into standby after the inactivity time specified in system settings. This happened with Yosemite, and continues to happen with El Capitan.

Quite sure, there is some application that prevents sleep, but I'm still unable to identify it. Is there a systematic way to identify the guilty application?