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.001238/0.001238, allocations: 110.5 kB / 17.03 MB, free: 6.062 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.001185/0.001185, allocations: 199.1 kB / 17.97 MB, free: 5.141 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.163/1.163, allocations: 205.1 MB / 223.8 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.162/0.162, allocations: 37.98 MB / 309.2 MB, free: 5.969 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.001237/0.001237, allocations: 67.91 kB / 431.8 MB, free: 15.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07935/0.08059, allocations: 55.25 MB / 487.1 MB, free: 8.371 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01044/0.09106, allocations: 10.94 MB / 498 MB, free: 13.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009539/0.1006, allocations: 7.127 MB / 0.4933 GB, free: 6.227 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009302/0.1016, allocations: 51.69 kB / 0.4933 GB, free: 6.176 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.01909/0.1207, allocations: 12.91 MB / 0.5059 GB, free: 9.246 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002534/0.1233, allocations: 1.105 MB / 0.507 GB, free: 8.137 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001609/0.1249, allocations: 0.655 MB / 0.5077 GB, free: 7.48 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004649/0.1296, allocations: 3.891 MB / 0.5115 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001422/0.131, allocations: 0.9885 MB / 0.5124 GB, free: 2.566 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001735/0.1327, allocations: 1.086 MB / 0.5135 GB, free: 1.477 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001997/0.1348, allocations: 1.398 MB / 0.5149 GB, free: 76 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003978/0.1352, allocations: 148 kB / 0.515 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001059/0.1362, allocations: 0.511 MB / 0.5155 GB, free: 15.42 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008853/0.1371, allocations: 0.8846 MB / 0.5164 GB, free: 14.53 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001219/0.1384, allocations: 0.9562 MB / 0.5173 GB, free: 13.57 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002396/0.1408, allocations: 2.492 MB / 0.5197 GB, free: 11.07 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1408, allocations: 0 / 0.5197 GB, free: 11.07 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1408, allocations: 0 / 0.5197 GB, free: 11.07 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.433e-05/0.1409, allocations: 4 kB / 0.5197 GB, free: 11.07 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.004285/0.1452, allocations: 2.158 MB / 0.5218 GB, free: 8.848 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.1452, allocations: 11.89 kB / 0.5218 GB, free: 8.836 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001695/0.1469, allocations: 314.4 kB / 0.5221 GB, free: 8.527 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002318/0.1492, allocations: 1.287 MB / 0.5234 GB, free: 7.195 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.972e-05/0.1493, allocations: 98.66 kB / 0.5235 GB, free: 7.098 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005625/0.1499, allocations: 239.8 kB / 0.5237 GB, free: 6.863 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003133/0.153, allocations: 2.145 MB / 0.5258 GB, free: 4.609 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.487e-05/0.1531, allocations: 15.84 kB / 0.5258 GB, free: 4.594 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000137/0.1532, allocations: 51.98 kB / 0.5259 GB, free: 4.543 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006288/0.1539, allocations: 182.7 kB / 0.5261 GB, free: 4.363 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002694/0.1566, allocations: 1.752 MB / 0.5278 GB, free: 2.605 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.1973/0.3539, allocations: 8.563 MB / 0.5361 GB, free: 47.89 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002398/0.3563, allocations: 1.818 MB / 0.5379 GB, free: 46.99 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001361/0.3577, allocations: 0.7735 MB / 0.5387 GB, free: 46.74 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.188e-05/0.3578, allocations: 18.73 kB / 0.5387 GB, free: 46.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.3578, allocations: 47.8 kB / 0.5387 GB, free: 46.69 MB / 414.1 MB Notification: Performance of pre-optimization done (n=122): time 3.076e-06/0.3578, allocations: 0 / 0.5387 GB, free: 46.69 MB / 414.1 MB Notification: Performance of matching and sorting (n=137): time 0.01032/0.3682, allocations: 5.459 MB / 0.5441 GB, free: 44.15 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.474e-05/0.3682, allocations: 94.17 kB / 0.5441 GB, free: 44.05 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001129/0.3694, allocations: 1.04 MB / 0.5452 GB, free: 43.64 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.151e-05/0.3694, allocations: 51.14 kB / 0.5452 GB, free: 43.59 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000393/0.3698, allocations: 0.7575 MB / 0.546 GB, free: 43 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002825/0.3701, allocations: 0.4953 MB / 0.5464 GB, free: 42.61 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003953/0.3705, allocations: 318.1 kB / 0.5467 GB, free: 42.47 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 3.415e-05/0.3706, allocations: 308.2 kB / 0.547 GB, free: 42.17 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001066/0.3716, allocations: 0.7184 MB / 0.5477 GB, free: 41.95 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001276/0.3729, allocations: 1.183 MB / 0.5489 GB, free: 41.17 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.01061/0.3836, allocations: 4.987 MB / 0.5538 GB, free: 39.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.004e-05/0.3836, allocations: 3.969 kB / 0.5538 GB, free: 39.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006422/0.39, allocations: 3.6 MB / 0.5573 GB, free: 37.57 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.39, allocations: 15.56 kB / 0.5573 GB, free: 37.56 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.775e-05/0.3901, allocations: 19.06 kB / 0.5573 GB, free: 37.56 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003204/0.3933, allocations: 1.256 MB / 0.5585 GB, free: 37.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/0.3943, allocations: 316.6 kB / 0.5588 GB, free: 36.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01539/0.4097, allocations: 16 MB / 0.5745 GB, free: 21.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001067/0.4108, allocations: 83.89 kB / 0.5745 GB, free: 21.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001306/0.4109, allocations: 75.98 kB / 0.5746 GB, free: 21.05 MB / 414.1 MB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization system: inverter2.switch_dq0[1] = 1.224744871391589 * cos(select2.alpha0) * select2.v0 5.051577893736758e-5 * $DER.generator.i_s[3] = 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 (155): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,23), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0007234/0.4117, allocations: 0.5195 MB / 0.5751 GB, free: 20.52 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000258/0.4119, allocations: 142.3 kB / 0.5753 GB, free: 20.38 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00264/0.4146, allocations: 2.146 MB / 0.5774 GB, free: 18.14 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.4146, allocations: 12 kB / 0.5774 GB, free: 18.12 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.4146, allocations: 4 kB / 0.5774 GB, free: 18.12 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.4146, allocations: 7.969 kB / 0.5774 GB, free: 18.11 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00492/0.4196, allocations: 3.833 MB / 0.5811 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.4196, allocations: 4 kB / 0.5811 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001408/0.421, allocations: 323.8 kB / 0.5814 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004449/0.4214, allocations: 211.9 kB / 0.5816 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001077/0.4216, allocations: 43.98 kB / 0.5817 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00366/0.4252, allocations: 7.931 MB / 0.5894 GB, free: 4.934 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.4252, allocations: 4.031 kB / 0.5894 GB, free: 4.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003096/0.4283, allocations: 2.83 MB / 0.5922 GB, free: 1.965 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000455/0.4288, allocations: 323.3 kB / 0.5925 GB, free: 1.629 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002089/0.429, allocations: 47.92 kB / 0.5925 GB, free: 1.582 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007666/0.4298, allocations: 63.84 kB / 0.5926 GB, free: 1.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001656/0.43, allocations: 93.12 kB / 0.5927 GB, free: 1.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-05/0.4301, allocations: 39.98 kB / 0.5927 GB, free: 1.391 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006657/0.4307, allocations: 0.6934 MB / 0.5934 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4307, allocations: 0 / 0.5934 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00148/0.4322, allocations: 0.5076 MB / 0.5939 GB, free: 192 kB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 25 (inertia.phi,inertia.w,generator.i_s[1],generator.i_s[2],generator.i_s[3],generator.i_rd[1],generator.i_rq[1],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 (126): * Single equations (assignments): 120 * 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): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (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.0002867/0.4325, allocations: 186.2 kB / 0.5941 GB, free: 4 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004576/0.4371, allocations: 2.885 MB / 0.5969 GB, free: 13.07 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.4371, allocations: 0 / 0.5969 GB, free: 13.07 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001881/0.439, allocations: 1.366 MB / 0.5982 GB, free: 11.64 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001304/0.4403, allocations: 330.6 kB / 0.5985 GB, free: 11.32 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007314/0.4476, allocations: 4.989 MB / 0.6034 GB, free: 6.301 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001325/0.449, allocations: 1.545 MB / 0.6049 GB, free: 4.723 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001114/0.4501, allocations: 444.1 kB / 0.6054 GB, free: 4.285 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003642/0.4505, allocations: 107.4 kB / 0.6055 GB, free: 4.184 MB / 430.1 MB Notification: Performance of SimCode: time 1.723e-06/0.4505, allocations: 0 / 0.6055 GB, free: 4.184 MB / 430.1 MB Notification: Performance of Templates: time 0.04031/0.4908, allocations: 26.94 MB / 0.6318 GB, free: 9.234 MB / 462.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)