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: translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001019/0.001018, allocations: 175 kB / 8.349 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.425/1.425, 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.0008658/0.0008657, allocations: 86.48 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.2026/0.2026, allocations: 37.99 MB / 348 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.814e-05/1.808e-05, allocations: 0 / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1043, allocations: 56.33 MB / 466.9 MB, free: 6.562 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3565/0.4609, allocations: 86.29 MB / 0.5402 GB, free: 8.668 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002581/0.4612, allocations: 79.95 kB / 0.5403 GB, free: 8.59 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.005258/0.4665, allocations: 1.65 MB / 0.5419 GB, free: 6.945 MB / 379.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4665, allocations: 0 / 0.5419 GB, free: 6.945 MB / 379.1 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.4666, allocations: 0 / 0.5419 GB, free: 6.945 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.0004009/0.467, allocations: 416.8 kB / 0.5423 GB, free: 6.488 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.467, allocations: 12.03 kB / 0.5423 GB, free: 6.477 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.84e-05/0.4671, allocations: 9.766 kB / 0.5423 GB, free: 6.469 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002458/0.4673, allocations: 194.8 kB / 0.5425 GB, free: 6.238 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.4674, allocations: 0 / 0.5425 GB, free: 6.238 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.626e-05/0.4674, allocations: 4 kB / 0.5425 GB, free: 6.234 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001232/0.4675, allocations: 55.97 kB / 0.5426 GB, free: 6.18 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000123/0.4676, allocations: 89.61 kB / 0.5427 GB, free: 6.086 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.4677, allocations: 3.984 kB / 0.5427 GB, free: 6.082 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.4677, allocations: 0 / 0.5427 GB, free: 6.082 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.359e-06/0.4677, allocations: 0 / 0.5427 GB, free: 6.082 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001687/0.4679, allocations: 160.3 kB / 0.5428 GB, free: 5.891 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001243/0.468, allocations: 101.8 kB / 0.5429 GB, free: 5.785 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.304e-05/0.4681, allocations: 84.81 kB / 0.543 GB, free: 5.699 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.456e-06/0.4681, allocations: 0 / 0.543 GB, free: 5.699 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.522e-05/0.4681, allocations: 30.56 kB / 0.543 GB, free: 5.66 MB / 379.1 MB Notification: Performance of pre-optimization done (n=24): time 1.472e-06/0.4681, allocations: 0 / 0.543 GB, free: 5.66 MB / 379.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003601/0.4685, allocations: 181.7 kB / 0.5432 GB, free: 5.477 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.777e-05/0.4686, allocations: 101.1 kB / 0.5433 GB, free: 5.359 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.4687, allocations: 126.2 kB / 0.5434 GB, free: 5.227 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.4687, allocations: 25.7 kB / 0.5434 GB, free: 5.195 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.694e-05/0.4688, allocations: 92.58 kB / 0.5435 GB, free: 5.102 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.808e-05/0.4689, allocations: 74.81 kB / 0.5436 GB, free: 5.027 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.579e-06/0.4689, allocations: 0 / 0.5436 GB, free: 5.027 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.469, allocations: 327.4 kB / 0.5439 GB, free: 4.699 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.027e-05/0.4691, allocations: 55.98 kB / 0.544 GB, free: 4.645 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.266e-05/0.4692, allocations: 55.97 kB / 0.544 GB, free: 4.59 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001291/0.4693, allocations: 87.95 kB / 0.5441 GB, free: 4.504 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.4693, allocations: 4.031 kB / 0.5441 GB, free: 4.5 MB / 379.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002372/0.4696, allocations: 177.3 kB / 0.5443 GB, free: 4.32 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.836e-05/0.4696, allocations: 73.59 kB / 0.5443 GB, free: 4.242 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.4696, allocations: 0 / 0.5443 GB, free: 4.242 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.4697, allocations: 0 / 0.5443 GB, free: 4.242 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.4697, allocations: 0 / 0.5443 GB, free: 4.242 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.077e-06/0.4697, allocations: 0 / 0.5443 GB, free: 4.242 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.751e-05/0.4697, allocations: 11.84 kB / 0.5444 GB, free: 4.23 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.277e-05/0.4698, allocations: 8 kB / 0.5444 GB, free: 4.223 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.000165/0.4699, allocations: 170.7 kB / 0.5445 GB, free: 4.043 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.842e-05/0.47, allocations: 19.77 kB / 0.5445 GB, free: 4.023 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.184e-05/0.47, allocations: 8.75 kB / 0.5446 GB, free: 4.016 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.47, allocations: 0 / 0.5446 GB, free: 4.016 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.47, allocations: 3.984 kB / 0.5446 GB, free: 4.012 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.47, allocations: 0 / 0.5446 GB, free: 4.012 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001276/0.4702, allocations: 174 kB / 0.5447 GB, free: 3.805 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.4702, allocations: 0 / 0.5447 GB, free: 3.805 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.112e-06/0.4702, allocations: 0 / 0.5447 GB, free: 3.805 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.4702, allocations: 0 / 0.5447 GB, free: 3.805 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.81e-05/0.4702, allocations: 11.83 kB / 0.5447 GB, free: 3.797 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.4702, allocations: 4 kB / 0.5447 GB, free: 3.793 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.4702, allocations: 0 / 0.5447 GB, free: 3.793 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004115/0.4706, allocations: 356.7 kB / 0.5451 GB, free: 3.426 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.903e-05/0.4707, allocations: 96.84 kB / 0.5452 GB, free: 3.312 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.521e-05/0.4707, allocations: 4 kB / 0.5452 GB, free: 3.309 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.013e-05/0.4708, allocations: 7.953 kB / 0.5452 GB, free: 3.301 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.757e-05/0.4708, allocations: 4 kB / 0.5452 GB, free: 3.297 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.475e-05/0.4708, allocations: 8 kB / 0.5452 GB, free: 3.289 MB / 379.1 MB Notification: Performance of sorting global known variables: time 5.505e-05/0.4709, allocations: 99.3 kB / 0.5453 GB, free: 3.191 MB / 379.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4709, allocations: 0 / 0.5453 GB, free: 3.191 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.0002257/0.4711, allocations: 44 kB / 0.5453 GB, free: 3.148 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.0001851/0.4713, allocations: 121 kB / 0.5454 GB, free: 3.023 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.0006128/0.4719, allocations: 0.6867 MB / 0.5461 GB, free: 2.324 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.4719, allocations: 0 / 0.5461 GB, free: 2.324 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004307/0.4724, allocations: 0.5617 MB / 0.5467 GB, free: 1.75 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001911/0.4726, allocations: 24.06 kB / 0.5467 GB, free: 1.727 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004855/0.4731, allocations: 328.8 kB / 0.547 GB, free: 1.379 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.4734, allocations: 0.7238 MB / 0.5477 GB, free: 0.625 MB / 379.1 MB Notification: Performance of simCode: alias equations: time 2.103e-05/0.4734, allocations: 4 kB / 0.5477 GB, free: 0.6211 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.112e-05/0.4734, allocations: 7.438 kB / 0.5477 GB, free: 0.6133 MB / 379.1 MB Notification: Performance of SimCode: time 1.733e-06/0.4734, allocations: 3.938 kB / 0.5477 GB, free: 0.6094 MB / 379.1 MB Notification: Performance of Templates: time 0.004325/0.4778, allocations: 1.635 MB / 0.5493 GB, free: 14.98 MB / 395.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.makefile make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -Os -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -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 clang -Os -fPIC -falign-functions -mfpmath=sse -Os -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -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 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); ^~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c/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); ^ 1 warning and 1 error generated. make: *** [: PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2_functions.o] Error 1