Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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_matrixTrDat0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_q.1.|zx_d.1,1.|zx_d.1,2.|zx_d.2,1.|zx_d.2,2.|zx_q.1,1.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001018/0.001018, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.591/1.591, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.0008477/0.0008477, allocations: 86.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1793/0.1793, allocations: 37.98 MB / 353.5 MB, free: 1.758 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.056e-05/3.059e-05, allocations: 8 kB / 417.7 MB, free: 29.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1043, allocations: 56.31 MB / 474.1 MB, free: 4.812 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3681/0.4725, allocations: 92.53 MB / 0.5533 GB, free: 9.508 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002291/0.4728, allocations: 82.69 kB / 0.5534 GB, free: 9.461 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03938/0.5122, allocations: 11.91 MB / 0.565 GB, free: 15.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.5122, allocations: 0 / 0.565 GB, free: 15.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.288e-05/0.5123, allocations: 4 kB / 0.565 GB, free: 15.59 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0009243/0.5132, allocations: 0.5139 MB / 0.5655 GB, free: 15.04 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.5132, allocations: 8.031 kB / 0.5655 GB, free: 15.03 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.709e-05/0.5133, allocations: 7.906 kB / 0.5655 GB, free: 15.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001753/0.5135, allocations: 187.1 kB / 0.5657 GB, free: 14.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/0.5135, allocations: 0 / 0.5657 GB, free: 14.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.282e-05/0.5135, allocations: 8 kB / 0.5657 GB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000135/0.5137, allocations: 57.61 kB / 0.5658 GB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.5137, allocations: 0 / 0.5658 GB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.5137, allocations: 3.984 kB / 0.5658 GB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.5137, allocations: 0 / 0.5658 GB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.483e-05/0.5138, allocations: 23.3 kB / 0.5658 GB, free: 14.71 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001429/0.5139, allocations: 167.8 kB / 0.566 GB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.607e-05/0.514, allocations: 47.38 kB / 0.566 GB, free: 14.46 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.515e-05/0.514, allocations: 40 kB / 0.566 GB, free: 14.42 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.554e-06/0.5141, allocations: 0 / 0.566 GB, free: 14.42 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/0.5141, allocations: 30.56 kB / 0.5661 GB, free: 14.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=8): time 9.32e-07/0.5141, allocations: 0 / 0.5661 GB, free: 14.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002197/0.5143, allocations: 118 kB / 0.5662 GB, free: 14.26 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.495e-05/0.5144, allocations: 89.09 kB / 0.5663 GB, free: 14.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.769e-05/0.5145, allocations: 114.9 kB / 0.5664 GB, free: 14.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.5145, allocations: 29.64 kB / 0.5664 GB, free: 14.01 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.61e-05/0.5145, allocations: 95.72 kB / 0.5665 GB, free: 13.92 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.767e-05/0.5146, allocations: 26.98 kB / 0.5665 GB, free: 13.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.019e-06/0.5146, allocations: 0 / 0.5665 GB, free: 13.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.978e-05/0.5147, allocations: 326.5 kB / 0.5668 GB, free: 13.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.642e-05/0.5147, allocations: 23.92 kB / 0.5669 GB, free: 13.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.874e-05/0.5148, allocations: 16 kB / 0.5669 GB, free: 13.54 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.092e-05/0.5148, allocations: 65.36 kB / 0.5669 GB, free: 13.47 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.5148, allocations: 0 / 0.5669 GB, free: 13.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001473/0.515, allocations: 117.8 kB / 0.567 GB, free: 13.35 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.158e-05/0.5151, allocations: 45.75 kB / 0.5671 GB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.5151, allocations: 3.984 kB / 0.5671 GB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.5151, allocations: 0 / 0.5671 GB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.5151, allocations: 0 / 0.5671 GB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.5151, allocations: 4.859 kB / 0.5671 GB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.259e-05/0.5151, allocations: 3.906 kB / 0.5671 GB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.224e-05/0.5152, allocations: 11.12 kB / 0.5671 GB, free: 13.28 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 9.103e-05/0.5153, allocations: 146.6 kB / 0.5673 GB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.777e-05/0.5153, allocations: 11.91 kB / 0.5673 GB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.738e-05/0.5153, allocations: 11.81 kB / 0.5673 GB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.5153, allocations: 0 / 0.5673 GB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.86e-06/0.5153, allocations: 0 / 0.5673 GB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.5153, allocations: 3.984 kB / 0.5673 GB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000112/0.5155, allocations: 169.5 kB / 0.5674 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.5155, allocations: 0 / 0.5674 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.072e-06/0.5155, allocations: 0 / 0.5674 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.5155, allocations: 0 / 0.5674 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.5155, allocations: 4 kB / 0.5674 GB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.5155, allocations: 0 / 0.5674 GB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.5155, allocations: 0 / 0.5674 GB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002527/0.5158, allocations: 219.8 kB / 0.5677 GB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.314e-05/0.5158, allocations: 84.97 kB / 0.5677 GB, free: 12.56 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.103e-05/0.5159, allocations: 4 kB / 0.5677 GB, free: 12.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.537e-05/0.5159, allocations: 0 / 0.5677 GB, free: 12.56 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.365e-05/0.5159, allocations: 4 kB / 0.5677 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.508e-05/0.5159, allocations: 7.984 kB / 0.5678 GB, free: 12.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.348e-05/0.516, allocations: 95.03 kB / 0.5678 GB, free: 12.46 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.516, allocations: 4.031 kB / 0.5678 GB, free: 12.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001048/0.5171, allocations: 363 kB / 0.5682 GB, free: 12.11 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.001377/0.5184, allocations: 419.2 kB / 0.5686 GB, free: 11.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002624/0.5187, allocations: 190.5 kB / 0.5688 GB, free: 11.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.5187, allocations: 0 / 0.5688 GB, free: 11.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001452/0.5189, allocations: 159.1 kB / 0.5689 GB, free: 11.42 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001478/0.519, allocations: 0 / 0.5689 GB, free: 11.42 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003423/0.5194, allocations: 159.9 kB / 0.5691 GB, free: 11.26 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002697/0.5197, allocations: 0.6965 MB / 0.5698 GB, free: 10.54 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.636e-05/0.5197, allocations: 3.953 kB / 0.5698 GB, free: 10.53 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.826e-05/0.5197, allocations: 11.44 kB / 0.5698 GB, free: 10.52 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5197, allocations: 0 / 0.5698 GB, free: 10.52 MB / 378.7 MB [CodegenCFunctions.tpl:5352:15-5352:15:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].