Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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_matrixTrDat0,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 106.1 kB / 17.06 MB, free: 6.027 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.001704/0.001704, allocations: 195 kB / 18 MB, free: 5.105 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.554/1.554, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.173/0.173, allocations: 37.99 MB / 309.2 MB, free: 5.957 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.001453/0.001453, allocations: 67.91 kB / 431.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1249, allocations: 55.24 MB / 487.1 MB, free: 8.34 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.003684/0.1287, allocations: 2.111 MB / 489.2 MB, free: 6.211 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003074/0.1318, allocations: 2.078 MB / 491.3 MB, free: 4.121 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.668e-05/0.1318, allocations: 0 / 491.3 MB, free: 4.121 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000205/0.1321, allocations: 11.92 kB / 491.3 MB, free: 4.109 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.927e-05/0.1322, allocations: 31.83 kB / 491.3 MB, free: 4.078 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.002339/0.1345, allocations: 0.8263 MB / 492.2 MB, free: 3.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001775/0.1347, allocations: 83.67 kB / 492.3 MB, free: 3.168 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.96e-05/0.1348, allocations: 8.188 kB / 492.3 MB, free: 3.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.601e-05/0.1349, allocations: 31.84 kB / 492.3 MB, free: 3.129 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.589e-05/0.135, allocations: 47.77 kB / 492.3 MB, free: 3.082 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.122e-05/0.135, allocations: 0 / 492.3 MB, free: 3.082 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001898/0.1369, allocations: 1.404 MB / 493.7 MB, free: 1.676 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.359e-05/0.137, allocations: 11.98 kB / 493.8 MB, free: 1.664 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.806e-05/0.137, allocations: 19.81 kB / 493.8 MB, free: 1.645 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001398/0.1384, allocations: 1.321 MB / 495.1 MB, free: 328 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.1384, allocations: 0 / 495.1 MB, free: 328 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1384, allocations: 0 / 495.1 MB, free: 328 kB / 366.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.1384, allocations: 0 / 495.1 MB, free: 328 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006319/0.1391, allocations: 0.4969 MB / 495.6 MB, free: 15.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.1391, allocations: 11.89 kB / 495.6 MB, free: 15.76 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.846e-05/0.1392, allocations: 8.844 kB / 495.6 MB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001952/0.1394, allocations: 195.4 kB / 495.8 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.164e-05/0.1394, allocations: 0 / 495.8 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.153e-05/0.1394, allocations: 4 kB / 495.8 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001398/0.1396, allocations: 49.69 kB / 495.9 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.1396, allocations: 3.938 kB / 495.9 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/0.1396, allocations: 0 / 495.9 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.1396, allocations: 3.984 kB / 495.9 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.537e-05/0.1397, allocations: 27.92 kB / 495.9 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001659/0.1398, allocations: 169.6 kB / 496.1 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.246e-05/0.1399, allocations: 46.56 kB / 496.1 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.154e-05/0.14, allocations: 32.89 kB / 496.1 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.947e-06/0.14, allocations: 4 kB / 496.1 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.48e-05/0.14, allocations: 34.55 kB / 496.2 MB, free: 15.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 8.51e-07/0.14, allocations: 0 / 496.2 MB, free: 15.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002765/0.1403, allocations: 151.2 kB / 496.3 MB, free: 14.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.817e-05/0.1404, allocations: 85.11 kB / 496.4 MB, free: 14.81 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.922e-05/0.1405, allocations: 121.8 kB / 496.5 MB, free: 14.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/0.1405, allocations: 33.73 kB / 496.6 MB, free: 14.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.197e-05/0.1406, allocations: 88.14 kB / 496.6 MB, free: 14.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.224e-05/0.1406, allocations: 27.55 kB / 496.7 MB, free: 14.53 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.686e-05/0.1407, allocations: 21.72 kB / 496.7 MB, free: 14.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.1408, allocations: 322.8 kB / 497 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.741e-05/0.1408, allocations: 23.92 kB / 497 MB, free: 14.15 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.094e-05/0.1409, allocations: 23.98 kB / 497.1 MB, free: 14.13 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001204/0.141, allocations: 132.3 kB / 497.2 MB, free: 13.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.141, allocations: 4.031 kB / 497.2 MB, free: 13.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001431/0.1411, allocations: 127.3 kB / 497.3 MB, free: 13.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.66e-05/0.1412, allocations: 45.59 kB / 497.4 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.1412, allocations: 0 / 497.4 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.1412, allocations: 0 / 497.4 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.1412, allocations: 0 / 497.4 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.1412, allocations: 0 / 497.4 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.987e-05/0.1413, allocations: 8 kB / 497.4 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.969e-05/0.1413, allocations: 4 kB / 497.4 MB, free: 13.78 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.0001142/0.1414, allocations: 159.5 kB / 497.5 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.786e-05/0.1415, allocations: 11.94 kB / 497.5 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.431e-05/0.1415, allocations: 8.375 kB / 497.5 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-06/0.1415, allocations: 0 / 497.5 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1415, allocations: 0 / 497.5 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.1415, allocations: 0 / 497.5 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001167/0.1416, allocations: 185.5 kB / 497.7 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.1416, allocations: 0 / 497.7 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1416, allocations: 0 / 497.7 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.1416, allocations: 0 / 497.7 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.1417, allocations: 4 kB / 497.7 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.1417, allocations: 4 kB / 497.7 MB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1417, allocations: 3.938 kB / 497.7 MB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002569/0.1419, allocations: 218.6 kB / 497.9 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.547e-05/0.142, allocations: 85.02 kB / 498 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.554e-05/0.142, allocations: 0 / 498 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.293e-05/0.142, allocations: 4 kB / 498 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.85e-05/0.1421, allocations: 0 / 498 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.11e-05/0.1421, allocations: 8 kB / 498 MB, free: 13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.346e-05/0.1421, allocations: 99.3 kB / 498.1 MB, free: 12.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1421, allocations: 0 / 498.1 MB, free: 12.9 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000738/0.1429, allocations: 323.8 kB / 498.5 MB, free: 12.58 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.0008452/0.1437, allocations: 367.8 kB / 498.8 MB, free: 12.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002559/0.144, allocations: 199.3 kB / 499 MB, free: 12.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.144, allocations: 4.062 kB / 499 MB, free: 12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001239/0.1442, allocations: 151.4 kB / 499.2 MB, free: 11.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002524/0.1444, allocations: 11.92 kB / 499.2 MB, free: 11.83 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004243/0.1448, allocations: 228.4 kB / 499.4 MB, free: 11.58 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002426/0.1451, allocations: 0.6924 MB / 0.4884 GB, free: 10.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.22e-05/0.1451, allocations: 4.062 kB / 0.4884 GB, free: 10.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.497e-05/0.1451, allocations: 11.44 kB / 0.4884 GB, free: 10.85 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1451, allocations: 3.938 kB / 0.4884 GB, free: 10.84 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].