Add check id == 0 in the ICs
SWIFT does not allow the ID 0. When running with the debugging checks, a check is falling in such cases in part_verify_link
without a clear explanation. Here I am adding a check just after reading the ICs to ensure that we do not have a gpart with ID 0.