Check that resource counting is consistent.
Usage
Source
model.CapacitySchedule.assert_resource_invariants()