Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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_matrixTrDat1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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.001148/0.001148, allocations: 108.1 kB / 17.06 MB, free: 6.02 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.001034/0.001034, allocations: 195.9 kB / 18 MB, free: 5.102 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.456/1.456, 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/package.mo): time 0.1785/0.1785, allocations: 38.03 MB / 329.9 MB, free: 8.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 59.91 kB / 458.1 MB, free: 6.809 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3808/0.3821, allocations: 58.06 MB / 0.5041 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.003118/0.3853, allocations: 2.099 MB / 0.5062 GB, free: 6.266 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002897/0.3882, allocations: 2.036 MB / 0.5081 GB, free: 4.914 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.094e-05/0.3883, allocations: 1.188 kB / 0.5081 GB, free: 4.914 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001557/0.3884, allocations: 14.28 kB / 0.5082 GB, free: 4.906 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.576e-05/0.3885, allocations: 31.78 kB / 0.5082 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002255/0.3908, allocations: 0.8327 MB / 0.509 GB, free: 4.609 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001411/0.391, allocations: 72.56 kB / 0.5091 GB, free: 4.586 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.309e-05/0.391, allocations: 12.19 kB / 0.5091 GB, free: 4.578 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.553e-05/0.3911, allocations: 31.22 kB / 0.5091 GB, free: 4.566 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.318e-05/0.3912, allocations: 41.92 kB / 0.5092 GB, free: 4.551 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.142e-05/0.3912, allocations: 1.25 kB / 0.5092 GB, free: 4.551 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001991/0.3932, allocations: 1.408 MB / 0.5105 GB, free: 4.113 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.775e-05/0.3932, allocations: 17.23 kB / 0.5105 GB, free: 4.109 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.057e-05/0.3933, allocations: 25.38 kB / 0.5106 GB, free: 4.094 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002016/0.3953, allocations: 1.328 MB / 0.5119 GB, free: 3.859 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3953, allocations: 3.938 kB / 0.5119 GB, free: 3.855 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3953, allocations: 0 / 0.5119 GB, free: 3.855 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.3954, allocations: 1.281 kB / 0.5119 GB, free: 3.855 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.0005709/0.3959, allocations: 0.5212 MB / 0.5124 GB, free: 3.363 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.396, allocations: 12.92 kB / 0.5124 GB, free: 3.359 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.037e-05/0.396, allocations: 8.906 kB / 0.5124 GB, free: 3.355 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001303/0.3962, allocations: 193.4 kB / 0.5126 GB, free: 3.141 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.072e-06/0.3962, allocations: 0 / 0.5126 GB, free: 3.141 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.459e-05/0.3962, allocations: 4.547 kB / 0.5126 GB, free: 3.141 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001442/0.3963, allocations: 64.95 kB / 0.5127 GB, free: 3.105 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.3964, allocations: 0 / 0.5127 GB, free: 3.105 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.3964, allocations: 4.609 kB / 0.5127 GB, free: 3.102 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.3964, allocations: 1.5 kB / 0.5127 GB, free: 3.102 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.973e-05/0.3964, allocations: 39.02 kB / 0.5127 GB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001133/0.3966, allocations: 167.4 kB / 0.5129 GB, free: 2.895 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.557e-05/0.3966, allocations: 59.42 kB / 0.5129 GB, free: 2.859 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.5e-05/0.3967, allocations: 45.78 kB / 0.513 GB, free: 2.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.616e-06/0.3967, allocations: 0 / 0.513 GB, free: 2.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.503e-05/0.3967, allocations: 39.66 kB / 0.513 GB, free: 2.793 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 8.32e-07/0.3967, allocations: 0 / 0.513 GB, free: 2.793 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003044/0.3971, allocations: 198.8 kB / 0.5132 GB, free: 2.703 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.3971, allocations: 88.31 kB / 0.5133 GB, free: 2.609 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.369e-05/0.3972, allocations: 135.2 kB / 0.5134 GB, free: 2.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.072e-05/0.3972, allocations: 25.7 kB / 0.5134 GB, free: 2.469 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.127e-05/0.3973, allocations: 92.98 kB / 0.5135 GB, free: 2.379 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.731e-05/0.3973, allocations: 47.84 kB / 0.5136 GB, free: 2.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.668e-05/0.3973, allocations: 20.33 kB / 0.5136 GB, free: 2.324 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.284e-05/0.3974, allocations: 324.3 kB / 0.5139 GB, free: 2.004 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.182e-05/0.3975, allocations: 36.84 kB / 0.5139 GB, free: 1.996 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.493e-05/0.3975, allocations: 30.66 kB / 0.5139 GB, free: 1.992 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001514/0.3977, allocations: 166.1 kB / 0.5141 GB, free: 1.902 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3977, allocations: 3.938 kB / 0.5141 GB, free: 1.898 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001752/0.3979, allocations: 149.6 kB / 0.5143 GB, free: 1.824 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.19e-05/0.3979, allocations: 58.39 kB / 0.5143 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.3979, allocations: 0.7031 kB / 0.5143 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.398, allocations: 1.156 kB / 0.5143 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.01e-07/0.398, allocations: 0 / 0.5143 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.398, allocations: 4.75 kB / 0.5143 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.612e-05/0.398, allocations: 7.375 kB / 0.5143 GB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.287e-05/0.3981, allocations: 7.984 kB / 0.5143 GB, free: 1.77 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.0001045/0.3982, allocations: 164.8 kB / 0.5145 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.318e-05/0.3982, allocations: 15.11 kB / 0.5145 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.509e-05/0.3982, allocations: 7.734 kB / 0.5145 GB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.3982, allocations: 1.75 kB / 0.5145 GB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.3982, allocations: 0 / 0.5145 GB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.3982, allocations: 0 / 0.5145 GB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000102/0.3984, allocations: 188.2 kB / 0.5147 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.3984, allocations: 0.5625 kB / 0.5147 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.3984, allocations: 0 / 0.5147 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.173e-06/0.3984, allocations: 1.844 kB / 0.5147 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.3984, allocations: 3.484 kB / 0.5147 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3984, allocations: 0 / 0.5147 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.3984, allocations: 5.844 kB / 0.5147 GB, free: 1.398 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003265/0.3987, allocations: 284.2 kB / 0.515 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.471e-05/0.3988, allocations: 86.95 kB / 0.5151 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.341e-05/0.3988, allocations: 10.19 kB / 0.5151 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.029e-05/0.3988, allocations: 3.109 kB / 0.5151 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.574e-05/0.3989, allocations: 6.688 kB / 0.5151 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.079e-05/0.3989, allocations: 4.75 kB / 0.5151 GB, free: 1.156 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.281e-05/0.3989, allocations: 104.8 kB / 0.5152 GB, free: 1.074 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3989, allocations: 0 / 0.5152 GB, free: 1.074 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001098/0.4, allocations: 323.4 kB / 0.5155 GB, free: 1.031 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.0009547/0.401, allocations: 368.3 kB / 0.5158 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004411/0.4015, allocations: 303.3 kB / 0.5161 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.4015, allocations: 0.5938 kB / 0.5161 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002254/0.4017, allocations: 225.7 kB / 0.5163 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.402, allocations: 9.812 kB / 0.5164 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005446/0.4025, allocations: 306.7 kB / 0.5166 GB, free: 452 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002648/0.4028, allocations: 0.7039 MB / 0.5173 GB, free: 15.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.306e-05/0.4028, allocations: 3.938 kB / 0.5173 GB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.378e-05/0.4029, allocations: 8.75 kB / 0.5173 GB, free: 15.73 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4029, allocations: 3.938 kB / 0.5173 GB, free: 15.73 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].