Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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.Z_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001525/0.001525, 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.001729/0.00173, 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.454/1.454, 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.1847/0.1847, allocations: 38.03 MB / 329.9 MB, free: 8.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 59.91 kB / 458.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3548/0.3562, allocations: 58.06 MB / 0.5041 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003572/0.3598, allocations: 2.114 MB / 0.5062 GB, free: 6.281 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002967/0.3628, allocations: 2.035 MB / 0.5082 GB, free: 4.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.631e-05/0.3629, allocations: 1.062 kB / 0.5082 GB, free: 4.93 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001592/0.3631, allocations: 9.688 kB / 0.5082 GB, free: 4.926 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001095/0.3632, allocations: 37.56 kB / 0.5082 GB, free: 4.902 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003145/0.3664, allocations: 0.8322 MB / 0.509 GB, free: 4.625 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000199/0.3666, allocations: 79.34 kB / 0.5091 GB, free: 4.598 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.467e-05/0.3666, allocations: 3.984 kB / 0.5091 GB, free: 4.598 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001049/0.3667, allocations: 35.31 kB / 0.5091 GB, free: 4.582 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001022/0.3669, allocations: 52.22 kB / 0.5092 GB, free: 4.562 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.056e-05/0.3669, allocations: 2.781 kB / 0.5092 GB, free: 4.562 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003164/0.37, allocations: 1.404 MB / 0.5106 GB, free: 4.129 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.149e-05/0.3702, allocations: 43.83 kB / 0.5106 GB, free: 4.117 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.018e-05/0.3703, allocations: 51.38 kB / 0.5106 GB, free: 4.082 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003132/0.3734, allocations: 1.388 MB / 0.512 GB, free: 3.816 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3734, allocations: 0 / 0.512 GB, free: 3.816 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3734, allocations: 1.062 kB / 0.512 GB, free: 3.816 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.271e-05/0.3734, allocations: 0 / 0.512 GB, free: 3.816 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.00104/0.3745, allocations: 0.5988 MB / 0.5126 GB, free: 3.289 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.3745, allocations: 17.73 kB / 0.5126 GB, free: 3.281 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.135e-05/0.3746, allocations: 26.16 kB / 0.5126 GB, free: 3.266 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001744/0.3748, allocations: 208.2 kB / 0.5128 GB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.343e-05/0.3748, allocations: 2.547 kB / 0.5128 GB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.694e-05/0.3748, allocations: 0 / 0.5128 GB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002667/0.3751, allocations: 140.2 kB / 0.513 GB, free: 2.984 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.3751, allocations: 0 / 0.513 GB, free: 2.984 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.3751, allocations: 1.188 kB / 0.513 GB, free: 2.984 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.3751, allocations: 0 / 0.513 GB, free: 2.984 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001556/0.3753, allocations: 99.45 kB / 0.5131 GB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002182/0.3755, allocations: 219.3 kB / 0.5133 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001897/0.3757, allocations: 155 kB / 0.5134 GB, free: 2.656 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001572/0.3759, allocations: 147.9 kB / 0.5136 GB, free: 2.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.166e-05/0.3759, allocations: 0.8438 kB / 0.5136 GB, free: 2.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.109e-05/0.3759, allocations: 31.84 kB / 0.5136 GB, free: 2.551 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.192e-06/0.376, allocations: 0 / 0.5136 GB, free: 2.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0008077/0.3768, allocations: 0.4901 MB / 0.5141 GB, free: 2.395 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.586e-05/0.3769, allocations: 108.9 kB / 0.5142 GB, free: 2.297 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001506/0.377, allocations: 172.7 kB / 0.5143 GB, free: 2.176 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.283e-05/0.377, allocations: 27.05 kB / 0.5144 GB, free: 2.145 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.199e-05/0.3771, allocations: 104.8 kB / 0.5145 GB, free: 2.047 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.822e-05/0.3772, allocations: 125.6 kB / 0.5146 GB, free: 1.949 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.714e-05/0.3772, allocations: 38.31 kB / 0.5146 GB, free: 1.926 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.77e-05/0.3773, allocations: 341.8 kB / 0.5149 GB, free: 1.598 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001276/0.3775, allocations: 103.4 kB / 0.515 GB, free: 1.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/0.3776, allocations: 103.5 kB / 0.5151 GB, free: 1.543 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004816/0.3781, allocations: 378.7 kB / 0.5155 GB, free: 1.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.3781, allocations: 0.5625 kB / 0.5155 GB, free: 1.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005128/0.3786, allocations: 343 kB / 0.5158 GB, free: 1.281 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.484e-05/0.3787, allocations: 86.5 kB / 0.5159 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.3787, allocations: 0 / 0.5159 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.3788, allocations: 1.031 kB / 0.5159 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.062e-06/0.3788, allocations: 0 / 0.5159 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.3788, allocations: 3.188 kB / 0.5159 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.884e-05/0.3789, allocations: 24.81 kB / 0.5159 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.39e-05/0.3789, allocations: 8 kB / 0.5159 GB, free: 1.227 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.0001931/0.3791, allocations: 237.3 kB / 0.5162 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.358e-05/0.3792, allocations: 26.38 kB / 0.5162 GB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.879e-05/0.3792, allocations: 10.77 kB / 0.5162 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.3792, allocations: 1.281 kB / 0.5162 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3792, allocations: 0 / 0.5162 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.3792, allocations: 6.984 kB / 0.5162 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001566/0.3794, allocations: 238.9 kB / 0.5164 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3794, allocations: 4 kB / 0.5164 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.184e-06/0.3794, allocations: 2.766 kB / 0.5164 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.3794, allocations: 1.125 kB / 0.5165 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.289e-05/0.3794, allocations: 6.812 kB / 0.5165 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.3794, allocations: 0.9688 kB / 0.5165 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3794, allocations: 0 / 0.5165 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001142/0.3806, allocations: 0.9179 MB / 0.5174 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.419e-05/0.3806, allocations: 100.1 kB / 0.5174 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.421e-05/0.3807, allocations: 10.12 kB / 0.5175 GB, free: 460 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.604e-05/0.3808, allocations: 5.562 kB / 0.5175 GB, free: 460 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.058e-05/0.3808, allocations: 8.359 kB / 0.5175 GB, free: 456 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.117e-05/0.3809, allocations: 9.672 kB / 0.5175 GB, free: 456 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000102/0.381, allocations: 126.6 kB / 0.5176 GB, free: 368 kB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.381, allocations: 0 / 0.5176 GB, free: 368 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001651/0.3826, allocations: 359.5 kB / 0.5179 GB, free: 320 kB / 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.001561/0.3842, allocations: 371.5 kB / 0.5183 GB, free: 160 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001645/0.3859, allocations: 1.6 MB / 0.5199 GB, free: 15.33 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.3859, allocations: 3.938 kB / 0.5199 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001259/0.3871, allocations: 1.371 MB / 0.5212 GB, free: 14.55 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002666/0.3874, allocations: 19.83 kB / 0.5212 GB, free: 14.54 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001123/0.3886, allocations: 0.6708 MB / 0.5219 GB, free: 14.28 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007952/0.3894, allocations: 0.7524 MB / 0.5226 GB, free: 13.58 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.613e-05/0.3894, allocations: 1 kB / 0.5226 GB, free: 13.58 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.573e-05/0.3894, allocations: 9.047 kB / 0.5226 GB, free: 13.57 MB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.3894, allocations: 0 / 0.5226 GB, free: 13.57 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].