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.001095/0.001095, allocations: 107.1 kB / 17.74 MB, free: 5.316 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.001018/0.001018, allocations: 188.2 kB / 18.67 MB, free: 4.395 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.353/1.353, allocations: 205.1 MB / 224.5 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1827/0.1827, allocations: 37.99 MB / 309.9 MB, free: 5.945 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.002213/0.002213, allocations: 63.91 kB / 432.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1323, allocations: 55.24 MB / 487.8 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_IG): time 0.01717/0.1496, allocations: 8.082 MB / 495.9 MB, free: 224 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01384/0.1635, allocations: 5.526 MB / 0.4896 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001343/0.1649, allocations: 27.81 kB / 0.4897 GB, free: 10.64 MB / 382.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.01692/0.1818, allocations: 5.212 MB / 0.4947 GB, free: 5.422 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003436/0.1853, allocations: 0.8441 MB / 0.4956 GB, free: 4.574 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001999/0.1873, allocations: 499 kB / 0.496 GB, free: 4.086 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005393/0.1928, allocations: 2.526 MB / 0.4985 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001903/0.1947, allocations: 0.6299 MB / 0.4991 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002047/0.1968, allocations: 0.7784 MB / 0.4999 GB, free: 136 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002756/0.1995, allocations: 1.028 MB / 0.5009 GB, free: 15.1 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006449/0.2002, allocations: 104 kB / 0.501 GB, free: 15 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001629/0.2019, allocations: 371.5 kB / 0.5013 GB, free: 14.64 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001401/0.2033, allocations: 0.6547 MB / 0.502 GB, free: 13.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001828/0.2051, allocations: 0.692 MB / 0.5027 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003224/0.2084, allocations: 1.721 MB / 0.5043 GB, free: 11.56 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.2084, allocations: 0 / 0.5043 GB, free: 11.56 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.499e-06/0.2084, allocations: 4 kB / 0.5043 GB, free: 11.55 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.37e-05/0.2085, allocations: 4 kB / 0.5043 GB, free: 11.55 MB / 398.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.004143/0.2127, allocations: 1.593 MB / 0.5059 GB, free: 9.906 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.2127, allocations: 11.89 kB / 0.5059 GB, free: 9.895 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001284/0.214, allocations: 215.1 kB / 0.5061 GB, free: 9.684 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00179/0.2158, allocations: 0.9568 MB / 0.5071 GB, free: 8.684 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.069e-05/0.2159, allocations: 69.98 kB / 0.5071 GB, free: 8.613 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004603/0.2164, allocations: 183.8 kB / 0.5073 GB, free: 8.434 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002661/0.2191, allocations: 1.56 MB / 0.5088 GB, free: 6.793 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.286e-05/0.2191, allocations: 15.84 kB / 0.5088 GB, free: 6.777 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001156/0.2192, allocations: 43.98 kB / 0.5089 GB, free: 6.734 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006521/0.2199, allocations: 149.9 kB / 0.509 GB, free: 6.586 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002271/0.2222, allocations: 1.253 MB / 0.5102 GB, free: 5.324 MB / 398.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.008676/0.2309, allocations: 6.454 MB / 0.5165 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001664/0.2326, allocations: 0.9089 MB / 0.5174 GB, free: 13.56 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008236/0.2334, allocations: 0.5083 MB / 0.5179 GB, free: 13.05 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.046e-05/0.2335, allocations: 16.98 kB / 0.5179 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.733e-05/0.2335, allocations: 43.5 kB / 0.518 GB, free: 12.98 MB / 414.1 MB Notification: Performance of pre-optimization done (n=91): time 3.016e-06/0.2336, allocations: 0 / 0.518 GB, free: 12.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=96): time 0.007063/0.2406, allocations: 3.667 MB / 0.5216 GB, free: 9.176 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.508e-05/0.2407, allocations: 93.98 kB / 0.5217 GB, free: 9.066 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/0.2418, allocations: 0.7235 MB / 0.5224 GB, free: 8.336 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.362e-05/0.2419, allocations: 41.7 kB / 0.5224 GB, free: 8.289 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004142/0.2423, allocations: 0.5612 MB / 0.523 GB, free: 7.719 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003253/0.2426, allocations: 362.8 kB / 0.5233 GB, free: 7.359 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004207/0.2431, allocations: 238.8 kB / 0.5235 GB, free: 7.121 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002099/0.2433, allocations: 410.7 kB / 0.5239 GB, free: 6.711 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009561/0.2443, allocations: 0.5608 MB / 0.5245 GB, free: 6.148 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001144/0.2454, allocations: 0.8931 MB / 0.5253 GB, free: 5.125 MB / 414.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.008469/0.2539, allocations: 3.232 MB / 0.5285 GB, free: 1.766 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.667e-05/0.2539, allocations: 4 kB / 0.5285 GB, free: 1.762 MB / 414.1 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.265/0.5189, allocations: 2.73 MB / 0.5312 GB, free: 50.79 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.474e-05/0.519, allocations: 9.281 kB / 0.5312 GB, free: 50.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.606e-05/0.519, allocations: 9.703 kB / 0.5312 GB, free: 50.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003172/0.5222, allocations: 1.161 MB / 0.5323 GB, free: 50.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000941/0.5232, allocations: 205.8 kB / 0.5325 GB, free: 50.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01927/0.5425, allocations: 12.28 MB / 0.5445 GB, free: 45.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001027/0.5435, allocations: 58.8 kB / 0.5446 GB, free: 45.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001514/0.5437, allocations: 52.14 kB / 0.5446 GB, free: 45.41 MB / 414.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.0007607/0.5445, allocations: 407.3 kB / 0.545 GB, free: 45.18 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001867/0.5447, allocations: 101.3 kB / 0.5451 GB, free: 45.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002493/0.5472, allocations: 1.402 MB / 0.5465 GB, free: 44.5 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-05/0.5472, allocations: 9.844 kB / 0.5465 GB, free: 44.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/0.5472, allocations: 5.219 kB / 0.5465 GB, free: 44.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.593e-05/0.5472, allocations: 9.703 kB / 0.5465 GB, free: 44.5 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004544/0.5518, allocations: 2.66 MB / 0.5491 GB, free: 43.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.5518, allocations: 6.375 kB / 0.5491 GB, free: 43.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001518/0.5533, allocations: 270.9 kB / 0.5493 GB, free: 43.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001728/0.5535, allocations: 58.67 kB / 0.5494 GB, free: 43.26 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.808e-05/0.5536, allocations: 45.72 kB / 0.5494 GB, free: 43.24 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001536/0.5552, allocations: 2.83 MB / 0.5522 GB, free: 40.44 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.189e-06/0.5552, allocations: 7.312 kB / 0.5522 GB, free: 40.43 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002426/0.5576, allocations: 1.895 MB / 0.5541 GB, free: 39.51 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005057/0.5582, allocations: 258.2 kB / 0.5543 GB, free: 39.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001561/0.5583, allocations: 40.03 kB / 0.5543 GB, free: 39.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000568/0.5589, allocations: 42.86 kB / 0.5544 GB, free: 39.3 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001707/0.5591, allocations: 62.27 kB / 0.5544 GB, free: 39.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.211e-05/0.5591, allocations: 27.59 kB / 0.5545 GB, free: 39.29 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006365/0.5598, allocations: 0.4916 MB / 0.555 GB, free: 39.09 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5598, allocations: 0 / 0.555 GB, free: 39.09 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001555/0.5614, allocations: 376.8 kB / 0.5553 GB, free: 39.05 MB / 414.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.0001898/0.5616, allocations: 150.8 kB / 0.5555 GB, free: 38.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003631/0.5652, allocations: 2.125 MB / 0.5575 GB, free: 37.99 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.5652, allocations: 4 kB / 0.5575 GB, free: 37.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001051/0.5663, allocations: 0.7512 MB / 0.5583 GB, free: 37.52 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001075/0.5674, allocations: 216.3 kB / 0.5585 GB, free: 37.4 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005544/0.5729, allocations: 4.139 MB / 0.5625 GB, free: 34.44 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006808/0.5736, allocations: 1.31 MB / 0.5638 GB, free: 33.1 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003867/0.574, allocations: 75.44 kB / 0.5639 GB, free: 33.02 MB / 414.1 MB Notification: Performance of SimCode: time 9.41e-07/0.5741, allocations: 0 / 0.5639 GB, free: 33.02 MB / 414.1 MB Notification: Performance of Templates: time 0.02587/0.5999, allocations: 23.97 MB / 0.5873 GB, free: 8.988 MB / 414.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 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.pipe 2>&1)