Assuming no shorts and wires are continuous.
On the roof:
Arbitrarily label one wire as #1. Tie three wires together and then tie the remaining two together.
In the basement:
Mark the wire that did not ring out as #1. Find the bundled wires and note the groups. Arbitrarily mark one of the wires in the three group as #2 and tie that to #1. Mark the second wire as #3 and leave that hanging. Mark the last wire as #4. Then take the two bundle and arbitrarily mark one of the wires as #5 and tie that with #4. Mark the last wire as #6.
On the roof:
Untie the three group. Ring out using #1 to look for #2. Ring out using the two bundle to look for #4. Remaining wire of three bundle is #3. Untie two bundle and use #4 to look for #5. Remaining wire is #6.