setting up environment ... defining support functions ... submitting several jobs, of which only one will run, then increasing available resources ... 000001: job submitted 000002: job submitted 000003: job submitted running (expect 1): 1 running (expect 3): 3 waiting for jobs to complete ... cleaning up ... submitting several jobs, of which all will run, then decreasing available resources ... 000001: job submitted 000002: job submitted 000003: job submitted running (expect 3): 3 000004: job submitted 000005: job submitted 000006: job submitted running (expect 3): 3 waiting for jobs to complete ... cleaning up ... submitting several jobs so queue full, waiting for low numbered ones to exit, decreasing resources to match, queuing more jobs (which should not start even though low numbered slots free) ... 000001: job submitted 000002: job submitted 000003: job submitted 000004: job submitted 000005: job submitted 000006: job submitted 000007: job submitted 000008: job submitted 000009: job submitted running (expect 6): 6 running (expect 3): 3 waiting for jobs to complete ... cleaning up ... all done