Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Wind.WindTurbine_DFIG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG") translateModel(PowerSystems.Examples.Wind.WindTurbine_DFIG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001963/0.001963, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.532/1.532, allocations: 205.1 MB / 223.1 MB, free: 8.465 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001296/0.001296, allocations: 106.8 kB / 270.5 MB, free: 8.422 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2462/0.2462, allocations: 38.01 MB / 355.8 MB, free: 2.926 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 51.92 kB / 421.8 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3091, allocations: 55.24 MB / 477.1 MB, free: 9.902 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01124/0.3203, allocations: 12.64 MB / 489.7 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01181/0.3322, allocations: 7.078 MB / 496.8 MB, free: 11.98 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002333/0.3346, allocations: 90.38 kB / 496.9 MB, free: 11.95 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01238/0.347, allocations: 5.398 MB / 0.4905 GB, free: 9.996 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002713/0.3497, allocations: 1.013 MB / 0.4915 GB, free: 9.199 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001674/0.3514, allocations: 0.582 MB / 0.4921 GB, free: 8.762 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005992/0.3574, allocations: 4.736 MB / 0.4967 GB, free: 6.34 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001716/0.3591, allocations: 0.9024 MB / 0.4976 GB, free: 5.82 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002319/0.3615, allocations: 0.9206 MB / 0.4985 GB, free: 5.336 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002632/0.3641, allocations: 1.423 MB / 0.4999 GB, free: 4.113 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002412/0.3644, allocations: 96 kB / 0.5 GB, free: 4.02 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00101/0.3654, allocations: 379.5 kB / 0.5003 GB, free: 3.648 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008414/0.3663, allocations: 0.8065 MB / 0.5011 GB, free: 2.84 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009436/0.3672, allocations: 0.8744 MB / 0.502 GB, free: 1.961 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001975/0.3692, allocations: 2.184 MB / 0.5041 GB, free: 15.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3692, allocations: 0 / 0.5041 GB, free: 15.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.477e-06/0.3692, allocations: 0 / 0.5041 GB, free: 15.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.022e-05/0.3692, allocations: 7.938 kB / 0.5041 GB, free: 15.76 MB / 346.7 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.003902/0.3732, allocations: 2.06 MB / 0.5061 GB, free: 13.64 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.3732, allocations: 8.031 kB / 0.5061 GB, free: 13.63 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001407/0.3746, allocations: 274.5 kB / 0.5064 GB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002323/0.377, allocations: 1.163 MB / 0.5075 GB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.673e-05/0.377, allocations: 94.62 kB / 0.5076 GB, free: 12.06 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004515/0.3775, allocations: 223.8 kB / 0.5078 GB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003002/0.3805, allocations: 2.111 MB / 0.5099 GB, free: 9.633 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.008e-05/0.3806, allocations: 7.906 kB / 0.5099 GB, free: 9.625 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001352/0.3807, allocations: 63.98 kB / 0.5099 GB, free: 9.562 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006406/0.3814, allocations: 178.7 kB / 0.5101 GB, free: 9.387 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002662/0.384, allocations: 1.713 MB / 0.5118 GB, free: 7.668 MB / 346.7 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.01055/0.3946, allocations: 7.961 MB / 0.5196 GB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002239/0.3968, allocations: 1.624 MB / 0.5212 GB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009907/0.3978, allocations: 0.6606 MB / 0.5218 GB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.055e-05/0.3979, allocations: 20.98 kB / 0.5218 GB, free: 12.97 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.587e-05/0.398, allocations: 47.56 kB / 0.5219 GB, free: 12.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=127): time 3.627e-06/0.398, allocations: 0 / 0.5219 GB, free: 12.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=138): time 0.00851/0.4065, allocations: 5.08 MB / 0.5268 GB, free: 7.648 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.92e-05/0.4066, allocations: 106.4 kB / 0.5269 GB, free: 7.527 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001014/0.4076, allocations: 0.9348 MB / 0.5278 GB, free: 6.574 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.084e-05/0.4077, allocations: 45.7 kB / 0.5279 GB, free: 6.523 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004546/0.4082, allocations: 0.725 MB / 0.5286 GB, free: 5.785 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003709/0.4085, allocations: 0.4968 MB / 0.5291 GB, free: 5.281 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004271/0.409, allocations: 307.3 kB / 0.5294 GB, free: 4.977 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.4091, allocations: 305.1 kB / 0.5297 GB, free: 4.676 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001121/0.4102, allocations: 0.7027 MB / 0.5303 GB, free: 3.973 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001347/0.4116, allocations: 1.159 MB / 0.5315 GB, free: 2.625 MB / 362.7 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.009864/0.4214, allocations: 4.071 MB / 0.5355 GB, free: 14.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.206e-05/0.4215, allocations: 4 kB / 0.5355 GB, free: 14.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006603/0.4281, allocations: 3.347 MB / 0.5387 GB, free: 10.99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.4281, allocations: 16.16 kB / 0.5387 GB, free: 10.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.096e-05/0.4282, allocations: 12 kB / 0.5387 GB, free: 10.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00299/0.4312, allocations: 1.194 MB / 0.5399 GB, free: 9.754 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/0.4323, allocations: 299.5 kB / 0.5402 GB, free: 9.461 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01768/0.45, allocations: 13.81 MB / 0.5537 GB, free: 11.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00113/0.4512, allocations: 75.94 kB / 0.5538 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001431/0.4513, allocations: 75.94 kB / 0.5538 GB, free: 10.95 MB / 394.7 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.000808/0.4522, allocations: 0.4894 MB / 0.5543 GB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000192/0.4524, allocations: 130.4 kB / 0.5544 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003245/0.4556, allocations: 2.022 MB / 0.5564 GB, free: 8.227 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.148e-05/0.4556, allocations: 12 kB / 0.5564 GB, free: 8.215 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.4556, allocations: 4 kB / 0.5564 GB, free: 8.211 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.317e-05/0.4557, allocations: 7.969 kB / 0.5564 GB, free: 8.203 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006189/0.4619, allocations: 3.755 MB / 0.5601 GB, free: 4.266 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.4619, allocations: 8.031 kB / 0.5601 GB, free: 4.258 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001539/0.4634, allocations: 323.6 kB / 0.5604 GB, free: 3.941 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004945/0.4639, allocations: 191.2 kB / 0.5606 GB, free: 3.742 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001032/0.4641, allocations: 51.86 kB / 0.5606 GB, free: 3.691 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005271/0.4693, allocations: 6.147 MB / 0.5666 GB, free: 13.02 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.4694, allocations: 4 kB / 0.5667 GB, free: 13.01 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02756/0.4969, allocations: 19.84 MB / 0.586 GB, free: 8.133 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005935/0.4976, allocations: 323.3 kB / 0.5863 GB, free: 7.797 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001941/0.4978, allocations: 43.98 kB / 0.5864 GB, free: 7.754 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00072/0.4985, allocations: 60.06 kB / 0.5864 GB, free: 7.695 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000251/0.4988, allocations: 105.2 kB / 0.5865 GB, free: 7.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.527e-05/0.4989, allocations: 47.88 kB / 0.5866 GB, free: 7.543 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008587/0.4997, allocations: 0.6244 MB / 0.5872 GB, free: 6.91 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4997, allocations: 0 / 0.5872 GB, free: 6.91 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002175/0.5019, allocations: 0.6406 MB / 0.5878 GB, free: 6.27 MB / 426.7 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.0002216/0.5021, allocations: 158.7 kB / 0.588 GB, free: 6.105 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004273/0.5064, allocations: 2.68 MB / 0.5906 GB, free: 3.375 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.5064, allocations: 0 / 0.5906 GB, free: 3.375 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001773/0.5082, allocations: 1.237 MB / 0.5918 GB, free: 2.09 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001389/0.5096, allocations: 293.2 kB / 0.5921 GB, free: 1.805 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009329/0.519, allocations: 6.94 MB / 0.5988 GB, free: 10.72 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001276/0.5203, allocations: 1.578 MB / 0.6004 GB, free: 9.105 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001434/0.5217, allocations: 443.5 kB / 0.6008 GB, free: 8.668 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004309/0.5222, allocations: 107.4 kB / 0.6009 GB, free: 8.562 MB / 442.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5222, allocations: 0 / 0.6009 GB, free: 8.562 MB / 442.7 MB Notification: Performance of Templates: time 0.04463/0.5668, allocations: 28.83 MB / 0.6291 GB, free: 11.74 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.sim & ./PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe 2>&1)