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.00113/0.00113, allocations: 112 kB / 17.68 MB, free: 5.332 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.001228/0.001228, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.302/1.302, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1736/0.1736, allocations: 38.04 MB / 330.5 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 61.61 kB / 400.2 MB, free: 33.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09828/0.0996, allocations: 58.07 MB / 458.3 MB, free: 7.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01246/0.1121, allocations: 10.6 MB / 468.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009938/0.1221, allocations: 6.235 MB / 475.1 MB, free: 6.418 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001241/0.1234, allocations: 51.69 kB / 475.2 MB, free: 6.367 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01206/0.1354, allocations: 5.515 MB / 480.7 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002887/0.1383, allocations: 1.073 MB / 481.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001924/0.1403, allocations: 0.6511 MB / 482.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004739/0.145, allocations: 3.208 MB / 485.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001662/0.1467, allocations: 0.9963 MB / 486.6 MB, free: 10.87 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002117/0.1489, allocations: 1.062 MB / 487.7 MB, free: 9.805 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002587/0.1515, allocations: 1.347 MB / 489 MB, free: 8.453 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004609/0.152, allocations: 144 kB / 489.2 MB, free: 8.312 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00108/0.153, allocations: 431.5 kB / 489.6 MB, free: 7.891 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001092/0.1542, allocations: 0.8456 MB / 490.5 MB, free: 7.043 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001982/0.1561, allocations: 0.9291 MB / 491.4 MB, free: 6.109 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002833/0.159, allocations: 2.262 MB / 493.6 MB, free: 3.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.159, allocations: 0 / 493.6 MB, free: 3.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.159, allocations: 0 / 493.6 MB, free: 3.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.92e-05/0.1591, allocations: 0 / 493.6 MB, free: 3.84 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.003986/0.1631, allocations: 2.064 MB / 495.7 MB, free: 1.715 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.1631, allocations: 11.89 kB / 495.7 MB, free: 1.703 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001417/0.1645, allocations: 282.5 kB / 496 MB, free: 1.426 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002578/0.1671, allocations: 1.206 MB / 497.2 MB, free: 180 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.015e-05/0.1672, allocations: 98.62 kB / 497.3 MB, free: 80 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004986/0.1677, allocations: 231.7 kB / 497.5 MB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00299/0.1707, allocations: 2.107 MB / 499.6 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.246e-05/0.1708, allocations: 7.938 kB / 499.6 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001345/0.1709, allocations: 59.97 kB / 499.7 MB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006252/0.1716, allocations: 186.7 kB / 499.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002671/0.1742, allocations: 1.701 MB / 0.4898 GB, free: 11.69 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.1852, allocations: 7.91 MB / 0.4975 GB, free: 3.434 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002282/0.1875, allocations: 1.622 MB / 0.4991 GB, free: 1.727 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009365/0.1884, allocations: 0.6645 MB / 0.4998 GB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.649e-05/0.1885, allocations: 16.98 kB / 0.4998 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.61e-05/0.1886, allocations: 47.56 kB / 0.4998 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 2.986e-06/0.1886, allocations: 7.938 kB / 0.4999 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of matching and sorting (n=138): time 0.203/0.3916, allocations: 5.074 MB / 0.5048 GB, free: 55.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.536e-05/0.3917, allocations: 92.2 kB / 0.5049 GB, free: 55.31 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001278/0.393, allocations: 0.932 MB / 0.5058 GB, free: 54.94 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.231e-05/0.3931, allocations: 51.27 kB / 0.5059 GB, free: 54.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004194/0.3935, allocations: 0.7197 MB / 0.5066 GB, free: 54.33 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003487/0.3939, allocations: 0.4956 MB / 0.507 GB, free: 53.95 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004314/0.3943, allocations: 310.2 kB / 0.5073 GB, free: 53.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.652e-05/0.3944, allocations: 302.7 kB / 0.5076 GB, free: 53.51 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001123/0.3955, allocations: 0.7077 MB / 0.5083 GB, free: 53.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001351/0.3968, allocations: 1.151 MB / 0.5094 GB, free: 52.54 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.009976/0.4068, allocations: 4.083 MB / 0.5134 GB, free: 51.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-05/0.4069, allocations: 3.375 kB / 0.5134 GB, free: 51.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006928/0.4138, allocations: 3.359 MB / 0.5167 GB, free: 49.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.296e-05/0.4139, allocations: 12.12 kB / 0.5167 GB, free: 49.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.143e-05/0.4139, allocations: 13.56 kB / 0.5167 GB, free: 49.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002989/0.4169, allocations: 1.199 MB / 0.5179 GB, free: 49.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.4181, allocations: 299.4 kB / 0.5182 GB, free: 49.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01521/0.4333, allocations: 15.13 MB / 0.533 GB, free: 38.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001163/0.4345, allocations: 75.95 kB / 0.533 GB, free: 38.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001249/0.4347, allocations: 75.98 kB / 0.5331 GB, free: 38.31 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.000727/0.4354, allocations: 498.7 kB / 0.5336 GB, free: 37.82 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001739/0.4356, allocations: 138.2 kB / 0.5337 GB, free: 37.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002614/0.4382, allocations: 2.014 MB / 0.5357 GB, free: 35.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.4382, allocations: 16 kB / 0.5357 GB, free: 35.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.4382, allocations: 0 / 0.5357 GB, free: 35.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.4382, allocations: 15.91 kB / 0.5357 GB, free: 35.56 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005263/0.4435, allocations: 3.756 MB / 0.5394 GB, free: 31.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/0.4435, allocations: 4 kB / 0.5394 GB, free: 31.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001552/0.4451, allocations: 324 kB / 0.5397 GB, free: 31.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004273/0.4455, allocations: 187.2 kB / 0.5399 GB, free: 31.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.601e-05/0.4456, allocations: 51.97 kB / 0.5399 GB, free: 31.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003601/0.4492, allocations: 6.67 MB / 0.5464 GB, free: 23.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.4493, allocations: 11.92 kB / 0.5464 GB, free: 23.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00318/0.4525, allocations: 2.714 MB / 0.5491 GB, free: 21.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006814/0.4532, allocations: 319.3 kB / 0.5494 GB, free: 20.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001794/0.4533, allocations: 43.98 kB / 0.5494 GB, free: 20.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006932/0.454, allocations: 59.95 kB / 0.5495 GB, free: 20.6 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002052/0.4543, allocations: 101 kB / 0.5496 GB, free: 20.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.974e-05/0.4543, allocations: 36 kB / 0.5496 GB, free: 20.47 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007131/0.4551, allocations: 0.6283 MB / 0.5502 GB, free: 19.83 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.423e-06/0.4551, allocations: 0 / 0.5502 GB, free: 19.83 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001666/0.4567, allocations: 491.4 kB / 0.5507 GB, free: 19.36 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.0001953/0.4569, allocations: 152.2 kB / 0.5509 GB, free: 19.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003938/0.4609, allocations: 2.741 MB / 0.5535 GB, free: 16.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.86e-06/0.4609, allocations: 0 / 0.5535 GB, free: 16.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001487/0.4624, allocations: 1.229 MB / 0.5547 GB, free: 15.14 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001465/0.4639, allocations: 327.4 kB / 0.555 GB, free: 14.83 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006546/0.4704, allocations: 4.887 MB / 0.5598 GB, free: 9.941 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001149/0.4716, allocations: 1.529 MB / 0.5613 GB, free: 8.379 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001073/0.4727, allocations: 403.5 kB / 0.5617 GB, free: 7.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003704/0.4731, allocations: 91.44 kB / 0.5618 GB, free: 7.891 MB / 382.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4731, allocations: 0 / 0.5618 GB, free: 7.891 MB / 382.1 MB Notification: Performance of Templates: time 0.04086/0.514, allocations: 24.78 MB / 0.586 GB, free: 15.33 MB / 414.1 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 -s gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe 2>&1)