Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.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_matrixEqCirc1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1",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.0009949/0.0009944, allocations: 175.6 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.704/1.704, 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.0008528/0.0008528, allocations: 95.09 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.1846/0.1846, allocations: 37.99 MB / 348 MB, free: 7.773 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.334e-05/2.339e-05, allocations: 4 kB / 410.7 MB, free: 46.85 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1342, allocations: 56.32 MB / 467 MB, free: 6.465 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4376/0.5719, allocations: 86.33 MB / 0.5403 GB, free: 8.473 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002845/0.5723, allocations: 79.95 kB / 0.5404 GB, free: 8.395 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.005204/0.5775, allocations: 1.546 MB / 0.5419 GB, free: 6.859 MB / 379.1 MB Notification: Performance of FrontEnd: time 3.727e-06/0.5775, allocations: 0 / 0.5419 GB, free: 6.859 MB / 379.1 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.5775, allocations: 1.859 kB / 0.5419 GB, free: 6.859 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.000384/0.5779, allocations: 392.5 kB / 0.5423 GB, free: 6.43 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.578, allocations: 8.031 kB / 0.5423 GB, free: 6.422 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.5e-05/0.578, allocations: 7.906 kB / 0.5423 GB, free: 6.414 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002083/0.5783, allocations: 186.8 kB / 0.5425 GB, free: 6.191 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.646e-06/0.5783, allocations: 0 / 0.5425 GB, free: 6.191 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.16e-05/0.5783, allocations: 0 / 0.5425 GB, free: 6.191 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001009/0.5784, allocations: 39.92 kB / 0.5425 GB, free: 6.152 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001039/0.5785, allocations: 53.69 kB / 0.5426 GB, free: 6.094 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.5785, allocations: 0 / 0.5426 GB, free: 6.094 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.825e-05/0.5786, allocations: 3.984 kB / 0.5426 GB, free: 6.09 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.5786, allocations: 4 kB / 0.5426 GB, free: 6.086 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001489/0.5787, allocations: 142.1 kB / 0.5427 GB, free: 5.91 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.895e-05/0.5788, allocations: 54.56 kB / 0.5428 GB, free: 5.848 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.104e-05/0.5789, allocations: 44.88 kB / 0.5428 GB, free: 5.801 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.157e-06/0.5789, allocations: 4.75 kB / 0.5428 GB, free: 5.797 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.139e-05/0.5789, allocations: 34.56 kB / 0.5429 GB, free: 5.754 MB / 379.1 MB Notification: Performance of pre-optimization done (n=12): time 1.102e-06/0.579, allocations: 0 / 0.5429 GB, free: 5.754 MB / 379.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003011/0.5793, allocations: 109.5 kB / 0.543 GB, free: 5.641 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.508e-05/0.5793, allocations: 85.33 kB / 0.5431 GB, free: 5.539 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.02e-05/0.5794, allocations: 114.8 kB / 0.5432 GB, free: 5.422 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/0.5794, allocations: 25.7 kB / 0.5432 GB, free: 5.391 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.458e-05/0.5795, allocations: 92.17 kB / 0.5433 GB, free: 5.297 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.953e-05/0.5796, allocations: 43.39 kB / 0.5433 GB, free: 5.254 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-06/0.5796, allocations: 0 / 0.5433 GB, free: 5.254 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.5797, allocations: 318.8 kB / 0.5436 GB, free: 4.934 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.94e-05/0.5797, allocations: 27.98 kB / 0.5436 GB, free: 4.906 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.448e-05/0.5798, allocations: 27.98 kB / 0.5437 GB, free: 4.879 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.705e-05/0.5799, allocations: 43.97 kB / 0.5437 GB, free: 4.836 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.5799, allocations: 0 / 0.5437 GB, free: 4.836 MB / 379.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001582/0.58, allocations: 113.5 kB / 0.5438 GB, free: 4.719 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.831e-05/0.5801, allocations: 45.69 kB / 0.5439 GB, free: 4.668 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.5801, allocations: 12 kB / 0.5439 GB, free: 4.656 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.5801, allocations: 0 / 0.5439 GB, free: 4.656 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.412e-06/0.5801, allocations: 3.938 kB / 0.5439 GB, free: 4.652 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.313e-06/0.5802, allocations: 3.984 kB / 0.5439 GB, free: 4.648 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.845e-05/0.5802, allocations: 11.84 kB / 0.5439 GB, free: 4.637 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.097e-05/0.5802, allocations: 0 / 0.5439 GB, free: 4.637 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.000118/0.5803, allocations: 146.7 kB / 0.544 GB, free: 4.48 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002455/0.5806, allocations: 186 kB / 0.5442 GB, free: 4.293 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.414e-05/0.5806, allocations: 7.906 kB / 0.5442 GB, free: 4.285 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.595e-05/0.5806, allocations: 16.64 kB / 0.5442 GB, free: 4.27 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.5807, allocations: 2.188 kB / 0.5442 GB, free: 4.27 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.5807, allocations: 0 / 0.5442 GB, free: 4.27 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.5807, allocations: 0 / 0.5442 GB, free: 4.27 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001117/0.5808, allocations: 146.2 kB / 0.5444 GB, free: 4.09 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.5808, allocations: 3.953 kB / 0.5444 GB, free: 4.086 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.5808, allocations: 0 / 0.5444 GB, free: 4.086 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.5808, allocations: 4 kB / 0.5444 GB, free: 4.082 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.5808, allocations: 3.984 kB / 0.5444 GB, free: 4.078 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.5808, allocations: 0 / 0.5444 GB, free: 4.078 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.5809, allocations: 4 kB / 0.5444 GB, free: 4.074 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002627/0.5811, allocations: 216.8 kB / 0.5446 GB, free: 3.844 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.325e-05/0.5812, allocations: 88.97 kB / 0.5447 GB, free: 3.738 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.999e-05/0.5812, allocations: 0 / 0.5447 GB, free: 3.738 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.959e-05/0.5812, allocations: 7.984 kB / 0.5447 GB, free: 3.73 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.452e-05/0.5813, allocations: 0 / 0.5447 GB, free: 3.73 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.5813, allocations: 7.984 kB / 0.5447 GB, free: 3.723 MB / 379.1 MB Notification: Performance of sorting global known variables: time 4.886e-05/0.5813, allocations: 91.28 kB / 0.5448 GB, free: 3.633 MB / 379.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5813, allocations: 4.031 kB / 0.5448 GB, free: 3.629 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.0002147/0.5816, allocations: 35.94 kB / 0.5448 GB, free: 3.594 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.0006136/0.5822, allocations: 0.7542 MB / 0.5456 GB, free: 2.809 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.0003063/0.5825, allocations: 283.3 kB / 0.5458 GB, free: 2.52 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.5825, allocations: 0 / 0.5458 GB, free: 2.52 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001987/0.5827, allocations: 219.4 kB / 0.546 GB, free: 2.293 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001809/0.5829, allocations: 19.89 kB / 0.5461 GB, free: 2.273 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004843/0.5834, allocations: 237.7 kB / 0.5463 GB, free: 2.004 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002727/0.5837, allocations: 0.7002 MB / 0.547 GB, free: 1.277 MB / 379.1 MB Notification: Performance of simCode: alias equations: time 1.865e-05/0.5837, allocations: 4 kB / 0.547 GB, free: 1.273 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.151e-05/0.5837, allocations: 19.42 kB / 0.547 GB, free: 1.254 MB / 379.1 MB Notification: Performance of SimCode: time 2.61e-07/0.5837, allocations: 0 / 0.547 GB, free: 1.254 MB / 379.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02179/0.6055, allocations: 1.919 MB / 0.5489 GB, free: 15.34 MB / 395.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002476/0.6059, allocations: 164.9 kB / 0.549 GB, free: 15.14 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_matrixEqCirc1 -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_matrixEqCirc1_FMU.o PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1_FMU.c In file included from PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1_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_matrixEqCirc1_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_matrixEqCirc1 -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_matrixEqCirc1.o PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1.c In file included from PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1.c:7: In file included from ./PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1_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_matrixEqCirc1 -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_matrixEqCirc1_functions.o PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1_functions.c In file included from PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1_functions.c:1: In file included from ./PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1_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_matrixEqCirc1_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_matrixEqCirc1_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_matrixEqCirc1_functions.o] Error 1