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.001737/0.001737, allocations: 114 kB / 17.69 MB, free: 5.297 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.001686/0.001687, allocations: 191 kB / 18.63 MB, free: 4.363 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.553/1.553, 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.1795/0.1795, allocations: 37.98 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.001447/0.001447, allocations: 67.91 kB / 376.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.2333, allocations: 55.24 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.003041/0.2364, allocations: 2.163 MB / 434.2 MB, free: 17.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002484/0.2389, allocations: 2.074 MB / 436.3 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.445e-05/0.239, allocations: 8 kB / 436.3 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001358/0.2392, allocations: 15.86 kB / 436.3 MB, free: 15.21 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.095e-05/0.2393, allocations: 39.8 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.001621/0.2409, allocations: 0.809 MB / 437.1 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001406/0.241, allocations: 103.5 kB / 437.2 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.995e-05/0.2411, allocations: 7.984 kB / 437.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.625e-05/0.2412, allocations: 39.84 kB / 437.3 MB, free: 14.22 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.238e-05/0.2413, allocations: 63.73 kB / 437.3 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.372e-05/0.2413, allocations: 0 / 437.3 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001448/0.2427, allocations: 1.38 MB / 438.7 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.266e-05/0.2428, allocations: 27.91 kB / 438.7 MB, free: 12.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.704e-05/0.2429, allocations: 35.73 kB / 438.8 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001101/0.244, allocations: 1.323 MB / 440.1 MB, free: 11.39 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.244, allocations: 0 / 440.1 MB, free: 11.39 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.244, allocations: 3.984 kB / 440.1 MB, free: 11.38 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.244, 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.0005062/0.2445, allocations: 0.5434 MB / 440.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.2446, allocations: 15.89 kB / 440.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.602e-05/0.2446, allocations: 8.844 kB / 440.7 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001438/0.2448, allocations: 204 kB / 440.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.089e-05/0.2448, allocations: 4.125 kB / 440.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.062e-05/0.2448, allocations: 0 / 440.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001325/0.2449, allocations: 77.66 kB / 441 MB, free: 10.44 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.071e-06/0.2449, allocations: 0 / 441 MB, free: 10.44 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.007e-05/0.245, allocations: 0 / 441 MB, free: 10.44 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.245, allocations: 4 kB / 441 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.268e-05/0.245, allocations: 43.95 kB / 441 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001159/0.2452, allocations: 177.6 kB / 441.2 MB, free: 10.17 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.744e-05/0.2452, allocations: 78.42 kB / 441.2 MB, free: 10.08 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.112e-05/0.2453, allocations: 60.86 kB / 441.3 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.787e-06/0.2453, allocations: 4 kB / 441.3 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.773e-05/0.2453, allocations: 34.56 kB / 441.3 MB, free: 9.973 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.072e-06/0.2453, allocations: 3.938 kB / 441.3 MB, free: 9.969 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.000296/0.2456, allocations: 215.2 kB / 441.6 MB, free: 9.746 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.258e-05/0.2457, allocations: 93.09 kB / 441.6 MB, free: 9.637 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.2458, allocations: 154 kB / 441.8 MB, free: 9.477 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.124e-05/0.2458, allocations: 25.7 kB / 441.8 MB, free: 9.445 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.608e-05/0.2459, allocations: 96.38 kB / 441.9 MB, free: 9.348 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.454e-05/0.2459, allocations: 43.3 kB / 442 MB, free: 9.305 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.651e-05/0.246, allocations: 29.7 kB / 442 MB, free: 9.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.409e-05/0.246, allocations: 326.9 kB / 442.3 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.885e-05/0.2461, allocations: 43.97 kB / 442.4 MB, free: 8.898 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.02e-05/0.2461, allocations: 35.98 kB / 442.4 MB, free: 8.863 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001336/0.2463, allocations: 178.7 kB / 442.6 MB, free: 8.676 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.2463, 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.0001638/0.2464, allocations: 183.1 kB / 442.7 MB, free: 8.48 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.427e-05/0.2465, allocations: 45.69 kB / 442.8 MB, free: 8.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.2465, allocations: 3.984 kB / 442.8 MB, free: 8.426 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.2465, allocations: 0 / 442.8 MB, free: 8.426 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.132e-06/0.2465, allocations: 8 kB / 442.8 MB, free: 8.418 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.2466, allocations: 0 / 442.8 MB, free: 8.418 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.354e-05/0.2466, allocations: 8 kB / 442.8 MB, free: 8.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.185e-05/0.2466, allocations: 7.984 kB / 442.8 MB, free: 8.402 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 8.743e-05/0.2467, allocations: 171.4 kB / 443 MB, free: 8.219 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.777e-05/0.2468, allocations: 15.81 kB / 443 MB, free: 8.203 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.556e-05/0.2468, allocations: 16.83 kB / 443 MB, free: 8.188 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.2468, allocations: 0 / 443 MB, free: 8.188 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.2468, allocations: 0 / 443 MB, free: 8.188 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.2468, allocations: 4 kB / 443 MB, free: 8.184 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.523e-05/0.2469, allocations: 197.4 kB / 443.2 MB, free: 7.941 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.2469, allocations: 0 / 443.2 MB, free: 7.941 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.2469, allocations: 0 / 443.2 MB, free: 7.941 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.113e-06/0.2469, allocations: 0 / 443.2 MB, free: 7.941 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.826e-05/0.2469, allocations: 4 kB / 443.2 MB, free: 7.938 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.2469, allocations: 0 / 443.2 MB, free: 7.938 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.247, allocations: 0 / 443.2 MB, free: 7.938 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002739/0.2472, allocations: 306.2 kB / 443.5 MB, free: 7.617 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.621e-05/0.2473, allocations: 92.86 kB / 443.6 MB, free: 7.508 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.142e-05/0.2473, allocations: 4 kB / 443.6 MB, free: 7.504 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.341e-05/0.2473, allocations: 0 / 443.6 MB, free: 7.504 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.932e-05/0.2474, allocations: 4 kB / 443.6 MB, free: 7.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.142e-05/0.2474, allocations: 7.984 kB / 443.6 MB, free: 7.492 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.161e-05/0.2475, allocations: 119.1 kB / 443.7 MB, free: 7.375 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2475, allocations: 0 / 443.7 MB, free: 7.375 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006068/0.2481, allocations: 327.8 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.0007127/0.2488, allocations: 370.9 kB / 444.4 MB, free: 6.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002757/0.2491, allocations: 335.2 kB / 444.7 MB, free: 6.34 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2491, allocations: 0 / 444.7 MB, free: 6.34 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001439/0.2492, allocations: 259.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.0002501/0.2495, allocations: 16.05 kB / 445 MB, free: 6.059 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004454/0.2499, allocations: 357.2 kB / 445.4 MB, free: 5.684 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001395/0.2501, allocations: 0.7157 MB / 446.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.678e-05/0.2501, allocations: 4 kB / 446.1 MB, free: 4.938 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.978e-06/0.2501, allocations: 7.438 kB / 446.1 MB, free: 4.93 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2501, allocations: 0 / 446.1 MB, free: 4.93 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].