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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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.0008097/0.0008097, allocations: 93.02 kB / 16.65 MB, free: 6.586 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.0009389/0.000939, allocations: 183.7 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.432/1.432, allocations: 205.4 MB / 223.8 MB, free: 13.06 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1714/0.1714, allocations: 38.04 MB / 310.1 MB, free: 5.91 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006493/0.0006496, allocations: 12 kB / 377.1 MB, free: 2.727 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.2998, allocations: 56.34 MB / 433.5 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.009261/0.3091, allocations: 12.08 MB / 445.6 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01072/0.3198, allocations: 6.953 MB / 452.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002663/0.3225, allocations: 91.38 kB / 452.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01078/0.3333, allocations: 4.878 MB / 457.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003451/0.3368, allocations: 1.008 MB / 458.5 MB, free: 9.578 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002173/0.339, allocations: 0.5807 MB / 459.1 MB, free: 9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006246/0.3453, allocations: 4.722 MB / 463.8 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002653/0.3479, allocations: 1.317 MB / 465.1 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001994/0.3499, allocations: 0.8595 MB / 466 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002431/0.3524, allocations: 1.367 MB / 467.4 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006079/0.353, allocations: 76 kB / 467.4 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00139/0.3544, allocations: 351.5 kB / 467.8 MB, free: 248 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001163/0.3556, allocations: 0.7831 MB / 468.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0016/0.3572, allocations: 0.8526 MB / 469.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003022/0.3602, allocations: 2.145 MB / 471.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3603, allocations: 0 / 471.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3603, allocations: 0 / 471.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001045/0.3604, allocations: 4 kB / 471.6 MB, free: 12.44 MB / 350.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.004542/0.3649, allocations: 1.744 MB / 473.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.365, allocations: 11.97 kB / 473.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0018/0.3668, allocations: 274.5 kB / 473.6 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002555/0.3694, allocations: 1.159 MB / 474.7 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.35e-05/0.3695, allocations: 98.62 kB / 474.8 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000631/0.3701, allocations: 231.7 kB / 475.1 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003582/0.3737, allocations: 2.115 MB / 477.2 MB, free: 6.609 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.08e-05/0.3738, allocations: 4 kB / 477.2 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001544/0.3739, allocations: 55.98 kB / 477.2 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000706/0.3746, allocations: 178.7 kB / 477.4 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002896/0.3775, allocations: 1.732 MB / 479.1 MB, free: 4.637 MB / 350.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.01101/0.3886, allocations: 7.972 MB / 487.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00226/0.3908, allocations: 1.624 MB / 488.7 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009691/0.3918, allocations: 0.6684 MB / 489.4 MB, free: 9.938 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.254e-05/0.3919, allocations: 28.92 kB / 489.4 MB, free: 9.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.843e-05/0.392, allocations: 47.56 kB / 489.5 MB, free: 9.855 MB / 366.1 MB Notification: Performance of pre-optimization done (n=127): time 4.038e-06/0.392, allocations: 0 / 489.5 MB, free: 9.855 MB / 366.1 MB Notification: Performance of matching and sorting (n=138): time 0.009291/0.4013, allocations: 5.119 MB / 494.6 MB, free: 4.551 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.911e-05/0.4014, allocations: 98.3 kB / 494.7 MB, free: 4.438 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001203/0.4026, allocations: 0.9348 MB / 495.6 MB, free: 3.484 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.854e-05/0.4027, allocations: 45.7 kB / 495.7 MB, free: 3.434 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005146/0.4032, allocations: 0.7249 MB / 496.4 MB, free: 2.695 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003813/0.4036, allocations: 0.5007 MB / 496.9 MB, free: 2.188 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000193/0.4038, allocations: 153.6 kB / 497 MB, free: 2.031 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.4039, allocations: 305.2 kB / 497.3 MB, free: 1.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001111/0.405, allocations: 0.7144 MB / 498.1 MB, free: 1.016 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001428/0.4065, allocations: 1.155 MB / 499.2 MB, free: 15.67 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.01002/0.4165, allocations: 4.094 MB / 0.4915 GB, free: 11.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.528e-05/0.4166, allocations: 4 kB / 0.4915 GB, free: 11.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.007035/0.4236, allocations: 3.366 MB / 0.4948 GB, free: 7.992 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.475e-05/0.4237, allocations: 12 kB / 0.4948 GB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.963e-05/0.4237, allocations: 12 kB / 0.4948 GB, free: 7.969 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003124/0.4268, allocations: 1.198 MB / 0.496 GB, free: 6.758 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/0.428, allocations: 295.5 kB / 0.4963 GB, free: 6.469 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01839/0.4464, allocations: 13.83 MB / 0.5098 GB, free: 8.082 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001354/0.4478, allocations: 83.86 kB / 0.5099 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001363/0.448, allocations: 75.92 kB / 0.5099 GB, free: 7.926 MB / 398.1 MB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization sytem: 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.0009655/0.4489, allocations: 0.4972 MB / 0.5104 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001898/0.4491, allocations: 130.4 kB / 0.5105 GB, free: 7.289 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003172/0.4523, allocations: 2.038 MB / 0.5125 GB, free: 5.176 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.169e-05/0.4523, allocations: 12 kB / 0.5126 GB, free: 5.164 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.4524, allocations: 7.938 kB / 0.5126 GB, free: 5.156 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.4524, allocations: 7.969 kB / 0.5126 GB, free: 5.148 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005801/0.4582, allocations: 3.775 MB / 0.5163 GB, free: 1.191 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/0.4582, allocations: 4 kB / 0.5163 GB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001617/0.4598, allocations: 332 kB / 0.5166 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004983/0.4603, allocations: 186.6 kB / 0.5167 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001052/0.4605, allocations: 55.91 kB / 0.5168 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2738/0.7342, allocations: 6.139 MB / 0.5228 GB, free: 80.74 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/0.7343, allocations: 8.094 kB / 0.5228 GB, free: 80.74 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004411/0.7387, allocations: 2.729 MB / 0.5255 GB, free: 80.01 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007623/0.7395, allocations: 314.9 kB / 0.5258 GB, free: 79.88 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001937/0.7397, allocations: 52.25 kB / 0.5258 GB, free: 79.85 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007351/0.7404, allocations: 55.53 kB / 0.5259 GB, free: 79.84 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003038/0.7408, allocations: 104.1 kB / 0.526 GB, free: 79.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.944e-05/0.7409, allocations: 43.98 kB / 0.526 GB, free: 79.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001106/0.742, allocations: 0.6217 MB / 0.5266 GB, free: 79.55 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.583e-06/0.742, allocations: 1.781 kB / 0.5266 GB, free: 79.55 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001836/0.7438, allocations: 491.2 kB / 0.5271 GB, free: 79.5 MB / 398.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.0002262/0.7441, allocations: 164.4 kB / 0.5272 GB, free: 79.37 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004874/0.7489, allocations: 2.673 MB / 0.5299 GB, free: 78.18 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.749, allocations: 0 / 0.5299 GB, free: 78.18 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002186/0.7512, allocations: 1.246 MB / 0.5311 GB, free: 77.49 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002089/0.7533, allocations: 302 kB / 0.5314 GB, free: 77.39 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007191/0.7605, allocations: 5.98 MB / 0.5372 GB, free: 73.97 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001039/0.7615, allocations: 1.526 MB / 0.5387 GB, free: 73.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001158/0.7627, allocations: 396.3 kB / 0.5391 GB, free: 73.09 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002988/0.763, allocations: 100.5 kB / 0.5392 GB, free: 73.09 MB / 398.1 MB Notification: Performance of SimCode: time 1.032e-06/0.763, allocations: 0 / 0.5392 GB, free: 73.09 MB / 398.1 MB Notification: Performance of Templates: time 0.032/0.795, allocations: 23.19 MB / 0.5618 GB, free: 51.42 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: