Complex numbers in SystemModeler?

Is there a easy way or tick to handle complex numbers in SystemModeler? I need to do a model with phasors and I do not see a direct way to implement it.

Thanks!

SystemModeler runs on the Modelica programming language.

The Modelica 3.2 standard library supports complex numbers, but the current version of SystemModeler supports the 3.1 standard libraries. Hopefully the next version of System Modeler will support the Modelica 3.2 standard libraries and you can use the definition of complex numbers there.

If you search online, there are some examples of complex number artihmetic being programmed handled in Modelica which you might find useful.