Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001629/0.001629, allocations: 110 kB / 17.68 MB, free: 5.332 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.001846/0.001846, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.547/1.547, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1776/0.1776, allocations: 37.99 MB / 309.8 MB, free: 5.961 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.001532/0.001532, allocations: 63.91 kB / 376.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2228/0.2244, allocations: 55.25 MB / 432 MB, free: 19.64 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.002974/0.2274, allocations: 2.098 MB / 434.1 MB, free: 17.53 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002326/0.2297, allocations: 2.086 MB / 436.2 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.1e-05/0.2298, allocations: 0 / 436.2 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001171/0.2299, allocations: 11.92 kB / 436.2 MB, free: 15.42 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.942e-05/0.23, allocations: 35.83 kB / 436.3 MB, free: 15.38 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.001743/0.2318, allocations: 0.8204 MB / 437.1 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001288/0.2319, allocations: 79.69 kB / 437.2 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.188e-05/0.232, allocations: 4.188 kB / 437.2 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.012e-05/0.232, allocations: 27.84 kB / 437.2 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.505e-05/0.2321, allocations: 59.75 kB / 437.2 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.3e-05/0.2321, allocations: 0 / 437.2 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001476/0.2336, allocations: 1.407 MB / 438.6 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.123e-05/0.2337, allocations: 43.84 kB / 438.7 MB, free: 12.94 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.595e-05/0.2337, allocations: 51.55 kB / 438.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001091/0.2348, allocations: 1.383 MB / 440.1 MB, free: 11.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.2348, allocations: 0 / 440.1 MB, free: 11.5 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.021e-06/0.2349, allocations: 4 kB / 440.1 MB, free: 11.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.2349, allocations: 0 / 440.1 MB, free: 11.5 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0005365/0.2354, allocations: 0.6073 MB / 440.7 MB, free: 10.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.2355, allocations: 11.89 kB / 440.7 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.447e-05/0.2355, allocations: 16.75 kB / 440.8 MB, free: 10.81 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001446/0.2357, allocations: 211.4 kB / 441 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.837e-06/0.2357, allocations: 0 / 441 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.516e-05/0.2357, allocations: 4 kB / 441 MB, free: 10.56 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001616/0.2359, allocations: 134.6 kB / 441.1 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.2359, allocations: 4 kB / 441.1 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.2359, allocations: 0 / 441.1 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.2359, allocations: 3.938 kB / 441.1 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.436e-05/0.236, allocations: 96.28 kB / 441.2 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000119/0.2361, allocations: 217.9 kB / 441.4 MB, free: 10.06 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001198/0.2362, allocations: 158.9 kB / 441.6 MB, free: 9.898 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.367e-05/0.2363, allocations: 145.2 kB / 441.7 MB, free: 9.754 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.674e-06/0.2364, allocations: 0 / 441.7 MB, free: 9.754 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.51e-05/0.2364, allocations: 38.55 kB / 441.8 MB, free: 9.707 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 1.012e-06/0.2364, allocations: 0 / 441.8 MB, free: 9.707 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.0004924/0.2369, allocations: 0.4958 MB / 442.3 MB, free: 9.199 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.446e-05/0.2369, allocations: 105.1 kB / 442.4 MB, free: 9.078 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.71e-05/0.237, allocations: 166.9 kB / 442.5 MB, free: 8.906 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.909e-06/0.2371, allocations: 25.7 kB / 442.5 MB, free: 8.875 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.843e-05/0.2371, allocations: 104.8 kB / 442.6 MB, free: 8.766 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.814e-05/0.2372, allocations: 130 kB / 442.8 MB, free: 8.637 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.25e-05/0.2372, allocations: 37.73 kB / 442.8 MB, free: 8.594 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.343e-05/0.2373, allocations: 342.8 kB / 443.1 MB, free: 8.25 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.434e-05/0.2374, allocations: 99.89 kB / 443.2 MB, free: 8.152 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.607e-05/0.2375, allocations: 99.95 kB / 443.3 MB, free: 8.055 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002493/0.2377, allocations: 377.4 kB / 443.7 MB, free: 7.672 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2377, allocations: 0 / 443.7 MB, free: 7.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000278/0.238, allocations: 338.9 kB / 444 MB, free: 7.328 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.695e-05/0.2381, allocations: 85.62 kB / 444.1 MB, free: 7.238 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.436e-06/0.2381, allocations: 4.062 kB / 444.1 MB, free: 7.234 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.2381, allocations: 4 kB / 444.1 MB, free: 7.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-07/0.2381, allocations: 0 / 444.1 MB, free: 7.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.2381, allocations: 3.984 kB / 444.1 MB, free: 7.227 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.435e-05/0.2382, allocations: 19.84 kB / 444.2 MB, free: 7.207 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.731e-05/0.2382, allocations: 8 kB / 444.2 MB, free: 7.199 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.0001363/0.2384, allocations: 243.2 kB / 444.4 MB, free: 6.945 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.877e-05/0.2384, allocations: 23.72 kB / 444.4 MB, free: 6.922 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.578e-05/0.2384, allocations: 18.64 kB / 444.4 MB, free: 6.906 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.2384, allocations: 4 kB / 444.4 MB, free: 6.902 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2384, allocations: 4 kB / 444.4 MB, free: 6.898 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.2384, allocations: 0 / 444.4 MB, free: 6.898 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001195/0.2386, allocations: 237.2 kB / 444.7 MB, free: 6.617 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.2386, allocations: 0 / 444.7 MB, free: 6.617 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.2386, allocations: 0 / 444.7 MB, free: 6.617 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.2386, allocations: 0 / 444.7 MB, free: 6.617 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.929e-05/0.2386, allocations: 8 kB / 444.7 MB, free: 6.609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.2386, allocations: 0 / 444.7 MB, free: 6.609 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.2386, allocations: 0 / 444.7 MB, free: 6.609 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007006/0.2393, allocations: 0.9315 MB / 445.6 MB, free: 5.652 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.875e-05/0.2394, allocations: 104.7 kB / 445.7 MB, free: 5.531 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.022e-05/0.2394, allocations: 4 kB / 445.7 MB, free: 5.527 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.908e-05/0.2395, allocations: 8 kB / 445.7 MB, free: 5.52 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.236e-05/0.2395, allocations: 8 kB / 445.7 MB, free: 5.512 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.772e-05/0.2395, allocations: 8 kB / 445.7 MB, free: 5.504 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.823e-05/0.2396, allocations: 132.2 kB / 445.9 MB, free: 5.375 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2396, allocations: 0 / 445.9 MB, free: 5.375 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006367/0.2402, allocations: 359.9 kB / 446.2 MB, free: 5.023 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.0007122/0.2409, allocations: 369.7 kB / 446.6 MB, free: 4.656 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009226/0.2419, allocations: 1.6 MB / 448.2 MB, free: 3.043 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2419, allocations: 0 / 448.2 MB, free: 3.043 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006347/0.2425, allocations: 1.374 MB / 449.6 MB, free: 1.656 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002221/0.2428, allocations: 20.12 kB / 449.6 MB, free: 1.637 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006653/0.2434, allocations: 0.67 MB / 450.3 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001538/0.2436, allocations: 0.7517 MB / 451 MB, free: 168 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.208e-05/0.2436, allocations: 7.953 kB / 451 MB, free: 160 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.488e-06/0.2436, allocations: 7.438 kB / 451 MB, free: 152 kB / 318.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2436, allocations: 0 / 451 MB, free: 152 kB / 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].