Running command: "" <> buildModelFMU(PhotoVoltaics.ComponentTesting.MultiPhaseVoltageControlledConverter,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_ComponentTesting_MultiPhaseVoltageControlledConverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PhotoVoltaics): time 2.07/2.07, allocations: 211.3 MB / 223.4 MB, free: 3.633 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.423e-05/3.424e-05, allocations: 4 kB / 275.2 MB, free: 0.6016 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1109, allocations: 48.76 MB / 323.9 MB, free: 15.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5002/0.6112, allocations: 91.6 MB / 415.5 MB, free: 84 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.6115, allocations: 67.41 kB / 415.6 MB, free: 52 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.721/1.333, allocations: 133.4 MB / 0.5361 GB, free: 99.16 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.685e-06/1.333, allocations: 0 / 0.5361 GB, free: 99.16 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002317/1.333, allocations: 88.64 kB / 0.5362 GB, free: 99.16 MB / 426.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.01923/1.352, allocations: 3.755 MB / 0.5399 GB, free: 97.93 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/1.352, allocations: 9.094 kB / 0.5399 GB, free: 97.93 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002389/1.355, allocations: 0.5639 MB / 0.5404 GB, free: 97.87 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008101/1.363, allocations: 0.9509 MB / 0.5414 GB, free: 97.68 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0109/1.374, allocations: 2.597 MB / 0.5439 GB, free: 97.14 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007153/1.374, allocations: 301.8 kB / 0.5442 GB, free: 97.13 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002483/1.377, allocations: 369.3 kB / 0.5445 GB, free: 97.13 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02316/1.4, allocations: 6.523 MB / 0.5509 GB, free: 96.35 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002008/1.4, allocations: 7.609 kB / 0.5509 GB, free: 96.34 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001779/1.402, allocations: 164.9 kB / 0.5511 GB, free: 96.22 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004184/1.403, allocations: 252.9 kB / 0.5513 GB, free: 96.15 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01563/1.418, allocations: 5.31 MB / 0.5565 GB, free: 93.88 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05236/1.471, allocations: 21.97 MB / 0.578 GB, free: 82.16 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009183/1.48, allocations: 3.6 MB / 0.5815 GB, free: 80.68 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00654/1.487, allocations: 2.651 MB / 0.5841 GB, free: 78.71 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006355/1.487, allocations: 145.7 kB / 0.5842 GB, free: 78.57 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.393e-05/1.487, allocations: 56.56 kB / 0.5843 GB, free: 78.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=273): time 1.138e-05/1.487, allocations: 0 / 0.5843 GB, free: 78.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=273): time 0.0184/1.506, allocations: 4.63 MB / 0.5888 GB, free: 74.38 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.668e-05/1.506, allocations: 99.11 kB / 0.5889 GB, free: 74.27 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002957/1.509, allocations: 0.9417 MB / 0.5898 GB, free: 73.43 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008074/1.51, allocations: 57.7 kB / 0.5899 GB, free: 73.37 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001256/1.511, allocations: 1.343 MB / 0.5912 GB, free: 72.18 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002043/1.513, allocations: 0.8977 MB / 0.592 GB, free: 71.36 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006067/1.514, allocations: 44.03 kB / 0.5921 GB, free: 71.32 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006251/1.515, allocations: 475.7 kB / 0.5925 GB, free: 70.89 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00801/1.523, allocations: 2.138 MB / 0.5946 GB, free: 69.02 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008457/1.531, allocations: 2.464 MB / 0.597 GB, free: 66.65 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009129/1.54, allocations: 2.421 MB / 0.5994 GB, free: 64.56 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.245e-05/1.54, allocations: 4 kB / 0.5994 GB, free: 64.56 MB / 426.7 MB Notification: Performance of matching and sorting (n=358) (initialization): time 0.02209/1.563, allocations: 5.406 MB / 0.6047 GB, free: 59.75 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.233e-05/1.563, allocations: 15.56 kB / 0.6047 GB, free: 59.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-05/1.563, allocations: 16.09 kB / 0.6047 GB, free: 59.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004283/1.567, allocations: 1.114 MB / 0.6058 GB, free: 58.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005817/1.573, allocations: 483.2 kB / 0.6063 GB, free: 58.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008285/1.581, allocations: 4.004 MB / 0.6102 GB, free: 54.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006138/1.587, allocations: 349.1 kB / 0.6105 GB, free: 53.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001152/1.589, allocations: 115 kB / 0.6106 GB, free: 53.66 MB / 426.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: 53 * 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 (249): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 40 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {6 9,6 9,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.001453/1.59, allocations: 228.4 kB / 0.6108 GB, free: 53.43 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009075/1.591, allocations: 150.1 kB / 0.611 GB, free: 53.28 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0141/1.605, allocations: 5.042 MB / 0.6159 GB, free: 48.19 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01371/1.619, allocations: 4.582 MB / 0.6204 GB, free: 43.56 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.409e-05/1.619, allocations: 0 / 0.6204 GB, free: 43.56 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.516e-05/1.619, allocations: 15.95 kB / 0.6204 GB, free: 43.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03445/1.654, allocations: 10.32 MB / 0.6305 GB, free: 33.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.931e-05/1.654, allocations: 0 / 0.6305 GB, free: 33.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004648/1.658, allocations: 331.5 kB / 0.6308 GB, free: 32.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004488/1.663, allocations: 1.106 MB / 0.6319 GB, free: 31.73 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008509/1.664, allocations: 55.97 kB / 0.6319 GB, free: 31.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008539/1.672, allocations: 3.979 MB / 0.6358 GB, free: 27.62 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.914e-06/1.673, allocations: 0 / 0.6358 GB, free: 27.62 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02723/1.7, allocations: 7.877 MB / 0.6435 GB, free: 19.63 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003091/1.703, allocations: 0.6858 MB / 0.6442 GB, free: 18.92 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007413/1.704, allocations: 36.38 kB / 0.6442 GB, free: 18.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003347/1.707, allocations: 111.9 kB / 0.6443 GB, free: 18.78 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001336/1.708, allocations: 229.7 kB / 0.6445 GB, free: 18.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005036/1.709, allocations: 75.97 kB / 0.6446 GB, free: 18.48 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002291/1.711, allocations: 0.7216 MB / 0.6453 GB, free: 17.76 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.173e-06/1.711, allocations: 4 kB / 0.6453 GB, free: 17.76 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005841/1.717, allocations: 0.906 MB / 0.6462 GB, free: 16.85 MB / 426.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 (174): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 40 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {6 9,6 9,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.02694/1.744, allocations: 8.884 MB / 0.6549 GB, free: 7.859 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01575/1.76, allocations: 4.555 MB / 0.6593 GB, free: 3.289 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/1.76, allocations: 0 / 0.6593 GB, free: 3.289 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008642/1.769, allocations: 2.22 MB / 0.6615 GB, free: 1.07 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00395/1.773, allocations: 265.2 kB / 0.6617 GB, free: 0.8242 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.382/2.155, allocations: 8.049 MB / 0.6696 GB, free: 94.66 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006927/2.162, allocations: 3.03 MB / 0.6726 GB, free: 93.89 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002997/2.165, allocations: 0.5475 MB / 0.6731 GB, free: 93.88 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002996/2.168, allocations: 1.109 MB / 0.6742 GB, free: 93.87 MB / 426.7 MB Notification: Performance of SimCode: time 1.614e-06/2.168, allocations: 2.094 kB / 0.6742 GB, free: 93.87 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1385/2.306, allocations: 62.91 MB / 0.7356 GB, free: 72.31 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002662/2.307, allocations: 195.2 kB / 0.7358 GB, free: 72.09 MB / 426.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -c -o PhotoVoltaics_PhotoVoltaics_ComponentTesting_MultiPhaseVoltageControlledConverter.o PhotoVoltaics_PhotoVoltaics_ComponentTesting_MultiPhaseVoltageControlledConverter.c In file included from PhotoVoltaics_PhotoVoltaics_ComponentTesting_MultiPhaseVoltageControlledConverter.c:7: In file included from ./PhotoVoltaics_PhotoVoltaics_ComponentTesting_MultiPhaseVoltageControlledConverter_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_MultiPhaseVoltageControlledConverter.c:151:70: error: assigning to 'modelica_real' (aka 'double') from incompatible type 'Complex_array' (aka 'struct base_array_s') data->localData[0]->realVars[108] /* converter.powerAC variable */ = tmp3; ^ ~~~~ 2 warnings and 1 error generated. : recipe for target 'PhotoVoltaics_PhotoVoltaics_ComponentTesting_MultiPhaseVoltageControlledConverter.o' failed make: *** [PhotoVoltaics_PhotoVoltaics_ComponentTesting_MultiPhaseVoltageControlledConverter.o] Error 1