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.002021/0.002021, allocations: 106.1 kB / 17.06 MB, free: 6.027 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.002926/0.002926, allocations: 195 kB / 18 MB, free: 5.105 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.507/1.507, 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.1764/0.1764, allocations: 38.05 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 67.91 kB / 458.2 MB, free: 6.832 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4282/0.4295, allocations: 58.04 MB / 0.5041 GB, free: 7.762 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.004246/0.4338, allocations: 2.102 MB / 0.5062 GB, free: 6.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003921/0.4377, allocations: 2.049 MB / 0.5082 GB, free: 4.934 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.315e-05/0.4378, allocations: 1.406 kB / 0.5082 GB, free: 4.934 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002544/0.4381, allocations: 10.5 kB / 0.5082 GB, free: 4.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001116/0.4382, allocations: 33.08 kB / 0.5082 GB, free: 4.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002657/0.4409, allocations: 0.8345 MB / 0.509 GB, free: 4.629 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001713/0.4411, allocations: 72.41 kB / 0.5091 GB, free: 4.605 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.501e-05/0.4412, allocations: 8.484 kB / 0.5091 GB, free: 4.602 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001038/0.4413, allocations: 37.42 kB / 0.5091 GB, free: 4.586 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.4414, allocations: 39.92 kB / 0.5092 GB, free: 4.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.146e-05/0.4414, allocations: 1.156 kB / 0.5092 GB, free: 4.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002479/0.4439, allocations: 1.404 MB / 0.5105 GB, free: 4.137 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.792e-05/0.4439, allocations: 12.2 kB / 0.5106 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.521e-05/0.444, allocations: 27.75 kB / 0.5106 GB, free: 4.113 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002403/0.4464, allocations: 1.309 MB / 0.5119 GB, free: 3.891 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.4464, allocations: 1.594 kB / 0.5119 GB, free: 3.891 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4464, allocations: 0 / 0.5119 GB, free: 3.891 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.028e-05/0.4465, allocations: 0 / 0.5119 GB, free: 3.891 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.0006773/0.4471, allocations: 0.506 MB / 0.5124 GB, free: 3.406 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.4472, allocations: 13.27 kB / 0.5124 GB, free: 3.402 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.233e-05/0.4472, allocations: 9.094 kB / 0.5124 GB, free: 3.398 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001729/0.4474, allocations: 182.4 kB / 0.5125 GB, free: 3.191 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.232e-06/0.4474, allocations: 5.125 kB / 0.5126 GB, free: 3.188 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.597e-05/0.4475, allocations: 2.234 kB / 0.5126 GB, free: 3.188 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001443/0.4476, allocations: 60.28 kB / 0.5126 GB, free: 3.148 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.4476, allocations: 0 / 0.5126 GB, free: 3.148 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.087e-05/0.4477, allocations: 0 / 0.5126 GB, free: 3.148 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.4477, allocations: 1.219 kB / 0.5126 GB, free: 3.148 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.736e-05/0.4477, allocations: 23.41 kB / 0.5126 GB, free: 3.145 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001671/0.4479, allocations: 171.8 kB / 0.5128 GB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.798e-05/0.448, allocations: 48.62 kB / 0.5128 GB, free: 2.906 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.485e-05/0.448, allocations: 36.92 kB / 0.5129 GB, free: 2.887 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.102e-05/0.4481, allocations: 0.5312 kB / 0.5129 GB, free: 2.887 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.4481, allocations: 40.41 kB / 0.5129 GB, free: 2.84 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 2.315e-06/0.4481, allocations: 0.9844 kB / 0.5129 GB, free: 2.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.000311/0.4484, allocations: 146.5 kB / 0.5131 GB, free: 2.766 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.715e-05/0.4485, allocations: 85.34 kB / 0.5131 GB, free: 2.672 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.898e-05/0.4486, allocations: 129.4 kB / 0.5133 GB, free: 2.559 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.314e-05/0.4486, allocations: 27.45 kB / 0.5133 GB, free: 2.527 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.461e-05/0.4486, allocations: 91.84 kB / 0.5134 GB, free: 2.438 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.226e-05/0.4487, allocations: 21.19 kB / 0.5134 GB, free: 2.422 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.164e-05/0.4487, allocations: 22.38 kB / 0.5134 GB, free: 2.402 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.81e-05/0.4488, allocations: 319.3 kB / 0.5137 GB, free: 2.086 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.055e-05/0.4489, allocations: 23.58 kB / 0.5138 GB, free: 2.082 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.206e-05/0.4489, allocations: 27.48 kB / 0.5138 GB, free: 2.074 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001401/0.4491, allocations: 133.3 kB / 0.5139 GB, free: 1.988 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.4491, allocations: 0 / 0.5139 GB, free: 1.988 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001672/0.4492, allocations: 125.9 kB / 0.514 GB, free: 1.914 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.279e-05/0.4493, allocations: 41.03 kB / 0.5141 GB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.4493, allocations: 1.375 kB / 0.5141 GB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.4493, allocations: 0.75 kB / 0.5141 GB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.4493, allocations: 0 / 0.5141 GB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/0.4494, allocations: 5.297 kB / 0.5141 GB, free: 1.879 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.489e-05/0.4494, allocations: 5.188 kB / 0.5141 GB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.479e-05/0.4494, allocations: 4.734 kB / 0.5141 GB, free: 1.875 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.0001144/0.4495, allocations: 163.7 kB / 0.5142 GB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.871e-05/0.4496, allocations: 9.328 kB / 0.5142 GB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.258e-05/0.4496, allocations: 7.297 kB / 0.5143 GB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.4496, allocations: 0.6562 kB / 0.5143 GB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.4496, allocations: 2.578 kB / 0.5143 GB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.4496, allocations: 1.062 kB / 0.5143 GB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001076/0.4497, allocations: 181.6 kB / 0.5144 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.4497, allocations: 0 / 0.5144 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.4497, allocations: 3.938 kB / 0.5144 GB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.4498, allocations: 5.812 kB / 0.5144 GB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.4498, allocations: 2.312 kB / 0.5144 GB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.4498, allocations: 1.75 kB / 0.5144 GB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.4498, allocations: 0 / 0.5144 GB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002672/0.4501, allocations: 212.6 kB / 0.5146 GB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.667e-05/0.4501, allocations: 84.28 kB / 0.5147 GB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.144e-05/0.4501, allocations: 3.234 kB / 0.5147 GB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.095e-05/0.4501, allocations: 1.031 kB / 0.5147 GB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.586e-05/0.4502, allocations: 6.719 kB / 0.5147 GB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.4502, allocations: 11.31 kB / 0.5147 GB, free: 1.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.671e-05/0.4502, allocations: 97.84 kB / 0.5148 GB, free: 1.191 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4503, allocations: 0.9375 kB / 0.5148 GB, free: 1.191 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001393/0.4517, allocations: 315.9 kB / 0.5151 GB, free: 1.148 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.001355/0.453, allocations: 368.7 kB / 0.5155 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005467/0.4536, allocations: 209.2 kB / 0.5157 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.4536, allocations: 0.5625 kB / 0.5157 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002182/0.4538, allocations: 154.8 kB / 0.5158 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000398/0.4542, allocations: 3.766 kB / 0.5158 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000896/0.4551, allocations: 254.1 kB / 0.5161 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004296/0.4556, allocations: 0.6979 MB / 0.5168 GB, free: 15.94 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.991e-05/0.4556, allocations: 5.203 kB / 0.5168 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.37e-05/0.4556, allocations: 9.125 kB / 0.5168 GB, free: 15.93 MB / 398.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4556, allocations: 0 / 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].