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.001209/0.001208, allocations: 113.5 kB / 17.7 MB, free: 5.309 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.001129/0.001129, allocations: 191 kB / 18.63 MB, free: 4.375 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.508/1.508, allocations: 205.1 MB / 224.5 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1782/0.1782, allocations: 37.99 MB / 309.8 MB, free: 5.98 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.00145/0.00145, allocations: 75.02 kB / 376.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.267, allocations: 55.24 MB / 432 MB, free: 19.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.009288/0.2763, allocations: 10.6 MB / 442.6 MB, free: 8.848 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007926/0.2843, allocations: 6.273 MB / 448.9 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009768/0.2853, allocations: 51.69 kB / 448.9 MB, free: 2.5 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeComponents: time 0.01106/0.2964, allocations: 5.502 MB / 454.4 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003184/0.2996, allocations: 1.073 MB / 455.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002015/0.3016, allocations: 0.6433 MB / 456.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005407/0.3071, allocations: 3.212 MB / 459.4 MB, free: 8.047 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001417/0.3085, allocations: 1 MB / 460.4 MB, free: 7.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001674/0.3102, allocations: 1.066 MB / 461.4 MB, free: 5.949 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001775/0.312, allocations: 1.351 MB / 462.8 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002155/0.3122, allocations: 144 kB / 462.9 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009036/0.3131, allocations: 423.5 kB / 463.3 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007734/0.3139, allocations: 0.8456 MB / 464.2 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009423/0.3148, allocations: 0.9252 MB / 465.1 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002229/0.3171, allocations: 2.266 MB / 467.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3171, allocations: 3.938 kB / 467.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.3171, allocations: 0 / 467.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.715e-05/0.3171, allocations: 4 kB / 467.4 MB, free: 15.98 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.003834/0.321, allocations: 2.052 MB / 469.4 MB, free: 13.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.321, allocations: 15.89 kB / 469.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001365/0.3224, allocations: 274.5 kB / 469.7 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002346/0.3248, allocations: 1.222 MB / 470.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.856e-05/0.3249, allocations: 106.6 kB / 471.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004577/0.3253, allocations: 223.7 kB / 471.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00292/0.3282, allocations: 2.111 MB / 473.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.933e-05/0.3283, allocations: 0 / 473.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001879/0.3285, allocations: 59.98 kB / 473.4 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006163/0.3291, allocations: 182.7 kB / 473.6 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002822/0.332, allocations: 1.713 MB / 475.3 MB, free: 7.824 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.01036/0.3423, allocations: 7.902 MB / 483.2 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002226/0.3446, allocations: 1.628 MB / 484.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009657/0.3456, allocations: 0.6606 MB / 485.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.593e-05/0.3457, allocations: 17 kB / 485.5 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.393e-05/0.3457, allocations: 51.56 kB / 485.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of pre-optimization done (n=127): time 2.805e-06/0.3457, allocations: 0 / 485.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=138): time 0.008626/0.3543, allocations: 5.092 MB / 490.7 MB, free: 7.844 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.101e-05/0.3544, allocations: 102.4 kB / 490.8 MB, free: 7.727 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001349/0.3558, allocations: 0.9309 MB / 491.7 MB, free: 6.777 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001328/0.3559, allocations: 53.7 kB / 491.8 MB, free: 6.719 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006144/0.3566, allocations: 0.7172 MB / 492.5 MB, free: 5.988 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004775/0.357, allocations: 0.4968 MB / 493 MB, free: 5.484 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004748/0.3575, allocations: 307.3 kB / 493.3 MB, free: 5.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.3576, allocations: 301.1 kB / 493.6 MB, free: 4.883 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001121/0.3588, allocations: 0.7105 MB / 494.3 MB, free: 4.172 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001567/0.3604, allocations: 1.155 MB / 495.4 MB, free: 2.832 MB / 366.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.01293/0.3733, allocations: 4.074 MB / 499.5 MB, free: 14.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.531e-05/0.3733, allocations: 4 kB / 499.5 MB, free: 14.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.00944/0.3828, allocations: 3.347 MB / 0.4911 GB, free: 11.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.705e-05/0.3829, allocations: 16 kB / 0.4911 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.124e-05/0.3829, allocations: 12 kB / 0.4911 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003597/0.3865, allocations: 1.189 MB / 0.4923 GB, free: 9.961 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001546/0.3881, allocations: 303.5 kB / 0.4926 GB, free: 9.664 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02767/0.4158, allocations: 15.13 MB / 0.5073 GB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001961/0.4178, allocations: 79.88 kB / 0.5074 GB, free: 9.883 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002219/0.4181, allocations: 72 kB / 0.5075 GB, free: 9.812 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 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.001261/0.4193, allocations: 0.5007 MB / 0.508 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003373/0.4197, allocations: 134.3 kB / 0.5081 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004007/0.4237, allocations: 2.007 MB / 0.5101 GB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.596e-05/0.4237, allocations: 15.98 kB / 0.5101 GB, free: 7.07 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.4237, allocations: 4 kB / 0.5101 GB, free: 7.066 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/0.4238, allocations: 3.984 kB / 0.5101 GB, free: 7.062 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006492/0.4303, allocations: 3.771 MB / 0.5138 GB, free: 3.105 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-06/0.4303, allocations: 7.938 kB / 0.5138 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001622/0.4319, allocations: 319.6 kB / 0.5141 GB, free: 2.785 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005144/0.4324, allocations: 199.5 kB / 0.5143 GB, free: 2.578 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001064/0.4326, allocations: 43.98 kB / 0.5143 GB, free: 2.535 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2287/0.6613, allocations: 6.667 MB / 0.5208 GB, free: 82 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/0.6614, allocations: 4.438 kB / 0.5208 GB, free: 82 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003792/0.6652, allocations: 2.714 MB / 0.5235 GB, free: 81.15 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007229/0.6659, allocations: 315.7 kB / 0.5238 GB, free: 81.02 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001945/0.6661, allocations: 47.34 kB / 0.5238 GB, free: 81 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006808/0.6668, allocations: 54.64 kB / 0.5239 GB, free: 80.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000245/0.667, allocations: 109.2 kB / 0.524 GB, free: 80.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.327e-05/0.6671, allocations: 36.94 kB / 0.524 GB, free: 80.95 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000841/0.668, allocations: 0.6261 MB / 0.5246 GB, free: 80.7 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.668, allocations: 0 / 0.5246 GB, free: 80.7 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001619/0.6696, allocations: 483.2 kB / 0.5251 GB, free: 80.65 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.0002307/0.6699, allocations: 164.7 kB / 0.5252 GB, free: 80.54 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004744/0.6746, allocations: 2.724 MB / 0.5279 GB, free: 79.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.782e-06/0.6746, allocations: 4.391 kB / 0.5279 GB, free: 79.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0022/0.6769, allocations: 1.245 MB / 0.5291 GB, free: 78.63 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001578/0.6784, allocations: 318.8 kB / 0.5294 GB, free: 78.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006435/0.6849, allocations: 4.882 MB / 0.5342 GB, free: 76.02 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008992/0.6858, allocations: 1.521 MB / 0.5357 GB, free: 75.21 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009667/0.6868, allocations: 406.2 kB / 0.5361 GB, free: 75.14 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002988/0.6871, allocations: 101 kB / 0.5362 GB, free: 75.13 MB / 398.1 MB Notification: Performance of SimCode: time 7.91e-07/0.6871, allocations: 0 / 0.5362 GB, free: 75.13 MB / 398.1 MB Notification: Performance of Templates: time 0.03146/0.7186, allocations: 24.76 MB / 0.5603 GB, free: 52.37 MB / 398.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 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe 2>&1)