In the code, the print function is tweaked to print on the master process only (and do nothing on the others), so the content of OAR.<jobID>.stdout comes from the master. The thing I’m not sure about is the file OAR.<jobID>.stderr. If there is an OOM error, on any process, then the error message should be added to OAR.<jobID>.stderr, right? Because this has nothing to do with the print function I guess.