I had a similar problem with one I had from a while back. The clock was always working fine, but the optos for the magnets, ramps, and upper pf would go out randomly. I could just sit there in test mode without touching a thing and the optos would start acting up. It turned out to be cracked solder joints on the opto board under the pf. The board was also filthy, so I took it out, cleaned it up, re-flowed solder and it worked fine ever since.