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.001136/0.001136, allocations: 117.7 kB / 17.7 MB, free: 5.293 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.001269/0.001269, allocations: 191 kB / 18.63 MB, free: 4.367 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.381/1.381, allocations: 205.1 MB / 224.5 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.178/0.178, allocations: 37.99 MB / 309.8 MB, free: 5.977 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.001546/0.001546, allocations: 63.91 kB / 376.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1954/0.197, allocations: 55.25 MB / 432 MB, free: 19.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.00282/0.1998, allocations: 2.149 MB / 434.2 MB, free: 17.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002246/0.2021, allocations: 2.078 MB / 436.3 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.163e-05/0.2022, allocations: 0 / 436.3 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001321/0.2023, allocations: 11.92 kB / 436.3 MB, free: 15.22 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.841e-05/0.2024, allocations: 47.73 kB / 436.3 MB, free: 15.17 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.001814/0.2042, allocations: 0.8087 MB / 437.1 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001244/0.2044, allocations: 99.59 kB / 437.2 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.941e-05/0.2044, allocations: 4 kB / 437.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.086e-05/0.2045, allocations: 51.78 kB / 437.3 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.954e-05/0.2046, allocations: 55.8 kB / 437.3 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.222e-05/0.2046, allocations: 4 kB / 437.3 MB, free: 14.15 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00152/0.2061, allocations: 1.372 MB / 438.7 MB, free: 12.78 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.927e-05/0.2062, allocations: 35.89 kB / 438.7 MB, free: 12.74 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.109e-05/0.2063, allocations: 31.75 kB / 438.8 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001198/0.2075, allocations: 1.333 MB / 440.1 MB, free: 11.38 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2075, allocations: 0 / 440.1 MB, free: 11.38 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2075, allocations: 0 / 440.1 MB, free: 11.38 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.017e-06/0.2075, allocations: 0 / 440.1 MB, free: 11.38 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005286/0.208, allocations: 0.5451 MB / 440.7 MB, free: 10.78 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.897e-05/0.2081, allocations: 11.89 kB / 440.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.742e-05/0.2081, allocations: 12.84 kB / 440.7 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001232/0.2082, allocations: 196 kB / 440.9 MB, free: 10.53 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.487e-06/0.2082, allocations: 8.125 kB / 440.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.267e-05/0.2083, allocations: 0 / 440.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001275/0.2084, allocations: 85.59 kB / 441 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.2084, allocations: 0 / 441 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.2084, allocations: 0 / 441 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.2084, allocations: 0 / 441 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.545e-05/0.2085, allocations: 43.95 kB / 441 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001073/0.2086, allocations: 177.5 kB / 441.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.976e-05/0.2087, allocations: 78.48 kB / 441.3 MB, free: 10.08 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.342e-05/0.2088, allocations: 56.86 kB / 441.3 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.227e-06/0.2088, allocations: 8 kB / 441.3 MB, free: 10.01 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.052e-05/0.2088, allocations: 34.56 kB / 441.3 MB, free: 9.969 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.293e-06/0.2088, allocations: 0 / 441.3 MB, free: 9.969 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.000281/0.2091, allocations: 219 kB / 441.6 MB, free: 9.746 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.771e-05/0.2091, allocations: 93.09 kB / 441.7 MB, free: 9.637 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.336e-05/0.2092, allocations: 154.1 kB / 441.8 MB, free: 9.477 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.207e-06/0.2092, allocations: 25.7 kB / 441.8 MB, free: 9.445 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.838e-05/0.2093, allocations: 100.4 kB / 441.9 MB, free: 9.344 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.794e-05/0.2093, allocations: 43.3 kB / 442 MB, free: 9.301 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.59e-05/0.2093, allocations: 25.7 kB / 442 MB, free: 9.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.613e-05/0.2094, allocations: 326.8 kB / 442.3 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.947e-05/0.2095, allocations: 43.97 kB / 442.4 MB, free: 8.898 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.954e-05/0.2095, allocations: 35.98 kB / 442.4 MB, free: 8.863 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001186/0.2096, allocations: 176.4 kB / 442.6 MB, free: 8.676 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.2096, allocations: 3.938 kB / 442.6 MB, free: 8.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001564/0.2098, allocations: 187.1 kB / 442.7 MB, free: 8.477 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.154e-05/0.2098, allocations: 45.69 kB / 442.8 MB, free: 8.426 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.2098, allocations: 0 / 442.8 MB, free: 8.426 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.2099, allocations: 7.984 kB / 442.8 MB, free: 8.418 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-07/0.2099, allocations: 0 / 442.8 MB, free: 8.418 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.2099, allocations: 4 kB / 442.8 MB, free: 8.414 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.92e-05/0.2099, allocations: 4 kB / 442.8 MB, free: 8.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.952e-05/0.21, allocations: 4 kB / 442.8 MB, free: 8.406 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 7.536e-05/0.21, allocations: 171.4 kB / 443 MB, free: 8.223 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.89e-05/0.2101, allocations: 15.81 kB / 443 MB, free: 8.207 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.41e-05/0.2101, allocations: 20.83 kB / 443 MB, free: 8.188 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.2101, allocations: 0 / 443 MB, free: 8.188 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.2101, allocations: 0 / 443 MB, free: 8.188 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.043e-06/0.2101, allocations: 0 / 443 MB, free: 8.188 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.42e-05/0.2102, allocations: 193.4 kB / 443.2 MB, free: 7.949 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.2102, allocations: 0 / 443.2 MB, free: 7.949 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.102e-06/0.2102, allocations: 4 kB / 443.2 MB, free: 7.945 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.2102, allocations: 0 / 443.2 MB, free: 7.945 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.2102, allocations: 4 kB / 443.2 MB, free: 7.941 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.2102, allocations: 3.938 kB / 443.2 MB, free: 7.938 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.2102, allocations: 7.984 kB / 443.2 MB, free: 7.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002516/0.2105, allocations: 298.5 kB / 443.5 MB, free: 7.613 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.249e-05/0.2105, allocations: 88.92 kB / 443.6 MB, free: 7.508 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.2106, allocations: 0 / 443.6 MB, free: 7.508 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.636e-05/0.2106, allocations: 4 kB / 443.6 MB, free: 7.504 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.064e-05/0.2106, allocations: 7.984 kB / 443.6 MB, free: 7.496 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.2106, allocations: 4 kB / 443.6 MB, free: 7.492 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.793e-05/0.2107, allocations: 115.1 kB / 443.7 MB, free: 7.379 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2107, allocations: 4.031 kB / 443.7 MB, free: 7.375 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006295/0.2113, allocations: 327.9 kB / 444.1 MB, free: 7.055 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.0007527/0.2121, allocations: 374.1 kB / 444.4 MB, free: 6.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002636/0.2124, allocations: 331.3 kB / 444.7 MB, free: 6.344 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2124, allocations: 0 / 444.7 MB, free: 6.344 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001368/0.2125, allocations: 263.3 kB / 445 MB, free: 6.074 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002349/0.2128, allocations: 19.92 kB / 445 MB, free: 6.055 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004137/0.2132, allocations: 349.3 kB / 445.4 MB, free: 5.688 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001039/0.2133, allocations: 0.7236 MB / 446.1 MB, free: 4.938 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.509e-05/0.2133, allocations: 0 / 446.1 MB, free: 4.938 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.698e-06/0.2133, allocations: 11.44 kB / 446.1 MB, free: 4.926 MB / 318.1 MB Notification: Performance of SimCode: time 2e-07/0.2133, allocations: 0 / 446.1 MB, free: 4.926 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].