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") [: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.001297/0.001297, allocations: 185.2 kB / 8.135 MB, free: 2.191 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.195/1.195, 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.0008283/0.0008282, allocations: 87.28 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.1605/0.1605, allocations: 37.97 MB / 347.7 MB, free: 7.465 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.412e-06/6.442e-06, allocations: 0 / 410 MB, free: 46.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09133/0.09135, allocations: 56.33 MB / 466.3 MB, free: 6.453 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2543/0.3457, allocations: 86.27 MB / 0.5397 GB, free: 8.398 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002128/0.346, allocations: 81.53 kB / 0.5397 GB, free: 8.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.004925/0.3509, allocations: 1.501 MB / 0.5412 GB, free: 6.832 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.351, allocations: 4 kB / 0.5412 GB, free: 6.828 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0003049/0.3513, allocations: 452.9 kB / 0.5416 GB, free: 6.336 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.3513, allocations: 8.031 kB / 0.5416 GB, free: 6.328 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.869e-05/0.3514, allocations: 20.56 kB / 0.5417 GB, free: 6.309 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001908/0.3516, allocations: 209.6 kB / 0.5419 GB, free: 6.062 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.633e-06/0.3516, allocations: 0 / 0.5419 GB, free: 6.062 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.133e-05/0.3516, allocations: 0 / 0.5419 GB, free: 6.062 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001251/0.3517, allocations: 96.22 kB / 0.542 GB, free: 5.965 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001308/0.3519, allocations: 130.6 kB / 0.5421 GB, free: 5.832 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.3519, allocations: 0 / 0.5421 GB, free: 5.832 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.3519, allocations: 0 / 0.5421 GB, free: 5.832 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.3519, allocations: 3.938 kB / 0.5421 GB, free: 5.828 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000129/0.352, allocations: 166.2 kB / 0.5422 GB, free: 5.629 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000148/0.3522, allocations: 154.9 kB / 0.5424 GB, free: 5.469 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.3523, allocations: 141.2 kB / 0.5425 GB, free: 5.328 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.446e-06/0.3523, allocations: 7.984 kB / 0.5425 GB, free: 5.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.963e-05/0.3524, allocations: 30.56 kB / 0.5426 GB, free: 5.281 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 1.152e-06/0.3524, allocations: 0 / 0.5426 GB, free: 5.281 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.0005111/0.3529, allocations: 423.4 kB / 0.543 GB, free: 4.863 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.874e-05/0.3529, allocations: 105.1 kB / 0.5431 GB, free: 4.742 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001064/0.3531, allocations: 134.2 kB / 0.5432 GB, free: 4.598 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.3531, allocations: 25.7 kB / 0.5432 GB, free: 4.566 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.357e-05/0.3531, allocations: 92.78 kB / 0.5433 GB, free: 4.469 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.087e-05/0.3532, allocations: 126.1 kB / 0.5434 GB, free: 4.344 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.588e-06/0.3532, allocations: 0 / 0.5434 GB, free: 4.344 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.3533, allocations: 334.7 kB / 0.5437 GB, free: 4.008 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.086e-05/0.3534, allocations: 91.95 kB / 0.5438 GB, free: 3.918 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.298e-05/0.3535, allocations: 95.95 kB / 0.5439 GB, free: 3.824 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000158/0.3537, allocations: 131.9 kB / 0.544 GB, free: 3.695 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3537, allocations: 0 / 0.544 GB, free: 3.695 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003746/0.3541, allocations: 421.6 kB / 0.5444 GB, free: 3.277 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.3541, allocations: 4 kB / 0.5445 GB, free: 3.273 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.3541, allocations: 7.844 kB / 0.5445 GB, free: 3.266 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.3541, allocations: 4 kB / 0.5445 GB, free: 3.262 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.3541, allocations: 0 / 0.5445 GB, free: 3.262 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.306e-06/0.3542, allocations: 0 / 0.5445 GB, free: 3.262 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.516e-05/0.3542, allocations: 15.78 kB / 0.5445 GB, free: 3.246 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.42e-05/0.3542, allocations: 3.938 kB / 0.5445 GB, free: 3.242 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.000139/0.3544, allocations: 198.5 kB / 0.5447 GB, free: 3.035 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.067e-05/0.3544, allocations: 19.81 kB / 0.5447 GB, free: 3.016 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.254e-05/0.3544, allocations: 13.73 kB / 0.5447 GB, free: 3.004 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.3544, allocations: 7.531 kB / 0.5447 GB, free: 3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3545, allocations: 0 / 0.5447 GB, free: 3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.3545, allocations: 4 kB / 0.5447 GB, free: 2.996 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001344/0.3546, allocations: 193.9 kB / 0.5449 GB, free: 2.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3546, allocations: 0 / 0.5449 GB, free: 2.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.61e-07/0.3546, allocations: 0 / 0.5449 GB, free: 2.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3546, allocations: 0 / 0.5449 GB, free: 2.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.097e-05/0.3547, allocations: 12 kB / 0.5449 GB, free: 2.758 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.3547, allocations: 0 / 0.5449 GB, free: 2.758 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3547, allocations: 0 / 0.5449 GB, free: 2.758 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007275/0.3554, allocations: 0.6828 MB / 0.5456 GB, free: 2.059 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.032e-05/0.3555, allocations: 100.7 kB / 0.5457 GB, free: 1.941 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.907e-05/0.3555, allocations: 15.88 kB / 0.5457 GB, free: 1.926 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.783e-05/0.3555, allocations: 4 kB / 0.5457 GB, free: 1.922 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.379e-05/0.3556, allocations: 8 kB / 0.5457 GB, free: 1.914 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.361e-05/0.3556, allocations: 16.02 kB / 0.5457 GB, free: 1.898 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.464e-05/0.3557, allocations: 109.9 kB / 0.5458 GB, free: 1.793 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002507/0.3559, allocations: 40 kB / 0.5459 GB, free: 1.754 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.000179/0.3561, allocations: 111.2 kB / 0.546 GB, free: 1.637 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004214/0.3566, allocations: 409.6 kB / 0.5464 GB, free: 1.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3566, allocations: 0 / 0.5464 GB, free: 1.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.3576, allocations: 1.349 MB / 0.5477 GB, free: 15.88 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002168/0.3579, allocations: 28.06 kB / 0.5477 GB, free: 15.85 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006479/0.3585, allocations: 0.5158 MB / 0.5482 GB, free: 15.31 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002992/0.3588, allocations: 0.7586 MB / 0.5489 GB, free: 14.52 MB / 394.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3588, allocations: 0 / 0.5489 GB, free: 14.52 MB / 394.7 MB Notification: Performance of Templates: time 0.004035/0.3629, allocations: 1.614 MB / 0.5505 GB, free: 12.91 MB / 394.7 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 -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_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 -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_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