when simulating, also track the status
added threshold to next_second_least_power and fixed a bug in computing power consumption