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.001367/0.001367, allocations: 113 kB / 17.68 MB, free: 5.473 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.001429/0.001429, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.49/1.49, allocations: 205.1 MB / 224.5 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.2031/0.2031, allocations: 37.98 MB / 309.8 MB, free: 5.965 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.001523/0.001523, allocations: 67.56 kB / 376.8 MB, free: 2.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2137/0.2152, allocations: 55.25 MB / 432 MB, free: 19.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.002973/0.2182, allocations: 2.113 MB / 434.1 MB, free: 17.36 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002316/0.2206, allocations: 2.074 MB / 436.2 MB, free: 15.28 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.516e-05/0.2207, allocations: 0 / 436.2 MB, free: 15.28 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.2208, allocations: 15.86 kB / 436.2 MB, free: 15.26 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.226e-05/0.2209, allocations: 27.84 kB / 436.2 MB, free: 15.23 MB / 318.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.001971/0.2229, allocations: 0.8282 MB / 437.1 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000138/0.223, allocations: 75.75 kB / 437.2 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.121e-05/0.2231, allocations: 192 / 437.2 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.969e-05/0.2232, allocations: 39.77 kB / 437.2 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.572e-05/0.2233, allocations: 47.83 kB / 437.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.439e-05/0.2233, allocations: 4 kB / 437.2 MB, free: 14.24 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001557/0.2248, allocations: 1.404 MB / 438.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.167e-05/0.2249, allocations: 27.92 kB / 438.7 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.804e-05/0.225, allocations: 43.66 kB / 438.7 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001083/0.2261, allocations: 1.356 MB / 440.1 MB, free: 11.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2261, allocations: 0 / 440.1 MB, free: 11.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2261, allocations: 0 / 440.1 MB, free: 11.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.2261, allocations: 4 kB / 440.1 MB, free: 11.41 MB / 318.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.0004811/0.2266, allocations: 0.559 MB / 440.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.2266, allocations: 11.89 kB / 440.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.554e-05/0.2267, allocations: 12.75 kB / 440.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000148/0.2268, allocations: 203.6 kB / 440.9 MB, free: 10.53 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.713e-06/0.2268, allocations: 0 / 440.9 MB, free: 10.53 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.402e-05/0.2269, allocations: 4 kB / 440.9 MB, free: 10.53 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001397/0.227, allocations: 97.52 kB / 441 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.227, allocations: 4 kB / 441 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.227, allocations: 0 / 441 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.227, allocations: 0 / 441 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.196e-05/0.2271, allocations: 63.97 kB / 441 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001145/0.2272, allocations: 197.3 kB / 441.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.568e-05/0.2273, allocations: 102.4 kB / 441.3 MB, free: 10.01 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.713e-05/0.2274, allocations: 96.86 kB / 441.4 MB, free: 9.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.446e-06/0.2274, allocations: 0 / 441.4 MB, free: 9.91 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.575e-05/0.2274, allocations: 34.56 kB / 441.4 MB, free: 9.867 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.011e-06/0.2274, allocations: 0 / 441.4 MB, free: 9.867 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004176/0.2279, allocations: 315.1 kB / 441.7 MB, free: 9.547 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.2279, allocations: 101 kB / 441.8 MB, free: 9.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.634e-05/0.228, allocations: 151.1 kB / 442 MB, free: 9.273 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.025e-05/0.228, allocations: 33.64 kB / 442 MB, free: 9.234 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.044e-05/0.228, allocations: 96.58 kB / 442.1 MB, free: 9.137 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.433e-05/0.2281, allocations: 74.84 kB / 442.2 MB, free: 9.062 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.863e-05/0.2282, allocations: 33.73 kB / 442.2 MB, free: 9.023 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.578e-05/0.2282, allocations: 330.8 kB / 442.6 MB, free: 8.691 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.911e-05/0.2283, allocations: 59.97 kB / 442.6 MB, free: 8.633 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.165e-05/0.2283, allocations: 64.78 kB / 442.7 MB, free: 8.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001653/0.2285, allocations: 252.2 kB / 442.9 MB, free: 8.309 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2285, allocations: 0 / 442.9 MB, free: 8.309 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0001963/0.2287, allocations: 235 kB / 443.1 MB, free: 8.066 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.836e-05/0.2288, allocations: 73.59 kB / 443.2 MB, free: 7.988 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.2288, allocations: 0 / 443.2 MB, free: 7.988 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.2288, allocations: 4.062 kB / 443.2 MB, free: 7.984 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.2288, allocations: 0 / 443.2 MB, free: 7.984 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/0.2288, allocations: 0 / 443.2 MB, free: 7.984 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.526e-05/0.2289, allocations: 7.906 kB / 443.2 MB, free: 7.977 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.531e-05/0.2289, allocations: 8 kB / 443.2 MB, free: 7.969 MB / 318.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.000109/0.229, allocations: 203.3 kB / 443.4 MB, free: 7.754 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.073e-05/0.2291, allocations: 15.81 kB / 443.5 MB, free: 7.738 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.42e-05/0.2291, allocations: 13.19 kB / 443.5 MB, free: 7.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.2291, allocations: 0 / 443.5 MB, free: 7.73 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.2291, allocations: 8 kB / 443.5 MB, free: 7.723 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.2291, allocations: 3.984 kB / 443.5 MB, free: 7.719 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001034/0.2292, allocations: 213.4 kB / 443.7 MB, free: 7.461 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2292, allocations: 0 / 443.7 MB, free: 7.461 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.72e-07/0.2292, allocations: 0 / 443.7 MB, free: 7.461 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.2292, allocations: 0 / 443.7 MB, free: 7.461 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.2292, allocations: 4 kB / 443.7 MB, free: 7.457 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.2293, allocations: 0 / 443.7 MB, free: 7.457 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.2293, allocations: 0 / 443.7 MB, free: 7.457 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004071/0.2297, allocations: 0.5217 MB / 444.2 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.873e-05/0.2297, allocations: 92.86 kB / 444.3 MB, free: 6.801 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.444e-05/0.2297, allocations: 4 kB / 444.3 MB, free: 6.797 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.608e-05/0.2298, allocations: 4 kB / 444.3 MB, free: 6.793 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.551e-05/0.2298, allocations: 11.94 kB / 444.3 MB, free: 6.781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.2298, allocations: 4 kB / 444.3 MB, free: 6.777 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.244e-05/0.2299, allocations: 130.9 kB / 444.5 MB, free: 6.648 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2299, allocations: 0 / 444.5 MB, free: 6.648 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006593/0.2306, allocations: 335.9 kB / 444.8 MB, free: 6.32 MB / 318.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.0007392/0.2313, allocations: 365.1 kB / 445.1 MB, free: 5.957 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005081/0.2318, allocations: 0.7178 MB / 445.9 MB, free: 5.227 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.2318, allocations: 0 / 445.9 MB, free: 5.227 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002992/0.2321, allocations: 0.5735 MB / 446.4 MB, free: 4.641 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001995/0.2323, allocations: 8.125 kB / 446.4 MB, free: 4.633 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005252/0.2329, allocations: 469.6 kB / 446.9 MB, free: 4.148 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001551/0.233, allocations: 0.7277 MB / 447.6 MB, free: 3.395 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.356e-05/0.2331, allocations: 0 / 447.6 MB, free: 3.395 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.402e-05/0.2331, allocations: 15.38 kB / 447.6 MB, free: 3.379 MB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2331, allocations: 0 / 447.6 MB, free: 3.379 MB / 318.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].