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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 113.4 kB / 17.05 MB, free: 6.086 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.001275/0.001275, allocations: 192 kB / 17.99 MB, free: 5.184 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.444/1.444, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1774/0.1774, allocations: 38.05 MB / 329.9 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 63.91 kB / 458.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4628/0.464, allocations: 58.06 MB / 0.5041 GB, free: 7.785 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.004554/0.4686, allocations: 2.096 MB / 0.5062 GB, free: 6.324 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004276/0.473, allocations: 2.041 MB / 0.5081 GB, free: 4.965 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.257e-05/0.4731, allocations: 0 / 0.5081 GB, free: 4.965 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000324/0.4735, allocations: 12.47 kB / 0.5082 GB, free: 4.961 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001748/0.4737, allocations: 28.47 kB / 0.5082 GB, free: 4.945 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003522/0.4772, allocations: 0.8305 MB / 0.509 GB, free: 4.664 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002917/0.4775, allocations: 85.17 kB / 0.5091 GB, free: 4.629 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.82e-05/0.4776, allocations: 5.078 kB / 0.5091 GB, free: 4.629 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001559/0.4778, allocations: 36.97 kB / 0.5091 GB, free: 4.613 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001533/0.4779, allocations: 41.09 kB / 0.5092 GB, free: 4.598 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.868e-05/0.478, allocations: 1.125 kB / 0.5092 GB, free: 4.598 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004248/0.4822, allocations: 1.403 MB / 0.5105 GB, free: 4.164 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.029e-05/0.4823, allocations: 12.7 kB / 0.5105 GB, free: 4.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.462e-05/0.4824, allocations: 27.78 kB / 0.5106 GB, free: 4.141 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00335/0.4857, allocations: 1.318 MB / 0.5119 GB, free: 3.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.4858, allocations: 0.9062 kB / 0.5119 GB, free: 3.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.507e-06/0.4858, allocations: 0 / 0.5119 GB, free: 3.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.501e-05/0.4858, allocations: 0 / 0.5119 GB, free: 3.91 MB / 382.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.001008/0.4868, allocations: 0.5139 MB / 0.5124 GB, free: 3.418 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.526e-05/0.4869, allocations: 12.45 kB / 0.5124 GB, free: 3.414 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.718e-05/0.487, allocations: 9.109 kB / 0.5124 GB, free: 3.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002429/0.4873, allocations: 186 kB / 0.5126 GB, free: 3.199 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.4873, allocations: 5.094 kB / 0.5126 GB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.434e-05/0.4873, allocations: 1.125 kB / 0.5126 GB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001873/0.4875, allocations: 60.25 kB / 0.5126 GB, free: 3.156 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.4875, allocations: 0 / 0.5126 GB, free: 3.156 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.4876, allocations: 0 / 0.5126 GB, free: 3.156 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.4876, allocations: 3.703 kB / 0.5126 GB, free: 3.156 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.993e-05/0.4876, allocations: 23.88 kB / 0.5126 GB, free: 3.152 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001587/0.4878, allocations: 163.3 kB / 0.5128 GB, free: 2.957 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.346e-05/0.4879, allocations: 47.97 kB / 0.5128 GB, free: 2.922 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.539e-05/0.488, allocations: 34.42 kB / 0.5129 GB, free: 2.906 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.074e-05/0.488, allocations: 0.5156 kB / 0.5129 GB, free: 2.906 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.462e-05/0.488, allocations: 32.81 kB / 0.5129 GB, free: 2.867 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 2.094e-06/0.488, allocations: 3.938 kB / 0.5129 GB, free: 2.863 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003251/0.4884, allocations: 150.8 kB / 0.5131 GB, free: 2.785 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.933e-05/0.4884, allocations: 84.42 kB / 0.5131 GB, free: 2.691 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.4885, allocations: 130.5 kB / 0.5133 GB, free: 2.578 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.125e-05/0.4885, allocations: 25.7 kB / 0.5133 GB, free: 2.547 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.39e-05/0.4886, allocations: 87.75 kB / 0.5134 GB, free: 2.461 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.632e-05/0.4886, allocations: 35.11 kB / 0.5134 GB, free: 2.434 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.827e-05/0.4887, allocations: 17.42 kB / 0.5134 GB, free: 2.418 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.404e-05/0.4888, allocations: 323.6 kB / 0.5137 GB, free: 2.098 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.617e-05/0.4888, allocations: 27.98 kB / 0.5138 GB, free: 2.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.705e-05/0.4888, allocations: 18.31 kB / 0.5138 GB, free: 2.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000135/0.489, allocations: 137.3 kB / 0.5139 GB, free: 2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.489, allocations: 0 / 0.5139 GB, free: 2 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002123/0.4892, allocations: 123.3 kB / 0.514 GB, free: 1.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.537e-05/0.4893, allocations: 48.25 kB / 0.5141 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.4893, allocations: 320 / 0.5141 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.328e-05/0.4893, allocations: 2 kB / 0.5141 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.503e-06/0.4893, allocations: 0 / 0.5141 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.4893, allocations: 0 / 0.5141 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.833e-05/0.4894, allocations: 6.906 kB / 0.5141 GB, free: 1.887 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.497e-05/0.4895, allocations: 7.375 kB / 0.5141 GB, free: 1.883 MB / 382.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001359/0.4896, allocations: 160.8 kB / 0.5142 GB, free: 1.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.38e-05/0.4896, allocations: 8.234 kB / 0.5142 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.246e-05/0.4897, allocations: 11.64 kB / 0.5143 GB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.4897, allocations: 0 / 0.5143 GB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.4897, allocations: 1.953 kB / 0.5143 GB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-06/0.4897, allocations: 0 / 0.5143 GB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001304/0.4898, allocations: 169 kB / 0.5144 GB, free: 1.523 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-06/0.4898, allocations: 1.344 kB / 0.5144 GB, free: 1.523 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.377e-06/0.4898, allocations: 4.547 kB / 0.5144 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.4899, allocations: 0 / 0.5144 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.4899, allocations: 8.547 kB / 0.5144 GB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.4899, allocations: 0 / 0.5144 GB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.4899, allocations: 0 / 0.5144 GB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002839/0.4902, allocations: 221.7 kB / 0.5146 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.399e-05/0.4902, allocations: 83.31 kB / 0.5147 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.217e-05/0.4903, allocations: 3.219 kB / 0.5147 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.572e-05/0.4903, allocations: 1.25 kB / 0.5147 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.834e-05/0.4903, allocations: 7.781 kB / 0.5147 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.4903, allocations: 11.06 kB / 0.5147 GB, free: 1.285 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.917e-05/0.4904, allocations: 97.28 kB / 0.5148 GB, free: 1.207 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4904, allocations: 0 / 0.5148 GB, free: 1.207 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001385/0.4918, allocations: 325.1 kB / 0.5151 GB, free: 1.156 MB / 382.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001107/0.4929, allocations: 374.3 kB / 0.5155 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003786/0.4933, allocations: 205.5 kB / 0.5157 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.4933, allocations: 1.094 kB / 0.5157 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001593/0.4935, allocations: 149 kB / 0.5158 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002856/0.4938, allocations: 10.3 kB / 0.5159 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005437/0.4943, allocations: 239.1 kB / 0.5161 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002383/0.4946, allocations: 0.6985 MB / 0.5168 GB, free: 15.95 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.358e-05/0.4946, allocations: 5.062 kB / 0.5168 GB, free: 15.95 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.433e-05/0.4946, allocations: 12.44 kB / 0.5168 GB, free: 15.93 MB / 398.1 MB Notification: Performance of SimCode: time 2e-07/0.4946, allocations: 0.5938 kB / 0.5168 GB, free: 15.93 MB / 398.1 MB [CodegenCFunctions.tpl:5632:13-5632:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].