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.00117/0.00117, allocations: 107.9 kB / 17.06 MB, free: 5.828 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.001322/0.001322, allocations: 195.9 kB / 18 MB, free: 4.969 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.447/1.447, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1749/0.1749, allocations: 38.04 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001558, allocations: 67.88 kB / 458.2 MB, free: 6.836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4517/0.4533, allocations: 58.06 MB / 0.5041 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.004902/0.4583, allocations: 2.101 MB / 0.5062 GB, free: 6.293 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00301/0.4613, allocations: 2.033 MB / 0.5082 GB, free: 4.938 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.712e-05/0.4614, allocations: 5.125 kB / 0.5082 GB, free: 4.934 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001537/0.4616, allocations: 14.27 kB / 0.5082 GB, free: 4.926 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.749e-05/0.4617, allocations: 24.47 kB / 0.5082 GB, free: 4.914 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00285/0.4645, allocations: 0.8365 MB / 0.509 GB, free: 4.633 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000164/0.4647, allocations: 76.3 kB / 0.5091 GB, free: 4.605 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.928e-05/0.4648, allocations: 11.59 kB / 0.5091 GB, free: 4.602 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.483e-05/0.4649, allocations: 32.48 kB / 0.5091 GB, free: 4.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.239e-05/0.465, allocations: 37.03 kB / 0.5092 GB, free: 4.578 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.553e-05/0.465, allocations: 8.938 kB / 0.5092 GB, free: 4.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002468/0.4675, allocations: 1.404 MB / 0.5105 GB, free: 4.137 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.582e-05/0.4675, allocations: 16.52 kB / 0.5106 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.073e-05/0.4676, allocations: 29.92 kB / 0.5106 GB, free: 4.113 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002711/0.4703, allocations: 1.327 MB / 0.5119 GB, free: 3.879 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.4704, allocations: 1.094 kB / 0.5119 GB, free: 3.879 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.4704, allocations: 0 / 0.5119 GB, free: 3.879 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.4704, allocations: 4 kB / 0.5119 GB, free: 3.875 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.0007381/0.4711, allocations: 0.5203 MB / 0.5124 GB, free: 3.387 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.4712, allocations: 14.2 kB / 0.5124 GB, free: 3.383 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.574e-05/0.4712, allocations: 7.656 kB / 0.5124 GB, free: 3.379 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001895/0.4714, allocations: 193 kB / 0.5126 GB, free: 3.164 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.4714, allocations: 0.875 kB / 0.5126 GB, free: 3.164 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.725e-05/0.4715, allocations: 1.828 kB / 0.5126 GB, free: 3.164 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001743/0.4716, allocations: 71.78 kB / 0.5127 GB, free: 3.121 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.4717, allocations: 1.062 kB / 0.5127 GB, free: 3.121 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.4717, allocations: 4.75 kB / 0.5127 GB, free: 3.117 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.4717, allocations: 1.375 kB / 0.5127 GB, free: 3.117 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.931e-05/0.4718, allocations: 30.88 kB / 0.5127 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001544/0.4719, allocations: 171.7 kB / 0.5129 GB, free: 2.914 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001228/0.4721, allocations: 57.27 kB / 0.5129 GB, free: 2.879 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.224e-05/0.4721, allocations: 47.3 kB / 0.513 GB, free: 2.859 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.287e-06/0.4722, allocations: 0 / 0.513 GB, free: 2.859 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.546e-05/0.4722, allocations: 40.3 kB / 0.513 GB, free: 2.812 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.302e-06/0.4722, allocations: 0 / 0.513 GB, free: 2.812 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004185/0.4726, allocations: 195.4 kB / 0.5132 GB, free: 2.727 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.788e-05/0.4727, allocations: 87.25 kB / 0.5133 GB, free: 2.633 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.4728, allocations: 130.4 kB / 0.5134 GB, free: 2.527 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.213e-05/0.4728, allocations: 26.98 kB / 0.5134 GB, free: 2.496 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.995e-05/0.4729, allocations: 92.2 kB / 0.5135 GB, free: 2.406 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.182e-05/0.473, allocations: 48.64 kB / 0.5136 GB, free: 2.367 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.6e-05/0.473, allocations: 27.75 kB / 0.5136 GB, free: 2.344 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.2e-05/0.4731, allocations: 325.6 kB / 0.5139 GB, free: 2.023 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.832e-05/0.4732, allocations: 31.41 kB / 0.5139 GB, free: 2.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.223e-05/0.4732, allocations: 30.8 kB / 0.514 GB, free: 2.016 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001828/0.4734, allocations: 166.9 kB / 0.5141 GB, free: 1.926 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4734, allocations: 0 / 0.5141 GB, free: 1.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002067/0.4736, allocations: 158.4 kB / 0.5143 GB, free: 1.844 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.334e-05/0.4737, allocations: 45.08 kB / 0.5143 GB, free: 1.812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.4737, allocations: 0.5938 kB / 0.5143 GB, free: 1.812 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.4737, allocations: 4.719 kB / 0.5143 GB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.512e-06/0.4737, allocations: 4 kB / 0.5143 GB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.842e-06/0.4738, allocations: 1.359 kB / 0.5143 GB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.715e-05/0.4738, allocations: 3.719 kB / 0.5143 GB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.316e-05/0.4738, allocations: 7.156 kB / 0.5143 GB, free: 1.801 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.0001442/0.474, allocations: 166 kB / 0.5145 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.754e-05/0.474, allocations: 14 kB / 0.5145 GB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.559e-05/0.4741, allocations: 12.72 kB / 0.5145 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.4741, allocations: 4 kB / 0.5145 GB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.4741, allocations: 1.281 kB / 0.5145 GB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.4741, allocations: 0.7031 kB / 0.5145 GB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001326/0.4742, allocations: 182.9 kB / 0.5147 GB, free: 1.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.4742, allocations: 1.562 kB / 0.5147 GB, free: 1.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.184e-06/0.4742, allocations: 4.641 kB / 0.5147 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.4742, allocations: 0 / 0.5147 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.4743, allocations: 4.844 kB / 0.5147 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.4743, allocations: 3.938 kB / 0.5147 GB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4743, allocations: 0 / 0.5147 GB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003961/0.4747, allocations: 293.3 kB / 0.515 GB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.529e-05/0.4747, allocations: 84.58 kB / 0.5151 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.544e-05/0.4748, allocations: 2.938 kB / 0.5151 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.782e-05/0.4748, allocations: 2.625 kB / 0.5151 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.577e-05/0.4748, allocations: 2.516 kB / 0.5151 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/0.4748, allocations: 4.766 kB / 0.5151 GB, free: 1.184 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.975e-05/0.4749, allocations: 109.8 kB / 0.5152 GB, free: 1.098 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4749, allocations: 0 / 0.5152 GB, free: 1.098 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001479/0.4764, allocations: 323.3 kB / 0.5155 GB, free: 1.055 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.001059/0.4775, allocations: 371.6 kB / 0.5159 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005087/0.478, allocations: 302 kB / 0.5161 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.478, allocations: 0 / 0.5161 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002151/0.4782, allocations: 223.4 kB / 0.5164 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000306/0.4785, allocations: 10.45 kB / 0.5164 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005496/0.4791, allocations: 305.7 kB / 0.5167 GB, free: 480 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002387/0.4793, allocations: 0.7036 MB / 0.5173 GB, free: 15.77 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.523e-05/0.4794, allocations: 1.188 kB / 0.5173 GB, free: 15.77 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.475e-05/0.4794, allocations: 8.531 kB / 0.5174 GB, free: 15.77 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4794, allocations: 0 / 0.5174 GB, free: 15.77 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].