Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,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_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,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_matrixTrDat1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008303/0.0008304, allocations: 96.73 kB / 16.3 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008828/0.0008828, allocations: 183.2 kB / 17.2 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.181/1.181, allocations: 223.2 MB / 241.1 MB, free: 304 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1534/0.1534, allocations: 38.08 MB / 330.3 MB, free: 8.973 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002621/0.0002621, allocations: 12.53 kB / 400 MB, free: 34.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08694/0.08722, allocations: 59.17 MB / 459.1 MB, free: 7.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.00189/0.08914, allocations: 1.756 MB / 460.9 MB, free: 5.688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002201/0.09135, allocations: 1.901 MB / 462.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.074e-05/0.0914, allocations: 0 / 462.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001098/0.09152, allocations: 15.92 kB / 462.8 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.439e-05/0.09156, allocations: 19.91 kB / 462.8 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001247/0.09281, allocations: 0.5884 MB / 463.4 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.596e-05/0.09289, allocations: 43.92 kB / 463.4 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.149e-05/0.09293, allocations: 192 / 463.4 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.111e-05/0.09299, allocations: 31.84 kB / 463.5 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.749e-05/0.09305, allocations: 23.91 kB / 463.5 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.726e-06/0.09306, allocations: 4 kB / 463.5 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001154/0.09422, allocations: 0.9943 MB / 464.5 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.588e-05/0.09426, allocations: 15.92 kB / 464.5 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.623e-05/0.09429, allocations: 33.64 kB / 464.6 MB, free: 2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008298/0.09513, allocations: 0.9125 MB / 465.5 MB, free: 1.086 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.09514, allocations: 0 / 465.5 MB, free: 1.086 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.09515, allocations: 0 / 465.5 MB, free: 1.086 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.816e-06/0.09515, allocations: 0 / 465.5 MB, free: 1.086 MB / 334.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.000469/0.09563, allocations: 0.5123 MB / 466 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.753e-05/0.09566, allocations: 8.031 kB / 466 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.162e-05/0.0957, allocations: 7.906 kB / 466 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001484/0.09585, allocations: 182.9 kB / 466.2 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.418e-06/0.09587, allocations: 0 / 466.2 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.016e-05/0.09588, allocations: 0 / 466.2 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001126/0.096, allocations: 65.67 kB / 466.2 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.926e-06/0.09602, allocations: 3.984 kB / 466.2 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.205e-06/0.09603, allocations: 3.938 kB / 466.2 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.915e-06/0.09604, allocations: 0 / 466.2 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.2e-05/0.09608, allocations: 35.98 kB / 466.3 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001374/0.09623, allocations: 177.5 kB / 466.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.498e-05/0.09631, allocations: 58.55 kB / 466.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.917e-06/0.09632, allocations: 0 / 466.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.227e-05/0.09635, allocations: 38.59 kB / 466.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 7.71e-07/0.09635, allocations: 0 / 466.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003139/0.09667, allocations: 276.4 kB / 466.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.091e-05/0.09672, allocations: 93.14 kB / 466.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.115e-05/0.09682, allocations: 132.5 kB / 467 MB, free: 15.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.4e-05/0.09684, allocations: 29.69 kB / 467.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.424e-05/0.09689, allocations: 92.14 kB / 467.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.84e-05/0.09693, allocations: 43.38 kB / 467.2 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.918e-06/0.09694, allocations: 0 / 467.2 MB, free: 15.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.211e-05/0.09704, allocations: 322.8 kB / 467.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.247e-05/0.09709, allocations: 31.98 kB / 467.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.463e-05/0.09713, allocations: 31.98 kB / 467.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.882e-05/0.09721, allocations: 81.67 kB / 467.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.09722, allocations: 0 / 467.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000161/0.09738, allocations: 159.1 kB / 467.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.071e-05/0.09743, allocations: 53.67 kB / 467.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-06/0.09744, allocations: 0 / 467.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.786e-06/0.09746, allocations: 0 / 467.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.084e-06/0.09746, allocations: 4 kB / 467.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.937e-06/0.09747, allocations: 0 / 467.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.858e-05/0.09751, allocations: 7.906 kB / 467.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.09754, allocations: 7.938 kB / 467.9 MB, free: 14.4 MB / 350.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 () * Number of clocked 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.0001116/0.09765, allocations: 171.6 kB / 468 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.563e-05/0.09768, allocations: 11.86 kB / 468.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.125e-05/0.09769, allocations: 8.719 kB / 468.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.0977, allocations: 0 / 468.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.09771, allocations: 0 / 468.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-06/0.09771, allocations: 0 / 468.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001043/0.09782, allocations: 177.6 kB / 468.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.09783, allocations: 0 / 468.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.09783, allocations: 0 / 468.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.09784, allocations: 11.94 kB / 468.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.09785, allocations: 4 kB / 468.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.09786, allocations: 0 / 468.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.09787, allocations: 0 / 468.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002772/0.09815, allocations: 290.4 kB / 468.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.358e-05/0.0982, allocations: 88.95 kB / 468.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.073e-05/0.09822, allocations: 7.953 kB / 468.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.556e-05/0.09825, allocations: 0 / 468.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.665e-05/0.09828, allocations: 8.031 kB / 468.6 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.978e-06/0.09829, allocations: 8 kB / 468.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.948e-05/0.09835, allocations: 101.4 kB / 468.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09835, allocations: 0 / 468.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005835/0.09894, allocations: 319.9 kB / 469.1 MB, free: 13.11 MB / 350.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 () * Number of clocked 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.0006872/0.09963, allocations: 362.1 kB / 469.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002894/0.09993, allocations: 291.3 kB / 469.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.09994, allocations: 0 / 469.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001691/0.1001, allocations: 231.3 kB / 469.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001346/0.1003, allocations: 4.375 kB / 469.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003899/0.1007, allocations: 335 kB / 470.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002237/0.1009, allocations: 0.7121 MB / 471 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.266e-06/0.1009, allocations: 0 / 471 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.456e-06/0.1009, allocations: 7.438 kB / 471 MB, free: 11.11 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1009, allocations: 0 / 471 MB, free: 11.11 MB / 350.1 MB [CodegenCFunctions.tpl:5389:13-5389:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2]. [CodegenCFunctions.tpl:7266:14-7266:14:writable] Error: Template error: Code generation does not support multiple iterators: array(abs((v[:,fill(1, n)] - v[:,2:n + 1])[$i1, $i2]) for $i2 in 1:max(n + 1 - 2 + 1, 0), $i1 in 1:n).