Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|r_rd.1.|r_rd.2.|r_rq.1.|r_rq.2.|xm_d.1.|xm_d.2.|xm_d.3.|xm_q.1.|xm_q.2.|xm_q.3.|xsig_rd.1.|xsig_rd.2.|xsig_rq.1.|xsig_rq.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|r_rd.1.|r_rd.2.|r_rq.1.|r_rq.2.|xm_d.1.|xm_d.2.|xm_d.3.|xm_q.1.|xm_q.2.|xm_q.3.|xsig_rd.1.|xsig_rd.2.|xsig_rq.1.|xsig_rq.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 108.3 kB / 17.06 MB, free: 5.824 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.00139/0.00139, allocations: 191 kB / 18 MB, free: 4.977 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.482/1.482, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1943/0.1943, allocations: 38.05 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 67.91 kB / 458.2 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3959/0.3973, allocations: 58.04 MB / 0.5041 GB, free: 7.785 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.003287/0.4006, allocations: 2.157 MB / 0.5062 GB, free: 6.277 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002669/0.4033, allocations: 2.042 MB / 0.5082 GB, free: 4.914 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.831e-05/0.4034, allocations: 1.188 kB / 0.5082 GB, free: 4.914 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.4035, allocations: 18.39 kB / 0.5082 GB, free: 4.902 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001159/0.4037, allocations: 37.95 kB / 0.5083 GB, free: 4.883 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002299/0.406, allocations: 0.8213 MB / 0.5091 GB, free: 4.605 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001719/0.4062, allocations: 102.3 kB / 0.5092 GB, free: 4.566 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.046e-05/0.4062, allocations: 8.875 kB / 0.5092 GB, free: 4.562 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.53e-05/0.4063, allocations: 36.34 kB / 0.5092 GB, free: 4.551 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.691e-05/0.4064, allocations: 54.66 kB / 0.5093 GB, free: 4.531 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.385e-05/0.4064, allocations: 3.438 kB / 0.5093 GB, free: 4.531 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002409/0.4089, allocations: 1.381 MB / 0.5106 GB, free: 4.102 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.842e-05/0.409, allocations: 31.92 kB / 0.5106 GB, free: 4.094 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.012e-05/0.409, allocations: 39.7 kB / 0.5107 GB, free: 4.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002357/0.4114, allocations: 1.327 MB / 0.512 GB, free: 3.828 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.4114, allocations: 1.188 kB / 0.512 GB, free: 3.828 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4114, allocations: 0 / 0.512 GB, free: 3.828 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.4114, allocations: 0 / 0.512 GB, free: 3.828 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007182/0.4122, allocations: 0.5328 MB / 0.5125 GB, free: 3.332 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.4122, allocations: 17.11 kB / 0.5125 GB, free: 3.324 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.858e-05/0.4123, allocations: 13.91 kB / 0.5125 GB, free: 3.316 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001606/0.4124, allocations: 197.2 kB / 0.5127 GB, free: 3.102 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.269e-05/0.4125, allocations: 5.156 kB / 0.5127 GB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.739e-05/0.4125, allocations: 1.031 kB / 0.5127 GB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001832/0.4127, allocations: 75.72 kB / 0.5128 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.4127, allocations: 1.312 kB / 0.5128 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.333e-05/0.4127, allocations: 0 / 0.5128 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.4127, allocations: 0 / 0.5128 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.237e-05/0.4128, allocations: 44.56 kB / 0.5128 GB, free: 3.051 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001424/0.4129, allocations: 183 kB / 0.513 GB, free: 2.844 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001146/0.4131, allocations: 85.05 kB / 0.5131 GB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.298e-05/0.4132, allocations: 62.53 kB / 0.5132 GB, free: 2.762 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.487e-06/0.4132, allocations: 0.5625 kB / 0.5132 GB, free: 2.762 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.064e-05/0.4132, allocations: 31.97 kB / 0.5132 GB, free: 2.723 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.082e-06/0.4132, allocations: 0 / 0.5132 GB, free: 2.723 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003887/0.4136, allocations: 226.4 kB / 0.5134 GB, free: 2.629 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.204e-05/0.4137, allocations: 91.22 kB / 0.5135 GB, free: 2.531 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.4138, allocations: 150.1 kB / 0.5136 GB, free: 2.422 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.193e-05/0.4138, allocations: 25.7 kB / 0.5137 GB, free: 2.391 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.885e-05/0.4138, allocations: 106.4 kB / 0.5138 GB, free: 2.289 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.28e-05/0.4139, allocations: 45 kB / 0.5138 GB, free: 2.254 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.351e-05/0.414, allocations: 25.41 kB / 0.5138 GB, free: 2.234 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.871e-05/0.414, allocations: 322 kB / 0.5141 GB, free: 1.918 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.743e-05/0.4141, allocations: 41.14 kB / 0.5142 GB, free: 1.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.803e-05/0.4142, allocations: 42.03 kB / 0.5142 GB, free: 1.902 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002053/0.4144, allocations: 175 kB / 0.5144 GB, free: 1.816 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4144, allocations: 5.125 kB / 0.5144 GB, free: 1.812 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002476/0.4146, allocations: 172.9 kB / 0.5145 GB, free: 1.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.698e-05/0.4147, allocations: 49.38 kB / 0.5146 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.4147, allocations: 0.6094 kB / 0.5146 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.4147, allocations: 4.297 kB / 0.5146 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.793e-06/0.4147, allocations: 0 / 0.5146 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.4148, allocations: 5.453 kB / 0.5146 GB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.474e-05/0.4148, allocations: 15.12 kB / 0.5146 GB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.677e-05/0.4149, allocations: 5.688 kB / 0.5146 GB, free: 1.68 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.0001179/0.415, allocations: 171.7 kB / 0.5148 GB, free: 1.527 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.42e-05/0.415, allocations: 14.84 kB / 0.5148 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.11e-05/0.415, allocations: 13.39 kB / 0.5148 GB, free: 1.512 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.415, allocations: 1.656 kB / 0.5148 GB, free: 1.512 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.4151, allocations: 0 / 0.5148 GB, free: 1.512 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.4151, allocations: 1.188 kB / 0.5148 GB, free: 1.512 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000122/0.4152, allocations: 185.7 kB / 0.515 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.4152, allocations: 5.406 kB / 0.515 GB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.382e-06/0.4152, allocations: 0 / 0.515 GB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.4152, allocations: 5.375 kB / 0.515 GB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.4152, allocations: 4.141 kB / 0.515 GB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.4152, allocations: 0 / 0.515 GB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.4152, allocations: 1.234 kB / 0.515 GB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004045/0.4157, allocations: 303.3 kB / 0.5153 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.729e-05/0.4157, allocations: 88.67 kB / 0.5154 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.77e-05/0.4157, allocations: 7.453 kB / 0.5154 GB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.221e-05/0.4158, allocations: 7.188 kB / 0.5154 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.776e-05/0.4158, allocations: 3.641 kB / 0.5154 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.302e-05/0.4158, allocations: 4.469 kB / 0.5154 GB, free: 1.051 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.223e-05/0.4159, allocations: 117.3 kB / 0.5155 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4159, allocations: 0 / 0.5155 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001657/0.4176, allocations: 327.2 kB / 0.5158 GB, free: 0.9258 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.001167/0.4188, allocations: 381.5 kB / 0.5162 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004313/0.4192, allocations: 333.7 kB / 0.5165 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.4192, allocations: 0 / 0.5165 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002193/0.4194, allocations: 255.4 kB / 0.5168 GB, free: 456 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003052/0.4198, allocations: 21.33 kB / 0.5168 GB, free: 448 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007556/0.4205, allocations: 361.2 kB / 0.5171 GB, free: 244 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002802/0.4208, allocations: 0.7157 MB / 0.5178 GB, free: 15.54 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.02e-05/0.4208, allocations: 1.156 kB / 0.5178 GB, free: 15.54 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.782e-05/0.4209, allocations: 9.969 kB / 0.5178 GB, free: 15.53 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4209, allocations: 0 / 0.5178 GB, free: 15.53 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].