Now writes out list of ports ans list of subsystems.
These ordereded lists determine the order of processing of ports ans
subsystems.