The sword should be a none magical source too. If an attack does more than one type of damage usually only the one the enemy is immune against gets removed. There are things that counter resistances to none magical damage (Diluted oil of sharpness) but not immunity as far as I know. Did you click on the log to see the math?