added outputAccumulatedWork to TMD example