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.001367/0.001367, allocations: 110.9 kB / 17.06 MB, free: 5.977 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.001426/0.001427, allocations: 200 kB / 18.01 MB, free: 5.059 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.48/1.48, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1712/0.1712, allocations: 37.99 MB / 309.2 MB, free: 5.938 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.001708/0.001708, allocations: 67.84 kB / 431.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1331, allocations: 55.25 MB / 487.1 MB, free: 8.34 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01513/0.1483, allocations: 10.59 MB / 497.7 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01081/0.1592, allocations: 6.277 MB / 0.4922 GB, free: 7.398 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001567/0.1608, allocations: 47.75 kB / 0.4922 GB, free: 7.352 MB / 382.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.01201/0.1728, allocations: 5.508 MB / 0.4976 GB, free: 1.832 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003692/0.1765, allocations: 1.073 MB / 0.4986 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002079/0.1786, allocations: 0.6472 MB / 0.4993 GB, free: 108 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005523/0.1842, allocations: 3.208 MB / 0.5024 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001923/0.1861, allocations: 1.008 MB / 0.5034 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002931/0.1891, allocations: 1.07 MB / 0.5044 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003123/0.1922, allocations: 1.347 MB / 0.5057 GB, free: 9.43 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005776/0.1929, allocations: 144 kB / 0.5059 GB, free: 9.289 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001748/0.1946, allocations: 427.5 kB / 0.5063 GB, free: 8.871 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001622/0.1963, allocations: 0.8533 MB / 0.5071 GB, free: 8.016 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002854/0.1991, allocations: 0.9213 MB / 0.508 GB, free: 7.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004288/0.2034, allocations: 2.266 MB / 0.5102 GB, free: 4.816 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.177e-06/0.2035, allocations: 3.938 kB / 0.5102 GB, free: 4.812 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.2035, allocations: 0 / 0.5102 GB, free: 4.812 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001543/0.2037, allocations: 4 kB / 0.5102 GB, free: 4.809 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.005441/0.2091, allocations: 2.056 MB / 0.5123 GB, free: 2.691 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.2092, allocations: 11.89 kB / 0.5123 GB, free: 2.68 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00152/0.2107, allocations: 282.4 kB / 0.5125 GB, free: 2.402 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002601/0.2133, allocations: 1.206 MB / 0.5137 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.131e-05/0.2134, allocations: 102.6 kB / 0.5138 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000491/0.2139, allocations: 227.7 kB / 0.514 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003239/0.2171, allocations: 2.115 MB / 0.5161 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.179e-05/0.2172, allocations: 8 kB / 0.5161 GB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001337/0.2173, allocations: 55.98 kB / 0.5162 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006424/0.218, allocations: 186.6 kB / 0.5163 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002804/0.2208, allocations: 1.705 MB / 0.518 GB, free: 12.65 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.01162/0.2324, allocations: 7.906 MB / 0.5257 GB, free: 4.406 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002464/0.2349, allocations: 1.628 MB / 0.5273 GB, free: 2.699 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009862/0.2359, allocations: 0.6606 MB / 0.528 GB, free: 2.035 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.518e-05/0.236, allocations: 20.98 kB / 0.528 GB, free: 2.016 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.071e-05/0.2361, allocations: 51.55 kB / 0.528 GB, free: 1.957 MB / 414.1 MB Notification: Performance of pre-optimization done (n=127): time 3.246e-06/0.2361, allocations: 4 kB / 0.528 GB, free: 1.953 MB / 414.1 MB Notification: Performance of matching and sorting (n=138): time 0.2649/0.501, allocations: 5.069 MB / 0.533 GB, free: 51.14 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.043e-05/0.5011, allocations: 99.94 kB / 0.5331 GB, free: 51.04 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001222/0.5023, allocations: 0.9394 MB / 0.534 GB, free: 50.8 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.695e-05/0.5024, allocations: 47.17 kB / 0.534 GB, free: 50.76 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004433/0.5028, allocations: 0.7179 MB / 0.5347 GB, free: 50.2 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000359/0.5032, allocations: 0.5008 MB / 0.5352 GB, free: 49.81 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004807/0.5037, allocations: 306 kB / 0.5355 GB, free: 49.67 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.594e-05/0.5037, allocations: 301.9 kB / 0.5358 GB, free: 49.38 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001195/0.5049, allocations: 0.7088 MB / 0.5365 GB, free: 49.15 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001436/0.5064, allocations: 1.154 MB / 0.5376 GB, free: 48.41 MB / 414.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.01083/0.5172, allocations: 4.068 MB / 0.5416 GB, free: 46.92 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-05/0.5173, allocations: 4.281 kB / 0.5416 GB, free: 46.92 MB / 414.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.007133/0.5244, allocations: 3.362 MB / 0.5449 GB, free: 45.66 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.309e-05/0.5245, allocations: 10.97 kB / 0.5449 GB, free: 45.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.066e-05/0.5246, allocations: 14.66 kB / 0.5449 GB, free: 45.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003582/0.5282, allocations: 1.193 MB / 0.5461 GB, free: 45.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/0.5294, allocations: 299.5 kB / 0.5464 GB, free: 45.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01677/0.5462, allocations: 15.13 MB / 0.5611 GB, free: 35.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001178/0.5474, allocations: 84.28 kB / 0.5612 GB, free: 35.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001252/0.5476, allocations: 71.94 kB / 0.5613 GB, free: 35.63 MB / 414.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.000735/0.5483, allocations: 0.494 MB / 0.5618 GB, free: 35.12 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001688/0.5485, allocations: 134.4 kB / 0.5619 GB, free: 34.99 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002465/0.551, allocations: 2.018 MB / 0.5639 GB, free: 32.9 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.551, allocations: 16 kB / 0.5639 GB, free: 32.88 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.892e-06/0.551, allocations: 4 kB / 0.5639 GB, free: 32.88 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.551, allocations: 11.97 kB / 0.5639 GB, free: 32.87 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005087/0.5561, allocations: 3.757 MB / 0.5676 GB, free: 28.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.5561, allocations: 4.875 kB / 0.5676 GB, free: 28.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001447/0.5576, allocations: 324 kB / 0.5679 GB, free: 28.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000426/0.558, allocations: 193.6 kB / 0.5681 GB, free: 28.45 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.679e-05/0.5581, allocations: 47.98 kB / 0.5681 GB, free: 28.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003538/0.5617, allocations: 6.668 MB / 0.5746 GB, free: 21.19 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.5617, allocations: 8.484 kB / 0.5746 GB, free: 21.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003079/0.5648, allocations: 2.719 MB / 0.5773 GB, free: 18.34 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000618/0.5654, allocations: 323.2 kB / 0.5776 GB, free: 18 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001491/0.5656, allocations: 43.98 kB / 0.5776 GB, free: 17.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000651/0.5662, allocations: 51.95 kB / 0.5777 GB, free: 17.91 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00019/0.5664, allocations: 109 kB / 0.5778 GB, free: 17.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.112e-05/0.5665, allocations: 40 kB / 0.5778 GB, free: 17.76 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000636/0.5671, allocations: 0.6205 MB / 0.5784 GB, free: 17.13 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5672, allocations: 0 / 0.5784 GB, free: 17.13 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001777/0.5689, allocations: 488 kB / 0.5789 GB, free: 16.66 MB / 414.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.0001843/0.5691, allocations: 150.8 kB / 0.579 GB, free: 16.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003929/0.5731, allocations: 2.729 MB / 0.5817 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.877e-06/0.5731, allocations: 0.5625 kB / 0.5817 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001593/0.5747, allocations: 1.242 MB / 0.5829 GB, free: 12.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001557/0.5763, allocations: 329.8 kB / 0.5832 GB, free: 12.12 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006621/0.5829, allocations: 4.884 MB / 0.588 GB, free: 7.195 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009831/0.5839, allocations: 1.525 MB / 0.5895 GB, free: 5.637 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009663/0.5849, allocations: 395.6 kB / 0.5899 GB, free: 5.246 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002891/0.5852, allocations: 99.42 kB / 0.59 GB, free: 5.148 MB / 414.1 MB Notification: Performance of SimCode: time 1.572e-06/0.5852, allocations: 0 / 0.59 GB, free: 5.148 MB / 414.1 MB Notification: Performance of Templates: time 0.04106/0.6263, allocations: 25.8 MB / 0.6152 GB, free: 11.35 MB / 446.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)