Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_DFIG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG") translateModel(PowerSystems.Examples.Wind.WindTurbine_DFIG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 116.5 kB / 16.63 MB, free: 6.945 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.0009975/0.0009975, allocations: 197.8 kB / 17.55 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 222.9 MB / 241.2 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1724/0.1724, allocations: 38.02 MB / 329.4 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 61.97 kB / 398.3 MB, free: 34.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1028, allocations: 58.06 MB / 456.3 MB, free: 8.387 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01348/0.1163, allocations: 12.65 MB / 469 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01178/0.1281, allocations: 6.839 MB / 475.8 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00148/0.1296, allocations: 91.44 kB / 475.9 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01167/0.1413, allocations: 5.548 MB / 481.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00331/0.1446, allocations: 1 MB / 482.4 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002029/0.1467, allocations: 0.5773 MB / 483 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005594/0.1523, allocations: 3.267 MB / 486.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002122/0.1544, allocations: 1.055 MB / 487.3 MB, free: 9.234 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002101/0.1565, allocations: 1.07 MB / 488.4 MB, free: 8.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00245/0.159, allocations: 1.445 MB / 489.9 MB, free: 6.711 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005211/0.1595, allocations: 144 kB / 490 MB, free: 6.57 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001331/0.1609, allocations: 439.4 kB / 490.4 MB, free: 6.141 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001312/0.1622, allocations: 0.8495 MB / 491.3 MB, free: 5.289 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001585/0.1638, allocations: 0.9213 MB / 492.2 MB, free: 4.363 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002819/0.1666, allocations: 2.235 MB / 494.4 MB, free: 2.121 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.844e-06/0.1666, allocations: 3.984 kB / 494.4 MB, free: 2.117 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1666, allocations: 0 / 494.4 MB, free: 2.117 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.335e-05/0.1667, allocations: 0 / 494.4 MB, free: 2.117 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.005026/0.1718, allocations: 2.067 MB / 496.5 MB, free: 15.99 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.1718, allocations: 11.89 kB / 496.5 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001607/0.1734, allocations: 278.5 kB / 496.8 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002452/0.1759, allocations: 1.152 MB / 497.9 MB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.78e-05/0.176, allocations: 106.6 kB / 498 MB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000553/0.1766, allocations: 223.7 kB / 498.3 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003358/0.1799, allocations: 2.107 MB / 0.4886 GB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.75e-05/0.18, allocations: 4 kB / 0.4886 GB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001487/0.1801, allocations: 55.98 kB / 0.4887 GB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006535/0.1808, allocations: 178.7 kB / 0.4889 GB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002849/0.1837, allocations: 1.721 MB / 0.4906 GB, free: 10.02 MB / 382.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.01091/0.1946, allocations: 7.953 MB / 0.4983 GB, free: 1.719 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2552/0.4498, allocations: 1.63 MB / 0.4999 GB, free: 56.81 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001536/0.4514, allocations: 0.6601 MB / 0.5006 GB, free: 56.79 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001047/0.4515, allocations: 14.06 kB / 0.5006 GB, free: 56.79 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.28e-05/0.4515, allocations: 46.52 kB / 0.5006 GB, free: 56.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.687e-06/0.4515, allocations: 0 / 0.5006 GB, free: 56.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=138): time 0.009569/0.4611, allocations: 5.085 MB / 0.5056 GB, free: 54.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.65e-05/0.4612, allocations: 93.58 kB / 0.5057 GB, free: 54.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001322/0.4625, allocations: 0.9315 MB / 0.5066 GB, free: 54.24 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.833e-05/0.4626, allocations: 51.27 kB / 0.5066 GB, free: 54.19 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004509/0.4631, allocations: 0.7221 MB / 0.5073 GB, free: 53.62 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003492/0.4634, allocations: 0.4922 MB / 0.5078 GB, free: 53.24 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005481/0.464, allocations: 312 kB / 0.5081 GB, free: 53.1 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.4641, allocations: 306.6 kB / 0.5084 GB, free: 52.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001293/0.4654, allocations: 0.7039 MB / 0.5091 GB, free: 52.58 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001346/0.4667, allocations: 1.162 MB / 0.5102 GB, free: 51.84 MB / 382.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.01096/0.4777, allocations: 4.093 MB / 0.5142 GB, free: 50.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.161e-05/0.4778, allocations: 4.375 kB / 0.5142 GB, free: 50.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.007222/0.485, allocations: 3.349 MB / 0.5175 GB, free: 49.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.834e-05/0.4851, allocations: 11.38 kB / 0.5175 GB, free: 49.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.589e-05/0.4851, allocations: 17.45 kB / 0.5175 GB, free: 49.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003282/0.4884, allocations: 1.206 MB / 0.5187 GB, free: 48.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/0.4895, allocations: 298.2 kB / 0.519 GB, free: 48.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01581/0.5053, allocations: 15.15 MB / 0.5338 GB, free: 36.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001481/0.5069, allocations: 83.62 kB / 0.5339 GB, free: 36.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001395/0.507, allocations: 75.48 kB / 0.5339 GB, free: 36.73 MB / 382.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 $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: 60 * 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 (146): * Single equations (assignments): 142 * 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 {(1,1,100.0%), (1,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,15), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0008391/0.5079, allocations: 0.4995 MB / 0.5344 GB, free: 36.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001914/0.508, allocations: 134.3 kB / 0.5345 GB, free: 36.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002637/0.5107, allocations: 2.022 MB / 0.5365 GB, free: 34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.5107, allocations: 16 kB / 0.5365 GB, free: 33.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.5107, allocations: 3.938 kB / 0.5365 GB, free: 33.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.5107, allocations: 7.969 kB / 0.5365 GB, free: 33.97 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005044/0.5158, allocations: 3.752 MB / 0.5402 GB, free: 30.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/0.5158, allocations: 4 kB / 0.5402 GB, free: 30.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001516/0.5173, allocations: 327.5 kB / 0.5405 GB, free: 29.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004329/0.5178, allocations: 185.4 kB / 0.5407 GB, free: 29.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001044/0.5179, allocations: 55.97 kB / 0.5408 GB, free: 29.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003667/0.5216, allocations: 6.679 MB / 0.5473 GB, free: 22.28 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.5216, allocations: 6.844 kB / 0.5473 GB, free: 22.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003265/0.5249, allocations: 2.716 MB / 0.5499 GB, free: 19.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005073/0.5254, allocations: 311.4 kB / 0.5502 GB, free: 19.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001785/0.5256, allocations: 46.23 kB / 0.5503 GB, free: 19.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007113/0.5263, allocations: 59.94 kB / 0.5503 GB, free: 19.01 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002142/0.5265, allocations: 101.1 kB / 0.5504 GB, free: 18.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.794e-05/0.5266, allocations: 40 kB / 0.5505 GB, free: 18.87 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007166/0.5273, allocations: 0.6244 MB / 0.5511 GB, free: 18.24 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5273, allocations: 0 / 0.5511 GB, free: 18.24 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00171/0.529, allocations: 488 kB / 0.5515 GB, free: 17.76 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 26 (generator.i[3],generator.psi_s[1],generator.psi_s[2],generator.psi_rd[1],generator.psi_rq[1],generator.phiRotor,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],inertia.phi,inertia.w,meterDC.pav,inverter2.vDC1) * 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 (129): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 4 systems {(1,10,100.0%), (1,1,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.0002014/0.5293, allocations: 164 kB / 0.5517 GB, free: 17.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005219/0.5345, allocations: 3.493 MB / 0.5551 GB, free: 14.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.5345, allocations: 0 / 0.5551 GB, free: 14.07 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001476/0.536, allocations: 1.241 MB / 0.5563 GB, free: 12.78 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001442/0.5374, allocations: 314.3 kB / 0.5566 GB, free: 12.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006533/0.544, allocations: 5.578 MB / 0.5621 GB, free: 6.879 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008835/0.5449, allocations: 1.525 MB / 0.5636 GB, free: 5.324 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001058/0.546, allocations: 395.6 kB / 0.5639 GB, free: 4.934 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002924/0.5463, allocations: 103.4 kB / 0.564 GB, free: 4.832 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.5463, allocations: 0 / 0.564 GB, free: 4.832 MB / 382.1 MB Notification: Performance of Templates: time 0.04184/0.5881, allocations: 24.73 MB / 0.5882 GB, free: 12.3 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.makefile (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.sim & ./PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe 2>&1)