Steps to take:

Make sure the alarm has the Wake Computer checkbox set.

Make sure to enter an administrator's username and valid password when asked.

Make sure the power cord is connected to your Mac and plugged in.

If your Mac is a notebook, make sure to not close the lid.