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/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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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="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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 109.8 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.001461/0.001461, allocations: 198.8 kB / 18.01 MB, free: 5.055 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.461/1.461, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1855/0.1855, allocations: 38.04 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 64.14 kB / 458.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.442/0.4433, allocations: 58.05 MB / 0.5041 GB, free: 7.664 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01242/0.4558, allocations: 10.61 MB / 0.5145 GB, free: 248 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01228/0.4681, allocations: 6.234 MB / 0.5205 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001951/0.4701, allocations: 47.97 kB / 0.5206 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01384/0.4839, allocations: 5.522 MB / 0.526 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004335/0.4883, allocations: 1.082 MB / 0.527 GB, free: 9.477 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002526/0.4908, allocations: 0.6458 MB / 0.5277 GB, free: 9.184 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00741/0.4982, allocations: 3.216 MB / 0.5308 GB, free: 7.699 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002105/0.5004, allocations: 1.01 MB / 0.5318 GB, free: 7.121 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003279/0.5037, allocations: 1.075 MB / 0.5328 GB, free: 6.504 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004274/0.508, allocations: 1.347 MB / 0.5342 GB, free: 5.719 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005447/0.5085, allocations: 147.2 kB / 0.5343 GB, free: 5.715 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001527/0.5101, allocations: 422.4 kB / 0.5347 GB, free: 5.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001187/0.5113, allocations: 0.8503 MB / 0.5355 GB, free: 5.027 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001726/0.513, allocations: 0.9281 MB / 0.5364 GB, free: 4.402 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003851/0.5169, allocations: 2.257 MB / 0.5386 GB, free: 2.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.5169, allocations: 1.219 kB / 0.5386 GB, free: 2.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.5169, allocations: 0 / 0.5386 GB, free: 2.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.606e-05/0.517, allocations: 0 / 0.5386 GB, free: 2.91 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.005323/0.5223, allocations: 2.062 MB / 0.5407 GB, free: 1.445 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/0.5224, allocations: 13.48 kB / 0.5407 GB, free: 1.441 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001603/0.524, allocations: 277.5 kB / 0.5409 GB, free: 1.309 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00268/0.5267, allocations: 1.216 MB / 0.5421 GB, free: 456 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.12e-05/0.5268, allocations: 101.6 kB / 0.5422 GB, free: 408 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005506/0.5273, allocations: 221.1 kB / 0.5424 GB, free: 332 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00377/0.5311, allocations: 2.108 MB / 0.5445 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.79e-05/0.5312, allocations: 7.531 kB / 0.5445 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001818/0.5314, allocations: 62.5 kB / 0.5446 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006007/0.532, allocations: 190.6 kB / 0.5447 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003/0.535, allocations: 1.709 MB / 0.5464 GB, free: 13.06 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.01218/0.5472, allocations: 7.887 MB / 0.5541 GB, free: 4.836 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002417/0.5496, allocations: 1.642 MB / 0.5557 GB, free: 3.105 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009687/0.5506, allocations: 0.6645 MB / 0.5564 GB, free: 2.438 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.91e-05/0.5507, allocations: 13 kB / 0.5564 GB, free: 2.426 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.216e-05/0.5508, allocations: 43.56 kB / 0.5564 GB, free: 2.371 MB / 414.1 MB Notification: Performance of pre-optimization done (n=127): time 5.099e-06/0.5508, allocations: 0 / 0.5564 GB, free: 2.371 MB / 414.1 MB Notification: Performance of matching and sorting (n=138): time 0.009773/0.5605, allocations: 5.092 MB / 0.5614 GB, free: 13.09 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.247e-05/0.5606, allocations: 94.42 kB / 0.5615 GB, free: 12.98 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001376/0.562, allocations: 0.9309 MB / 0.5624 GB, free: 12.03 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001199/0.5622, allocations: 49.73 kB / 0.5624 GB, free: 11.97 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000625/0.5628, allocations: 0.7211 MB / 0.5631 GB, free: 11.24 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005513/0.5634, allocations: 0.4967 MB / 0.5636 GB, free: 10.73 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004911/0.5639, allocations: 311.3 kB / 0.5639 GB, free: 10.42 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.564, allocations: 301.1 kB / 0.5642 GB, free: 10.12 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001154/0.5652, allocations: 0.7066 MB / 0.5649 GB, free: 9.418 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001496/0.5667, allocations: 1.159 MB / 0.566 GB, free: 8.074 MB / 430.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.01012/0.5768, allocations: 4.082 MB / 0.57 GB, free: 3.824 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.537e-05/0.5768, allocations: 4 kB / 0.57 GB, free: 3.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006999/0.5838, allocations: 3.346 MB / 0.5733 GB, free: 440 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/0.5839, allocations: 12 kB / 0.5733 GB, free: 428 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.934e-05/0.5839, allocations: 16.66 kB / 0.5733 GB, free: 412 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003093/0.587, allocations: 1.201 MB / 0.5745 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001281/0.5883, allocations: 295.5 kB / 0.5748 GB, free: 14.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0226/0.6109, allocations: 15.13 MB / 0.5895 GB, free: 15.19 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001691/0.6127, allocations: 79.88 kB / 0.5896 GB, free: 15.11 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002019/0.6129, allocations: 72 kB / 0.5897 GB, free: 15.04 MB / 462.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.001185/0.6141, allocations: 0.4949 MB / 0.5902 GB, free: 14.54 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002776/0.6144, allocations: 134.4 kB / 0.5903 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003366/0.6177, allocations: 2.014 MB / 0.5923 GB, free: 12.31 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.658e-05/0.6178, allocations: 16 kB / 0.5923 GB, free: 12.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/0.6178, allocations: 7.984 kB / 0.5923 GB, free: 12.29 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.507e-05/0.6178, allocations: 3.984 kB / 0.5923 GB, free: 12.29 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007025/0.6248, allocations: 3.756 MB / 0.596 GB, free: 8.348 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.033e-05/0.6249, allocations: 4.031 kB / 0.596 GB, free: 8.344 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0016/0.6265, allocations: 327.5 kB / 0.5963 GB, free: 8.023 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004837/0.627, allocations: 195.2 kB / 0.5965 GB, free: 7.82 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002501/0.6272, allocations: 47.98 kB / 0.5965 GB, free: 7.773 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006232/0.6335, allocations: 6.664 MB / 0.603 GB, free: 0.5469 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.6335, allocations: 8.062 kB / 0.603 GB, free: 0.5391 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004448/0.6379, allocations: 2.713 MB / 0.6057 GB, free: 13.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007921/0.6388, allocations: 327.2 kB / 0.606 GB, free: 13.36 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001736/0.6389, allocations: 43.98 kB / 0.606 GB, free: 13.31 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007058/0.6397, allocations: 59.94 kB / 0.6061 GB, free: 13.25 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002562/0.6399, allocations: 97.06 kB / 0.6062 GB, free: 13.16 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.887e-05/0.64, allocations: 43.98 kB / 0.6062 GB, free: 13.12 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.000853/0.6409, allocations: 0.6283 MB / 0.6068 GB, free: 12.48 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.6409, allocations: 0 / 0.6068 GB, free: 12.48 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001846/0.6427, allocations: 484 kB / 0.6073 GB, free: 12.01 MB / 478.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.0002292/0.643, allocations: 159 kB / 0.6074 GB, free: 11.84 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00451/0.6475, allocations: 2.723 MB / 0.6101 GB, free: 9.07 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.6475, allocations: 7.938 kB / 0.6101 GB, free: 9.062 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001763/0.6493, allocations: 1.241 MB / 0.6113 GB, free: 7.773 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001408/0.6507, allocations: 321.9 kB / 0.6116 GB, free: 7.461 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008026/0.6588, allocations: 4.88 MB / 0.6164 GB, free: 2.508 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001368/0.6602, allocations: 1.517 MB / 0.6179 GB, free: 0.9609 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001208/0.6614, allocations: 407.5 kB / 0.6183 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003371/0.6617, allocations: 99.42 kB / 0.6184 GB, free: 472 kB / 478.1 MB Notification: Performance of SimCode: time 1.092e-06/0.6617, allocations: 4 kB / 0.6184 GB, free: 468 kB / 478.1 MB Notification: Performance of Templates: time 0.04698/0.7087, allocations: 25.26 MB / 0.643 GB, free: 7.367 MB / 0.4981 GB 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)