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: translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_d.4.|zr_q.1.|zr_q.2.|zr_q.3.|zr_q.4.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001552/0.001552, allocations: 177.1 kB / 8.35 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.787/1.787, 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.0008444/0.0008444, allocations: 88.16 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.1637/0.1637, allocations: 37.99 MB / 348 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.965e-05/1.966e-05, allocations: 4 kB / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1046, allocations: 56.33 MB / 466.9 MB, free: 6.57 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3486/0.4533, allocations: 86.29 MB / 0.5402 GB, free: 8.676 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002769/0.4536, allocations: 79.94 kB / 0.5403 GB, free: 8.598 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.005291/0.4589, allocations: 1.79 MB / 0.5421 GB, free: 6.816 MB / 379.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.459, allocations: 0 / 0.5421 GB, free: 6.816 MB / 379.1 MB Notification: Performance of Transformations before backend: time 1.25e-05/0.459, allocations: 4.984 kB / 0.5421 GB, free: 6.812 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.000366/0.4594, allocations: 456.6 kB / 0.5425 GB, free: 6.316 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.4594, allocations: 12.03 kB / 0.5425 GB, free: 6.305 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.585e-05/0.4595, allocations: 12.5 kB / 0.5425 GB, free: 6.293 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002131/0.4597, allocations: 203.2 kB / 0.5427 GB, free: 6.051 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.407e-06/0.4597, allocations: 0 / 0.5427 GB, free: 6.051 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.206e-05/0.4597, allocations: 0 / 0.5427 GB, free: 6.051 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001436/0.4599, allocations: 96.23 kB / 0.5428 GB, free: 5.953 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001458/0.46, allocations: 130.6 kB / 0.5429 GB, free: 5.82 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.513e-06/0.4601, allocations: 0 / 0.5429 GB, free: 5.82 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/0.4601, allocations: 0.875 kB / 0.5429 GB, free: 5.82 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/0.4601, allocations: 0 / 0.5429 GB, free: 5.82 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001474/0.4602, allocations: 170.2 kB / 0.5431 GB, free: 5.617 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001473/0.4604, allocations: 158.1 kB / 0.5432 GB, free: 5.457 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000121/0.4605, allocations: 137.2 kB / 0.5434 GB, free: 5.32 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.785e-06/0.4605, allocations: 0 / 0.5434 GB, free: 5.32 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.4606, allocations: 34.56 kB / 0.5434 GB, free: 5.277 MB / 379.1 MB Notification: Performance of pre-optimization done (n=40): time 8.01e-07/0.4606, allocations: 0 / 0.5434 GB, free: 5.277 MB / 379.1 MB Notification: Performance of matching and sorting (n=40): time 0.0004076/0.461, allocations: 275.5 kB / 0.5437 GB, free: 5.004 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.067e-05/0.4611, allocations: 105.1 kB / 0.5438 GB, free: 4.883 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.4612, allocations: 134.1 kB / 0.5439 GB, free: 4.738 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.4612, allocations: 25.7 kB / 0.5439 GB, free: 4.707 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.522e-05/0.4613, allocations: 92.92 kB / 0.544 GB, free: 4.613 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.939e-05/0.4614, allocations: 134 kB / 0.5441 GB, free: 4.48 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.899e-06/0.4614, allocations: 0 / 0.5441 GB, free: 4.48 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.4615, allocations: 326.8 kB / 0.5444 GB, free: 4.152 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.916e-05/0.4616, allocations: 99.89 kB / 0.5445 GB, free: 4.055 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.361e-05/0.4617, allocations: 95.95 kB / 0.5446 GB, free: 3.961 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001545/0.4619, allocations: 127.9 kB / 0.5448 GB, free: 3.836 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.4619, allocations: 0 / 0.5448 GB, free: 3.836 MB / 379.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003206/0.4622, allocations: 277.5 kB / 0.545 GB, free: 3.559 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.667e-05/0.4623, allocations: 85.62 kB / 0.5451 GB, free: 3.469 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.4623, allocations: 0 / 0.5451 GB, free: 3.469 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.4624, allocations: 4 kB / 0.5451 GB, free: 3.465 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.783e-06/0.4624, allocations: 1.312 kB / 0.5451 GB, free: 3.465 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.4624, allocations: 0 / 0.5451 GB, free: 3.465 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.897e-05/0.4624, allocations: 27.62 kB / 0.5451 GB, free: 3.438 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.307e-05/0.4625, allocations: 8.062 kB / 0.5451 GB, free: 3.43 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.0001566/0.4626, allocations: 198.6 kB / 0.5453 GB, free: 3.223 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.996e-05/0.4627, allocations: 23.77 kB / 0.5454 GB, free: 3.199 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.269e-05/0.4627, allocations: 10.19 kB / 0.5454 GB, free: 3.188 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.4627, allocations: 0 / 0.5454 GB, free: 3.188 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.4627, allocations: 0 / 0.5454 GB, free: 3.188 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.4627, allocations: 0 / 0.5454 GB, free: 3.188 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001455/0.4629, allocations: 193.9 kB / 0.5455 GB, free: 2.961 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.4629, allocations: 4 kB / 0.5456 GB, free: 2.957 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.583e-06/0.4629, allocations: 0.9375 kB / 0.5456 GB, free: 2.957 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.4629, allocations: 4 kB / 0.5456 GB, free: 2.953 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.4629, allocations: 7.953 kB / 0.5456 GB, free: 2.945 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.4629, allocations: 4 kB / 0.5456 GB, free: 2.941 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.4629, allocations: 0 / 0.5456 GB, free: 2.941 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006514/0.4636, allocations: 0.5357 MB / 0.5461 GB, free: 2.387 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.048e-05/0.4637, allocations: 104.7 kB / 0.5462 GB, free: 2.266 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.28e-05/0.4637, allocations: 8 kB / 0.5462 GB, free: 2.258 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.857e-05/0.4637, allocations: 11.95 kB / 0.5462 GB, free: 2.246 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.248e-05/0.4638, allocations: 8.031 kB / 0.5462 GB, free: 2.238 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.846e-05/0.4638, allocations: 12 kB / 0.5462 GB, free: 2.227 MB / 379.1 MB Notification: Performance of sorting global known variables: time 8.068e-05/0.4639, allocations: 109.7 kB / 0.5463 GB, free: 2.121 MB / 379.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4639, allocations: 0 / 0.5463 GB, free: 2.121 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.0002497/0.4642, allocations: 64 kB / 0.5464 GB, free: 2.059 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.0001929/0.4644, allocations: 113.1 kB / 0.5465 GB, free: 1.938 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.001403/0.4658, allocations: 1.558 MB / 0.548 GB, free: 376 kB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4658, allocations: 0 / 0.548 GB, free: 376 kB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001085/0.4669, allocations: 1.363 MB / 0.5494 GB, free: 14.99 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002156/0.4671, allocations: 19.98 kB / 0.5494 GB, free: 14.97 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007206/0.4678, allocations: 0.505 MB / 0.5499 GB, free: 14.45 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003448/0.4682, allocations: 0.7672 MB / 0.5506 GB, free: 13.65 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 1.809e-05/0.4682, allocations: 0 / 0.5506 GB, free: 13.65 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.405e-05/0.4682, allocations: 7.438 kB / 0.5506 GB, free: 13.64 MB / 395.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4682, allocations: 4.062 kB / 0.5506 GB, free: 13.64 MB / 395.1 MB Notification: Performance of Templates: time 0.004998/0.4732, allocations: 2.247 MB / 0.5528 GB, free: 11.4 MB / 395.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.makefile make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.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_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 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_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 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); ^~~~~~~~~~~~~~ /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_matrixEqCirc3_functions.o] Error 1