Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.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_matrixEqCirc2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2",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.001196/0.001196, allocations: 176.4 kB / 8.346 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.724/1.724, 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.0008418/0.0008419, allocations: 85.27 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1774/0.1774, allocations: 37.99 MB / 348 MB, free: 7.77 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.685e-05/1.688e-05, allocations: 0 / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1226, allocations: 56.33 MB / 467 MB, free: 6.477 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4389/0.5616, allocations: 86.3 MB / 0.5403 GB, free: 8.5 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002223/0.5619, allocations: 79.95 kB / 0.5404 GB, free: 8.422 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.004854/0.5668, allocations: 1.662 MB / 0.542 GB, free: 6.773 MB / 379.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5668, allocations: 4 kB / 0.542 GB, free: 6.77 MB / 379.1 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.5668, allocations: 0 / 0.542 GB, free: 6.77 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0004192/0.5672, allocations: 424.3 kB / 0.5424 GB, free: 6.309 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.503e-05/0.5673, allocations: 8.031 kB / 0.5424 GB, free: 6.301 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.505e-05/0.5673, allocations: 8.891 kB / 0.5424 GB, free: 6.293 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002523/0.5676, allocations: 198.8 kB / 0.5426 GB, free: 6.059 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.5676, allocations: 3.938 kB / 0.5426 GB, free: 6.055 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.408e-05/0.5676, allocations: 4 kB / 0.5426 GB, free: 6.051 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001078/0.5678, allocations: 51.97 kB / 0.5427 GB, free: 6 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001178/0.5679, allocations: 93.61 kB / 0.5428 GB, free: 5.902 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.5679, allocations: 0 / 0.5428 GB, free: 5.902 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.238e-05/0.5679, allocations: 0 / 0.5428 GB, free: 5.902 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.5679, allocations: 3.984 kB / 0.5428 GB, free: 5.898 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001538/0.5681, allocations: 158 kB / 0.5429 GB, free: 5.707 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001108/0.5682, allocations: 94.48 kB / 0.543 GB, free: 5.605 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.994e-05/0.5683, allocations: 88.86 kB / 0.5431 GB, free: 5.516 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.404e-06/0.5683, allocations: 0 / 0.5431 GB, free: 5.516 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.224e-05/0.5683, allocations: 34.56 kB / 0.5431 GB, free: 5.473 MB / 379.1 MB Notification: Performance of pre-optimization done (n=24): time 1.092e-06/0.5683, allocations: 0 / 0.5431 GB, free: 5.473 MB / 379.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003332/0.5687, allocations: 177.7 kB / 0.5433 GB, free: 5.293 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.441e-05/0.5688, allocations: 101.1 kB / 0.5434 GB, free: 5.176 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.844e-05/0.5689, allocations: 118.2 kB / 0.5435 GB, free: 5.051 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.5689, allocations: 25.7 kB / 0.5435 GB, free: 5.02 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.092e-05/0.5689, allocations: 96.56 kB / 0.5436 GB, free: 4.922 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.027e-05/0.569, allocations: 78.81 kB / 0.5437 GB, free: 4.844 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.218e-06/0.569, allocations: 4.031 kB / 0.5437 GB, free: 4.84 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.5692, allocations: 322.8 kB / 0.544 GB, free: 4.516 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.176e-05/0.5692, allocations: 59.97 kB / 0.5441 GB, free: 4.457 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.805e-05/0.5693, allocations: 55.92 kB / 0.5441 GB, free: 4.402 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001091/0.5694, allocations: 84.02 kB / 0.5442 GB, free: 4.32 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.5694, allocations: 0 / 0.5442 GB, free: 4.32 MB / 379.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002113/0.5696, allocations: 177.3 kB / 0.5444 GB, free: 4.141 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.485e-05/0.5697, allocations: 65.66 kB / 0.5444 GB, free: 4.07 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.5697, allocations: 0 / 0.5444 GB, free: 4.07 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.5697, allocations: 4.062 kB / 0.5444 GB, free: 4.066 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.252e-06/0.5698, allocations: 0 / 0.5444 GB, free: 4.066 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.5698, allocations: 0 / 0.5444 GB, free: 4.066 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.549e-05/0.5698, allocations: 11.84 kB / 0.5445 GB, free: 4.055 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.166e-05/0.5698, allocations: 12 kB / 0.5445 GB, free: 4.043 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.0001477/0.57, allocations: 166.6 kB / 0.5446 GB, free: 3.867 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004015/0.5704, allocations: 333.1 kB / 0.5449 GB, free: 3.535 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.082e-05/0.5704, allocations: 11.91 kB / 0.545 GB, free: 3.523 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.175e-05/0.5705, allocations: 8.75 kB / 0.545 GB, free: 3.516 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.5705, allocations: 8.016 kB / 0.545 GB, free: 3.508 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.5705, allocations: 4 kB / 0.545 GB, free: 3.504 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.5705, allocations: 3.938 kB / 0.545 GB, free: 3.5 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001164/0.5706, allocations: 170 kB / 0.5451 GB, free: 3.297 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.5706, allocations: 3.953 kB / 0.5451 GB, free: 3.293 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.875e-06/0.5706, allocations: 10.5 kB / 0.5452 GB, free: 3.285 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.5706, allocations: 0 / 0.5452 GB, free: 3.285 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.5707, allocations: 4 kB / 0.5452 GB, free: 3.281 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.5707, allocations: 0 / 0.5452 GB, free: 3.281 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.5707, allocations: 0 / 0.5452 GB, free: 3.281 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003933/0.5711, allocations: 360.6 kB / 0.5455 GB, free: 2.91 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.438e-05/0.5711, allocations: 96.81 kB / 0.5456 GB, free: 2.797 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.572e-05/0.5711, allocations: 4 kB / 0.5456 GB, free: 2.793 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.471e-05/0.5712, allocations: 3.984 kB / 0.5456 GB, free: 2.789 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.094e-05/0.5712, allocations: 4 kB / 0.5456 GB, free: 2.785 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.5712, allocations: 4 kB / 0.5456 GB, free: 2.781 MB / 379.1 MB Notification: Performance of sorting global known variables: time 5.641e-05/0.5713, allocations: 103.3 kB / 0.5457 GB, free: 2.68 MB / 379.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5713, allocations: 3.938 kB / 0.5457 GB, free: 2.676 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.0002177/0.5715, allocations: 40.03 kB / 0.5458 GB, free: 2.637 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.0006974/0.5722, allocations: 0.9011 MB / 0.5466 GB, free: 1.707 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.0006482/0.5729, allocations: 0.6828 MB / 0.5473 GB, free: 1.012 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.5729, allocations: 0 / 0.5473 GB, free: 1.012 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004265/0.5733, allocations: 0.5618 MB / 0.5478 GB, free: 448 kB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001929/0.5735, allocations: 16.16 kB / 0.5479 GB, free: 432 kB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006015/0.5741, allocations: 390.4 kB / 0.5482 GB, free: 0 / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003145/0.5745, allocations: 0.7238 MB / 0.5489 GB, free: 15.25 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 2.653e-05/0.5745, allocations: 3.906 kB / 0.5489 GB, free: 15.24 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.135e-05/0.5746, allocations: 35.38 kB / 0.549 GB, free: 15.21 MB / 395.1 MB Notification: Performance of SimCode: time 2.41e-07/0.5746, allocations: 0 / 0.549 GB, free: 15.21 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02453/0.5991, allocations: 2.864 MB / 0.5518 GB, free: 12.35 MB / 395.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001673/0.5994, allocations: 157.8 kB / 0.5519 GB, free: 12.16 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_matrixEqCirc2 -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_matrixEqCirc2_FMU.o PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2_FMU.c In file included from PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2_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_matrixEqCirc2_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_matrixEqCirc2 -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_matrixEqCirc2.o PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2.c In file included from PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2.c:7: In file included from ./PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2_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_matrixEqCirc2 -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_matrixEqCirc2_functions.o PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2_functions.c In file included from PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2_functions.c:1: In file included from ./PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2_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_matrixEqCirc2_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_matrixEqCirc2_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_matrixEqCirc2_functions.o] Error 1