﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4517	Get Complex numbers to work without compromises	Francesco Casella	Lennart Ochel	"Complex numbers are increasingly used in Modelica, mainly for electrical system simulation. {{{Modelica.Electrical.QuasiStationary}}} uses them, as well as an increasing number of libraries for electro-mechanical modelling of power systems.

Complex numbers are supported by OMC, but there are still some pending issues. This ticket collects them in the attempt of getting them fixed soon.

* In most (if not all) cases, the best strategy to solve models with Complex unknowns is to eventually transform all Complex equations into their scalar Real counterparts, and then apply all symbolic simplification algorithms to them. 
*  Wrong code generation for complex numbers in algorithms, see #4055. This requires a fix in the code generation template handling assignment of indexed array of complex or record on left hand side in an assignment.

* Various issues when handling complex equations, see #4157 and #4354. I guess that the solution suggested in #4354, namely transforming equations involving records with two real components into pairs of real equations (which is trivial) and then allowing further symbolic manipulation should automatically fix them

* Sum of complex numbers is not supported, see #4297. This impacts some models in the MSL. Shouldn't be hard to fix either.

Can we try to get this into 1.12.0?"	defect	closed	critical	1.13.0	Backend		duplicate		massimo ceraolo dr.christian.kral@…
