std::cout buffet flushed after each cycle (more convenient when running on cluster)