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.001357/0.001358, allocations: 112 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.001502/0.001502, 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.582/1.582, 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.1805/0.1805, allocations: 37.99 MB / 309.8 MB, free: 5.969 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.00157/0.00157, allocations: 71.02 kB / 376.8 MB, free: 2.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.2944, allocations: 55.24 MB / 432 MB, free: 19.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3): time 0.0032/0.2977, allocations: 2.114 MB / 434.1 MB, free: 17.38 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002831/0.3005, allocations: 2.078 MB / 436.2 MB, free: 15.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.423e-05/0.3006, allocations: 0 / 436.2 MB, free: 15.29 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001346/0.3008, allocations: 11.91 kB / 436.2 MB, free: 15.28 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.307e-05/0.3009, allocations: 27.84 kB / 436.2 MB, free: 15.25 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.001816/0.3027, allocations: 0.8188 MB / 437.1 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001096/0.3028, allocations: 79.73 kB / 437.1 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.948e-05/0.3029, allocations: 12.12 kB / 437.2 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.909e-05/0.3029, allocations: 39.83 kB / 437.2 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.773e-05/0.303, allocations: 47.77 kB / 437.2 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.32e-05/0.303, allocations: 4 kB / 437.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00142/0.3045, allocations: 1.404 MB / 438.6 MB, free: 12.85 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.28e-05/0.3045, allocations: 43.84 kB / 438.7 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.368e-05/0.3046, allocations: 55.53 kB / 438.7 MB, free: 12.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001185/0.3058, allocations: 1.376 MB / 440.1 MB, free: 11.38 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.3058, allocations: 11.94 kB / 440.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.3058, allocations: 0 / 440.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.3058, allocations: 0 / 440.1 MB, free: 11.36 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.0006256/0.3064, allocations: 0.6056 MB / 440.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.3065, allocations: 11.89 kB / 440.8 MB, free: 10.69 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.555e-05/0.3066, allocations: 20.75 kB / 440.8 MB, free: 10.67 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001982/0.3068, allocations: 207.5 kB / 441 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.3068, allocations: 4 kB / 441 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.38e-05/0.3068, allocations: 0 / 441 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001903/0.307, allocations: 142.6 kB / 441.1 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.307, allocations: 0 / 441.1 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.307, allocations: 0 / 441.1 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.307, allocations: 0 / 441.1 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.507e-05/0.3071, allocations: 96.28 kB / 441.2 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000152/0.3073, allocations: 210 kB / 441.4 MB, free: 9.934 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001405/0.3074, allocations: 158.8 kB / 441.6 MB, free: 9.77 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.3076, allocations: 153.2 kB / 441.7 MB, free: 9.617 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.687e-05/0.3076, allocations: 4 kB / 441.7 MB, free: 9.613 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.3076, allocations: 30.56 kB / 441.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 1.213e-06/0.3077, allocations: 0 / 441.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.0006737/0.3083, allocations: 0.4997 MB / 442.3 MB, free: 9.062 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.179e-05/0.3084, allocations: 109 kB / 442.4 MB, free: 8.938 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001143/0.3085, allocations: 166.9 kB / 442.5 MB, free: 8.766 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.3085, allocations: 25.7 kB / 442.5 MB, free: 8.734 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.495e-05/0.3086, allocations: 104.8 kB / 442.7 MB, free: 8.625 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.954e-05/0.3087, allocations: 138 kB / 442.8 MB, free: 8.488 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.802e-05/0.3087, allocations: 29.7 kB / 442.8 MB, free: 8.453 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.684e-05/0.3089, allocations: 346.7 kB / 443.2 MB, free: 8.105 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.447e-05/0.3089, allocations: 91.97 kB / 443.2 MB, free: 8.016 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.641e-05/0.309, allocations: 99.95 kB / 443.3 MB, free: 7.918 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002657/0.3093, allocations: 377.4 kB / 443.7 MB, free: 7.535 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3093, allocations: 0 / 443.7 MB, free: 7.535 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002938/0.3096, allocations: 342.9 kB / 444 MB, free: 7.188 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.766e-05/0.3097, allocations: 93.69 kB / 444.1 MB, free: 7.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.3097, allocations: 4 kB / 444.1 MB, free: 7.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.3097, allocations: 0 / 444.1 MB, free: 7.086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.203e-06/0.3097, allocations: 0 / 444.1 MB, free: 7.086 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.3097, allocations: 0 / 444.1 MB, free: 7.086 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.088e-05/0.3098, allocations: 19.78 kB / 444.2 MB, free: 7.066 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.078e-05/0.3099, allocations: 8 kB / 444.2 MB, free: 7.059 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.0001539/0.31, allocations: 239.3 kB / 444.4 MB, free: 6.809 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.805e-05/0.31, allocations: 23.72 kB / 444.4 MB, free: 6.785 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.56e-05/0.3101, allocations: 18.66 kB / 444.4 MB, free: 6.77 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.3101, allocations: 0 / 444.4 MB, free: 6.77 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3101, allocations: 0 / 444.4 MB, free: 6.77 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.584e-06/0.3101, allocations: 0 / 444.4 MB, free: 6.77 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001328/0.3102, allocations: 241.2 kB / 444.7 MB, free: 6.484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3102, allocations: 0 / 444.7 MB, free: 6.484 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.423e-06/0.3102, allocations: 3.984 kB / 444.7 MB, free: 6.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.3103, allocations: 0 / 444.7 MB, free: 6.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.974e-05/0.3103, allocations: 8 kB / 444.7 MB, free: 6.473 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.51e-07/0.3103, allocations: 0 / 444.7 MB, free: 6.473 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3103, allocations: 0 / 444.7 MB, free: 6.473 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007248/0.311, allocations: 0.9276 MB / 445.6 MB, free: 5.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.685e-05/0.3111, allocations: 96.77 kB / 445.7 MB, free: 5.406 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.071e-05/0.3111, allocations: 8 kB / 445.7 MB, free: 5.398 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.773e-05/0.3112, allocations: 7.984 kB / 445.7 MB, free: 5.391 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.686e-05/0.3112, allocations: 8 kB / 445.7 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.3112, allocations: 8 kB / 445.7 MB, free: 5.375 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.557e-05/0.3113, allocations: 132.2 kB / 445.9 MB, free: 5.246 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3113, allocations: 32 / 445.9 MB, free: 5.246 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008098/0.3121, allocations: 355.8 kB / 446.2 MB, free: 4.898 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.0008166/0.3129, allocations: 381.5 kB / 446.6 MB, free: 4.52 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009527/0.3139, allocations: 1.6 MB / 448.2 MB, free: 2.906 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.3139, allocations: 0 / 448.2 MB, free: 2.906 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006804/0.3146, allocations: 1.37 MB / 449.6 MB, free: 1.523 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002265/0.3148, allocations: 19.98 kB / 449.6 MB, free: 1.504 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006927/0.3155, allocations: 0.6661 MB / 450.2 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001739/0.3157, allocations: 0.7595 MB / 451 MB, free: 28 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.3e-05/0.3157, allocations: 3.953 kB / 451 MB, free: 24 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.115e-05/0.3157, allocations: 7.438 kB / 451 MB, free: 16 kB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3157, allocations: 4.062 kB / 451 MB, free: 12 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].