allocating different nb of resources than in "res" of a job does not crash for msg_par_hg
Batsim permits a scheduler to allocate less resources to a job than asked during submission of the job (the 'res' field of the job description). This appears when the job profile is "msg_par_hg" (maybe also for "msg_par_hg_pfs" depending on what Mickours is doing with this profile).
Normal behavior: when the scheduler allocates less resources than asked by the job description, Batsim should complain upon handling the "EXECUTE_JOB" event.
You can try it with the master branch of batsim, small_platform.xml and the workload issue32.json.
Scheduler : fillerSched of pybatsim by replacing the line 40
res = self.availableResources[:nb_res_req] by
res = self.availableResources[:1] to force the allocation on only one resource.