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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009294/0.0009295, allocations: 176.4 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.666/1.666, allocations: 205.3 MB / 214.1 MB, free: 14.08 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.0008447/0.0008447, allocations: 92.53 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2915/0.2915, allocations: 37.99 MB / 348 MB, free: 7.762 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.312e-05/1.314e-05, allocations: 0 / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1014, allocations: 56.33 MB / 466.9 MB, free: 6.559 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.357/0.4584, allocations: 86.32 MB / 0.5403 GB, free: 8.621 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000209/0.4586, allocations: 75.95 kB / 0.5403 GB, free: 8.547 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.005527/0.4642, allocations: 1.543 MB / 0.5418 GB, free: 7.008 MB / 379.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4642, allocations: 0 / 0.5418 GB, free: 7.008 MB / 379.1 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.4642, allocations: 0 / 0.5418 GB, free: 7.008 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004046/0.4646, allocations: 382 kB / 0.5422 GB, free: 6.586 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.4647, allocations: 16.03 kB / 0.5422 GB, free: 6.57 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.205e-05/0.4647, allocations: 3.906 kB / 0.5422 GB, free: 6.566 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002373/0.465, allocations: 186.9 kB / 0.5424 GB, free: 6.344 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.465, allocations: 3.938 kB / 0.5424 GB, free: 6.34 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.141e-05/0.465, allocations: 4 kB / 0.5424 GB, free: 6.336 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000103/0.4652, allocations: 27.98 kB / 0.5424 GB, free: 6.309 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001372/0.4653, allocations: 61.67 kB / 0.5425 GB, free: 6.242 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.4653, allocations: 0.5 kB / 0.5425 GB, free: 6.242 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.4654, allocations: 0 / 0.5425 GB, free: 6.242 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.4654, allocations: 0 / 0.5425 GB, free: 6.242 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001631/0.4655, allocations: 146.1 kB / 0.5426 GB, free: 6.062 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.986e-05/0.4656, allocations: 57.8 kB / 0.5427 GB, free: 6 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.212e-05/0.4657, allocations: 44.88 kB / 0.5427 GB, free: 5.953 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.189e-05/0.4658, allocations: 3.984 kB / 0.5427 GB, free: 5.949 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.059e-05/0.4658, allocations: 35.38 kB / 0.5428 GB, free: 5.906 MB / 379.1 MB Notification: Performance of pre-optimization done (n=12): time 1.633e-06/0.4658, allocations: 0 / 0.5428 GB, free: 5.906 MB / 379.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003172/0.4661, allocations: 109.6 kB / 0.5429 GB, free: 5.793 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/0.4662, allocations: 93.36 kB / 0.543 GB, free: 5.684 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001085/0.4663, allocations: 110.2 kB / 0.5431 GB, free: 5.57 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 2.009e-05/0.4664, allocations: 25.7 kB / 0.5431 GB, free: 5.539 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.855e-05/0.4664, allocations: 88.14 kB / 0.5432 GB, free: 5.449 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.633e-05/0.4665, allocations: 35.45 kB / 0.5432 GB, free: 5.414 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.959e-06/0.4665, allocations: 0 / 0.5432 GB, free: 5.414 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.4667, allocations: 322.8 kB / 0.5435 GB, free: 5.09 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.183e-05/0.4667, allocations: 27.98 kB / 0.5435 GB, free: 5.062 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.732e-05/0.4668, allocations: 33.62 kB / 0.5436 GB, free: 5.031 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000138/0.467, allocations: 43.91 kB / 0.5436 GB, free: 4.988 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.467, allocations: 0 / 0.5436 GB, free: 4.988 MB / 379.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002717/0.4673, allocations: 121.5 kB / 0.5437 GB, free: 4.863 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.152e-05/0.4673, allocations: 45.69 kB / 0.5438 GB, free: 4.812 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.4674, allocations: 0 / 0.5438 GB, free: 4.812 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.967e-05/0.4674, allocations: 0 / 0.5438 GB, free: 4.812 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.4674, allocations: 3.938 kB / 0.5438 GB, free: 4.809 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.4674, allocations: 0 / 0.5438 GB, free: 4.809 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.365e-05/0.4674, allocations: 11.84 kB / 0.5438 GB, free: 4.797 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.003e-05/0.4675, allocations: 9.234 kB / 0.5438 GB, free: 4.789 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.0001414/0.4676, allocations: 150.7 kB / 0.5439 GB, free: 4.629 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.901e-05/0.4677, allocations: 15.86 kB / 0.544 GB, free: 4.613 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.822e-05/0.4677, allocations: 4.625 kB / 0.544 GB, free: 4.609 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.4677, allocations: 3.984 kB / 0.544 GB, free: 4.605 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.4677, allocations: 0 / 0.544 GB, free: 4.605 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.4677, allocations: 0 / 0.544 GB, free: 4.605 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001424/0.4679, allocations: 150.2 kB / 0.5441 GB, free: 4.422 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.4679, allocations: 0 / 0.5441 GB, free: 4.422 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.22e-07/0.4679, allocations: 0 / 0.5441 GB, free: 4.422 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.4679, allocations: 4 kB / 0.5441 GB, free: 4.418 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.4679, allocations: 8.953 kB / 0.5441 GB, free: 4.41 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.468, allocations: 0 / 0.5441 GB, free: 4.41 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.468, allocations: 0 / 0.5441 GB, free: 4.41 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003936/0.4684, allocations: 209.4 kB / 0.5443 GB, free: 4.188 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.22e-05/0.4684, allocations: 85.02 kB / 0.5444 GB, free: 4.086 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.719e-05/0.4685, allocations: 4 kB / 0.5444 GB, free: 4.082 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.017e-05/0.4685, allocations: 3.953 kB / 0.5444 GB, free: 4.078 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.094e-05/0.4685, allocations: 8.031 kB / 0.5444 GB, free: 4.07 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.567e-05/0.4686, allocations: 11.92 kB / 0.5444 GB, free: 4.059 MB / 379.1 MB Notification: Performance of sorting global known variables: time 6.653e-05/0.4686, allocations: 99.22 kB / 0.5445 GB, free: 3.961 MB / 379.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4687, allocations: 0 / 0.5445 GB, free: 3.961 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.0003636/0.469, allocations: 31.94 kB / 0.5446 GB, free: 3.93 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.0002129/0.4693, allocations: 117.1 kB / 0.5447 GB, free: 3.805 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.0004167/0.4697, allocations: 275.3 kB / 0.5449 GB, free: 3.523 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.4697, allocations: 4 kB / 0.5449 GB, free: 3.52 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002667/0.47, allocations: 227.3 kB / 0.5452 GB, free: 3.285 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002118/0.4702, allocations: 4 kB / 0.5452 GB, free: 3.281 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004291/0.4706, allocations: 184.7 kB / 0.5453 GB, free: 3.078 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/0.471, allocations: 0.7041 MB / 0.546 GB, free: 2.348 MB / 379.1 MB Notification: Performance of simCode: alias equations: time 2.324e-05/0.471, allocations: 7.938 kB / 0.546 GB, free: 2.34 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.539e-05/0.4711, allocations: 7.438 kB / 0.546 GB, free: 2.332 MB / 379.1 MB Notification: Performance of SimCode: time 2.204e-06/0.4711, allocations: 0 / 0.546 GB, free: 2.332 MB / 379.1 MB Notification: Performance of Templates: time 0.004845/0.4759, allocations: 1.129 MB / 0.5471 GB, free: 1.211 MB / 379.1 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 -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_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 -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_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