Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.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.Wind.WindTurbine_IG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG") translateModel(PowerSystems.Examples.Wind.WindTurbine_IG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.001478/0.001478, allocations: 192 kB / 18.63 MB, free: 4.375 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.519/1.519, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1848/0.1848, 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.001376/0.001376, allocations: 60.47 kB / 376.8 MB, free: 2.934 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2753/0.2767, allocations: 55.26 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_IG): time 0.007453/0.2842, allocations: 8.087 MB / 440.1 MB, free: 11.38 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006652/0.2909, allocations: 5.52 MB / 445.6 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006779/0.2916, allocations: 27.81 kB / 445.7 MB, free: 5.812 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeComponents: time 0.008818/0.3004, allocations: 5.222 MB / 450.9 MB, free: 0.582 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001881/0.3023, allocations: 0.8402 MB / 451.7 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00145/0.3038, allocations: 499 kB / 452.2 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003403/0.3072, allocations: 2.522 MB / 454.7 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009699/0.3082, allocations: 0.6298 MB / 455.4 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001122/0.3093, allocations: 0.7706 MB / 456.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001435/0.3108, allocations: 1.024 MB / 457.2 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001842/0.311, allocations: 104 kB / 457.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008085/0.3118, allocations: 375.5 kB / 457.6 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006495/0.3125, allocations: 0.6547 MB / 458.3 MB, free: 9.152 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007935/0.3133, allocations: 0.6842 MB / 459 MB, free: 8.465 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00199/0.3153, allocations: 1.729 MB / 460.7 MB, free: 6.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.3153, allocations: 0 / 460.7 MB, free: 6.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.757e-06/0.3153, allocations: 0 / 460.7 MB, free: 6.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.911e-05/0.3153, allocations: 3.938 kB / 460.7 MB, free: 6.727 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.003064/0.3184, allocations: 1.593 MB / 462.3 MB, free: 5.078 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.3184, allocations: 11.89 kB / 462.3 MB, free: 5.066 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001242/0.3197, allocations: 219.1 kB / 462.5 MB, free: 4.852 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002064/0.3218, allocations: 0.9491 MB / 463.5 MB, free: 3.859 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.436e-05/0.3218, allocations: 73.98 kB / 463.5 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004325/0.3223, allocations: 179.8 kB / 463.7 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002327/0.3246, allocations: 1.564 MB / 465.3 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.974e-05/0.3247, allocations: 11.88 kB / 465.3 MB, free: 1.957 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.934e-05/0.3248, allocations: 35.98 kB / 465.3 MB, free: 1.922 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005571/0.3253, allocations: 157.9 kB / 465.5 MB, free: 1.766 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00205/0.3274, allocations: 1.253 MB / 466.7 MB, free: 0.5039 MB / 334.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00824/0.3357, allocations: 6.454 MB / 473.2 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001484/0.3372, allocations: 0.9059 MB / 474.1 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007429/0.3379, allocations: 0.5121 MB / 474.6 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.703e-05/0.338, allocations: 16.98 kB / 474.6 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.505e-05/0.338, allocations: 47.56 kB / 474.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=91): time 2.635e-06/0.3381, allocations: 0 / 474.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=96): time 0.006182/0.3442, allocations: 3.674 MB / 478.3 MB, free: 4.336 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.3443, allocations: 90.05 kB / 478.4 MB, free: 4.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007965/0.3451, allocations: 0.7234 MB / 479.1 MB, free: 3.496 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.572e-05/0.3452, allocations: 41.7 kB / 479.2 MB, free: 3.449 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003568/0.3455, allocations: 0.5613 MB / 479.7 MB, free: 2.879 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002723/0.3458, allocations: 362.8 kB / 480.1 MB, free: 2.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003344/0.3462, allocations: 238.8 kB / 480.3 MB, free: 2.281 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.3464, allocations: 414.7 kB / 480.7 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000854/0.3472, allocations: 0.5687 MB / 481.3 MB, free: 1.297 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001039/0.3483, allocations: 0.8853 MB / 482.2 MB, free: 288 kB / 350.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.007713/0.356, allocations: 3.236 MB / 485.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.115e-05/0.3561, allocations: 7.938 kB / 485.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.005215/0.3613, allocations: 2.736 MB / 488.2 MB, free: 10.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.01e-05/0.3613, allocations: 11.94 kB / 488.2 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.093e-05/0.3613, allocations: 15.98 kB / 488.2 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002842/0.3642, allocations: 1.144 MB / 489.3 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008362/0.3651, allocations: 207.6 kB / 489.5 MB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01736/0.3824, allocations: 12.27 MB / 0.4901 GB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001009/0.3835, allocations: 63.89 kB / 0.4901 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/0.3836, allocations: 52 kB / 0.4902 GB, free: 12.11 MB / 382.1 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization system: $DER.inertia.w = 0.0 infBus.V = 15000.0 * infBus.v0 line.omega[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,trafo.tap_2_internal,trafo.tap_1_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(24,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0006999/0.3843, allocations: 397.3 kB / 0.4905 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001746/0.3845, allocations: 102.8 kB / 0.4906 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002235/0.3867, allocations: 1.408 MB / 0.492 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.238e-06/0.3868, allocations: 15.92 kB / 0.492 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3868, allocations: 4 kB / 0.492 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.3868, allocations: 7.984 kB / 0.492 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004616/0.3914, allocations: 2.656 MB / 0.4946 GB, free: 7.336 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.226e-06/0.3914, allocations: 3.938 kB / 0.4946 GB, free: 7.332 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001487/0.3929, allocations: 271.7 kB / 0.4949 GB, free: 7.066 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001685/0.3931, allocations: 57.89 kB / 0.495 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.327e-05/0.3932, allocations: 43.97 kB / 0.495 GB, free: 6.961 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00197/0.3952, allocations: 2.835 MB / 0.4978 GB, free: 3.848 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.3952, allocations: 4 kB / 0.4978 GB, free: 3.844 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002668/0.3979, allocations: 1.904 MB / 0.4996 GB, free: 1.855 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005589/0.3984, allocations: 255.9 kB / 0.4999 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001483/0.3986, allocations: 39.89 kB / 0.4999 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000533/0.3991, allocations: 39.97 kB / 0.5 GB, free: 1.508 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.3993, allocations: 68.84 kB / 0.5 GB, free: 1.441 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-05/0.3994, allocations: 31.98 kB / 0.5 GB, free: 1.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006334/0.4, allocations: 499 kB / 0.5005 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4, allocations: 0 / 0.5005 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001426/0.4015, allocations: 376 kB / 0.5009 GB, free: 0.5625 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 25 (generator.i[3],generator.psi_s[1],generator.psi_s[2],generator.psi_rd[1],generator.psi_rq[1],line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[2,1],line.i[2,2],line.i[2,3],line.i[3,1],line.i[3,2],line.i[3,3],inertia.phi,inertia.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000217/0.4017, allocations: 142.8 kB / 0.501 GB, free: 424 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003933/0.4056, allocations: 2.117 MB / 0.5031 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.4056, allocations: 0 / 0.5031 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001119/0.4068, allocations: 0.7622 MB / 0.5038 GB, free: 13.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009694/0.4077, allocations: 223.1 kB / 0.504 GB, free: 13.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006223/0.414, allocations: 4.043 MB / 0.508 GB, free: 9.18 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001025/0.415, allocations: 1.302 MB / 0.5093 GB, free: 7.84 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008218/0.4159, allocations: 312 kB / 0.5096 GB, free: 7.531 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002632/0.4161, allocations: 75.42 kB / 0.5096 GB, free: 7.457 MB / 398.1 MB Notification: Performance of SimCode: time 8.71e-07/0.4161, allocations: 0 / 0.5096 GB, free: 7.457 MB / 398.1 MB Notification: Performance of Templates: time 0.223/0.6391, allocations: 19.12 MB / 0.5283 GB, free: 82.86 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.makefile (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.sim & ./PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.pipe 2>&1)