Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.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_PSGR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR") translateModel(PowerSystems.Examples.Wind.WindTurbine_PSGR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 109.9 kB / 17.06 MB, free: 5.973 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.001058/0.001058, allocations: 200 kB / 18.01 MB, free: 5.055 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.453/1.453, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1712/0.1712, allocations: 37.99 MB / 309.2 MB, free: 5.949 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.001417/0.001417, allocations: 68.47 kB / 431.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1386, allocations: 55.24 MB / 487.1 MB, free: 8.352 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01354/0.1522, allocations: 10.95 MB / 498 MB, free: 13.35 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01376/0.1661, allocations: 7.127 MB / 0.4933 GB, free: 6.203 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002035/0.1682, allocations: 51.69 kB / 0.4934 GB, free: 6.152 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'. Notification: Performance of NFTyping.typeComponents: time 0.02568/0.1939, allocations: 12.91 MB / 0.506 GB, free: 9.223 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005335/0.1992, allocations: 1.105 MB / 0.5071 GB, free: 8.113 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002995/0.2023, allocations: 0.655 MB / 0.5077 GB, free: 7.457 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008718/0.211, allocations: 3.891 MB / 0.5115 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002651/0.2137, allocations: 0.9885 MB / 0.5125 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00266/0.2164, allocations: 1.094 MB / 0.5135 GB, free: 1.445 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002692/0.2191, allocations: 1.406 MB / 0.5149 GB, free: 36 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000792/0.2199, allocations: 148 kB / 0.5151 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002055/0.222, allocations: 0.507 MB / 0.5156 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00162/0.2236, allocations: 0.8885 MB / 0.5164 GB, free: 14.49 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002593/0.2263, allocations: 0.9523 MB / 0.5173 GB, free: 13.54 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005021/0.2313, allocations: 2.5 MB / 0.5198 GB, free: 11.03 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.2313, allocations: 0 / 0.5198 GB, free: 11.03 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2313, allocations: 0 / 0.5198 GB, free: 11.03 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001588/0.2315, allocations: 4 kB / 0.5198 GB, free: 11.02 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.007402/0.2389, allocations: 2.15 MB / 0.5219 GB, free: 8.812 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.513e-05/0.239, allocations: 19.83 kB / 0.5219 GB, free: 8.793 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00193/0.2409, allocations: 314.4 kB / 0.5222 GB, free: 8.484 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002798/0.2437, allocations: 1.287 MB / 0.5235 GB, free: 7.152 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.976e-05/0.2438, allocations: 106.6 kB / 0.5236 GB, free: 7.047 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005677/0.2444, allocations: 227.8 kB / 0.5238 GB, free: 6.824 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003421/0.2478, allocations: 2.149 MB / 0.5259 GB, free: 4.566 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.772e-05/0.2479, allocations: 11.84 kB / 0.5259 GB, free: 4.555 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001499/0.248, allocations: 59.97 kB / 0.526 GB, free: 4.496 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006564/0.2487, allocations: 182.7 kB / 0.5261 GB, free: 4.316 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002928/0.2517, allocations: 1.756 MB / 0.5278 GB, free: 2.555 MB / 414.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.3237/0.5754, allocations: 8.561 MB / 0.5362 GB, free: 47.91 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002969/0.5784, allocations: 1.815 MB / 0.538 GB, free: 46.98 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001442/0.5799, allocations: 0.7596 MB / 0.5387 GB, free: 46.73 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.217e-05/0.58, allocations: 16.14 kB / 0.5387 GB, free: 46.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.58, allocations: 48.05 kB / 0.5388 GB, free: 46.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=122): time 3.988e-06/0.58, allocations: 1.281 kB / 0.5388 GB, free: 46.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=150): time 0.02154/0.6016, allocations: 7.569 MB / 0.5462 GB, free: 43.53 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.221e-05/0.6017, allocations: 93.88 kB / 0.5463 GB, free: 43.43 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001934/0.6036, allocations: 1.04 MB / 0.5473 GB, free: 43.03 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001293/0.6038, allocations: 53.98 kB / 0.5473 GB, free: 42.98 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007202/0.6045, allocations: 0.7624 MB / 0.5481 GB, free: 42.38 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005659/0.6051, allocations: 0.5319 MB / 0.5486 GB, free: 41.97 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006757/0.6058, allocations: 330.1 kB / 0.5489 GB, free: 41.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.157e-05/0.6059, allocations: 307.4 kB / 0.5492 GB, free: 41.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001705/0.6076, allocations: 0.7766 MB / 0.55 GB, free: 41.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002153/0.6097, allocations: 1.242 MB / 0.5512 GB, free: 40.46 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.01715/0.6269, allocations: 5.695 MB / 0.5567 GB, free: 38.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.671e-05/0.627, allocations: 3.938 kB / 0.5567 GB, free: 38.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.008455/0.6354, allocations: 3.916 MB / 0.5606 GB, free: 36.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.209e-05/0.6355, allocations: 16.31 kB / 0.5606 GB, free: 36.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.64e-05/0.6355, allocations: 10.69 kB / 0.5606 GB, free: 36.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005049/0.6406, allocations: 1.742 MB / 0.5623 GB, free: 34.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000977/0.6416, allocations: 263.5 kB / 0.5625 GB, free: 34.22 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02243/0.664, allocations: 18.48 MB / 0.5806 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001935/0.666, allocations: 83.94 kB / 0.5807 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001667/0.6662, allocations: 75.98 kB / 0.5807 GB, free: 15.06 MB / 414.1 MB Warning: The initial conditions are over specified. The following 6 initial equations are redundant, so they are removed from the initialization system: inverter2.switch_dq0[1] = 1.224744871391589 * cos(select2.alpha0) * select2.v0 $DER.generator.psi_rq[1] = 0.0 $DER.generator.psi_s[2] = 0.0 $DER.generator.psi_s[1] = 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: 63 * 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 (130): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,11,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,49), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.001073/0.6673, allocations: 0.5366 MB / 0.5813 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000258/0.6675, allocations: 142.2 kB / 0.5814 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004464/0.672, allocations: 2.405 MB / 0.5837 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/0.672, allocations: 12 kB / 0.5838 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.672, allocations: 4 kB / 0.5838 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.91e-05/0.6721, allocations: 19.91 kB / 0.5838 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00772/0.6798, allocations: 4.317 MB / 0.588 GB, free: 7.449 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/0.6798, allocations: 4 kB / 0.588 GB, free: 7.445 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001414/0.6813, allocations: 315.5 kB / 0.5883 GB, free: 7.137 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002341/0.6836, allocations: 0.5488 MB / 0.5888 GB, free: 6.582 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001297/0.6838, allocations: 59.95 kB / 0.5889 GB, free: 6.523 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009705/0.6935, allocations: 10.13 MB / 0.5988 GB, free: 11.71 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.149e-06/0.6935, allocations: 4 kB / 0.5988 GB, free: 11.71 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006976/0.7005, allocations: 3.229 MB / 0.6019 GB, free: 8.383 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001444/0.702, allocations: 343.2 kB / 0.6023 GB, free: 8.027 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002292/0.7022, allocations: 47.97 kB / 0.6023 GB, free: 7.98 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008461/0.7031, allocations: 64.22 kB / 0.6024 GB, free: 7.918 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003894/0.7035, allocations: 121 kB / 0.6025 GB, free: 7.801 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.895e-05/0.7036, allocations: 39.98 kB / 0.6025 GB, free: 7.762 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001181/0.7048, allocations: 0.7009 MB / 0.6032 GB, free: 7.055 MB / 430.1 MB Notification: Performance of sort global known variables: time 2e-07/0.7048, allocations: 0 / 0.6032 GB, free: 7.055 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003004/0.7078, allocations: 0.5651 MB / 0.6038 GB, free: 6.492 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 23 (inertia.w,generator.phi_el,generator.i_s[3],generator.psi_s[1],generator.psi_s[2],meterDC.pav,inverter2.vDC1,line.v[1,2],line.v[1,3],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]) * 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 (119): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,9,100.0%), (1,1,100.0%), (1,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005646/0.7084, allocations: 185 kB / 0.6039 GB, free: 6.309 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006395/0.7148, allocations: 3.106 MB / 0.607 GB, free: 3.16 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.7148, allocations: 0 / 0.607 GB, free: 3.16 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002649/0.7175, allocations: 1.587 MB / 0.6085 GB, free: 1.516 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001938/0.7194, allocations: 321.7 kB / 0.6088 GB, free: 1.203 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008659/0.7281, allocations: 5.035 MB / 0.6137 GB, free: 12.12 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001444/0.7296, allocations: 1.588 MB / 0.6153 GB, free: 10.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001272/0.7309, allocations: 404.5 kB / 0.6157 GB, free: 10.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003539/0.7312, allocations: 103.4 kB / 0.6158 GB, free: 10 MB / 446.1 MB Notification: Performance of SimCode: time 1.183e-06/0.7312, allocations: 0 / 0.6158 GB, free: 10 MB / 446.1 MB Notification: Performance of Templates: time 0.05948/0.7907, allocations: 32.66 MB / 0.6477 GB, free: 9.324 MB / 478.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.makefile (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.sim & ./PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1)