each thread writes its own power consuption array, merging them at the end before displaying
fixed pdf-output