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.001914/0.001914, allocations: 113.8 kB / 17.06 MB, free: 5.965 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.001789/0.001789, allocations: 198.8 kB / 18.01 MB, free: 5.047 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.425/1.425, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1798/0.1798, allocations: 38.05 MB / 329.9 MB, free: 8.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 59.91 kB / 458.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3901/0.3915, allocations: 58.06 MB / 0.5041 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01166/0.4032, allocations: 10.6 MB / 0.5145 GB, free: 380 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01363/0.4169, allocations: 6.245 MB / 0.5206 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002149/0.4191, allocations: 49.06 kB / 0.5206 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01483/0.4339, allocations: 5.503 MB / 0.526 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004651/0.4386, allocations: 1.073 MB / 0.527 GB, free: 9.613 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002685/0.4413, allocations: 0.6424 MB / 0.5276 GB, free: 9.324 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006917/0.4482, allocations: 3.214 MB / 0.5308 GB, free: 7.793 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002038/0.4503, allocations: 1.011 MB / 0.5318 GB, free: 7.211 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002629/0.4529, allocations: 1.059 MB / 0.5328 GB, free: 6.602 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002994/0.456, allocations: 1.35 MB / 0.5341 GB, free: 5.812 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008029/0.4568, allocations: 143.6 kB / 0.5343 GB, free: 5.812 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001978/0.4588, allocations: 425.5 kB / 0.5347 GB, free: 5.664 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001817/0.4606, allocations: 0.8541 MB / 0.5355 GB, free: 5.117 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003101/0.4637, allocations: 0.9323 MB / 0.5364 GB, free: 4.488 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003855/0.4676, allocations: 2.265 MB / 0.5386 GB, free: 2.988 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.4676, allocations: 0 / 0.5386 GB, free: 2.988 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.4676, allocations: 0 / 0.5386 GB, free: 2.988 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.03e-05/0.4677, allocations: 1.156 kB / 0.5386 GB, free: 2.988 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.005371/0.4731, allocations: 2.107 MB / 0.5407 GB, free: 1.473 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.4731, allocations: 17.48 kB / 0.5407 GB, free: 1.465 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001693/0.4748, allocations: 291.9 kB / 0.541 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002972/0.4778, allocations: 1.213 MB / 0.5422 GB, free: 472 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.488e-05/0.4779, allocations: 104.8 kB / 0.5423 GB, free: 420 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005759/0.4785, allocations: 229.2 kB / 0.5425 GB, free: 336 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003667/0.4822, allocations: 2.11 MB / 0.5445 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.347e-05/0.4823, allocations: 4 kB / 0.5445 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001403/0.4824, allocations: 51.98 kB / 0.5446 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006558/0.4831, allocations: 186.6 kB / 0.5448 GB, free: 14.69 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002792/0.4859, allocations: 1.713 MB / 0.5464 GB, free: 12.97 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.01192/0.4978, allocations: 7.916 MB / 0.5542 GB, free: 4.719 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002777/0.5006, allocations: 1.627 MB / 0.5558 GB, free: 3.004 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001158/0.5018, allocations: 0.6645 MB / 0.5564 GB, free: 2.336 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.288e-05/0.5019, allocations: 13 kB / 0.5564 GB, free: 2.324 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.309e-05/0.502, allocations: 47.56 kB / 0.5565 GB, free: 2.266 MB / 414.1 MB Notification: Performance of pre-optimization done (n=127): time 5.24e-06/0.502, allocations: 0 / 0.5565 GB, free: 2.266 MB / 414.1 MB Notification: Performance of matching and sorting (n=138): time 0.01014/0.5121, allocations: 5.136 MB / 0.5615 GB, free: 12.94 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.03e-05/0.5122, allocations: 94.42 kB / 0.5616 GB, free: 12.83 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001417/0.5137, allocations: 0.9348 MB / 0.5625 GB, free: 11.88 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.774e-05/0.5138, allocations: 53.69 kB / 0.5625 GB, free: 11.82 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000516/0.5143, allocations: 0.7308 MB / 0.5633 GB, free: 11.08 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004609/0.5148, allocations: 0.5229 MB / 0.5638 GB, free: 10.55 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004958/0.5153, allocations: 311.5 kB / 0.5641 GB, free: 10.24 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.5154, allocations: 301.1 kB / 0.5643 GB, free: 9.941 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001134/0.5165, allocations: 0.7105 MB / 0.565 GB, free: 9.23 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001388/0.5179, allocations: 1.151 MB / 0.5662 GB, free: 7.895 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.009587/0.5275, allocations: 4.074 MB / 0.5701 GB, free: 3.652 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.428e-05/0.5276, allocations: 8 kB / 0.5702 GB, free: 3.645 MB / 430.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006661/0.5342, allocations: 3.359 MB / 0.5734 GB, free: 248 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.757e-05/0.5343, allocations: 8 kB / 0.5734 GB, free: 240 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.456e-05/0.5343, allocations: 27.86 kB / 0.5735 GB, free: 212 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002971/0.5373, allocations: 1.189 MB / 0.5746 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/0.5386, allocations: 295.5 kB / 0.5749 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01914/0.5577, allocations: 15.14 MB / 0.5897 GB, free: 15 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001503/0.5593, allocations: 91.77 kB / 0.5898 GB, free: 14.91 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001512/0.5594, allocations: 68 kB / 0.5898 GB, free: 14.84 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.001003/0.5604, allocations: 0.4949 MB / 0.5903 GB, free: 14.34 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002289/0.5607, allocations: 139.1 kB / 0.5905 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003323/0.564, allocations: 2.018 MB / 0.5924 GB, free: 12.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.564, allocations: 20 kB / 0.5925 GB, free: 12.08 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.564, allocations: 4 kB / 0.5925 GB, free: 12.08 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.328e-05/0.5641, allocations: 7.922 kB / 0.5925 GB, free: 12.07 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00674/0.5708, allocations: 3.756 MB / 0.5961 GB, free: 8.137 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/0.5708, allocations: 4 kB / 0.5961 GB, free: 8.133 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001659/0.5725, allocations: 339.9 kB / 0.5965 GB, free: 7.801 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005375/0.5731, allocations: 191.2 kB / 0.5966 GB, free: 7.602 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001121/0.5732, allocations: 43.98 kB / 0.5967 GB, free: 7.559 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005808/0.579, allocations: 6.665 MB / 0.6032 GB, free: 340 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/0.579, allocations: 4 kB / 0.6032 GB, free: 336 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004293/0.5833, allocations: 2.734 MB / 0.6059 GB, free: 13.47 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000835/0.5842, allocations: 324 kB / 0.6062 GB, free: 13.13 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002067/0.5844, allocations: 51.94 kB / 0.6062 GB, free: 13.08 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006867/0.5851, allocations: 51.95 kB / 0.6063 GB, free: 13.03 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002743/0.5854, allocations: 109 kB / 0.6064 GB, free: 12.93 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.892e-05/0.5855, allocations: 40 kB / 0.6064 GB, free: 12.89 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0009705/0.5865, allocations: 0.6205 MB / 0.607 GB, free: 12.26 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5865, allocations: 0 / 0.607 GB, free: 12.26 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001913/0.5884, allocations: 488 kB / 0.6075 GB, free: 11.78 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.0002341/0.5886, allocations: 158.9 kB / 0.6076 GB, free: 11.61 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004574/0.5932, allocations: 2.743 MB / 0.6103 GB, free: 8.82 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.5932, allocations: 0 / 0.6103 GB, free: 8.82 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001772/0.595, allocations: 1.233 MB / 0.6115 GB, free: 7.539 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001501/0.5965, allocations: 325.1 kB / 0.6118 GB, free: 7.227 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007606/0.6042, allocations: 4.946 MB / 0.6167 GB, free: 2.203 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001276/0.6055, allocations: 1.525 MB / 0.6182 GB, free: 0.6484 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001171/0.6066, allocations: 395.6 kB / 0.6185 GB, free: 264 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003753/0.607, allocations: 103.4 kB / 0.6186 GB, free: 160 kB / 478.1 MB Notification: Performance of SimCode: time 1.322e-06/0.607, allocations: 0 / 0.6186 GB, free: 160 kB / 478.1 MB Notification: Performance of Templates: time 0.04089/0.6479, allocations: 25.27 MB / 0.6433 GB, free: 7.062 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)