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.001102/0.001102, allocations: 108.3 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.001077/0.001077, allocations: 192 kB / 18.62 MB, free: 4.41 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.306/1.306, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1814/0.1814, allocations: 37.99 MB / 309.8 MB, free: 5.965 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.001495/0.001495, allocations: 63.91 kB / 376.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2525, allocations: 55.25 MB / 432 MB, free: 19.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.009393/0.2619, allocations: 10.6 MB / 442.6 MB, free: 8.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008378/0.2703, allocations: 6.273 MB / 448.9 MB, free: 2.543 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001111/0.2715, allocations: 47.75 kB / 448.9 MB, free: 2.496 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.01044/0.2819, allocations: 5.502 MB / 454.4 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002749/0.2847, allocations: 1.077 MB / 455.5 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001933/0.2867, allocations: 0.6433 MB / 456.2 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004362/0.291, allocations: 3.205 MB / 459.4 MB, free: 8.047 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001291/0.2923, allocations: 1.008 MB / 460.4 MB, free: 7.012 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001359/0.2937, allocations: 1.066 MB / 461.4 MB, free: 5.941 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001681/0.2954, allocations: 1.343 MB / 462.8 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002136/0.2956, allocations: 144 kB / 462.9 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007717/0.2964, allocations: 431.5 kB / 463.3 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001071/0.2975, allocations: 0.8533 MB / 464.2 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009611/0.2985, allocations: 0.9213 MB / 465.1 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002425/0.3009, allocations: 2.266 MB / 467.4 MB, free: 15.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3009, allocations: 0 / 467.4 MB, free: 15.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3009, allocations: 0 / 467.4 MB, free: 15.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.133e-05/0.3009, allocations: 4 kB / 467.4 MB, free: 15.97 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.004062/0.305, allocations: 2.056 MB / 469.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.3051, allocations: 11.89 kB / 469.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001413/0.3065, allocations: 274.5 kB / 469.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002489/0.309, allocations: 1.218 MB / 470.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.594e-05/0.3091, allocations: 106.6 kB / 471 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004776/0.3096, allocations: 223.7 kB / 471.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002975/0.3126, allocations: 2.103 MB / 473.4 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.364e-05/0.3126, allocations: 4 kB / 473.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001465/0.3128, allocations: 59.97 kB / 473.4 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006203/0.3134, allocations: 186.7 kB / 473.6 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002695/0.3161, allocations: 1.709 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.01033/0.3264, allocations: 7.91 MB / 483.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002312/0.3288, allocations: 1.616 MB / 484.8 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009898/0.3298, allocations: 0.6645 MB / 485.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.937e-05/0.3299, allocations: 16.98 kB / 485.5 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.465e-05/0.3299, allocations: 59.55 kB / 485.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=127): time 5.13e-06/0.3299, allocations: 3.984 kB / 485.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=138): time 0.008865/0.3388, allocations: 5.084 MB / 490.7 MB, free: 7.84 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.497e-05/0.3389, allocations: 106.4 kB / 490.8 MB, free: 7.719 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00116/0.3401, allocations: 0.9348 MB / 491.7 MB, free: 6.766 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.989e-05/0.3402, allocations: 45.7 kB / 491.7 MB, free: 6.715 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005148/0.3407, allocations: 0.7172 MB / 492.5 MB, free: 5.984 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004124/0.3411, allocations: 0.5007 MB / 493 MB, free: 5.477 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004571/0.3416, allocations: 307.3 kB / 493.3 MB, free: 5.172 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.3417, allocations: 305.1 kB / 493.6 MB, free: 4.871 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001123/0.3428, allocations: 0.7066 MB / 494.3 MB, free: 4.164 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001424/0.3442, allocations: 1.147 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.00977/0.354, allocations: 4.071 MB / 499.5 MB, free: 14.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.278e-05/0.3541, allocations: 4 kB / 499.5 MB, free: 14.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006621/0.3607, allocations: 3.363 MB / 0.4911 GB, free: 11.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.105e-05/0.3607, allocations: 16.03 kB / 0.4911 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.799e-05/0.3608, allocations: 15.98 kB / 0.4911 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002895/0.3637, allocations: 1.189 MB / 0.4923 GB, free: 9.945 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001123/0.3648, allocations: 303.5 kB / 0.4926 GB, free: 9.648 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01937/0.3842, allocations: 15.13 MB / 0.5073 GB, free: 9.949 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/0.3855, allocations: 75.89 kB / 0.5074 GB, free: 9.875 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001534/0.3856, allocations: 75.98 kB / 0.5075 GB, free: 9.801 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.0008826/0.3865, allocations: 0.493 MB / 0.508 GB, free: 9.301 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002099/0.3867, allocations: 134.3 kB / 0.5081 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003234/0.39, allocations: 2.01 MB / 0.51 GB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/0.39, allocations: 16.09 kB / 0.5101 GB, free: 7.062 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.39, allocations: 7.984 kB / 0.5101 GB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.39, allocations: 7.969 kB / 0.5101 GB, free: 7.047 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006211/0.3963, allocations: 3.759 MB / 0.5137 GB, free: 3.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.3963, allocations: 4 kB / 0.5137 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0017/0.398, allocations: 319.6 kB / 0.5141 GB, free: 2.785 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005071/0.3985, allocations: 203.5 kB / 0.5142 GB, free: 2.574 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001068/0.3986, allocations: 47.97 kB / 0.5143 GB, free: 2.527 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.178/0.5767, allocations: 6.666 MB / 0.5208 GB, free: 82.04 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/0.5767, allocations: 7.125 kB / 0.5208 GB, free: 82.04 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00385/0.5806, allocations: 2.713 MB / 0.5235 GB, free: 81.19 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007334/0.5813, allocations: 314.7 kB / 0.5238 GB, free: 81.06 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001778/0.5815, allocations: 47.92 kB / 0.5238 GB, free: 81.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006753/0.5822, allocations: 54.28 kB / 0.5239 GB, free: 81.02 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000251/0.5825, allocations: 107.9 kB / 0.524 GB, free: 81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.724e-05/0.5825, allocations: 42.95 kB / 0.524 GB, free: 81 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007976/0.5833, allocations: 0.6227 MB / 0.5246 GB, free: 80.74 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5834, allocations: 0 / 0.5246 GB, free: 80.74 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001453/0.5848, allocations: 483.8 kB / 0.5251 GB, free: 80.69 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.0001729/0.585, allocations: 163.2 kB / 0.5252 GB, free: 80.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004227/0.5892, allocations: 2.723 MB / 0.5279 GB, free: 79.37 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.5892, allocations: 0.5625 kB / 0.5279 GB, free: 79.37 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001803/0.5911, allocations: 1.248 MB / 0.5291 GB, free: 78.67 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001208/0.5923, allocations: 317.7 kB / 0.5294 GB, free: 78.55 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005681/0.598, allocations: 4.881 MB / 0.5342 GB, free: 76.06 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008334/0.5988, allocations: 1.525 MB / 0.5357 GB, free: 75.25 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008469/0.5997, allocations: 401.4 kB / 0.536 GB, free: 75.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002827/0.6, allocations: 94.42 kB / 0.5361 GB, free: 75.17 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.6, allocations: 3.828 kB / 0.5361 GB, free: 75.17 MB / 398.1 MB Notification: Performance of Templates: time 0.02939/0.6294, allocations: 24.78 MB / 0.5603 GB, free: 52.39 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 gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe 2>&1)