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.001096/0.001096, allocations: 104 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.0009761/0.0009761, allocations: 196 kB / 18 MB, free: 5.109 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.589/1.589, 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.1762/0.1762, 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.001367/0.001367, allocations: 63.91 kB / 431.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1309, allocations: 55.25 MB / 487.1 MB, free: 8.324 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat1): time 0.003514/0.1344, allocations: 2.091 MB / 489.2 MB, free: 6.215 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003123/0.1376, allocations: 2.082 MB / 491.3 MB, free: 4.121 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.4e-05/0.1376, allocations: 0 / 491.3 MB, free: 4.121 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001534/0.1378, allocations: 19.91 kB / 491.3 MB, free: 4.102 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.442e-05/0.1379, allocations: 19.84 kB / 491.3 MB, free: 4.082 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.002052/0.14, allocations: 0.8341 MB / 492.2 MB, free: 3.246 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001386/0.1401, allocations: 83.61 kB / 492.3 MB, free: 3.164 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.719e-05/0.1402, allocations: 8.188 kB / 492.3 MB, free: 3.156 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.774e-05/0.1403, allocations: 31.91 kB / 492.3 MB, free: 3.125 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.491e-05/0.1404, allocations: 35.78 kB / 492.3 MB, free: 3.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.599e-05/0.1404, allocations: 7.984 kB / 492.3 MB, free: 3.082 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001858/0.1422, allocations: 1.404 MB / 493.7 MB, free: 1.676 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.706e-05/0.1423, allocations: 23.92 kB / 493.8 MB, free: 1.652 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.041e-05/0.1423, allocations: 27.8 kB / 493.8 MB, free: 1.625 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001411/0.1438, allocations: 1.325 MB / 495.1 MB, free: 304 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1438, allocations: 0 / 495.1 MB, free: 304 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1438, allocations: 0 / 495.1 MB, free: 304 kB / 366.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.1438, allocations: 0 / 495.1 MB, free: 304 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006321/0.1444, allocations: 0.5163 MB / 495.6 MB, free: 15.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.1445, allocations: 11.89 kB / 495.6 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.018e-05/0.1445, allocations: 8.844 kB / 495.6 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001997/0.1447, allocations: 191.3 kB / 495.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.1447, allocations: 4 kB / 495.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.112e-05/0.1448, allocations: 4 kB / 495.8 MB, free: 15.47 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000154/0.1449, allocations: 65.67 kB / 495.9 MB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.1449, allocations: 0 / 495.9 MB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.145, allocations: 0 / 495.9 MB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.145, allocations: 0 / 495.9 MB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.316e-05/0.145, allocations: 39.91 kB / 495.9 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001679/0.1452, allocations: 173.5 kB / 496.1 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.697e-05/0.1453, allocations: 58.56 kB / 496.2 MB, free: 15.08 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.675e-05/0.1454, allocations: 52.86 kB / 496.2 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.809e-06/0.1454, allocations: 0 / 496.2 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.376e-05/0.1454, allocations: 34.56 kB / 496.3 MB, free: 14.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 8.72e-07/0.1454, allocations: 0 / 496.3 MB, free: 14.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002984/0.1457, allocations: 199.3 kB / 496.5 MB, free: 14.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.766e-05/0.1458, allocations: 85.11 kB / 496.5 MB, free: 14.67 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/0.1459, allocations: 129.8 kB / 496.7 MB, free: 14.54 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.1459, allocations: 25.7 kB / 496.7 MB, free: 14.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.504e-05/0.146, allocations: 96.16 kB / 496.8 MB, free: 14.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.551e-05/0.146, allocations: 47.38 kB / 496.8 MB, free: 14.36 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.105e-05/0.1461, allocations: 21.72 kB / 496.9 MB, free: 14.33 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.1462, allocations: 322.8 kB / 497.2 MB, free: 14.01 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.671e-05/0.1463, allocations: 31.98 kB / 497.2 MB, free: 13.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.026e-05/0.1463, allocations: 31.98 kB / 497.2 MB, free: 13.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001624/0.1465, allocations: 164.6 kB / 497.4 MB, free: 13.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1465, allocations: 0 / 497.4 MB, free: 13.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001802/0.1467, allocations: 171 kB / 497.6 MB, free: 13.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.015e-05/0.1468, allocations: 45.67 kB / 497.6 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.1468, allocations: 4 kB / 497.6 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.1468, allocations: 0 / 497.6 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.02e-07/0.1468, allocations: 0 / 497.6 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.1468, allocations: 0 / 497.6 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.427e-05/0.1469, allocations: 8 kB / 497.6 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.25e-05/0.1469, allocations: 7.938 kB / 497.6 MB, free: 13.52 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.0001308/0.147, allocations: 167.5 kB / 497.8 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.896e-05/0.1471, allocations: 11.94 kB / 497.8 MB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.639e-05/0.1471, allocations: 8.719 kB / 497.8 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.1471, allocations: 0 / 497.8 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.1471, allocations: 0 / 497.8 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-06/0.1471, allocations: 0 / 497.8 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001339/0.1472, allocations: 181.5 kB / 498 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.1472, allocations: 4 kB / 498 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.973e-06/0.1473, allocations: 3.984 kB / 498 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.1473, allocations: 0 / 498 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.1473, allocations: 8 kB / 498 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.1473, allocations: 0 / 498 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1473, allocations: 7.938 kB / 498 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003341/0.1476, allocations: 286.5 kB / 498.3 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.035e-05/0.1477, allocations: 88.95 kB / 498.4 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.06e-05/0.1477, allocations: 4 kB / 498.4 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.49e-05/0.1477, allocations: 0 / 498.4 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.267e-05/0.1478, allocations: 4 kB / 498.4 MB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.1478, allocations: 4 kB / 498.4 MB, free: 12.65 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.705e-05/0.1479, allocations: 111.2 kB / 498.5 MB, free: 12.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1479, allocations: 0 / 498.5 MB, free: 12.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006852/0.1486, allocations: 319.9 kB / 498.8 MB, free: 12.23 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.0008706/0.1494, allocations: 363 kB / 499.2 MB, free: 11.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003564/0.1498, allocations: 299.2 kB / 499.5 MB, free: 11.56 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1498, allocations: 64 / 499.5 MB, free: 11.56 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000191/0.15, allocations: 227.3 kB / 499.7 MB, free: 11.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002353/0.1503, allocations: 11.94 kB / 499.7 MB, free: 11.31 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005072/0.1508, allocations: 304.6 kB / 500 MB, free: 10.99 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003051/0.1511, allocations: 0.7079 MB / 0.489 GB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.236e-05/0.1511, allocations: 0 / 0.489 GB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.322e-05/0.1511, allocations: 19.44 kB / 0.489 GB, free: 10.23 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1511, allocations: 0 / 0.489 GB, free: 10.23 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].