Running command: "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMP3,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PhotoVoltaics): time 2.183/2.183, allocations: 211.3 MB / 223.4 MB, free: 3.637 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.885e-05/3.895e-05, allocations: 7.984 kB / 277.7 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1048, allocations: 48.77 MB / 326.4 MB, free: 13.25 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4482/0.553, allocations: 97.82 MB / 424.3 MB, free: 8.078 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002658/0.5534, allocations: 74.47 kB / 424.3 MB, free: 8.047 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8701/1.424, allocations: 145.2 MB / 0.5562 GB, free: 99.37 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.366e-06/1.424, allocations: 0 / 0.5562 GB, free: 99.37 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002656/1.424, allocations: 98.84 kB / 0.5563 GB, free: 99.36 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.02023/1.444, allocations: 4.115 MB / 0.5603 GB, free: 97.51 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/1.444, allocations: 11.56 kB / 0.5603 GB, free: 97.51 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002478/1.447, allocations: 0.6001 MB / 0.5609 GB, free: 97.18 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008123/1.455, allocations: 0.9865 MB / 0.5619 GB, free: 96.9 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008611/1.463, allocations: 2.793 MB / 0.5646 GB, free: 95.29 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004026/1.464, allocations: 309.6 kB / 0.5649 GB, free: 95.15 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001433/1.465, allocations: 398.3 kB / 0.5653 GB, free: 95.02 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01931/1.485, allocations: 6.839 MB / 0.572 GB, free: 91.78 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000151/1.485, allocations: 3.562 kB / 0.572 GB, free: 91.78 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001127/1.486, allocations: 173.4 kB / 0.5721 GB, free: 91.65 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003647/1.486, allocations: 266.7 kB / 0.5724 GB, free: 91.57 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01657/1.503, allocations: 5.638 MB / 0.5779 GB, free: 89 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09871/1.602, allocations: 23.16 MB / 0.6005 GB, free: 66.17 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01478/1.617, allocations: 4.219 MB / 0.6046 GB, free: 61.88 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007498/1.624, allocations: 2.776 MB / 0.6074 GB, free: 59.09 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004111/1.625, allocations: 148.8 kB / 0.6075 GB, free: 58.94 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005625/1.63, allocations: 2.432 MB / 0.6099 GB, free: 56.46 MB / 426.7 MB Notification: Performance of pre-optimization done (n=295): time 6.983e-06/1.63, allocations: 0 / 0.6099 GB, free: 56.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=295): time 0.01555/1.646, allocations: 5.249 MB / 0.615 GB, free: 51.15 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001256/1.646, allocations: 217.5 kB / 0.6152 GB, free: 50.9 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002399/1.649, allocations: 1.159 MB / 0.6163 GB, free: 49.73 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006718/1.649, allocations: 61.7 kB / 0.6164 GB, free: 49.66 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001424/1.651, allocations: 1.525 MB / 0.6179 GB, free: 48.12 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001496/1.652, allocations: 0.9826 MB / 0.6188 GB, free: 47.15 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003807/1.653, allocations: 52 kB / 0.6189 GB, free: 47.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002658/1.653, allocations: 444.4 kB / 0.6193 GB, free: 46.66 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004735/1.658, allocations: 2.118 MB / 0.6214 GB, free: 44.54 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005661/1.663, allocations: 2.63 MB / 0.6239 GB, free: 41.72 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005856/1.669, allocations: 2.58 MB / 0.6265 GB, free: 39.12 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.448e-05/1.669, allocations: 7.938 kB / 0.6265 GB, free: 39.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=397) (initialization): time 0.01468/1.684, allocations: 5.826 MB / 0.6322 GB, free: 33.22 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.734e-05/1.684, allocations: 37.7 kB / 0.6322 GB, free: 33.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.643e-05/1.684, allocations: 12.44 kB / 0.6322 GB, free: 33.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003589/1.688, allocations: 1.213 MB / 0.6334 GB, free: 31.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00488/1.693, allocations: 0.546 MB / 0.6339 GB, free: 31.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007381/1.7, allocations: 5.552 MB / 0.6394 GB, free: 25.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004752/1.705, allocations: 389 kB / 0.6397 GB, free: 25.24 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008834/1.706, allocations: 123.9 kB / 0.6398 GB, free: 25.12 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,$PRE.mpTracker.vRef,mpTracker.vRef,converter.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (286): * Single equations (assignments): 241 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 40 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 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.0009832/1.707, allocations: 286 kB / 0.6401 GB, free: 24.83 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006876/1.708, allocations: 181.6 kB / 0.6403 GB, free: 24.65 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01767/1.725, allocations: 5.693 MB / 0.6458 GB, free: 18.89 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01651/1.742, allocations: 5.184 MB / 0.6509 GB, free: 13.66 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.595e-05/1.742, allocations: 4 kB / 0.6509 GB, free: 13.65 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.636e-05/1.742, allocations: 19.61 kB / 0.6509 GB, free: 13.64 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02738/1.769, allocations: 11.31 MB / 0.662 GB, free: 2.246 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.519e-05/1.769, allocations: 0 / 0.662 GB, free: 2.246 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003092/1.773, allocations: 335.7 kB / 0.6623 GB, free: 1.918 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00697/1.78, allocations: 1.636 MB / 0.6639 GB, free: 268 kB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006367/1.78, allocations: 75.95 kB / 0.664 GB, free: 192 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3218/2.102, allocations: 4.84 MB / 0.6687 GB, free: 92.25 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/2.102, allocations: 1.531 kB / 0.6687 GB, free: 92.25 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02122/2.123, allocations: 8.408 MB / 0.6769 GB, free: 91.77 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002834/2.126, allocations: 0.747 MB / 0.6776 GB, free: 91.66 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008845/2.127, allocations: 45.8 kB / 0.6777 GB, free: 91.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002954/2.13, allocations: 142.1 kB / 0.6778 GB, free: 91.66 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001016/2.131, allocations: 235.8 kB / 0.678 GB, free: 91.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000406/2.132, allocations: 81.59 kB / 0.6781 GB, free: 91.66 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002123/2.134, allocations: 0.8927 MB / 0.679 GB, free: 91.54 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.91e-07/2.134, allocations: 0 / 0.679 GB, free: 91.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00581/2.14, allocations: 1.032 MB / 0.68 GB, free: 91.42 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (converter.integrator.y,converter.potentialSensor.plug_p.reference.gamma) * Number of discrete variables: 6 ($whenCondition1,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef) * Number of discrete states: 7 (mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * Top-level inputs: 0 Notification: Strong component statistics for simulation (186): * Single equations (assignments): 142 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,6 9,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.03066/2.17, allocations: 9.588 MB / 0.6894 GB, free: 89.84 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01801/2.188, allocations: 4.994 MB / 0.6942 GB, free: 88.68 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/2.189, allocations: 0 / 0.6942 GB, free: 88.68 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009443/2.198, allocations: 2.448 MB / 0.6966 GB, free: 87.68 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005025/2.203, allocations: 329.9 kB / 0.6969 GB, free: 87.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0335/2.237, allocations: 8.519 MB / 0.7053 GB, free: 84.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007315/2.244, allocations: 3.163 MB / 0.7084 GB, free: 82.7 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004487/2.249, allocations: 0.5823 MB / 0.7089 GB, free: 82.68 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004243/2.253, allocations: 1.251 MB / 0.7101 GB, free: 81.63 MB / 426.7 MB Notification: Performance of SimCode: time 1.312e-06/2.253, allocations: 0 / 0.7101 GB, free: 81.63 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.17/2.423, allocations: 71.19 MB / 0.7797 GB, free: 33.68 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001746/2.423, allocations: 168.2 kB / 0.7798 GB, free: 33.46 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_Examples_SimpleModuleMP3.o PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3.c In file included from PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3.c:7: In file included from ./PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3_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_Examples_SimpleModuleMP3.c:175:70: error: assigning to 'modelica_real' (aka 'double') from incompatible type 'Complex_array' (aka 'struct base_array_s') data->localData[0]->realVars[109] /* converter.powerAC variable */ = tmp3; ^ ~~~~ 2 warnings and 1 error generated. : recipe for target 'PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3.o' failed make: *** [PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP3.o] Error 1