Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.ComponentTesting.PolyphaseVoltageControlledConverter,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001072/0.001075, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 221.4 MB / 234.6 MB, free: 14.46 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008888/0.000889, allocations: 86.91 kB / 285.6 MB, free: 13.01 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02552/0.02552, allocations: 5.293 MB / 341.8 MB, free: 4.828 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.159e-05/3.18e-05, allocations: 4 kB / 401.3 MB, free: 65.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1089, allocations: 51.61 MB / 452.9 MB, free: 13.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4032/0.5122, allocations: 92.48 MB / 0.5326 GB, free: 0.6719 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002477/0.5125, allocations: 70.34 kB / 0.5327 GB, free: 0.6406 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5811/1.094, allocations: 135.1 MB / 0.6646 GB, free: 109.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.014e-06/1.094, allocations: 0 / 0.6646 GB, free: 109.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003451/1.094, allocations: 90.48 kB / 0.6647 GB, free: 109.2 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1072 * Number of variables: 1072 Notification: Performance of Generate backend data structure: time 0.01724/1.111, allocations: 3.754 MB / 0.6684 GB, free: 108.1 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.617e-05/1.111, allocations: 13.33 kB / 0.6684 GB, free: 108.1 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003353/1.115, allocations: 0.5714 MB / 0.6689 GB, free: 108 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006811/1.122, allocations: 0.9393 MB / 0.6698 GB, free: 107.9 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006552/1.128, allocations: 2.74 MB / 0.6725 GB, free: 107.4 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002561/1.128, allocations: 281 kB / 0.6728 GB, free: 107.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001191/1.13, allocations: 371.7 kB / 0.6731 GB, free: 107.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01076/1.14, allocations: 6.226 MB / 0.6792 GB, free: 106.9 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-05/1.141, allocations: 3.906 kB / 0.6792 GB, free: 106.9 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003696/1.141, allocations: 161.5 kB / 0.6794 GB, free: 106.9 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002357/1.141, allocations: 291.5 kB / 0.6797 GB, free: 106.9 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007306/1.148, allocations: 4.834 MB / 0.6844 GB, free: 106.9 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02918/1.178, allocations: 21.53 MB / 0.7054 GB, free: 96.11 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003979/1.182, allocations: 3.784 MB / 0.7091 GB, free: 93.25 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008401/1.183, allocations: 0.7281 MB / 0.7098 GB, free: 92.96 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001237/1.183, allocations: 117.5 kB / 0.7099 GB, free: 92.86 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.775e-05/1.183, allocations: 43.03 kB / 0.71 GB, free: 92.81 MB / 458.7 MB Notification: Performance of pre-optimization done (n=93): time 3.006e-06/1.183, allocations: 0 / 0.71 GB, free: 92.81 MB / 458.7 MB Notification: Performance of matching and sorting (n=93): time 0.001684/1.184, allocations: 1.194 MB / 0.7111 GB, free: 92.34 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/1.184, allocations: 85.02 kB / 0.7112 GB, free: 92.25 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001765/1.186, allocations: 1.435 MB / 0.7126 GB, free: 91.64 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.683e-05/1.186, allocations: 45.31 kB / 0.7127 GB, free: 91.6 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006933/1.187, allocations: 1.763 MB / 0.7144 GB, free: 90.27 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002009/1.187, allocations: 352.1 kB / 0.7147 GB, free: 90.01 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.66e-05/1.187, allocations: 50.12 kB / 0.7148 GB, free: 89.97 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001645/1.188, allocations: 449.1 kB / 0.7152 GB, free: 89.61 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001255/1.189, allocations: 1.081 MB / 0.7162 GB, free: 89.2 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001503/1.19, allocations: 2.01 MB / 0.7182 GB, free: 87.43 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001649/1.192, allocations: 1.495 MB / 0.7197 GB, free: 86.84 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.759e-05/1.192, allocations: 15.12 kB / 0.7197 GB, free: 86.83 MB / 458.7 MB Notification: Performance of matching and sorting (n=286) (initialization): time 0.003781/1.196, allocations: 3.079 MB / 0.7227 GB, free: 85.65 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.299e-05/1.196, allocations: 23.03 kB / 0.7227 GB, free: 85.65 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.358e-05/1.196, allocations: 33.44 kB / 0.7227 GB, free: 85.65 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.233e-05/1.196, allocations: 55.09 kB / 0.7228 GB, free: 85.65 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001822/1.198, allocations: 0.5602 MB / 0.7233 GB, free: 85.59 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.252e-05/1.198, allocations: 71.7 kB / 0.7234 GB, free: 85.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0021/1.2, allocations: 359.7 kB / 0.7238 GB, free: 85.39 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001818/1.2, allocations: 131 kB / 0.7239 GB, free: 85.37 MB / 458.7 MB Warning: Assuming fixed start value for the following 1 variables: converter.potentialSensor.plug_p.reference.gamma:VARIABLE(start = 0.0 unit = "rad" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 161 * Number of states: 0 () * Number of discrete variables: 1 (converter.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (282): * Single equations (assignments): 278 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003579/1.2, allocations: 255.3 kB / 0.7241 GB, free: 85.14 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002333/1.201, allocations: 128.9 kB / 0.7242 GB, free: 85.07 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002125/1.203, allocations: 1.411 MB / 0.7256 GB, free: 84.52 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001224/1.204, allocations: 1.081 MB / 0.7267 GB, free: 84.11 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/1.204, allocations: 0 / 0.7267 GB, free: 84.11 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/1.204, allocations: 3.891 kB / 0.7267 GB, free: 84.11 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006941/1.211, allocations: 4.405 MB / 0.731 GB, free: 82.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-05/1.211, allocations: 3.219 kB / 0.731 GB, free: 82.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000799/1.212, allocations: 187.3 kB / 0.7312 GB, free: 82.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.566e-05/1.212, allocations: 7 kB / 0.7312 GB, free: 82.29 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.87e-05/1.212, allocations: 25.14 kB / 0.7312 GB, free: 82.28 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.037e-06/1.212, allocations: 7.344 kB / 0.7312 GB, free: 82.28 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/1.212, allocations: 3.656 kB / 0.7312 GB, free: 82.28 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002704/1.215, allocations: 2.222 MB / 0.7334 GB, free: 81.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000616/1.215, allocations: 346.3 kB / 0.7337 GB, free: 80.96 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001456/1.216, allocations: 15.66 kB / 0.7337 GB, free: 80.95 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007526/1.216, allocations: 70.8 kB / 0.7338 GB, free: 80.94 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001903/1.217, allocations: 63.61 kB / 0.7338 GB, free: 80.92 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.491e-05/1.217, allocations: 27.98 kB / 0.7339 GB, free: 80.92 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001918/1.219, allocations: 1.084 MB / 0.7349 GB, free: 80.46 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.194e-06/1.219, allocations: 0 / 0.7349 GB, free: 80.46 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003183/1.222, allocations: 0.8606 MB / 0.7358 GB, free: 80.17 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (converter.potentialSensor.plug_p.reference.gamma,converter.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003116/1.225, allocations: 3.196 MB / 0.7389 GB, free: 77.23 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003137/1.228, allocations: 2.037 MB / 0.7409 GB, free: 75.39 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/1.228, allocations: 0 / 0.7409 GB, free: 75.39 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007267/1.229, allocations: 0.586 MB / 0.7415 GB, free: 74.86 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001633/1.23, allocations: 272.8 kB / 0.7417 GB, free: 74.66 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01197/1.242, allocations: 5.955 MB / 0.7475 GB, free: 69.45 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002286/1.245, allocations: 2.955 MB / 0.7504 GB, free: 67.06 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002052/1.247, allocations: 0.7702 MB / 0.7512 GB, free: 66.57 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00137/1.248, allocations: 1.117 MB / 0.7523 GB, free: 65.54 MB / 458.7 MB Notification: Performance of SimCode: time 1.173e-06/1.248, allocations: 4 kB / 0.7523 GB, free: 65.54 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06561/1.314, allocations: 42.36 MB / 0.7936 GB, free: 28.04 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001449/1.314, allocations: 176.2 kB / 0.7938 GB, free: 27.8 MB / 458.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -c -o PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter.o PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter.c In file included from PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter.c:7: In file included from ./PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:111: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter.c:151:69: error: assigning to 'modelica_real' (aka 'double') from incompatible type 'Complex_array' (aka 'struct base_array_s') data->localData[0]->realVars[96] /* converter.powerAC variable */ = tmp3; ^ ~~~~ 2 warnings and 1 error generated. make: *** [: PhotoVoltaics_PhotoVoltaics_ComponentTesting_PolyphaseVoltageControlledConverter.o] Error 1