﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3160	C compilation error for array equations	Rüdiger Franke	Mahder Alemseged Gebremedhin	"The PIline models of the PowerSystems library use some non-trivial array equations. All models using them fail to translate (r24588). Three of them fail with the following C compilation error:
{{{
PowerSystems.Examples.Spot.AC3ph.Line_02nls.c:971:39: error: passing 'double' to parameter of incompatible type 'real_array_t' (aka 'struct base_array_s')
  array_alloc_real_array(&tmp1122, 3, 0.01848743818955456, 0.0, 0.0);
                                      ^~~~~~~~~~~~~~~~~~~
/usr/include/omc/c/util/real_array.h:144:74: note: passing argument to parameter 'first' here
extern void array_alloc_real_array(real_array_t* dest,int n,real_array_t first,...);
                                                                         ^
}}}

To reproduce:
$ git clone https://github.com/modelica/PowerSystems.git

Simulate `PowerSystems.Examples.Spot.AC3ph.Line`, `PowerSystems.Examples.Spot.TransmissionAC3ph.FaultPIline`, or  `PowerSystems.Examples.Spot.TransmissionAC3ph.PIline`"	defect	closed	high	2.0.0	New Instantiation	trunk	fixed		Mahder Alemseged Gebremedhin
