Log output of sim.
Implement energy logger.