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.001041/0.001041, allocations: 100.9 kB / 17.06 MB, free: 6.145 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.001027/0.001027, allocations: 195 kB / 18 MB, free: 5.223 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.583/1.583, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1786/0.1786, allocations: 37.99 MB / 309.2 MB, free: 5.953 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.002742/0.002742, allocations: 71.89 kB / 431.9 MB, free: 15.63 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1437/0.1464, allocations: 55.23 MB / 487.1 MB, free: 8.332 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.004221/0.1507, allocations: 2.107 MB / 489.2 MB, free: 6.203 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003277/0.154, allocations: 2.085 MB / 491.3 MB, free: 4.105 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.523e-05/0.1541, allocations: 0 / 491.3 MB, free: 4.105 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001194/0.1543, allocations: 15.86 kB / 491.3 MB, free: 4.09 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.913e-05/0.1544, allocations: 27.84 kB / 491.4 MB, free: 4.062 MB / 366.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.002659/0.1571, allocations: 0.8224 MB / 492.2 MB, free: 3.238 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001541/0.1572, allocations: 83.69 kB / 492.3 MB, free: 3.156 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.895e-05/0.1573, allocations: 4.188 kB / 492.3 MB, free: 3.152 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.416e-05/0.1574, allocations: 35.83 kB / 492.3 MB, free: 3.117 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.284e-05/0.1575, allocations: 43.83 kB / 492.3 MB, free: 3.074 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.576e-05/0.1575, allocations: 4 kB / 492.3 MB, free: 3.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002204/0.1597, allocations: 1.407 MB / 493.8 MB, free: 1.66 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.934e-05/0.1598, allocations: 27.91 kB / 493.8 MB, free: 1.633 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.117e-05/0.1599, allocations: 47.61 kB / 493.8 MB, free: 1.586 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002334/0.1622, allocations: 1.352 MB / 495.2 MB, free: 236 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.1622, allocations: 0 / 495.2 MB, free: 236 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1622, allocations: 0 / 495.2 MB, free: 236 kB / 366.1 MB Notification: Performance of Transformations before backend: time 7.243e-06/0.1622, allocations: 0 / 495.2 MB, free: 236 kB / 366.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.001042/0.1633, allocations: 0.5552 MB / 495.7 MB, free: 15.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.1633, allocations: 11.89 kB / 495.7 MB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.392e-05/0.1634, allocations: 12.75 kB / 495.8 MB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002289/0.1636, allocations: 207.5 kB / 496 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.1637, allocations: 8 kB / 496 MB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.407e-05/0.1637, allocations: 4 kB / 496 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001779/0.1639, allocations: 93.52 kB / 496.1 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.1639, allocations: 0 / 496.1 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.1639, allocations: 4 kB / 496.1 MB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.1639, allocations: 0 / 496.1 MB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.774e-05/0.164, allocations: 63.91 kB / 496.1 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001831/0.1642, allocations: 197.4 kB / 496.3 MB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001211/0.1643, allocations: 102.5 kB / 496.4 MB, free: 14.83 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.1644, allocations: 88.86 kB / 496.5 MB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.901e-06/0.1644, allocations: 3.984 kB / 496.5 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.691e-05/0.1645, allocations: 34.56 kB / 496.5 MB, free: 14.69 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.313e-06/0.1645, allocations: 0 / 496.5 MB, free: 14.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005187/0.165, allocations: 327.2 kB / 496.9 MB, free: 14.36 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.183e-05/0.1651, allocations: 93.09 kB / 497 MB, free: 14.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001379/0.1652, allocations: 154.2 kB / 497.1 MB, free: 14.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.941e-05/0.1653, allocations: 29.73 kB / 497.1 MB, free: 14.05 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.836e-05/0.1653, allocations: 96.58 kB / 497.2 MB, free: 13.96 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.03e-05/0.1654, allocations: 74.81 kB / 497.3 MB, free: 13.88 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.238e-05/0.1655, allocations: 29.7 kB / 497.3 MB, free: 13.85 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.1657, allocations: 326.8 kB / 497.7 MB, free: 13.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.507e-05/0.1657, allocations: 63.97 kB / 497.7 MB, free: 13.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.362e-05/0.1658, allocations: 59.97 kB / 497.8 MB, free: 13.4 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002477/0.1661, allocations: 249.8 kB / 498 MB, free: 13.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.1661, allocations: 12.03 kB / 498 MB, free: 13.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002832/0.1664, allocations: 242.8 kB / 498.3 MB, free: 12.88 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.81e-05/0.1665, allocations: 69.56 kB / 498.3 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.1665, allocations: 0 / 498.3 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.1665, allocations: 0 / 498.3 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.1665, allocations: 0 / 498.3 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.1665, allocations: 0 / 498.3 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.118e-05/0.1666, allocations: 11.84 kB / 498.3 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.264e-05/0.1666, allocations: 8 kB / 498.4 MB, free: 12.79 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.0001658/0.1668, allocations: 203.4 kB / 498.6 MB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.603e-05/0.1668, allocations: 15.84 kB / 498.6 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.612e-05/0.1668, allocations: 13.19 kB / 498.6 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.1668, allocations: 0 / 498.6 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.1668, allocations: 0 / 498.6 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.1669, allocations: 0 / 498.6 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/0.167, allocations: 213.4 kB / 498.8 MB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.167, allocations: 0 / 498.8 MB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.32e-07/0.167, allocations: 0 / 498.8 MB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.167, allocations: 0 / 498.8 MB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.54e-05/0.1671, allocations: 7.938 kB / 498.8 MB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.1671, allocations: 4 kB / 498.8 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.227e-06/0.1671, allocations: 4 kB / 498.8 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005717/0.1677, allocations: 0.5177 MB / 499.3 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.062e-05/0.1677, allocations: 96.86 kB / 499.4 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.274e-05/0.1678, allocations: 4 kB / 499.4 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.917e-05/0.1678, allocations: 4 kB / 499.4 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.073e-05/0.1678, allocations: 4 kB / 499.4 MB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.1678, allocations: 4 kB / 499.4 MB, free: 11.6 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.625e-05/0.1679, allocations: 127.1 kB / 499.6 MB, free: 11.47 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1679, allocations: 0 / 499.6 MB, free: 11.47 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001079/0.169, allocations: 335.9 kB / 499.9 MB, free: 11.14 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.001256/0.1703, allocations: 363 kB / 0.4885 GB, free: 10.78 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006913/0.171, allocations: 0.7139 MB / 0.4892 GB, free: 10.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.171, allocations: 4.062 kB / 0.4892 GB, free: 10.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004809/0.1715, allocations: 0.5773 MB / 0.4898 GB, free: 9.461 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002065/0.1717, allocations: 11.94 kB / 0.4898 GB, free: 9.449 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006933/0.1724, allocations: 457.7 kB / 0.4902 GB, free: 8.977 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003422/0.1728, allocations: 0.7239 MB / 0.4909 GB, free: 8.227 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.529e-05/0.1728, allocations: 8 kB / 0.4909 GB, free: 8.219 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.444e-05/0.1728, allocations: 7.438 kB / 0.4909 GB, free: 8.211 MB / 382.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1728, allocations: 0 / 0.4909 GB, free: 8.211 MB / 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].