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 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_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.001149/0.001149, allocations: 111.9 kB / 17.68 MB, free: 5.355 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.001087/0.001087, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.437/1.437, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1787/0.1787, allocations: 37.99 MB / 309.8 MB, free: 5.973 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.001474/0.001474, allocations: 67.89 kB / 376.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2554, allocations: 55.24 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.0031/0.2586, allocations: 2.102 MB / 434.1 MB, free: 17.38 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002386/0.261, allocations: 2.077 MB / 436.2 MB, free: 15.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.695e-05/0.2611, allocations: 0 / 436.2 MB, free: 15.29 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001154/0.2612, allocations: 15.92 kB / 436.2 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.708e-05/0.2613, allocations: 31.83 kB / 436.2 MB, free: 15.24 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeClassSections: time 0.001765/0.2631, allocations: 0.8204 MB / 437.1 MB, free: 14.42 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001125/0.2632, allocations: 71.77 kB / 437.1 MB, free: 14.35 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.833e-05/0.2632, allocations: 4.172 kB / 437.1 MB, free: 14.35 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.156e-05/0.2633, allocations: 39.78 kB / 437.2 MB, free: 14.31 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.105e-05/0.2634, allocations: 39.89 kB / 437.2 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.141e-05/0.2634, allocations: 0 / 437.2 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001408/0.2648, allocations: 1.407 MB / 438.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.76e-05/0.2649, allocations: 19.86 kB / 438.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.659e-05/0.2649, allocations: 31.73 kB / 438.7 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001192/0.2661, allocations: 1.329 MB / 440 MB, free: 11.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.2661, allocations: 0 / 440 MB, free: 11.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.2661, allocations: 0 / 440 MB, free: 11.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.2661, allocations: 0 / 440 MB, free: 11.48 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006075/0.2668, allocations: 0.5103 MB / 440.5 MB, free: 10.92 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/0.2668, allocations: 11.89 kB / 440.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.933e-05/0.2669, allocations: 24.61 kB / 440.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001749/0.2671, allocations: 187.6 kB / 440.7 MB, free: 10.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.033e-06/0.2671, allocations: 0 / 440.7 MB, free: 10.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.776e-05/0.2671, allocations: 4 kB / 440.7 MB, free: 10.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001518/0.2673, allocations: 61.67 kB / 440.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.2673, allocations: 0 / 440.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.2673, allocations: 0 / 440.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.2673, allocations: 8 kB / 440.8 MB, free: 10.58 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.156e-05/0.2674, allocations: 31.92 kB / 440.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001387/0.2675, allocations: 181.4 kB / 441 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.436e-05/0.2676, allocations: 54.56 kB / 441.1 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.55e-05/0.2676, allocations: 52.86 kB / 441.1 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.586e-06/0.2676, allocations: 0 / 441.1 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.586e-05/0.2677, allocations: 34.56 kB / 441.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 9.02e-07/0.2677, allocations: 7.938 kB / 441.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002526/0.2679, allocations: 195.3 kB / 441.4 MB, free: 9.953 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.243e-05/0.268, allocations: 93.09 kB / 441.4 MB, free: 9.844 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.593e-05/0.2681, allocations: 125.8 kB / 441.6 MB, free: 9.711 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.317e-06/0.2681, allocations: 25.7 kB / 441.6 MB, free: 9.68 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.761e-05/0.2681, allocations: 92.14 kB / 441.7 MB, free: 9.586 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.834e-05/0.2681, allocations: 35.45 kB / 441.7 MB, free: 9.551 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.397e-05/0.2682, allocations: 25.7 kB / 441.7 MB, free: 9.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.315e-05/0.2682, allocations: 330.8 kB / 442.1 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.948e-05/0.2683, allocations: 31.98 kB / 442.1 MB, free: 9.156 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.234e-05/0.2683, allocations: 31.98 kB / 442.1 MB, free: 9.125 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001063/0.2684, allocations: 156.2 kB / 442.3 MB, free: 8.957 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.2684, allocations: 0 / 442.3 MB, free: 8.957 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001328/0.2686, allocations: 159.1 kB / 442.4 MB, free: 8.789 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.382e-05/0.2686, allocations: 49.67 kB / 442.5 MB, free: 8.734 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.2686, allocations: 4 kB / 442.5 MB, free: 8.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.2687, allocations: 0 / 442.5 MB, free: 8.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.2687, allocations: 4.062 kB / 442.5 MB, free: 8.727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.2687, allocations: 0 / 442.5 MB, free: 8.727 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.252e-05/0.2687, allocations: 7.906 kB / 442.5 MB, free: 8.719 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.089e-05/0.2687, allocations: 4 kB / 442.5 MB, free: 8.715 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 7.95e-05/0.2688, allocations: 171.4 kB / 442.7 MB, free: 8.531 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.654e-05/0.2689, allocations: 11.91 kB / 442.7 MB, free: 8.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.41e-05/0.2689, allocations: 12.7 kB / 442.7 MB, free: 8.508 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.2689, allocations: 4 kB / 442.7 MB, free: 8.504 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.2689, allocations: 0 / 442.7 MB, free: 8.504 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.2689, allocations: 4 kB / 442.7 MB, free: 8.5 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.424e-05/0.269, allocations: 181.5 kB / 442.9 MB, free: 8.273 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.269, allocations: 0 / 442.9 MB, free: 8.273 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.269, allocations: 0 / 442.9 MB, free: 8.273 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.269, allocations: 0 / 442.9 MB, free: 8.273 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.269, allocations: 4 kB / 442.9 MB, free: 8.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.269, allocations: 0 / 442.9 MB, free: 8.27 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.269, allocations: 0 / 442.9 MB, free: 8.27 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002325/0.2693, allocations: 301.8 kB / 443.2 MB, free: 7.953 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.662e-05/0.2693, allocations: 93.03 kB / 443.3 MB, free: 7.844 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.867e-05/0.2693, allocations: 0 / 443.3 MB, free: 7.844 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.784e-05/0.2694, allocations: 7.984 kB / 443.3 MB, free: 7.836 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.96e-05/0.2694, allocations: 0 / 443.3 MB, free: 7.836 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-06/0.2694, allocations: 4 kB / 443.3 MB, free: 7.832 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.954e-05/0.2694, allocations: 110.5 kB / 443.4 MB, free: 7.727 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2694, allocations: 0 / 443.4 MB, free: 7.727 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006345/0.2701, allocations: 323.8 kB / 443.7 MB, free: 7.41 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.0007526/0.2708, allocations: 373.3 kB / 444.1 MB, free: 7.035 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002667/0.2711, allocations: 303.2 kB / 444.4 MB, free: 6.727 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2711, allocations: 0 / 444.4 MB, free: 6.727 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000128/0.2713, allocations: 223.3 kB / 444.6 MB, free: 6.496 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002579/0.2715, allocations: 11.98 kB / 444.6 MB, free: 6.484 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004324/0.272, allocations: 296.9 kB / 444.9 MB, free: 6.168 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001271/0.2721, allocations: 0.708 MB / 445.6 MB, free: 5.434 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.227e-05/0.2721, allocations: 7.938 kB / 445.6 MB, free: 5.426 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.006e-05/0.2721, allocations: 7.438 kB / 445.6 MB, free: 5.418 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2721, allocations: 0 / 445.6 MB, free: 5.418 MB / 318.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].