Propagate exit error to overall script launched with sbatch
Get exit error from subprocess run calibration and data sequences in order to propagate it to the overall sbatch script. This is important for the calibration-to-data sequence dependency in slurm jobs.
I also set different memory size limits for calibration (2GB) and data (16GB) sequences