Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.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_matrixTrDat0,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001156, allocations: 112.5 kB / 17.69 MB, free: 5.438 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.001042/0.001042, allocations: 187 kB / 18.63 MB, free: 4.508 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.456/1.456, 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.1817/0.1817, allocations: 37.99 MB / 309.8 MB, free: 5.973 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.001535/0.001535, allocations: 59.91 kB / 376.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.2871, allocations: 55.25 MB / 432 MB, free: 19.67 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0): time 0.002954/0.2901, allocations: 2.102 MB / 434.1 MB, free: 17.55 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002351/0.2924, allocations: 2.078 MB / 436.2 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.449e-05/0.2925, allocations: 0 / 436.2 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002073/0.2927, allocations: 15.92 kB / 436.2 MB, free: 15.45 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.744e-05/0.2928, allocations: 31.83 kB / 436.3 MB, free: 15.41 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.001832/0.2947, allocations: 0.8232 MB / 437.1 MB, free: 14.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000118/0.2948, allocations: 79.69 kB / 437.2 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.742e-05/0.2948, allocations: 4.188 kB / 437.2 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.43e-05/0.2949, allocations: 39.83 kB / 437.2 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.199e-05/0.295, allocations: 35.84 kB / 437.2 MB, free: 14.44 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.185e-05/0.295, allocations: 4 kB / 437.2 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001561/0.2966, allocations: 1.404 MB / 438.6 MB, free: 13.03 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.274e-05/0.2966, allocations: 15.91 kB / 438.7 MB, free: 13.01 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.568e-05/0.2967, allocations: 19.88 kB / 438.7 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001101/0.2978, allocations: 1.321 MB / 440 MB, free: 11.67 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2978, allocations: 0 / 440 MB, free: 11.67 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2978, allocations: 0 / 440 MB, free: 11.67 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.2978, allocations: 0 / 440 MB, free: 11.67 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004831/0.2983, allocations: 0.5024 MB / 440.5 MB, free: 11.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.2984, allocations: 19.89 kB / 440.5 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.876e-05/0.2984, allocations: 8.844 kB / 440.5 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001408/0.2986, allocations: 187.5 kB / 440.7 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.079e-05/0.2986, allocations: 4 kB / 440.7 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.135e-05/0.2986, allocations: 0 / 440.7 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001146/0.2987, allocations: 53.67 kB / 440.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.2987, allocations: 0 / 440.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.2988, allocations: 0 / 440.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.2988, allocations: 0 / 440.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.846e-05/0.2988, allocations: 23.98 kB / 440.8 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001147/0.2989, allocations: 173.5 kB / 441 MB, free: 10.56 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.19e-05/0.299, allocations: 50.5 kB / 441 MB, free: 10.5 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.424e-05/0.299, allocations: 36.88 kB / 441 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.742e-06/0.2991, allocations: 0 / 441 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.859e-05/0.2991, allocations: 34.5 kB / 441.1 MB, free: 10.42 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 8.21e-07/0.2991, allocations: 0 / 441.1 MB, free: 10.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002232/0.2993, allocations: 147.5 kB / 441.2 MB, free: 10.26 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.253e-05/0.2994, allocations: 93.03 kB / 441.3 MB, free: 10.15 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.26e-05/0.2994, allocations: 121.8 kB / 441.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.478e-06/0.2994, allocations: 25.7 kB / 441.5 MB, free: 9.992 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.735e-05/0.2995, allocations: 100.1 kB / 441.6 MB, free: 9.891 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.236e-05/0.2995, allocations: 15.62 kB / 441.6 MB, free: 9.875 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.112e-05/0.2996, allocations: 25.7 kB / 441.6 MB, free: 9.844 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.405e-05/0.2996, allocations: 326.8 kB / 441.9 MB, free: 9.516 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.102e-05/0.2997, allocations: 20 kB / 441.9 MB, free: 9.496 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.813e-05/0.2997, allocations: 23.98 kB / 442 MB, free: 9.473 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.778e-05/0.2998, allocations: 124.2 kB / 442.1 MB, free: 9.336 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.2998, allocations: 0 / 442.1 MB, free: 9.336 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001137/0.2999, allocations: 123.3 kB / 442.2 MB, free: 9.203 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.365e-05/0.3, allocations: 41.69 kB / 442.2 MB, free: 9.156 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.3, allocations: 0 / 442.2 MB, free: 9.156 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.3, allocations: 4 kB / 442.2 MB, free: 9.152 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.3, allocations: 0 / 442.2 MB, free: 9.152 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.3, allocations: 4.297 kB / 442.2 MB, free: 9.148 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.142e-05/0.3, allocations: 19.89 kB / 442.3 MB, free: 9.129 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.094e-05/0.3001, allocations: 4 kB / 442.3 MB, free: 9.125 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.622e-05/0.3002, allocations: 167.3 kB / 442.4 MB, free: 8.945 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.446e-05/0.3002, allocations: 7.906 kB / 442.4 MB, free: 8.938 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.29e-05/0.3002, allocations: 8.359 kB / 442.5 MB, free: 8.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.3002, allocations: 4 kB / 442.5 MB, free: 8.926 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.3002, allocations: 0 / 442.5 MB, free: 8.926 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.3002, allocations: 0 / 442.5 MB, free: 8.926 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.917e-05/0.3003, allocations: 169.6 kB / 442.6 MB, free: 8.711 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.3003, allocations: 4 kB / 442.6 MB, free: 8.707 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.3003, allocations: 0 / 442.6 MB, free: 8.707 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.3003, allocations: 0 / 442.6 MB, free: 8.707 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.3003, allocations: 7.984 kB / 442.6 MB, free: 8.699 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.3003, allocations: 0 / 442.6 MB, free: 8.699 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3003, allocations: 0 / 442.6 MB, free: 8.699 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001809/0.3005, allocations: 222.5 kB / 442.8 MB, free: 8.457 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.04e-05/0.3006, allocations: 85.02 kB / 442.9 MB, free: 8.355 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.804e-05/0.3006, allocations: 4 kB / 442.9 MB, free: 8.352 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.198e-05/0.3006, allocations: 8.016 kB / 442.9 MB, free: 8.344 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.015e-05/0.3006, allocations: 0 / 442.9 MB, free: 8.344 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-06/0.3006, allocations: 8 kB / 443 MB, free: 8.336 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.536e-05/0.3007, allocations: 97.89 kB / 443 MB, free: 8.242 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3007, allocations: 3.938 kB / 443.1 MB, free: 8.238 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005417/0.3012, allocations: 315.9 kB / 443.4 MB, free: 7.93 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.0007332/0.302, allocations: 374.5 kB / 443.7 MB, free: 7.555 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001988/0.3022, allocations: 199.3 kB / 443.9 MB, free: 7.348 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3022, allocations: 0 / 443.9 MB, free: 7.348 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.7e-05/0.3023, allocations: 147.4 kB / 444.1 MB, free: 7.191 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002286/0.3025, allocations: 11.94 kB / 444.1 MB, free: 7.18 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003518/0.3029, allocations: 248.2 kB / 444.3 MB, free: 6.914 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001409/0.303, allocations: 0.7002 MB / 445 MB, free: 6.188 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.23e-05/0.3031, allocations: 3.953 kB / 445 MB, free: 6.184 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.054e-05/0.3031, allocations: 7.438 kB / 445 MB, free: 6.176 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3031, allocations: 0 / 445 MB, free: 6.176 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].