Avoid wrong results while using SystemModeler Complex Product Block?

I’ve come across an issue where the Complex Product block in SystemModeler just produces outright incorrect results.

I ran a test simulation where I multiplied 1+3i with 100+200i using the block and got the result of -30,000+40,000i. How is it even possible to get a result this wrong? Attached are images showing the setup.

Any help would be appreciated.

That seems to be a bug in Modelica 3.2.2 (Modelica.ComplexBlocks.Interfaces.ComplexSI2SO is wrong · Issue #2177 · modelica/ModelicaStandardLibrary · GitHub). As a workaround you can switch to Modelica 3.2.1 (right-click on Modelica and select Version → 3.2.1) or apply the patch from github to your local installation.

Otto