Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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.TransDatFromEqCirc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") translateModel(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 110.4 kB / 17.07 MB, free: 5.996 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.001179/0.001179, allocations: 198.8 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.453/1.453, 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/package.mo): time 0.198/0.198, allocations: 38.04 MB / 329.9 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 63.91 kB / 458.2 MB, free: 6.82 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4376/0.4392, allocations: 58.05 MB / 0.5041 GB, free: 7.766 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.004473/0.4437, allocations: 2.154 MB / 0.5062 GB, free: 6.258 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001692/0.4455, allocations: 1.06 MB / 0.5072 GB, free: 5.551 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.523e-05/0.4455, allocations: 3.938 kB / 0.5073 GB, free: 5.547 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001487/0.4457, allocations: 10.7 kB / 0.5073 GB, free: 5.543 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001436/0.4458, allocations: 54.91 kB / 0.5073 GB, free: 5.516 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00119/0.447, allocations: 290.1 kB / 0.5076 GB, free: 5.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002574/0.4473, allocations: 121.1 kB / 0.5077 GB, free: 5.367 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.637e-05/0.4474, allocations: 4.172 kB / 0.5077 GB, free: 5.367 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001308/0.4475, allocations: 44.58 kB / 0.5078 GB, free: 5.355 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001601/0.4477, allocations: 71.05 kB / 0.5078 GB, free: 5.328 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.779e-05/0.4477, allocations: 2.375 kB / 0.5078 GB, free: 5.328 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009331/0.4487, allocations: 415 kB / 0.5082 GB, free: 5.195 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.414e-05/0.4487, allocations: 33.75 kB / 0.5082 GB, free: 5.191 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.064e-05/0.4488, allocations: 46.22 kB / 0.5083 GB, free: 5.164 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007942/0.4496, allocations: 0.5179 MB / 0.5088 GB, free: 5.066 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.4496, allocations: 0 / 0.5088 GB, free: 5.066 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4496, allocations: 0 / 0.5088 GB, free: 5.066 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.4497, allocations: 0 / 0.5088 GB, free: 5.066 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004469/0.4501, allocations: 466.8 kB / 0.5092 GB, free: 4.617 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.4502, allocations: 14.14 kB / 0.5093 GB, free: 4.613 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.608e-05/0.4502, allocations: 17.69 kB / 0.5093 GB, free: 4.602 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001612/0.4504, allocations: 186.2 kB / 0.5095 GB, free: 4.395 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.4504, allocations: 11.17 kB / 0.5095 GB, free: 4.387 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.283e-05/0.4504, allocations: 6.438 kB / 0.5095 GB, free: 4.383 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001821/0.4506, allocations: 94.97 kB / 0.5096 GB, free: 4.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.4506, allocations: 0 / 0.5096 GB, free: 4.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.4506, allocations: 1.094 kB / 0.5096 GB, free: 4.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.4506, allocations: 0 / 0.5096 GB, free: 4.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.975e-05/0.4508, allocations: 66.3 kB / 0.5096 GB, free: 4.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001474/0.4509, allocations: 177 kB / 0.5098 GB, free: 4.121 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001519/0.4511, allocations: 132.6 kB / 0.5099 GB, free: 4.039 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.4512, allocations: 123.9 kB / 0.51 GB, free: 3.973 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.089e-05/0.4512, allocations: 1.125 kB / 0.51 GB, free: 3.973 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.209e-05/0.4512, allocations: 31.62 kB / 0.5101 GB, free: 3.934 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 9.22e-07/0.4512, allocations: 3.938 kB / 0.5101 GB, free: 3.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005583/0.4518, allocations: 299.4 kB / 0.5104 GB, free: 3.812 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/0.4519, allocations: 92.02 kB / 0.5104 GB, free: 3.719 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.452, allocations: 129.9 kB / 0.5106 GB, free: 3.613 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.452, allocations: 31.08 kB / 0.5106 GB, free: 3.578 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.781e-05/0.452, allocations: 92.84 kB / 0.5107 GB, free: 3.488 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.969e-05/0.4521, allocations: 69.09 kB / 0.5108 GB, free: 3.434 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.707e-05/0.4522, allocations: 26.97 kB / 0.5108 GB, free: 3.414 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.815e-05/0.4522, allocations: 322.6 kB / 0.5111 GB, free: 3.098 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.858e-05/0.4523, allocations: 57.97 kB / 0.5111 GB, free: 3.086 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.832e-05/0.4524, allocations: 59.48 kB / 0.5112 GB, free: 3.074 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002671/0.4527, allocations: 229.5 kB / 0.5114 GB, free: 2.969 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.4527, allocations: 5.094 kB / 0.5114 GB, free: 2.965 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002673/0.453, allocations: 228.5 kB / 0.5116 GB, free: 2.859 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.426e-05/0.4531, allocations: 59.3 kB / 0.5117 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.4531, allocations: 3.938 kB / 0.5117 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.4531, allocations: 1.094 kB / 0.5117 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.4531, allocations: 0 / 0.5117 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.4531, allocations: 1.719 kB / 0.5117 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.027e-05/0.4532, allocations: 13.11 kB / 0.5117 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.178e-05/0.4532, allocations: 6.156 kB / 0.5117 GB, free: 2.816 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.0001432/0.4534, allocations: 184.4 kB / 0.5119 GB, free: 2.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.571e-05/0.4534, allocations: 13.52 kB / 0.5119 GB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.349e-05/0.4534, allocations: 9.078 kB / 0.5119 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.4534, allocations: 0 / 0.5119 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.4534, allocations: 1.219 kB / 0.5119 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.4535, allocations: 0.6562 kB / 0.5119 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000138/0.4536, allocations: 197.3 kB / 0.5121 GB, free: 2.441 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.4536, allocations: 1.547 kB / 0.5121 GB, free: 2.441 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.383e-06/0.4536, allocations: 4 kB / 0.5121 GB, free: 2.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.4536, allocations: 4.641 kB / 0.5121 GB, free: 2.434 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.759e-05/0.4536, allocations: 9.344 kB / 0.5121 GB, free: 2.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.4536, allocations: 4.641 kB / 0.5121 GB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.4537, allocations: 1.469 kB / 0.5121 GB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005348/0.4542, allocations: 389.4 kB / 0.5125 GB, free: 2.254 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.36e-05/0.4542, allocations: 93.02 kB / 0.5126 GB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.634e-05/0.4543, allocations: 7.656 kB / 0.5126 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.959e-05/0.4543, allocations: 4.906 kB / 0.5126 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.647e-05/0.4543, allocations: 2.25 kB / 0.5126 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.489e-05/0.4544, allocations: 11.02 kB / 0.5126 GB, free: 2.141 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.274e-05/0.4544, allocations: 103.4 kB / 0.5127 GB, free: 2.059 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4544, allocations: 0.6562 kB / 0.5127 GB, free: 2.059 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006216/0.4551, allocations: 130.2 kB / 0.5128 GB, free: 2.047 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.0004538/0.4555, allocations: 189 kB / 0.513 GB, free: 1.934 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006323/0.4562, allocations: 0.5684 MB / 0.5136 GB, free: 1.613 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.4562, allocations: 4.062 kB / 0.5136 GB, free: 1.609 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003861/0.4566, allocations: 468 kB / 0.514 GB, free: 1.316 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002678/0.4568, allocations: 21.73 kB / 0.514 GB, free: 1.309 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006714/0.4575, allocations: 390.4 kB / 0.5144 GB, free: 1.113 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001989/0.4577, allocations: 0.7228 MB / 0.5151 GB, free: 420 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.85e-05/0.4578, allocations: 1.062 kB / 0.5151 GB, free: 420 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.27e-05/0.4578, allocations: 8.906 kB / 0.5151 GB, free: 412 kB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4578, allocations: 0 / 0.5151 GB, free: 412 kB / 382.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].