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.00202/0.002021, allocations: 106 kB / 17.28 MB, free: 6.199 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.002476/0.002476, allocations: 193.3 kB / 18.21 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.042/3.042, allocations: 222.9 MB / 241.9 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.5373/0.5373, allocations: 38.02 MB / 330.1 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002398/0.002398, allocations: 65.72 kB / 398.9 MB, free: 34.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2722, allocations: 58.06 MB / 457 MB, free: 8.395 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.02721/0.2995, allocations: 12.64 MB / 469.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02446/0.3241, allocations: 6.838 MB / 476.5 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003777/0.328, allocations: 99.38 kB / 476.6 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01895/0.347, allocations: 5.548 MB / 482.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006525/0.3535, allocations: 0.9962 MB / 483.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003676/0.3573, allocations: 0.5811 MB / 483.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009405/0.3667, allocations: 3.27 MB / 487 MB, free: 10.33 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003183/0.37, allocations: 1.051 MB / 488 MB, free: 9.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003264/0.3733, allocations: 1.07 MB / 489.1 MB, free: 8.176 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003695/0.377, allocations: 1.449 MB / 490.5 MB, free: 6.723 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005855/0.3777, allocations: 144 kB / 490.7 MB, free: 6.582 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001819/0.3795, allocations: 427.5 kB / 491.1 MB, free: 6.164 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001557/0.3811, allocations: 0.8572 MB / 491.9 MB, free: 5.305 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002063/0.3832, allocations: 0.9252 MB / 492.9 MB, free: 4.375 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003884/0.3871, allocations: 1.738 MB / 494.6 MB, free: 2.633 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.252e-05/0.3871, allocations: 0 / 494.6 MB, free: 2.633 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.3871, allocations: 0 / 494.6 MB, free: 2.633 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.348e-05/0.3872, allocations: 0 / 494.6 MB, free: 2.633 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.007995/0.3952, allocations: 2.063 MB / 496.7 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.842e-05/0.3954, allocations: 11.89 kB / 496.7 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002408/0.3978, allocations: 286.4 kB / 497 MB, free: 220 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003895/0.4017, allocations: 1.152 MB / 498.1 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001363/0.4019, allocations: 102.6 kB / 498.2 MB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008957/0.4028, allocations: 231.7 kB / 498.4 MB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006179/0.409, allocations: 2.103 MB / 0.4888 GB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.308e-05/0.4091, allocations: 4 kB / 0.4888 GB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000235/0.4094, allocations: 59.98 kB / 0.4889 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009907/0.4104, allocations: 186.6 kB / 0.489 GB, free: 12.24 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005067/0.4155, allocations: 1.713 MB / 0.4907 GB, free: 10.52 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.02856/0.444, allocations: 7.953 MB / 0.4985 GB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004763/0.4489, allocations: 1.626 MB / 0.5001 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.5547/1.004, allocations: 0.6551 MB / 0.5007 GB, free: 56.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002957/1.004, allocations: 21.28 kB / 0.5007 GB, free: 56.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.371e-05/1.004, allocations: 45.7 kB / 0.5008 GB, free: 56.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 1.068e-05/1.004, allocations: 0.9844 kB / 0.5008 GB, free: 56.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=138): time 0.02503/1.029, allocations: 5.081 MB / 0.5057 GB, free: 54.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001254/1.029, allocations: 92.42 kB / 0.5058 GB, free: 54.65 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004132/1.034, allocations: 0.9356 MB / 0.5067 GB, free: 54.28 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003494/1.034, allocations: 51 kB / 0.5068 GB, free: 54.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001335/1.035, allocations: 0.7197 MB / 0.5075 GB, free: 53.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001262/1.037, allocations: 0.5002 MB / 0.508 GB, free: 53.28 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001077/1.038, allocations: 308.9 kB / 0.5083 GB, free: 53.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/1.038, allocations: 306.2 kB / 0.5086 GB, free: 52.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00269/1.041, allocations: 0.7036 MB / 0.5093 GB, free: 52.62 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002992/1.044, allocations: 1.157 MB / 0.5104 GB, free: 51.87 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.02262/1.066, allocations: 4.1 MB / 0.5144 GB, free: 50.35 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.121e-05/1.066, allocations: 3.594 kB / 0.5144 GB, free: 50.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.0156/1.082, allocations: 3.347 MB / 0.5177 GB, free: 49.08 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.992e-05/1.082, allocations: 11 kB / 0.5177 GB, free: 49.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001023/1.082, allocations: 13.72 kB / 0.5177 GB, free: 49.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01033/1.093, allocations: 1.211 MB / 0.5189 GB, free: 48.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002612/1.095, allocations: 296 kB / 0.5192 GB, free: 48.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03708/1.132, allocations: 15.15 MB / 0.534 GB, free: 37.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003412/1.136, allocations: 67.95 kB / 0.534 GB, free: 37.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000639/1.137, allocations: 68 kB / 0.5341 GB, free: 37.25 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.002465/1.139, allocations: 0.5066 MB / 0.5346 GB, free: 36.74 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000927/1.14, allocations: 134.3 kB / 0.5347 GB, free: 36.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006586/1.147, allocations: 2.016 MB / 0.5367 GB, free: 34.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-05/1.147, allocations: 19.94 kB / 0.5367 GB, free: 34.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.153e-05/1.147, allocations: 4 kB / 0.5367 GB, free: 34.49 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-05/1.147, allocations: 7.969 kB / 0.5367 GB, free: 34.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01296/1.16, allocations: 3.757 MB / 0.5404 GB, free: 30.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.416e-05/1.16, allocations: 8.031 kB / 0.5404 GB, free: 30.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004067/1.164, allocations: 327.5 kB / 0.5407 GB, free: 30.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009646/1.165, allocations: 187.3 kB / 0.5409 GB, free: 30.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002851/1.165, allocations: 43.98 kB / 0.5409 GB, free: 30.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008538/1.174, allocations: 6.693 MB / 0.5474 GB, free: 22.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.225e-05/1.174, allocations: 4 kB / 0.5475 GB, free: 22.79 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008575/1.183, allocations: 2.716 MB / 0.5501 GB, free: 19.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001427/1.184, allocations: 315.4 kB / 0.5504 GB, free: 19.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006818/1.185, allocations: 43.98 kB / 0.5504 GB, free: 19.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001964/1.187, allocations: 51.95 kB / 0.5505 GB, free: 19.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004616/1.187, allocations: 105 kB / 0.5506 GB, free: 19.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001848/1.188, allocations: 40 kB / 0.5506 GB, free: 19.38 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001958/1.19, allocations: 0.6283 MB / 0.5512 GB, free: 18.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.22e-07/1.19, allocations: 0 / 0.5512 GB, free: 18.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003939/1.194, allocations: 483.7 kB / 0.5517 GB, free: 18.28 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.0005064/1.194, allocations: 155 kB / 0.5519 GB, free: 18.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.009778/1.204, allocations: 3.504 MB / 0.5553 GB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.279e-05/1.204, allocations: 0 / 0.5553 GB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00275/1.207, allocations: 1.24 MB / 0.5565 GB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003302/1.21, allocations: 323.5 kB / 0.5568 GB, free: 12.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01372/1.224, allocations: 5.7 MB / 0.5624 GB, free: 7.254 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002124/1.226, allocations: 1.52 MB / 0.5638 GB, free: 5.707 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005011/1.231, allocations: 103.4 kB / 0.5639 GB, free: 5.605 MB / 382.1 MB Notification: Performance of SimCode: time 1.823e-06/1.231, allocations: 0 / 0.5639 GB, free: 5.605 MB / 382.1 MB Notification: Performance of Templates: time 0.1352/1.366, allocations: 42.99 MB / 0.6059 GB, free: 10.62 MB / 430.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)