Assert in Killer for the number of resources
I'm adding more tests to batsim: I added more jobs on the test workload with the new job model and every tests are passing except the kill one because of an assert: Do you know where it comes from?
workload_profiles/test_workload_profile.json
:
{
"version": 0,
"command:": "",
"date": "Tue, 11 Mar 2015 9:44:30 +0100",
"description": "workload with profile file for test",
"nb_res": 4,
"jobs": [
{"id":1, "subtime":10, "walltime": 100, "res": 4, "profile": "2"},
{"id":2, "subtime":20, "walltime": 100, "res": 4, "profile": "1"},
{"id":21, "subtime":20, "walltime": 100, "res": 4, "profile": "21"},
{"id":22, "subtime":20, "walltime": 100, "res": 4, "profile": "22"},
{"id":3, "subtime":30, "walltime": 3, "res": 4, "profile": "1"},
{"id":4, "subtime":32, "walltime": 100, "res": 4, "profile": "3"},
{"id":5, "subtime":15, "walltime": 30, "res": 1, "profile": "4"},
{"id":6, "subtime":15, "walltime": 30, "res": 2, "profile": "5"},
{"id":7, "subtime":15, "walltime": 30, "res": 4, "profile": "5"}
],
"profiles": {
"1": {
"type": "msg_par",
"cpu": [5e6,5e6,5e6,5e6],
"com": [5e6,5e6,5e6,5e6,
5e6,5e6,5e6,5e6,
5e6,5e6,5e6,5e6,
5e6,5e6,5e6,5e6]
},
"2": {
"type": "msg_par_hg",
"cpu": 10e6,
"com": 1e6
},
"21": {
"type": "msg_par_hg",
"cpu": 0,
"com": 1e6
},
"22": {
"type": "msg_par_hg",
"cpu": 2e5,
"com": 0
},
"3": {
"type": "composed",
"nb" : 4,
"seq": ["1","2","1"]
},
"4": {
"type": "delay",
"delay": 20.20
},
"5": {
"type": "msg_par_hg_tot",
"cpu": 10e6,
"com": 1e6
}
}
}
Here is the error:
23: 2017-09-29 14:03:38,673 40aa13a2ad50 execute_one_instance[13700] ERROR Sched stderr:
23: Assertion 'nb_available_before + (*_workload)[ended_job_id]->nb_requested_resources == (int)available_machines.size()' failed (ERROR)
23: in file killer2.cpp, line 48
23: function: virtual void Killer2::make_decisions(double, SortableJobOrder::UpdateInformation *, SortableJobOrder::CompareInformation *)
23: /tmp/batsim_tests/kill/results/f191fde8/sched_command.sh: line 7: 13715 Aborted (core dumped) batsched -v ${algo[sched_name]}
23: