Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001131/0.001131, allocations: 176.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.705/1.705, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009016/0.0009016, allocations: 78.84 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1839/0.1839, allocations: 37.99 MB / 348 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.087e-05/2.09e-05, allocations: 4 kB / 410.7 MB, free: 46.85 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1347, allocations: 56.33 MB / 467 MB, free: 6.465 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4965/0.6312, allocations: 86.3 MB / 0.5403 GB, free: 8.484 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/0.6316, allocations: 71.95 kB / 0.5404 GB, free: 8.414 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.005633/0.6372, allocations: 1.788 MB / 0.5421 GB, free: 6.637 MB / 379.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.6373, allocations: 0 / 0.5421 GB, free: 6.637 MB / 379.1 MB Notification: Performance of Transformations before backend: time 1.419e-05/0.6373, allocations: 4.984 kB / 0.5421 GB, free: 6.633 MB / 379.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0004911/0.6378, allocations: 468.1 kB / 0.5426 GB, free: 6.129 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.841e-05/0.6379, allocations: 8.031 kB / 0.5426 GB, free: 6.121 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.763e-05/0.6379, allocations: 16.69 kB / 0.5426 GB, free: 6.105 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002836/0.6382, allocations: 203.2 kB / 0.5428 GB, free: 5.863 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.6382, allocations: 0 / 0.5428 GB, free: 5.863 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.382e-05/0.6383, allocations: 0 / 0.5428 GB, free: 5.863 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001634/0.6384, allocations: 96.28 kB / 0.5429 GB, free: 5.766 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001897/0.6386, allocations: 126.6 kB / 0.543 GB, free: 5.637 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.6387, allocations: 0 / 0.543 GB, free: 5.637 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.441e-05/0.6387, allocations: 4 kB / 0.543 GB, free: 5.633 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.6387, allocations: 0 / 0.543 GB, free: 5.633 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002086/0.6389, allocations: 172.4 kB / 0.5432 GB, free: 5.43 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001857/0.6391, allocations: 154.9 kB / 0.5433 GB, free: 5.27 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001538/0.6393, allocations: 141.2 kB / 0.5435 GB, free: 5.129 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.058e-05/0.6393, allocations: 0 / 0.5435 GB, free: 5.129 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/0.6393, allocations: 30.56 kB / 0.5435 GB, free: 5.09 MB / 379.1 MB Notification: Performance of pre-optimization done (n=40): time 1.122e-06/0.6393, allocations: 4 kB / 0.5435 GB, free: 5.086 MB / 379.1 MB Notification: Performance of matching and sorting (n=40): time 0.0005213/0.6399, allocations: 271.6 kB / 0.5438 GB, free: 4.816 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.008e-05/0.6399, allocations: 105.8 kB / 0.5439 GB, free: 4.695 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001358/0.6401, allocations: 130.2 kB / 0.544 GB, free: 4.555 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 2.773e-05/0.6401, allocations: 25.7 kB / 0.544 GB, free: 4.523 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.037e-05/0.6402, allocations: 96.91 kB / 0.5441 GB, free: 4.426 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001332/0.6403, allocations: 130 kB / 0.5442 GB, free: 4.297 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.622e-06/0.6404, allocations: 0 / 0.5442 GB, free: 4.297 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.6405, allocations: 338.8 kB / 0.5446 GB, free: 3.957 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.6407, allocations: 87.97 kB / 0.5446 GB, free: 3.871 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001051/0.6408, allocations: 99.83 kB / 0.5447 GB, free: 3.773 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000166/0.641, allocations: 127.9 kB / 0.5449 GB, free: 3.648 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.641, allocations: 0 / 0.5449 GB, free: 3.648 MB / 379.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003524/0.6413, allocations: 273.6 kB / 0.5451 GB, free: 3.375 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.366e-05/0.6414, allocations: 85.62 kB / 0.5452 GB, free: 3.285 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.6415, allocations: 4 kB / 0.5452 GB, free: 3.281 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.6415, allocations: 0 / 0.5452 GB, free: 3.281 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.813e-06/0.6415, allocations: 0 / 0.5452 GB, free: 3.281 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.6415, allocations: 0 / 0.5452 GB, free: 3.281 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.078e-05/0.6416, allocations: 35.62 kB / 0.5452 GB, free: 3.246 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.29e-05/0.6416, allocations: 8 kB / 0.5452 GB, free: 3.238 MB / 379.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.0002122/0.6418, allocations: 194.6 kB / 0.5454 GB, free: 3.035 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006429/0.6425, allocations: 0.5011 MB / 0.5459 GB, free: 2.527 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.442e-05/0.6425, allocations: 27.72 kB / 0.5459 GB, free: 2.5 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.208e-05/0.6426, allocations: 6.188 kB / 0.546 GB, free: 2.492 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.6426, allocations: 4 kB / 0.546 GB, free: 2.488 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.6426, allocations: 0 / 0.546 GB, free: 2.488 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.6426, allocations: 0 / 0.546 GB, free: 2.488 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001712/0.6428, allocations: 190 kB / 0.5461 GB, free: 2.266 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.6428, allocations: 7.953 kB / 0.5461 GB, free: 2.258 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.787e-06/0.6428, allocations: 3.984 kB / 0.5461 GB, free: 2.254 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.6428, allocations: 0 / 0.5461 GB, free: 2.254 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.212e-05/0.6428, allocations: 8 kB / 0.5462 GB, free: 2.246 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.6428, allocations: 0 / 0.5462 GB, free: 2.246 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.6428, allocations: 0 / 0.5462 GB, free: 2.246 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007088/0.6436, allocations: 0.5395 MB / 0.5467 GB, free: 1.688 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.608e-05/0.6436, allocations: 108.8 kB / 0.5468 GB, free: 1.562 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.321e-05/0.6437, allocations: 8 kB / 0.5468 GB, free: 1.555 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.304e-05/0.6437, allocations: 4 kB / 0.5468 GB, free: 1.551 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.31e-05/0.6438, allocations: 11.98 kB / 0.5468 GB, free: 1.539 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.922e-05/0.6438, allocations: 8 kB / 0.5468 GB, free: 1.531 MB / 379.1 MB Notification: Performance of sorting global known variables: time 7.799e-05/0.6439, allocations: 109.7 kB / 0.5469 GB, free: 1.426 MB / 379.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.6439, allocations: 0 / 0.5469 GB, free: 1.426 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.0002571/0.6441, allocations: 59.98 kB / 0.547 GB, free: 1.367 MB / 379.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.001159/0.6453, allocations: 1.088 MB / 0.548 GB, free: 252 kB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.001438/0.6468, allocations: 1.573 MB / 0.5496 GB, free: 14.66 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.6468, allocations: 0 / 0.5496 GB, free: 14.66 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001144/0.6479, allocations: 1.351 MB / 0.5509 GB, free: 13.29 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002175/0.6481, allocations: 16.92 kB / 0.5509 GB, free: 13.28 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009506/0.6491, allocations: 0.5849 MB / 0.5515 GB, free: 12.66 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003794/0.6495, allocations: 0.7556 MB / 0.5522 GB, free: 11.88 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 1.877e-05/0.6495, allocations: 0 / 0.5522 GB, free: 11.88 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.172e-05/0.6496, allocations: 43.42 kB / 0.5523 GB, free: 11.83 MB / 395.1 MB Notification: Performance of SimCode: time 2.9e-07/0.6496, allocations: 0 / 0.5523 GB, free: 11.83 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02472/0.6743, allocations: 4.02 MB / 0.5562 GB, free: 7.816 MB / 395.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001989/0.6746, allocations: 157.6 kB / 0.5563 GB, free: 7.621 MB / 395.1 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -Os -march=native -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3 -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3_FMU.o PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3_FMU.c In file included from PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3_FMU.c:9: In file included from include/openmodelica.h:69: In file included from include/openmodelica_types.h:110: include/gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ include/gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3_FMU.c:54: include/fmi2/fmu2_model_interface.c:73:11: warning: enumeration value 'modelSlaveInitialized' not handled in switch [-Wswitch] switch (comp->state) ^ include/fmi2/fmu2_model_interface.c:162:16: warning: passing 'char **' to parameter of type 'const char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] GC_vasprintf(&str, msg, args); ^~~~ include/util/modelica_string.h:71:31: note: passing argument to parameter 'strp' here int GC_vasprintf(const char **strp, const char *fmt, va_list ap); ^ 4 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -Os -march=native -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3 -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3.o PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3.c In file included from PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3.c:7: In file included from ./PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3_model.h:5: In file included from include/openmodelica.h:69: In file included from include/openmodelica_types.h:110: include/gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ include/gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -Os -march=native -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3 -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3_functions.o PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3_functions.c In file included from PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3_functions.c:1: In file included from ./PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3_functions.h:3: In file included from include/meta/meta_modelica.h:49: include/gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ include/gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3_functions.c:44:24: warning: implicit declaration of function 'diagonal' is invalid in C99 [-Wimplicit-function-declaration] copy_real_array_data(diagonal(tmp4), &_zx); ^ PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3_functions.c:44:24: error: passing 'int' to parameter of incompatible type 'real_array_t' (aka 'struct base_array_s') copy_real_array_data(diagonal(tmp4), &_zx); ^~~~~~~~~~~~~~ include/util/real_array.h:84:53: note: passing argument to parameter 'source' here extern void copy_real_array_data(const real_array_t source, real_array_t* dest); ^ 3 warnings and 1 error generated. make: *** [: PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3_functions.o] Error 1