It seems to do what I expect it to do. It reproduces on cycle 2 then turns away from it's offspring. The offspring creates a tie to it's parent on it's cycle 1 then turns away so they are back to back. None of the genes in either bot fire after that for obvious reasons.
What are you expecting it to do?
Note that the reason the parent turns away is different from the reason the offspring turns away.
The parent turns away because both .trefxpos and .refxpos are 0 (as are .trefypos and .refypos). Why are they both zero? Well, both trefxpos and refxpos come from the tied or viewed bot's own xpos. Since the offspring has a higher bot number than the parent, it has yet to execute a single cycle when the birth tie is formed or when the parent first sees it. Thus, it's xpos has yet to be populated and thus when the trefvars are copied for the bith tie or when the refvars are copied when the parent first sees the offspring, the parent's refxpos and trefxpos get 0 because the offsping's xpos is still 0.
The offsping turns away becuase when it sees the parent and creates the tie to the parent, trefxpos and refxpos get populated with real values, which equal.