powerconsumption in the first output file is the consumption at the
moment
->
we have to sum it up and multiply with time elapsed in that state and
write it in the other output file