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: translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zr_q.2.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.|zx_q.1,2.|zx_q.2,1.|zx_q.2,2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001015/0.001016, allocations: 181.6 kB / 8.13 MB, free: 2.199 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.186/1.186, allocations: 205.2 MB / 213.7 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008774/0.0008774, allocations: 90.47 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1678/0.1678, allocations: 37.96 MB / 347.7 MB, free: 7.484 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.141e-06/6.241e-06, allocations: 0 / 410 MB, free: 46.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09465/0.09467, allocations: 56.32 MB / 466.3 MB, free: 6.488 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2616/0.3563, allocations: 86.31 MB / 0.5397 GB, free: 8.293 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002132/0.3566, allocations: 79.95 kB / 0.5398 GB, free: 8.215 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.00453/0.3611, allocations: 1.252 MB / 0.541 GB, free: 6.965 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.394e-05/0.3612, allocations: 5.75 kB / 0.541 GB, free: 6.961 MB / 378.7 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.0003215/0.3615, allocations: 384.3 kB / 0.5414 GB, free: 6.535 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.3616, allocations: 8.031 kB / 0.5414 GB, free: 6.527 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.716e-05/0.3616, allocations: 7.906 kB / 0.5414 GB, free: 6.52 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002037/0.3618, allocations: 182.9 kB / 0.5415 GB, free: 6.301 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.105e-06/0.3618, allocations: 0 / 0.5415 GB, free: 6.301 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.076e-05/0.3618, allocations: 4 kB / 0.5415 GB, free: 6.297 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.594e-05/0.3619, allocations: 31.97 kB / 0.5416 GB, free: 6.266 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001085/0.3621, allocations: 69.61 kB / 0.5416 GB, free: 6.191 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.3621, allocations: 1.25 kB / 0.5416 GB, free: 6.191 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.658e-05/0.3621, allocations: 4.656 kB / 0.5416 GB, free: 6.188 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.3621, allocations: 0 / 0.5416 GB, free: 6.188 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001258/0.3622, allocations: 142.2 kB / 0.5418 GB, free: 6.012 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.425e-05/0.3623, allocations: 54.56 kB / 0.5418 GB, free: 5.949 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.583e-05/0.3624, allocations: 44.88 kB / 0.5419 GB, free: 5.902 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.566e-06/0.3624, allocations: 7.906 kB / 0.5419 GB, free: 5.895 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.091e-05/0.3624, allocations: 30.56 kB / 0.5419 GB, free: 5.855 MB / 378.7 MB Notification: Performance of pre-optimization done (n=12): time 1.082e-06/0.3624, allocations: 0 / 0.5419 GB, free: 5.855 MB / 378.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002345/0.3626, allocations: 129.4 kB / 0.542 GB, free: 5.723 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.896e-05/0.3627, allocations: 85.33 kB / 0.5421 GB, free: 5.621 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.982e-05/0.3628, allocations: 112.9 kB / 0.5422 GB, free: 5.504 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.3628, allocations: 25.7 kB / 0.5423 GB, free: 5.473 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.855e-05/0.3629, allocations: 88.12 kB / 0.5423 GB, free: 5.383 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.764e-05/0.3629, allocations: 35.5 kB / 0.5424 GB, free: 5.348 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.337e-06/0.3629, allocations: 0 / 0.5424 GB, free: 5.348 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.363, allocations: 322.8 kB / 0.5427 GB, free: 5.023 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.213e-05/0.3631, allocations: 27.98 kB / 0.5427 GB, free: 4.996 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.161e-05/0.3631, allocations: 30.17 kB / 0.5427 GB, free: 4.969 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.828e-05/0.3632, allocations: 43.97 kB / 0.5428 GB, free: 4.926 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3632, allocations: 0 / 0.5428 GB, free: 4.926 MB / 378.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001597/0.3634, allocations: 129.5 kB / 0.5429 GB, free: 4.793 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.427e-06/0.3634, allocations: 4 kB / 0.5429 GB, free: 4.789 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/0.3634, allocations: 0 / 0.5429 GB, free: 4.789 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.3634, allocations: 4.062 kB / 0.5429 GB, free: 4.785 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.988e-06/0.3634, allocations: 11.88 kB / 0.5429 GB, free: 4.773 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.236e-06/0.3634, allocations: 0 / 0.5429 GB, free: 4.773 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.19e-05/0.3635, allocations: 4.875 kB / 0.5429 GB, free: 4.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.701e-05/0.3635, allocations: 4 kB / 0.5429 GB, free: 4.766 MB / 378.7 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 9.2e-05/0.3636, allocations: 150.6 kB / 0.5431 GB, free: 4.605 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.635e-05/0.3636, allocations: 7.906 kB / 0.5431 GB, free: 4.598 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.597e-05/0.3636, allocations: 8.375 kB / 0.5431 GB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.3636, allocations: 4 kB / 0.5431 GB, free: 4.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3636, allocations: 4 kB / 0.5431 GB, free: 4.586 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.3636, allocations: 0 / 0.5431 GB, free: 4.586 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001105/0.3638, allocations: 150.1 kB / 0.5432 GB, free: 4.402 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3638, allocations: 0.875 kB / 0.5432 GB, free: 4.402 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.3638, allocations: 0 / 0.5432 GB, free: 4.402 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.82e-07/0.3638, allocations: 0 / 0.5432 GB, free: 4.402 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.3638, allocations: 4 kB / 0.5432 GB, free: 4.398 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.3638, allocations: 0 / 0.5432 GB, free: 4.398 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3638, allocations: 0 / 0.5432 GB, free: 4.398 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002853/0.3641, allocations: 235.5 kB / 0.5435 GB, free: 4.152 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.679e-05/0.3642, allocations: 85.02 kB / 0.5435 GB, free: 4.051 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.155e-05/0.3642, allocations: 0 / 0.5435 GB, free: 4.051 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.303e-05/0.3642, allocations: 8 kB / 0.5436 GB, free: 4.043 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.247e-05/0.3642, allocations: 3.938 kB / 0.5436 GB, free: 4.039 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.3643, allocations: 7.938 kB / 0.5436 GB, free: 4.031 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.642e-05/0.3643, allocations: 95.75 kB / 0.5437 GB, free: 3.938 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002059/0.3645, allocations: 27.94 kB / 0.5437 GB, free: 3.91 MB / 378.7 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.0001782/0.3647, allocations: 115.3 kB / 0.5438 GB, free: 3.785 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001761/0.3649, allocations: 141.6 kB / 0.5439 GB, free: 3.641 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3649, allocations: 4 kB / 0.5439 GB, free: 3.637 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001708/0.3651, allocations: 189.6 kB / 0.5441 GB, free: 3.445 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001507/0.3652, allocations: 15.86 kB / 0.5441 GB, free: 3.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003402/0.3656, allocations: 187.4 kB / 0.5443 GB, free: 3.223 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003305/0.3659, allocations: 0.7232 MB / 0.545 GB, free: 2.473 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3659, allocations: 0 / 0.545 GB, free: 2.473 MB / 378.7 MB Notification: Performance of Templates: time 0.003165/0.3691, allocations: 0.9359 MB / 0.5459 GB, free: 1.539 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.makefile make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.makefile clang -fPIC -falign-functions -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_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 clang -fPIC -falign-functions -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_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 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); ^~~~~~~~~~~~~~ /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_matrixEqCirc1_functions.o] Error 1