Complex apparent power
record ApparentPower = Complex(redeclare ActivePower re "Real part of complex apparent power", redeclare ReactivePower im "Imaginary part of complex apparent power");