Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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.EqCircFromTransDat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") translateModel(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001283, allocations: 105.7 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.001383/0.001384, allocations: 196 kB / 17.99 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.569/1.569, 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.1728/0.1728, allocations: 37.98 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.001413/0.001413, allocations: 63.91 kB / 431.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1117, allocations: 55.24 MB / 487.1 MB, free: 8.332 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.003355/0.1151, allocations: 2.141 MB / 489.3 MB, free: 6.168 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002828/0.1179, allocations: 2.101 MB / 491.4 MB, free: 4.055 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.738e-05/0.118, allocations: 0 / 491.4 MB, free: 4.055 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001342/0.1181, allocations: 11.92 kB / 491.4 MB, free: 4.043 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000111/0.1183, allocations: 39.75 kB / 491.4 MB, free: 4.004 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.001874/0.1201, allocations: 0.8146 MB / 492.2 MB, free: 3.188 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001509/0.1203, allocations: 99.61 kB / 492.3 MB, free: 3.09 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.406e-05/0.1204, allocations: 12 kB / 492.3 MB, free: 3.078 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.479e-05/0.1205, allocations: 43.83 kB / 492.4 MB, free: 3.035 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.794e-05/0.1206, allocations: 51.77 kB / 492.4 MB, free: 2.984 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.555e-05/0.1206, allocations: 7.984 kB / 492.4 MB, free: 2.977 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00172/0.1223, allocations: 1.38 MB / 493.8 MB, free: 1.594 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.819e-05/0.1224, allocations: 31.84 kB / 493.9 MB, free: 1.562 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.996e-05/0.1224, allocations: 39.73 kB / 493.9 MB, free: 1.523 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001239/0.1237, allocations: 1.325 MB / 495.2 MB, free: 200 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.1237, allocations: 0 / 495.2 MB, free: 200 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1237, allocations: 0 / 495.2 MB, free: 200 kB / 366.1 MB Notification: Performance of Transformations before backend: time 5.551e-06/0.1237, allocations: 0 / 495.2 MB, free: 200 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000688/0.1244, allocations: 0.5473 MB / 495.8 MB, free: 15.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.1244, allocations: 11.89 kB / 495.8 MB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.003e-05/0.1245, allocations: 12.75 kB / 495.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001988/0.1247, allocations: 196 kB / 496 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.1247, allocations: 4.125 kB / 496 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.432e-05/0.1247, allocations: 8 kB / 496 MB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001458/0.1249, allocations: 73.66 kB / 496.1 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.722e-06/0.1249, allocations: 3.938 kB / 496.1 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.417e-06/0.1249, allocations: 0 / 496.1 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.586e-06/0.1249, allocations: 4 kB / 496.1 MB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.232e-05/0.125, allocations: 35.97 kB / 496.1 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001516/0.1252, allocations: 181.5 kB / 496.3 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.134e-05/0.1252, allocations: 78.47 kB / 496.4 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.796e-05/0.1253, allocations: 68.86 kB / 496.4 MB, free: 14.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.544e-06/0.1253, allocations: 0 / 496.4 MB, free: 14.82 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/0.1254, allocations: 30.56 kB / 496.5 MB, free: 14.79 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 2.083e-06/0.1254, allocations: 0 / 496.5 MB, free: 14.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003412/0.1257, allocations: 227.1 kB / 496.7 MB, free: 14.55 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.168e-05/0.1258, allocations: 85.11 kB / 496.8 MB, free: 14.45 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.1259, allocations: 150.1 kB / 496.9 MB, free: 14.29 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.126, allocations: 25.7 kB / 496.9 MB, free: 14.26 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.885e-05/0.126, allocations: 104.4 kB / 497 MB, free: 14.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.828e-05/0.1261, allocations: 43.36 kB / 497.1 MB, free: 14.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.192e-05/0.1261, allocations: 25.7 kB / 497.1 MB, free: 14.08 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.1262, allocations: 322.8 kB / 497.4 MB, free: 13.76 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.588e-05/0.1263, allocations: 35.98 kB / 497.5 MB, free: 13.72 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.68e-05/0.1263, allocations: 40.22 kB / 497.5 MB, free: 13.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001626/0.1265, allocations: 180.1 kB / 497.7 MB, free: 13.49 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.1265, allocations: 3.938 kB / 497.7 MB, free: 13.49 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001931/0.1267, allocations: 175.8 kB / 497.8 MB, free: 13.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.006e-05/0.1268, allocations: 49.67 kB / 497.9 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.1268, allocations: 0 / 497.9 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.1268, allocations: 0 / 497.9 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.065e-06/0.1268, allocations: 0 / 497.9 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.1268, allocations: 3.938 kB / 497.9 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.398e-05/0.1269, allocations: 11.84 kB / 497.9 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.387e-05/0.1269, allocations: 12 kB / 497.9 MB, free: 13.22 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.0001234/0.127, allocations: 171.4 kB / 498.1 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.053e-05/0.1271, allocations: 15.94 kB / 498.1 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.543e-05/0.1271, allocations: 8.844 kB / 498.1 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.1271, allocations: 7.984 kB / 498.1 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.1271, allocations: 0 / 498.1 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1271, allocations: 3.938 kB / 498.1 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001274/0.1272, allocations: 189.5 kB / 498.3 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.1273, allocations: 0 / 498.3 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.104e-06/0.1273, allocations: 0 / 498.3 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.233e-06/0.1273, allocations: 3.938 kB / 498.3 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/0.1273, allocations: 8 kB / 498.3 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1273, allocations: 0 / 498.3 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1273, allocations: 4 kB / 498.3 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003322/0.1276, allocations: 306.5 kB / 498.6 MB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.265e-05/0.1277, allocations: 88.86 kB / 498.7 MB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.963e-05/0.1277, allocations: 4 kB / 498.7 MB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.443e-05/0.1278, allocations: 4 kB / 498.7 MB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.062e-05/0.1278, allocations: 0 / 498.7 MB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.1278, allocations: 8 kB / 498.7 MB, free: 12.31 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.856e-05/0.1279, allocations: 119.3 kB / 498.8 MB, free: 12.19 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1279, allocations: 0 / 498.8 MB, free: 12.19 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006856/0.1286, allocations: 316 kB / 499.1 MB, free: 11.88 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.0008195/0.1294, allocations: 366.9 kB / 499.5 MB, free: 11.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003903/0.1298, allocations: 339.2 kB / 499.8 MB, free: 11.17 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1298, allocations: 4.062 kB / 499.8 MB, free: 11.17 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002084/0.13, allocations: 259.3 kB / 0.4884 GB, free: 10.9 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/0.1303, allocations: 15.84 kB / 0.4884 GB, free: 10.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005391/0.1309, allocations: 353.4 kB / 0.4887 GB, free: 10.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.1311, allocations: 0.7158 MB / 0.4894 GB, free: 9.773 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.503e-05/0.1312, allocations: 0 / 0.4894 GB, free: 9.773 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.328e-05/0.1312, allocations: 7.438 kB / 0.4894 GB, free: 9.766 MB / 382.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1312, allocations: 0 / 0.4894 GB, free: 9.766 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].