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") [: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.0009734/0.0009734, allocations: 184.2 kB / 8.136 MB, free: 2.207 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.184/1.184, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0008452/0.0008452, allocations: 89.38 kB / 261.8 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.1604/0.1604, allocations: 37.97 MB / 347.7 MB, free: 7.488 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.104e-06/7.124e-06, allocations: 4 kB / 410 MB, free: 46.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08741/0.08743, allocations: 56.31 MB / 466.3 MB, free: 6.484 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2517/0.3391, allocations: 86.27 MB / 0.5396 GB, free: 8.324 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000224/0.3394, allocations: 75.95 kB / 0.5397 GB, free: 8.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.004815/0.3442, allocations: 1.368 MB / 0.5411 GB, free: 6.895 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.3443, allocations: 8 kB / 0.5411 GB, free: 6.887 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0003212/0.3446, allocations: 416.1 kB / 0.5415 GB, free: 6.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.3446, allocations: 9.125 kB / 0.5415 GB, free: 6.422 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.951e-05/0.3447, allocations: 11.81 kB / 0.5415 GB, free: 6.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001874/0.3449, allocations: 183.5 kB / 0.5417 GB, free: 6.191 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.818e-06/0.3449, allocations: 0 / 0.5417 GB, free: 6.191 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.079e-05/0.3449, allocations: 0 / 0.5417 GB, free: 6.191 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001083/0.345, allocations: 67.91 kB / 0.5417 GB, free: 6.125 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001115/0.3451, allocations: 93.61 kB / 0.5418 GB, free: 6.027 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.3452, allocations: 7.984 kB / 0.5418 GB, free: 6.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/0.3452, allocations: 0 / 0.5418 GB, free: 6.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.3452, allocations: 0 / 0.5418 GB, free: 6.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001713/0.3454, allocations: 154 kB / 0.542 GB, free: 5.832 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001059/0.3455, allocations: 94.55 kB / 0.5421 GB, free: 5.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.065e-05/0.3456, allocations: 88.86 kB / 0.5421 GB, free: 5.641 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.338e-06/0.3456, allocations: 0 / 0.5421 GB, free: 5.641 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.571e-05/0.3456, allocations: 42.5 kB / 0.5422 GB, free: 5.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.102e-06/0.3456, allocations: 0 / 0.5422 GB, free: 5.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003205/0.3459, allocations: 229.7 kB / 0.5424 GB, free: 5.359 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.147e-05/0.346, allocations: 97.09 kB / 0.5425 GB, free: 5.246 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.824e-05/0.3461, allocations: 118.7 kB / 0.5426 GB, free: 5.121 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.248e-05/0.3461, allocations: 25.7 kB / 0.5426 GB, free: 5.09 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.457e-05/0.3462, allocations: 88.56 kB / 0.5427 GB, free: 5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.658e-05/0.3462, allocations: 74.91 kB / 0.5428 GB, free: 4.926 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.947e-06/0.3462, allocations: 0.75 kB / 0.5428 GB, free: 4.926 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.3464, allocations: 334.8 kB / 0.5431 GB, free: 4.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.932e-05/0.3464, allocations: 51.98 kB / 0.5432 GB, free: 4.539 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.498e-05/0.3465, allocations: 59.83 kB / 0.5432 GB, free: 4.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001141/0.3466, allocations: 79.95 kB / 0.5433 GB, free: 4.402 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.3466, allocations: 0 / 0.5433 GB, free: 4.402 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002426/0.3469, allocations: 237.3 kB / 0.5435 GB, free: 4.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.3469, allocations: 4.625 kB / 0.5435 GB, free: 4.156 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.3469, allocations: 7.844 kB / 0.5435 GB, free: 4.148 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.3469, allocations: 4 kB / 0.5435 GB, free: 4.145 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.132e-06/0.3469, allocations: 64 / 0.5435 GB, free: 4.145 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/0.3469, allocations: 4 kB / 0.5435 GB, free: 4.141 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.238e-05/0.347, allocations: 7.844 kB / 0.5435 GB, free: 4.133 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.368e-05/0.347, allocations: 4 kB / 0.5435 GB, free: 4.129 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 0.0001247/0.3471, allocations: 166.6 kB / 0.5437 GB, free: 3.953 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.39e-05/0.3472, allocations: 15.81 kB / 0.5437 GB, free: 3.938 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.288e-05/0.3472, allocations: 8.828 kB / 0.5437 GB, free: 3.926 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.3472, allocations: 0 / 0.5437 GB, free: 3.926 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.3472, allocations: 4 kB / 0.5437 GB, free: 3.922 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3472, allocations: 0 / 0.5437 GB, free: 3.922 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000116/0.3473, allocations: 174 kB / 0.5439 GB, free: 3.715 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.3473, allocations: 3.906 kB / 0.5439 GB, free: 3.711 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.9e-07/0.3474, allocations: 0 / 0.5439 GB, free: 3.711 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.3474, allocations: 4 kB / 0.5439 GB, free: 3.707 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.3474, allocations: 4 kB / 0.5439 GB, free: 3.703 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.3474, allocations: 0 / 0.5439 GB, free: 3.703 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.3474, allocations: 0 / 0.5439 GB, free: 3.703 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004532/0.3479, allocations: 419.2 kB / 0.5443 GB, free: 3.277 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.283e-05/0.3479, allocations: 96.89 kB / 0.5444 GB, free: 3.164 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.93e-05/0.3479, allocations: 4 kB / 0.5444 GB, free: 3.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.655e-05/0.348, allocations: 4 kB / 0.5444 GB, free: 3.156 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.343e-05/0.348, allocations: 4 kB / 0.5444 GB, free: 3.152 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.348, allocations: 8 kB / 0.5444 GB, free: 3.145 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.434e-05/0.3481, allocations: 99.17 kB / 0.5445 GB, free: 3.047 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002089/0.3483, allocations: 32 kB / 0.5445 GB, free: 3.016 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.0001717/0.3485, allocations: 119.2 kB / 0.5447 GB, free: 2.887 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002814/0.3488, allocations: 261.8 kB / 0.5449 GB, free: 2.625 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3488, allocations: 0 / 0.5449 GB, free: 2.625 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004114/0.3492, allocations: 0.5445 MB / 0.5454 GB, free: 2.074 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001795/0.3494, allocations: 19.86 kB / 0.5455 GB, free: 2.055 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004517/0.3498, allocations: 339.2 kB / 0.5458 GB, free: 1.699 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002617/0.3501, allocations: 0.7312 MB / 0.5465 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3501, allocations: 128 / 0.5465 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of Templates: time 0.003455/0.3536, allocations: 1.261 MB / 0.5477 GB, free: 15.69 MB / 394.7 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 -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_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 -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_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