Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_matrixTrDat2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 92.84 kB / 16.65 MB, free: 6.586 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: 186.2 kB / 17.57 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.618/1.618, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1905/0.1905, allocations: 38.04 MB / 310.1 MB, free: 5.914 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005376/0.0005376, allocations: 19.69 kB / 377.2 MB, free: 2.723 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.2566, allocations: 56.33 MB / 433.5 MB, free: 18.95 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.002457/0.2591, allocations: 1.809 MB / 435.3 MB, free: 17.12 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002749/0.2619, allocations: 2.164 MB / 437.5 MB, free: 14.94 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.744e-05/0.2619, allocations: 0 / 437.5 MB, free: 14.94 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001076/0.2621, allocations: 7.922 kB / 437.5 MB, free: 14.93 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.422e-05/0.2622, allocations: 31.89 kB / 437.5 MB, free: 14.9 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00179/0.264, allocations: 0.686 MB / 438.2 MB, free: 14.22 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001126/0.2641, allocations: 123.7 kB / 438.3 MB, free: 14.1 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.6e-05/0.2642, allocations: 192 / 438.3 MB, free: 14.1 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.229e-05/0.2643, allocations: 39.78 kB / 438.3 MB, free: 14.06 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.352e-05/0.2643, allocations: 47.83 kB / 438.4 MB, free: 14.01 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.999e-06/0.2644, allocations: 0 / 438.4 MB, free: 14.01 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001464/0.2658, allocations: 1.24 MB / 439.6 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.388e-05/0.2659, allocations: 27.92 kB / 439.7 MB, free: 12.74 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.571e-05/0.2659, allocations: 65.36 kB / 439.7 MB, free: 12.67 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001471/0.2674, allocations: 1.312 MB / 441 MB, free: 11.36 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.746e-06/0.2674, allocations: 0 / 441 MB, free: 11.36 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2674, allocations: 0 / 441 MB, free: 11.36 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.2674, allocations: 0 / 441 MB, free: 11.36 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006607/0.2681, allocations: 0.5435 MB / 441.6 MB, free: 10.76 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.114e-05/0.2681, allocations: 8.031 kB / 441.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.617e-05/0.2682, allocations: 12.75 kB / 441.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001258/0.2683, allocations: 211.5 kB / 441.8 MB, free: 10.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.043e-05/0.2683, allocations: 4 kB / 441.8 MB, free: 10.49 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.22e-05/0.2684, allocations: 0 / 441.8 MB, free: 10.49 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001387/0.2685, allocations: 101.5 kB / 441.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.2685, allocations: 3.938 kB / 441.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.2685, allocations: 4 kB / 441.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.2685, allocations: 0 / 441.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.554e-05/0.2686, allocations: 63.97 kB / 442 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001132/0.2687, allocations: 193.3 kB / 442.2 MB, free: 10.08 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001063/0.2689, allocations: 106.5 kB / 442.3 MB, free: 9.965 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.11e-05/0.2689, allocations: 88.86 kB / 442.4 MB, free: 9.875 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.725e-06/0.2689, allocations: 0 / 442.4 MB, free: 9.875 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.472e-05/0.269, allocations: 30.56 kB / 442.4 MB, free: 9.836 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.022e-06/0.269, allocations: 0 / 442.4 MB, free: 9.836 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003604/0.2693, allocations: 319.1 kB / 442.7 MB, free: 9.512 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.545e-05/0.2694, allocations: 93.09 kB / 442.8 MB, free: 9.402 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.757e-05/0.2695, allocations: 151.2 kB / 442.9 MB, free: 9.246 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.124e-05/0.2695, allocations: 33.7 kB / 443 MB, free: 9.207 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.918e-05/0.2695, allocations: 104.5 kB / 443.1 MB, free: 9.102 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.091e-05/0.2696, allocations: 78.77 kB / 443.2 MB, free: 9.023 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.607e-05/0.2696, allocations: 25.7 kB / 443.2 MB, free: 8.992 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.92e-05/0.2697, allocations: 330.8 kB / 443.5 MB, free: 8.66 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.893e-05/0.2697, allocations: 59.97 kB / 443.6 MB, free: 8.602 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.993e-05/0.2698, allocations: 64.78 kB / 443.6 MB, free: 8.539 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000161/0.27, allocations: 252.2 kB / 443.9 MB, free: 8.277 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.27, allocations: 4.031 kB / 443.9 MB, free: 8.273 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0001996/0.2702, allocations: 235 kB / 444.1 MB, free: 8.031 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.742e-05/0.2702, allocations: 65.66 kB / 444.2 MB, free: 7.961 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.2702, allocations: 0 / 444.2 MB, free: 7.961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.2703, allocations: 4 kB / 444.2 MB, free: 7.957 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.242e-06/0.2703, allocations: 0 / 444.2 MB, free: 7.957 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.2703, allocations: 3.938 kB / 444.2 MB, free: 7.953 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.186e-05/0.2703, allocations: 11.84 kB / 444.2 MB, free: 7.941 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.044e-05/0.2704, allocations: 8 kB / 444.2 MB, free: 7.934 MB / 318.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.0001113/0.2705, allocations: 199.4 kB / 444.4 MB, free: 7.723 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.18e-05/0.2705, allocations: 19.81 kB / 444.4 MB, free: 7.703 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.5e-05/0.2705, allocations: 17.17 kB / 444.4 MB, free: 7.691 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.2705, allocations: 0 / 444.4 MB, free: 7.691 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.2705, allocations: 0 / 444.4 MB, free: 7.691 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.2705, allocations: 0 / 444.4 MB, free: 7.691 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001016/0.2707, allocations: 205.4 kB / 444.6 MB, free: 7.441 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2707, allocations: 0 / 444.6 MB, free: 7.441 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.423e-06/0.2707, allocations: 4 kB / 444.6 MB, free: 7.438 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.2707, allocations: 3.984 kB / 444.6 MB, free: 7.434 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.2707, allocations: 4 kB / 444.6 MB, free: 7.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.2707, allocations: 4 kB / 444.6 MB, free: 7.426 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.2707, allocations: 3.938 kB / 444.6 MB, free: 7.422 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004477/0.2712, allocations: 0.5178 MB / 445.2 MB, free: 6.879 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.327e-05/0.2712, allocations: 92.86 kB / 445.3 MB, free: 6.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.66e-05/0.2712, allocations: 4 kB / 445.3 MB, free: 6.766 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.925e-05/0.2713, allocations: 7.938 kB / 445.3 MB, free: 6.758 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.28e-05/0.2713, allocations: 8 kB / 445.3 MB, free: 6.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.222e-05/0.2713, allocations: 8.031 kB / 445.3 MB, free: 6.742 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.547e-05/0.2714, allocations: 115.1 kB / 445.4 MB, free: 6.629 MB / 318.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.2714, allocations: 0 / 445.4 MB, free: 6.629 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008544/0.2722, allocations: 343.9 kB / 445.7 MB, free: 6.293 MB / 318.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.001028/0.2733, allocations: 359 kB / 446.1 MB, free: 5.93 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004977/0.2738, allocations: 0.7178 MB / 446.8 MB, free: 5.199 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.2738, allocations: 0 / 446.8 MB, free: 5.199 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003048/0.2741, allocations: 0.5735 MB / 447.4 MB, free: 4.613 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002156/0.2743, allocations: 11.98 kB / 447.4 MB, free: 4.602 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005527/0.2749, allocations: 0.5157 MB / 447.9 MB, free: 4.062 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001586/0.2751, allocations: 0.7319 MB / 448.6 MB, free: 3.305 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.263e-05/0.2751, allocations: 0 / 448.6 MB, free: 3.305 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.213e-05/0.2751, allocations: 7.438 kB / 448.6 MB, free: 3.297 MB / 318.1 MB Notification: Performance of SimCode: time 8.52e-07/0.2751, allocations: 8 kB / 448.6 MB, free: 3.289 MB / 318.1 MB [CodegenCFunctions.tpl:5473:13-5473:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].