Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001621/0.001621, 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.001799/0.0018, 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.644/1.644, 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.1693/0.1693, 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.001338/0.001338, allocations: 67.91 kB / 431.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.116, allocations: 55.24 MB / 487.1 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.003423/0.1194, allocations: 2.091 MB / 489.2 MB, free: 6.234 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003219/0.1227, allocations: 2.082 MB / 491.3 MB, free: 4.141 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.867e-05/0.1228, allocations: 0 / 491.3 MB, free: 4.141 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001634/0.1229, allocations: 19.91 kB / 491.3 MB, free: 4.121 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000119/0.1231, allocations: 23.84 kB / 491.3 MB, free: 4.098 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.002371/0.1255, allocations: 0.838 MB / 492.2 MB, free: 3.258 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002216/0.1257, allocations: 87.61 kB / 492.3 MB, free: 3.172 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.923e-05/0.1258, allocations: 4.188 kB / 492.3 MB, free: 3.168 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.701e-05/0.1259, allocations: 31.89 kB / 492.3 MB, free: 3.137 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.575e-05/0.126, allocations: 51.77 kB / 492.3 MB, free: 3.086 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.364e-05/0.126, allocations: 0 / 492.3 MB, free: 3.086 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002011/0.128, allocations: 1.411 MB / 493.8 MB, free: 1.672 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.106e-05/0.1281, allocations: 39.84 kB / 493.8 MB, free: 1.633 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.888e-05/0.1282, allocations: 63.48 kB / 493.9 MB, free: 1.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001545/0.1297, allocations: 1.383 MB / 495.2 MB, free: 188 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.1297, allocations: 0 / 495.2 MB, free: 188 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.1297, allocations: 0 / 495.2 MB, free: 188 kB / 366.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.1298, allocations: 0 / 495.2 MB, free: 188 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0007391/0.1305, allocations: 0.6057 MB / 495.9 MB, free: 15.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.1305, allocations: 11.89 kB / 495.9 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.409e-05/0.1306, allocations: 16.66 kB / 495.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002362/0.1308, allocations: 211.5 kB / 496.1 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.682e-06/0.1309, allocations: 4 kB / 496.1 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.835e-05/0.1309, allocations: 4 kB / 496.1 MB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002328/0.1311, allocations: 134.6 kB / 496.2 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.1311, allocations: 0 / 496.2 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.1312, allocations: 0 / 496.2 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.1312, allocations: 0 / 496.2 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001206/0.1313, allocations: 104.2 kB / 496.3 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002094/0.1315, allocations: 206 kB / 496.5 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001687/0.1317, allocations: 162.9 kB / 496.7 MB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001396/0.1318, allocations: 149.2 kB / 496.8 MB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.104e-06/0.1319, allocations: 0 / 496.8 MB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.836e-05/0.1319, allocations: 34.5 kB / 496.9 MB, free: 14.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 8.72e-07/0.1319, allocations: 0 / 496.9 MB, free: 14.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0007214/0.1326, allocations: 499.7 kB / 497.4 MB, free: 13.89 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.688e-05/0.1327, allocations: 113.1 kB / 497.5 MB, free: 13.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001599/0.1329, allocations: 174.4 kB / 497.6 MB, free: 13.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.1329, allocations: 25.7 kB / 497.7 MB, free: 13.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.954e-05/0.133, allocations: 100.8 kB / 497.8 MB, free: 13.45 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/0.1331, allocations: 130 kB / 497.9 MB, free: 13.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.611e-05/0.1332, allocations: 37.7 kB / 497.9 MB, free: 13.28 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002407/0.1334, allocations: 338.8 kB / 498.3 MB, free: 12.94 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.1335, allocations: 95.97 kB / 498.3 MB, free: 12.85 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001111/0.1336, allocations: 95.95 kB / 498.4 MB, free: 12.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003487/0.134, allocations: 381.4 kB / 498.8 MB, free: 12.37 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.134, allocations: 0 / 498.8 MB, free: 12.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004551/0.1345, allocations: 342.9 kB / 499.1 MB, free: 12.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.48e-05/0.1346, allocations: 89.53 kB / 499.2 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1346, allocations: 0 / 499.2 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.07e-05/0.1346, allocations: 0 / 499.2 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/0.1346, allocations: 4 kB / 499.2 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.1346, allocations: 0 / 499.2 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.401e-05/0.1347, allocations: 19.75 kB / 499.3 MB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.533e-05/0.1348, allocations: 8 kB / 499.3 MB, free: 11.89 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.0002308/0.135, allocations: 239.4 kB / 499.5 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.365e-05/0.1351, allocations: 23.75 kB / 499.5 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.334e-05/0.1351, allocations: 14.66 kB / 499.5 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.1351, allocations: 0 / 499.5 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.1351, allocations: 0 / 499.5 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1351, allocations: 0 / 499.5 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002228/0.1353, allocations: 245.2 kB / 499.8 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.1354, allocations: 11.98 kB / 499.8 MB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.1354, allocations: 0 / 499.8 MB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.1354, allocations: 3.984 kB / 499.8 MB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.119e-05/0.1354, allocations: 12 kB / 499.8 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1354, allocations: 0 / 499.8 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1354, allocations: 0 / 499.8 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00108/0.1365, allocations: 0.9197 MB / 0.489 GB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.025e-05/0.1366, allocations: 104.7 kB / 0.4891 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.052e-05/0.1366, allocations: 4 kB / 0.4891 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.812e-05/0.1367, allocations: 11.98 kB / 0.4891 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.139e-05/0.1367, allocations: 8 kB / 0.4891 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.998e-05/0.1367, allocations: 12.03 kB / 0.4891 GB, free: 10.19 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001159/0.1369, allocations: 131.2 kB / 0.4892 GB, free: 10.06 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1369, allocations: 0 / 0.4892 GB, free: 10.06 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001249/0.1381, allocations: 347.9 kB / 0.4896 GB, free: 9.723 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.001002/0.1391, allocations: 366.9 kB / 0.4899 GB, free: 9.352 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001641/0.1408, allocations: 1.612 MB / 0.4915 GB, free: 7.727 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1408, allocations: 3.938 kB / 0.4915 GB, free: 7.723 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001061/0.1419, allocations: 1.362 MB / 0.4928 GB, free: 6.348 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002389/0.1421, allocations: 23.88 kB / 0.4929 GB, free: 6.324 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009739/0.1431, allocations: 0.6469 MB / 0.4935 GB, free: 5.652 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003653/0.1435, allocations: 0.7595 MB / 0.4942 GB, free: 4.867 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.159e-05/0.1435, allocations: 0 / 0.4942 GB, free: 4.867 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.879e-05/0.1435, allocations: 11.44 kB / 0.4942 GB, free: 4.855 MB / 382.1 MB Notification: Performance of SimCode: time 6.92e-07/0.1435, allocations: 0 / 0.4942 GB, free: 4.855 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].