changed unit loading to load-time to avoid errors when using two instances of corry in the same run

15 jobs for python-executable-refactor in 14 minutes and 59 seconds (queued for 2 seconds)
Name Stage Failure
failed
cmp:cc7-docker Compilation
/builds/atlas-itk-strip-testbeam/corryvreckan/src/core/Corryvreckan.cpp:259:6: error: extra ';' [-Werror=pedantic]
};
^
cc1plus: all warnings being treated as errors
make[2]: *** [src/core/CMakeFiles/CorryvreckanCore.dir/build.make:118: src/core/CMakeFiles/CorryvreckanCore.dir/Corryvreckan.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1263: src/core/CMakeFiles/CorryvreckanCore.dir/all] Error 2
make: *** [Makefile:183: all] Error 2
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1

failed
cmp:cc8-gcc Compilation
[117/162] Building CXX object src/modules/TrackingSpatial/CMakeFiles/CorryvreckanModuleTrackingSpatial.dir/__/__/core/module/dynamic_module_impl.cpp.o
[118/162] Building CXX object src/exec/CMakeFiles/corry.dir/corry.cpp.o
[119/162] Building CXX object src/modules/TrackingSpatial/CMakeFiles/CorryvreckanModuleTrackingSpatial.dir/TrackingSpatial.cpp.o
[120/162] Building CXX object src/modules/OnlineMonitor/CMakeFiles/CorryvreckanModuleOnlineMonitor.dir/OnlineMonitor.cpp.o
[121/162] Building CXX object src/modules/TrackingMultiplet/CMakeFiles/CorryvreckanModuleTrackingMultiplet.dir/TrackingMultiplet.cpp.o
[122/162] Building CXX object src/modules/Tracking4D/CMakeFiles/CorryvreckanModuleTracking4D.dir/Tracking4D.cpp.o
ninja: build stopped: cannot make progress due to previous errors.
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1

failed
cmp:lxplus-gcc Compilation
[117/162] Building CXX object src/modules/TrackingSpatial/CMakeFiles/CorryvreckanModuleTrackingSpatial.dir/__/__/core/module/dynamic_module_impl.cpp.o
[118/162] Building CXX object src/exec/CMakeFiles/corry.dir/corry.cpp.o
[119/162] Building CXX object src/modules/TrackingSpatial/CMakeFiles/CorryvreckanModuleTrackingSpatial.dir/TrackingSpatial.cpp.o
[120/162] Building CXX object src/modules/OnlineMonitor/CMakeFiles/CorryvreckanModuleOnlineMonitor.dir/OnlineMonitor.cpp.o
[121/162] Building CXX object src/modules/TrackingMultiplet/CMakeFiles/CorryvreckanModuleTrackingMultiplet.dir/TrackingMultiplet.cpp.o
[122/162] Building CXX object src/modules/Tracking4D/CMakeFiles/CorryvreckanModuleTracking4D.dir/Tracking4D.cpp.o
ninja: build stopped: cannot make progress due to previous errors.
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1

failed
cmp:cc7-gcc Compilation
[117/162] Building CXX object src/modules/TrackingSpatial/CMakeFiles/CorryvreckanModuleTrackingSpatial.dir/__/__/core/module/dynamic_module_impl.cpp.o
[118/162] Building CXX object src/exec/CMakeFiles/corry.dir/corry.cpp.o
[119/162] Building CXX object src/modules/TrackingSpatial/CMakeFiles/CorryvreckanModuleTrackingSpatial.dir/TrackingSpatial.cpp.o
[120/162] Building CXX object src/modules/OnlineMonitor/CMakeFiles/CorryvreckanModuleOnlineMonitor.dir/OnlineMonitor.cpp.o
[121/162] Building CXX object src/modules/TrackingMultiplet/CMakeFiles/CorryvreckanModuleTrackingMultiplet.dir/TrackingMultiplet.cpp.o
[122/162] Building CXX object src/modules/Tracking4D/CMakeFiles/CorryvreckanModuleTracking4D.dir/Tracking4D.cpp.o
ninja: build stopped: cannot make progress due to previous errors.
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1

failed
cmp:cc7-llvm Compilation
[155/162] Linking CXX shared library src/modules/OnlineMonitor/libCorryvreckanModuleOnlineMonitor.so
[156/162] Linking CXX shared library src/modules/TrackingSpatial/libCorryvreckanModuleTrackingSpatial.so
[157/162] Building CXX object src/exec/CMakeFiles/corry.dir/corry.cpp.o
[158/162] Linking CXX shared library src/modules/Tracking4D/libCorryvreckanModuleTracking4D.so
[159/162] Building CXX object src/modules/TrackingMultiplet/CMakeFiles/CorryvreckanModuleTrackingMultiplet.dir/TrackingMultiplet.cpp.o
[160/162] Linking CXX shared library src/modules/TrackingMultiplet/libCorryvreckanModuleTrackingMultiplet.so
ninja: build stopped: cannot make progress due to previous errors.
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1