Mains voltage failure detection, Emergency backup and Test mode, Log last 50 events & alarm information with measured values