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.001144/0.001144, allocations: 112.6 kB / 17.69 MB, free: 5.441 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.001268/0.001268, allocations: 191 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.404/1.404, allocations: 205.1 MB / 224.5 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1728/0.1728, allocations: 37.99 MB / 309.8 MB, free: 5.984 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.001434/0.001435, allocations: 63.91 kB / 376.8 MB, free: 2.934 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2045/0.2059, allocations: 55.25 MB / 432 MB, free: 19.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_IG): time 0.008169/0.2141, allocations: 8.083 MB / 440.1 MB, free: 11.37 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007917/0.2221, allocations: 5.525 MB / 445.6 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008969/0.223, allocations: 27.88 kB / 445.7 MB, free: 5.801 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.009033/0.2321, allocations: 5.222 MB / 450.9 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002242/0.2343, allocations: 0.8402 MB / 451.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001399/0.2357, allocations: 0.4912 MB / 452.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00335/0.2391, allocations: 2.519 MB / 454.7 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001127/0.2403, allocations: 0.6338 MB / 455.4 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001337/0.2416, allocations: 0.7667 MB / 456.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00156/0.2432, allocations: 1.032 MB / 457.2 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002634/0.2435, allocations: 104 kB / 457.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000884/0.2444, allocations: 363.6 kB / 457.6 MB, free: 9.801 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000729/0.2451, allocations: 0.6585 MB / 458.3 MB, free: 9.141 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001028/0.2461, allocations: 0.692 MB / 459 MB, free: 8.445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001784/0.2479, allocations: 1.721 MB / 460.7 MB, free: 6.719 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2479, allocations: 0 / 460.7 MB, free: 6.719 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.757e-06/0.248, allocations: 0 / 460.7 MB, free: 6.719 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.372e-05/0.248, allocations: 7.938 kB / 460.7 MB, free: 6.711 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.003298/0.2513, allocations: 1.585 MB / 462.3 MB, free: 5.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.2514, allocations: 15.89 kB / 462.3 MB, free: 5.055 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00118/0.2525, allocations: 223.1 kB / 462.5 MB, free: 4.836 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002187/0.2547, allocations: 0.9452 MB / 463.5 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.916e-05/0.2548, allocations: 77.97 kB / 463.5 MB, free: 3.773 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004656/0.2553, allocations: 187.8 kB / 463.7 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002456/0.2578, allocations: 1.556 MB / 465.3 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.008e-05/0.2578, allocations: 7.938 kB / 465.3 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00012/0.2579, allocations: 43.98 kB / 465.3 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005601/0.2585, allocations: 153.9 kB / 465.5 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002196/0.2607, allocations: 1.253 MB / 466.7 MB, free: 500 kB / 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.008569/0.2693, allocations: 6.45 MB / 473.2 MB, free: 9.668 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001586/0.2709, allocations: 0.9137 MB / 474.1 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007947/0.2717, allocations: 0.5122 MB / 474.6 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.141e-05/0.2718, allocations: 12.98 kB / 474.6 MB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.727e-05/0.2718, allocations: 39.56 kB / 474.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=91): time 2.886e-06/0.2719, allocations: 0 / 474.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=96): time 0.006423/0.2783, allocations: 3.678 MB / 478.3 MB, free: 4.332 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.539e-05/0.2784, allocations: 98.03 kB / 478.4 MB, free: 4.219 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008045/0.2792, allocations: 0.7273 MB / 479.2 MB, free: 3.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.784e-05/0.2792, allocations: 41.7 kB / 479.2 MB, free: 3.434 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003807/0.2796, allocations: 0.5535 MB / 479.8 MB, free: 2.871 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002927/0.2799, allocations: 366.8 kB / 480.1 MB, free: 2.508 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003596/0.2803, allocations: 238.8 kB / 480.3 MB, free: 2.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.2805, allocations: 410.7 kB / 480.7 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008834/0.2814, allocations: 0.5725 MB / 481.3 MB, free: 1.285 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001076/0.2825, allocations: 0.8853 MB / 482.2 MB, free: 276 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.008239/0.2907, allocations: 3.224 MB / 485.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.546e-05/0.2908, 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.00575/0.2965, allocations: 2.74 MB / 488.2 MB, free: 10.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.628e-05/0.2966, allocations: 11.94 kB / 488.2 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.39e-05/0.2966, allocations: 8 kB / 488.2 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002993/0.2996, allocations: 1.156 MB / 489.4 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008106/0.3004, allocations: 191.7 kB / 489.5 MB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01898/0.3194, allocations: 12.29 MB / 0.4901 GB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008903/0.3203, allocations: 55.94 kB / 0.4901 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001629/0.3205, allocations: 56 kB / 0.4902 GB, free: 12.1 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.0007145/0.3212, allocations: 397.5 kB / 0.4906 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002045/0.3214, allocations: 94.78 kB / 0.4906 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002293/0.3237, allocations: 1.412 MB / 0.492 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.411e-05/0.3238, allocations: 12 kB / 0.492 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.3238, allocations: 0 / 0.492 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.605e-05/0.3238, allocations: 7.969 kB / 0.492 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004859/0.3287, allocations: 2.656 MB / 0.4946 GB, free: 7.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.196e-06/0.3287, allocations: 7.938 kB / 0.4946 GB, free: 7.332 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001549/0.3303, allocations: 275.9 kB / 0.4949 GB, free: 7.062 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001707/0.3304, allocations: 53.67 kB / 0.495 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001/0.3306, allocations: 35.98 kB / 0.495 GB, free: 6.969 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001951/0.3325, allocations: 2.847 MB / 0.4978 GB, free: 3.844 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.3325, allocations: 4.156 kB / 0.4978 GB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002768/0.3353, allocations: 1.896 MB / 0.4996 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005658/0.3359, allocations: 247.9 kB / 0.4999 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001682/0.3361, allocations: 47.88 kB / 0.4999 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005961/0.3367, allocations: 39.97 kB / 0.4999 GB, free: 1.512 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001685/0.3368, allocations: 72.78 kB / 0.5 GB, free: 1.441 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.098e-05/0.3369, allocations: 27.98 kB / 0.5 GB, free: 1.414 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006872/0.3376, allocations: 495 kB / 0.5005 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3376, allocations: 0 / 0.5005 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00132/0.339, allocations: 376 kB / 0.5009 GB, free: 0.5703 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.0002115/0.3392, allocations: 146.9 kB / 0.501 GB, free: 428 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004103/0.3433, allocations: 2.116 MB / 0.5031 GB, free: 14.28 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.3433, allocations: 5.312 kB / 0.5031 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001185/0.3445, allocations: 0.7571 MB / 0.5038 GB, free: 13.49 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001156/0.3457, allocations: 230.4 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.006847/0.3525, allocations: 4.047 MB / 0.508 GB, free: 9.172 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001279/0.3538, allocations: 1.298 MB / 0.5093 GB, free: 7.836 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008366/0.3547, allocations: 320 kB / 0.5096 GB, free: 7.52 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002786/0.355, allocations: 71.44 kB / 0.5096 GB, free: 7.449 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.355, allocations: 4 kB / 0.5096 GB, free: 7.445 MB / 398.1 MB Notification: Performance of Templates: time 0.2138/0.5688, allocations: 19.1 MB / 0.5283 GB, free: 82.91 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 gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.pipe 2>&1)