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.001485/0.001485, allocations: 112 kB / 17.06 MB, free: 5.992 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.001583/0.001583, allocations: 194.9 kB / 18.01 MB, free: 5.074 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.406/1.406, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1739/0.1739, allocations: 38.05 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 63.91 kB / 458.2 MB, free: 6.805 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4553/0.4568, allocations: 58.05 MB / 0.5041 GB, free: 7.75 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.003532/0.4603, allocations: 2.096 MB / 0.5062 GB, free: 6.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002976/0.4633, allocations: 2.033 MB / 0.5082 GB, free: 4.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.763e-05/0.4634, allocations: 1.469 kB / 0.5082 GB, free: 4.93 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001534/0.4636, allocations: 22.2 kB / 0.5082 GB, free: 4.914 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001035/0.4637, allocations: 28.02 kB / 0.5082 GB, free: 4.898 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002526/0.4662, allocations: 0.8298 MB / 0.509 GB, free: 4.625 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001672/0.4664, allocations: 76.52 kB / 0.5091 GB, free: 4.598 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.646e-05/0.4665, allocations: 7.953 kB / 0.5091 GB, free: 4.598 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.053e-05/0.4666, allocations: 39.97 kB / 0.5091 GB, free: 4.578 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.776e-05/0.4666, allocations: 32.55 kB / 0.5092 GB, free: 4.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.48e-05/0.4667, allocations: 6.219 kB / 0.5092 GB, free: 4.566 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002513/0.4692, allocations: 1.404 MB / 0.5105 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.854e-05/0.4693, allocations: 16.97 kB / 0.5106 GB, free: 4.129 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.763e-05/0.4693, allocations: 29.5 kB / 0.5106 GB, free: 4.109 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002543/0.4719, allocations: 1.33 MB / 0.5119 GB, free: 3.871 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.4719, allocations: 0 / 0.5119 GB, free: 3.871 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.4719, allocations: 0 / 0.5119 GB, free: 3.871 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.4719, allocations: 0 / 0.5119 GB, free: 3.871 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007838/0.4727, allocations: 0.532 MB / 0.5124 GB, free: 3.367 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.4728, allocations: 14.36 kB / 0.5124 GB, free: 3.363 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.224e-05/0.4728, allocations: 7.641 kB / 0.5124 GB, free: 3.359 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001561/0.473, allocations: 193.1 kB / 0.5126 GB, free: 3.145 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.357e-06/0.473, allocations: 1.219 kB / 0.5126 GB, free: 3.145 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.191e-05/0.473, allocations: 4.641 kB / 0.5126 GB, free: 3.141 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001626/0.4732, allocations: 69.02 kB / 0.5127 GB, free: 3.102 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.4732, allocations: 0.6094 kB / 0.5127 GB, free: 3.102 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.4732, allocations: 1.125 kB / 0.5127 GB, free: 3.102 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.4732, allocations: 4 kB / 0.5127 GB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.991e-05/0.4733, allocations: 31.69 kB / 0.5127 GB, free: 3.094 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001607/0.4735, allocations: 175.7 kB / 0.5129 GB, free: 2.891 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.408e-05/0.4736, allocations: 57.69 kB / 0.5129 GB, free: 2.855 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.983e-05/0.4737, allocations: 51.17 kB / 0.513 GB, free: 2.832 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.092e-06/0.4737, allocations: 0 / 0.513 GB, free: 2.832 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.474e-05/0.4737, allocations: 36.34 kB / 0.513 GB, free: 2.789 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 8.41e-07/0.4737, allocations: 4 kB / 0.513 GB, free: 2.785 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003668/0.4741, allocations: 198.3 kB / 0.5132 GB, free: 2.695 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.081e-05/0.4741, allocations: 88.89 kB / 0.5133 GB, free: 2.602 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.4742, allocations: 127.3 kB / 0.5134 GB, free: 2.496 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.215e-05/0.4743, allocations: 27.08 kB / 0.5134 GB, free: 2.465 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.824e-05/0.4743, allocations: 92.67 kB / 0.5135 GB, free: 2.375 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.793e-05/0.4744, allocations: 40.86 kB / 0.5136 GB, free: 2.344 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.334e-05/0.4744, allocations: 23.2 kB / 0.5136 GB, free: 2.324 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.677e-05/0.4745, allocations: 329.5 kB / 0.5139 GB, free: 2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.792e-05/0.4746, allocations: 36.02 kB / 0.5139 GB, free: 1.992 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.666e-05/0.4746, allocations: 30.89 kB / 0.514 GB, free: 1.988 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001769/0.4748, allocations: 162.5 kB / 0.5141 GB, free: 1.902 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.4748, allocations: 0 / 0.5141 GB, free: 1.902 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001988/0.475, allocations: 160.8 kB / 0.5143 GB, free: 1.816 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.391e-05/0.4751, allocations: 47.06 kB / 0.5143 GB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.373e-06/0.4751, allocations: 0.75 kB / 0.5143 GB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.4751, allocations: 0 / 0.5143 GB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.683e-06/0.4751, allocations: 5.094 kB / 0.5143 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.501e-06/0.4751, allocations: 0.7969 kB / 0.5143 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.254e-05/0.4752, allocations: 4.125 kB / 0.5143 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.882e-05/0.4752, allocations: 6.219 kB / 0.5143 GB, free: 1.777 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.0001096/0.4753, allocations: 169.2 kB / 0.5145 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.176e-05/0.4753, allocations: 11.16 kB / 0.5145 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.007e-05/0.4754, allocations: 12.06 kB / 0.5145 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.4754, allocations: 0.625 kB / 0.5145 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.4754, allocations: 1.062 kB / 0.5145 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.4754, allocations: 7.188 kB / 0.5145 GB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001366/0.4755, allocations: 188 kB / 0.5147 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.4755, allocations: 0 / 0.5147 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.31e-07/0.4756, allocations: 0 / 0.5147 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.4756, allocations: 1.719 kB / 0.5147 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.4756, allocations: 2.875 kB / 0.5147 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.4756, allocations: 5.672 kB / 0.5147 GB, free: 1.398 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.4756, allocations: 0 / 0.5147 GB, free: 1.398 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004851/0.4761, allocations: 293.9 kB / 0.515 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.516e-05/0.4761, allocations: 83.66 kB / 0.5151 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.738e-05/0.4762, allocations: 3.297 kB / 0.5151 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.938e-05/0.4762, allocations: 2.656 kB / 0.5151 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.533e-05/0.4762, allocations: 2.766 kB / 0.5151 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.755e-05/0.4763, allocations: 4.359 kB / 0.5151 GB, free: 1.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.611e-05/0.4763, allocations: 112.9 kB / 0.5152 GB, free: 1.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4763, allocations: 1.031 kB / 0.5152 GB, free: 1.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001522/0.4779, allocations: 321.3 kB / 0.5155 GB, free: 1.027 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.001075/0.479, allocations: 373.3 kB / 0.5159 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004792/0.4795, allocations: 297.6 kB / 0.5162 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4795, allocations: 0.5 kB / 0.5162 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000199/0.4797, allocations: 222.5 kB / 0.5164 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002766/0.48, allocations: 11.78 kB / 0.5164 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005278/0.4805, allocations: 315.8 kB / 0.5167 GB, free: 440 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002665/0.4808, allocations: 0.7038 MB / 0.5174 GB, free: 15.73 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.365e-05/0.4808, allocations: 5.641 kB / 0.5174 GB, free: 15.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.342e-05/0.4808, allocations: 8.719 kB / 0.5174 GB, free: 15.72 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4808, allocations: 0 / 0.5174 GB, free: 15.72 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].