Ah, that could explain it (except that the battery was not disconnected and we didn't have an EMP). I assumed the mechanism was the same as all the other mechanisms I have seen where the motor is designed to stall and there is an overload device that senses the stall current and shuts off. If the mechanism is actually keeping track of position, all sorts of interesting failure modes come to mind
Off to read the manual more deeply.......
I'm back from a deep dive into the manual. You're right. For whatever reason, the mechanism apparently got confused and my attempts to get it to close again eventually re-calibrated it.
I also read through the moon roof calibration procedure... wow, I'm glad I don't have a moon roof
Paul