Entropy production in magnetizable bodies with internal variables