THeproblem is the use of the convexity-aware operator abs which will map to a norm expression, which will be modelled using an epigraph, but ipopt does not have any support for the non-smooth norm operator, and thus yalmip has some internal hacks to approximate it, and all those small approximation errors escalates to a large difference in the actual objective compared to the epigraph-modelled objective.
Better to derive the quadratic model
z = Model.Iline{index};
z = real(z).^2 + imag(z).^2;
Model.losses= Model.losses + 1*Parameters.Ccurt*sum(z.*Network.branch(:,3)/Network.baseMVA);