I've had the same problem. Finally I found the reason, I used the face coordinates for magnetization reference of the magnets, it is possible that the demagnetization analysis can not recognize this coordinate system. I changed it to a relative coordinate system for the magnets and it worked fine.