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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001142/0.001142, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.374/1.374, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0009307/0.0009307, allocations: 97 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1574/0.1574, allocations: 38.07 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002888/0.0002889, allocations: 8 kB / 424 MB, free: 37.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2899, allocations: 56.32 MB / 480.3 MB, free: 9.555 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1294/0.4194, allocations: 92.53 MB / 0.5594 GB, free: 9.895 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002406/0.4197, allocations: 79.95 kB / 0.5595 GB, free: 9.816 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04257/0.4623, allocations: 11.99 MB / 0.5712 GB, free: 13.81 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4623, allocations: 4 kB / 0.5712 GB, free: 13.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.352e-05/0.4624, allocations: 0 / 0.5712 GB, free: 13.8 MB / 410.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.0008917/0.4633, allocations: 0.5431 MB / 0.5717 GB, free: 13.21 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.4633, allocations: 15.98 kB / 0.5717 GB, free: 13.19 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.121e-05/0.4634, allocations: 7.906 kB / 0.5717 GB, free: 13.18 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001856/0.4636, allocations: 193.5 kB / 0.5719 GB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.628e-06/0.4636, allocations: 0 / 0.5719 GB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.308e-05/0.4636, allocations: 0 / 0.5719 GB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001332/0.4637, allocations: 69.67 kB / 0.572 GB, free: 12.88 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.4638, allocations: 7.922 kB / 0.572 GB, free: 12.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.989e-06/0.4638, allocations: 0 / 0.572 GB, free: 12.88 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.4638, allocations: 0 / 0.572 GB, free: 12.88 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.27e-05/0.4638, allocations: 31.92 kB / 0.572 GB, free: 12.84 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001586/0.464, allocations: 181.5 kB / 0.5722 GB, free: 12.62 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.294e-05/0.4641, allocations: 55.25 kB / 0.5723 GB, free: 12.55 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.676e-06/0.4641, allocations: 0 / 0.5723 GB, free: 12.55 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.428e-05/0.4641, allocations: 34.59 kB / 0.5723 GB, free: 12.51 MB / 410.7 MB Notification: Performance of pre-optimization done (n=12): time 1.062e-06/0.4641, allocations: 0 / 0.5723 GB, free: 12.51 MB / 410.7 MB Notification: Performance of matching and sorting (n=12): time 0.000331/0.4645, allocations: 272.2 kB / 0.5726 GB, free: 12.21 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.941e-05/0.4645, allocations: 85.11 kB / 0.5726 GB, free: 12.11 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.4647, allocations: 125.2 kB / 0.5728 GB, free: 11.98 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.642e-05/0.4647, allocations: 25.7 kB / 0.5728 GB, free: 11.95 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.931e-05/0.4647, allocations: 92.14 kB / 0.5729 GB, free: 11.86 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.929e-05/0.4648, allocations: 35.45 kB / 0.5729 GB, free: 11.82 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.358e-06/0.4648, allocations: 0 / 0.5729 GB, free: 11.82 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.4649, allocations: 327 kB / 0.5732 GB, free: 11.49 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.791e-05/0.465, allocations: 35.92 kB / 0.5732 GB, free: 11.46 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.054e-05/0.465, allocations: 27.98 kB / 0.5733 GB, free: 11.43 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001059/0.4651, allocations: 78.05 kB / 0.5733 GB, free: 11.35 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.4652, allocations: 4.031 kB / 0.5733 GB, free: 11.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001718/0.4653, allocations: 155.2 kB / 0.5735 GB, free: 11.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.885e-05/0.4654, allocations: 45.67 kB / 0.5735 GB, free: 11.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.4654, allocations: 0 / 0.5735 GB, free: 11.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.4654, allocations: 0 / 0.5735 GB, free: 11.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.524e-06/0.4654, allocations: 4 kB / 0.5735 GB, free: 11.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.4654, allocations: 0 / 0.5735 GB, free: 11.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.589e-05/0.4655, allocations: 3.906 kB / 0.5735 GB, free: 11.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.465e-05/0.4655, allocations: 8 kB / 0.5736 GB, free: 11.11 MB / 410.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 () * 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.0001383/0.4657, allocations: 175.5 kB / 0.5737 GB, free: 10.93 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.703e-05/0.4657, allocations: 11.84 kB / 0.5737 GB, free: 10.91 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.165e-05/0.4657, allocations: 12.72 kB / 0.5737 GB, free: 10.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.4657, allocations: 0 / 0.5737 GB, free: 10.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/0.4657, allocations: 0 / 0.5737 GB, free: 10.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.4657, allocations: 3.938 kB / 0.5738 GB, free: 10.89 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001211/0.4659, allocations: 181.5 kB / 0.5739 GB, free: 10.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.4659, allocations: 0 / 0.5739 GB, free: 10.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.114e-06/0.4659, allocations: 3.984 kB / 0.5739 GB, free: 10.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.4659, allocations: 4 kB / 0.5739 GB, free: 10.66 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.4659, allocations: 0 / 0.5739 GB, free: 10.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.4659, allocations: 8 kB / 0.5739 GB, free: 10.65 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.4659, allocations: 0 / 0.5739 GB, free: 10.65 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002907/0.4662, allocations: 278.6 kB / 0.5742 GB, free: 10.36 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.606e-05/0.4663, allocations: 100.9 kB / 0.5743 GB, free: 10.24 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.877e-05/0.4663, allocations: 0 / 0.5743 GB, free: 10.24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.845e-05/0.4663, allocations: 4 kB / 0.5743 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.069e-05/0.4664, allocations: 0 / 0.5743 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-06/0.4664, allocations: 4 kB / 0.5743 GB, free: 10.23 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.849e-05/0.4664, allocations: 113.3 kB / 0.5744 GB, free: 10.12 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4664, allocations: 0 / 0.5744 GB, free: 10.12 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009657/0.4674, allocations: 359.6 kB / 0.5748 GB, free: 9.77 MB / 410.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 () * 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.0008432/0.4683, allocations: 414.5 kB / 0.5752 GB, free: 9.359 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003156/0.4686, allocations: 291.3 kB / 0.5754 GB, free: 9.062 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.4686, allocations: 0 / 0.5754 GB, free: 9.062 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001708/0.4688, allocations: 231.3 kB / 0.5757 GB, free: 8.824 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001325/0.4689, allocations: 7.938 kB / 0.5757 GB, free: 8.816 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004566/0.4694, allocations: 331.6 kB / 0.576 GB, free: 8.465 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002324/0.4696, allocations: 0.7043 MB / 0.5767 GB, free: 7.734 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.644e-05/0.4697, allocations: 0 / 0.5767 GB, free: 7.734 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.093e-05/0.4697, allocations: 7.438 kB / 0.5767 GB, free: 7.73 MB / 410.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4697, allocations: 0 / 0.5767 GB, free: 7.73 MB / 410.7 MB [CodegenCFunctions.tpl:5437:13-5437:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].