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.001084/0.001085, allocations: 176.2 kB / 8.348 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.539/1.539, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.0009161/0.0009161, allocations: 87.94 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1987/0.1987, allocations: 37.98 MB / 348 MB, free: 7.785 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.536e-05/1.525e-05, allocations: 4 kB / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1008, allocations: 56.32 MB / 466.9 MB, free: 6.559 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.378/0.4789, allocations: 91.86 MB / 0.5457 GB, free: 3.074 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/0.4792, allocations: 79.95 kB / 0.5457 GB, free: 2.996 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04223/0.5214, allocations: 11.86 MB / 0.5573 GB, free: 7.137 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5214, allocations: 0 / 0.5573 GB, free: 7.137 MB / 395.1 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.5215, allocations: 0 / 0.5573 GB, free: 7.137 MB / 395.1 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.0009409/0.5224, allocations: 0.5197 MB / 0.5578 GB, free: 6.566 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.5225, allocations: 16.03 kB / 0.5578 GB, free: 6.551 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.533e-05/0.5225, allocations: 7.906 kB / 0.5579 GB, free: 6.543 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000193/0.5227, allocations: 186.9 kB / 0.558 GB, free: 6.32 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/0.5227, allocations: 4 kB / 0.558 GB, free: 6.316 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.12e-05/0.5227, allocations: 0 / 0.558 GB, free: 6.316 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.433e-05/0.5228, allocations: 16 kB / 0.5581 GB, free: 6.301 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.503e-05/0.5229, allocations: 57.61 kB / 0.5581 GB, free: 6.238 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.5229, allocations: 0 / 0.5581 GB, free: 6.238 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.523, allocations: 0 / 0.5581 GB, free: 6.238 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.523, allocations: 0 / 0.5581 GB, free: 6.238 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001324/0.5231, allocations: 150.1 kB / 0.5582 GB, free: 6.055 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.215e-05/0.5232, allocations: 43.25 kB / 0.5583 GB, free: 6.004 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.411e-05/0.5232, allocations: 37.62 kB / 0.5583 GB, free: 5.965 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.073e-06/0.5233, allocations: 0 / 0.5583 GB, free: 5.965 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.5233, allocations: 34.56 kB / 0.5584 GB, free: 5.922 MB / 395.1 MB Notification: Performance of pre-optimization done (n=8): time 9.92e-07/0.5233, allocations: 0 / 0.5584 GB, free: 5.922 MB / 395.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002612/0.5236, allocations: 93.66 kB / 0.5584 GB, free: 5.824 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/0.5236, allocations: 89.12 kB / 0.5585 GB, free: 5.719 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.312e-05/0.5237, allocations: 113 kB / 0.5586 GB, free: 5.602 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.5237, allocations: 25.7 kB / 0.5587 GB, free: 5.57 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.561e-05/0.5238, allocations: 92.08 kB / 0.5588 GB, free: 5.477 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.838e-05/0.5238, allocations: 23.64 kB / 0.5588 GB, free: 5.453 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.873e-06/0.5238, allocations: 4 kB / 0.5588 GB, free: 5.449 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.524, allocations: 318.8 kB / 0.5591 GB, free: 5.129 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.329e-05/0.524, allocations: 19.98 kB / 0.5591 GB, free: 5.109 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.083e-05/0.5241, allocations: 23.98 kB / 0.5591 GB, free: 5.086 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.072e-05/0.5241, allocations: 31.98 kB / 0.5592 GB, free: 5.055 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.5242, allocations: 3.953 kB / 0.5592 GB, free: 5.051 MB / 395.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001612/0.5243, allocations: 85.58 kB / 0.5592 GB, free: 4.961 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.351e-05/0.5244, allocations: 43.41 kB / 0.5593 GB, free: 4.914 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.5244, allocations: 0 / 0.5593 GB, free: 4.914 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.5244, allocations: 0 / 0.5593 GB, free: 4.914 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.074e-06/0.5244, allocations: 7.922 kB / 0.5593 GB, free: 4.906 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.018e-06/0.5244, allocations: 0 / 0.5593 GB, free: 4.906 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.241e-05/0.5245, allocations: 7.906 kB / 0.5593 GB, free: 4.898 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.956e-05/0.5245, allocations: 8.062 kB / 0.5593 GB, free: 4.891 MB / 395.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.0001016/0.5246, allocations: 142.7 kB / 0.5594 GB, free: 4.738 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.751e-05/0.5246, allocations: 11.86 kB / 0.5595 GB, free: 4.727 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.618e-05/0.5246, allocations: 8.625 kB / 0.5595 GB, free: 4.719 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.5247, allocations: 0 / 0.5595 GB, free: 4.719 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.5247, allocations: 0 / 0.5595 GB, free: 4.719 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-06/0.5247, allocations: 0 / 0.5595 GB, free: 4.719 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001046/0.5248, allocations: 146.2 kB / 0.5596 GB, free: 4.539 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.5248, allocations: 0 / 0.5596 GB, free: 4.539 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.5248, allocations: 0 / 0.5596 GB, free: 4.539 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.5248, allocations: 7.953 kB / 0.5596 GB, free: 4.531 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/0.5248, allocations: 8 kB / 0.5596 GB, free: 4.523 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.5248, allocations: 0 / 0.5596 GB, free: 4.523 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5248, allocations: 0 / 0.5596 GB, free: 4.523 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002432/0.5251, allocations: 161 kB / 0.5598 GB, free: 4.348 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.494e-05/0.5251, allocations: 85.02 kB / 0.5599 GB, free: 4.246 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.044e-05/0.5252, allocations: 3.953 kB / 0.5599 GB, free: 4.242 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.866e-05/0.5252, allocations: 8 kB / 0.5599 GB, free: 4.234 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.38e-05/0.5252, allocations: 7.969 kB / 0.5599 GB, free: 4.227 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.047e-06/0.5252, allocations: 4 kB / 0.5599 GB, free: 4.223 MB / 395.1 MB Notification: Performance of sorting global known variables: time 5.391e-05/0.5253, allocations: 93.14 kB / 0.56 GB, free: 4.133 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5253, allocations: 0 / 0.56 GB, free: 4.133 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001165/0.5265, allocations: 363.5 kB / 0.5603 GB, free: 3.777 MB / 395.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.001004/0.5275, allocations: 424.7 kB / 0.5607 GB, free: 3.355 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.000253/0.5278, allocations: 187.3 kB / 0.5609 GB, free: 3.16 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5278, allocations: 3.938 kB / 0.5609 GB, free: 3.156 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001268/0.5279, allocations: 147.4 kB / 0.561 GB, free: 3 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001738/0.5281, allocations: 4 kB / 0.561 GB, free: 2.996 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002845/0.5284, allocations: 143.8 kB / 0.5612 GB, free: 2.832 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002501/0.5286, allocations: 0.7081 MB / 0.5619 GB, free: 2.098 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 1.161e-05/0.5287, allocations: 0 / 0.5619 GB, free: 2.098 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.228e-05/0.5287, allocations: 7.438 kB / 0.5619 GB, free: 2.094 MB / 395.1 MB Notification: Performance of SimCode: time 2.6e-07/0.5287, allocations: 0 / 0.5619 GB, free: 2.094 MB / 395.1 MB [CodegenCFunctions.tpl:4892:15-4892:15:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].