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.00135/0.001349, allocations: 111.8 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.001545/0.001545, allocations: 194.9 kB / 18 MB, free: 5.062 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.469/1.469, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.98 MB / 309.2 MB, free: 5.953 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.001301/0.001301, allocations: 71.91 kB / 431.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09631/0.09762, allocations: 55.24 MB / 487.1 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01167/0.1093, allocations: 10.6 MB / 497.7 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009255/0.1186, allocations: 6.273 MB / 0.4922 GB, free: 7.398 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007217/0.1194, allocations: 55.69 kB / 0.4922 GB, free: 7.344 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.01146/0.1308, allocations: 5.492 MB / 0.4976 GB, free: 1.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003276/0.1341, allocations: 1.07 MB / 0.4986 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002074/0.1362, allocations: 0.655 MB / 0.4993 GB, free: 112 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005278/0.1415, allocations: 3.208 MB / 0.5024 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001393/0.1429, allocations: 1.012 MB / 0.5034 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001361/0.1443, allocations: 1.078 MB / 0.5044 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001796/0.1461, allocations: 1.343 MB / 0.5058 GB, free: 9.426 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000226/0.1463, allocations: 144 kB / 0.5059 GB, free: 9.285 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008807/0.1472, allocations: 431.5 kB / 0.5063 GB, free: 8.863 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007435/0.148, allocations: 0.8417 MB / 0.5071 GB, free: 8.02 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000859/0.1489, allocations: 0.9252 MB / 0.508 GB, free: 7.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002441/0.1513, allocations: 2.27 MB / 0.5102 GB, free: 4.812 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1513, allocations: 0 / 0.5102 GB, free: 4.812 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1513, allocations: 4 kB / 0.5102 GB, free: 4.809 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.703e-05/0.1514, allocations: 3.938 kB / 0.5103 GB, free: 4.805 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.004071/0.1554, allocations: 2.056 MB / 0.5123 GB, free: 2.688 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.1555, allocations: 11.89 kB / 0.5123 GB, free: 2.676 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001495/0.157, allocations: 278.5 kB / 0.5125 GB, free: 2.402 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002377/0.1594, allocations: 1.21 MB / 0.5137 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.176e-05/0.1595, allocations: 102.6 kB / 0.5138 GB, free: 1.043 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004833/0.16, allocations: 227.7 kB / 0.514 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003086/0.1631, allocations: 2.103 MB / 0.5161 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.386e-05/0.1631, allocations: 11.88 kB / 0.5161 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001446/0.1633, allocations: 59.98 kB / 0.5162 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006157/0.1639, allocations: 190.6 kB / 0.5163 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002651/0.1666, allocations: 1.701 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.01035/0.1769, allocations: 7.91 MB / 0.5257 GB, free: 4.402 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00227/0.1792, allocations: 1.612 MB / 0.5273 GB, free: 2.711 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009464/0.1802, allocations: 0.6684 MB / 0.528 GB, free: 2.039 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.926e-05/0.1803, allocations: 24.97 kB / 0.528 GB, free: 2.016 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/0.1803, allocations: 51.5 kB / 0.528 GB, free: 1.957 MB / 414.1 MB Notification: Performance of pre-optimization done (n=127): time 2.775e-06/0.1803, allocations: 0 / 0.528 GB, free: 1.957 MB / 414.1 MB Notification: Performance of matching and sorting (n=138): time 0.2721/0.4524, allocations: 5.069 MB / 0.533 GB, free: 51.11 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/0.4525, allocations: 98.73 kB / 0.5331 GB, free: 51.02 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001953/0.4544, allocations: 0.9414 MB / 0.534 GB, free: 50.79 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001295/0.4546, allocations: 50.02 kB / 0.534 GB, free: 50.74 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006178/0.4552, allocations: 0.7164 MB / 0.5347 GB, free: 50.18 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005873/0.4558, allocations: 0.4988 MB / 0.5352 GB, free: 49.79 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006323/0.4564, allocations: 303.2 kB / 0.5355 GB, free: 49.66 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.945e-05/0.4565, allocations: 311 kB / 0.5358 GB, free: 49.36 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001772/0.4583, allocations: 0.7032 MB / 0.5365 GB, free: 49.14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001993/0.4603, allocations: 1.151 MB / 0.5376 GB, free: 48.39 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.01526/0.4756, allocations: 4.073 MB / 0.5416 GB, free: 46.91 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.909e-05/0.4756, allocations: 8.125 kB / 0.5416 GB, free: 46.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.01017/0.4858, allocations: 3.359 MB / 0.5449 GB, free: 45.63 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.907e-05/0.4859, allocations: 12.02 kB / 0.5449 GB, free: 45.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.363e-05/0.486, allocations: 13.03 kB / 0.5449 GB, free: 45.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004545/0.4905, allocations: 1.195 MB / 0.5461 GB, free: 45.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001764/0.4923, allocations: 294.5 kB / 0.5464 GB, free: 45.37 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01919/0.5115, allocations: 15.13 MB / 0.5611 GB, free: 35.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00125/0.5128, allocations: 80.17 kB / 0.5612 GB, free: 35.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002199/0.513, allocations: 75.7 kB / 0.5613 GB, free: 35.6 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.0009764/0.514, allocations: 0.4936 MB / 0.5618 GB, free: 35.1 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000355/0.5144, allocations: 138.4 kB / 0.5619 GB, free: 34.96 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002956/0.5173, allocations: 2.014 MB / 0.5639 GB, free: 32.88 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.998e-06/0.5174, allocations: 12 kB / 0.5639 GB, free: 32.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.799e-06/0.5174, allocations: 4 kB / 0.5639 GB, free: 32.86 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.5174, allocations: 7.969 kB / 0.5639 GB, free: 32.85 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005406/0.5228, allocations: 3.756 MB / 0.5676 GB, free: 28.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.735e-06/0.5228, allocations: 4 kB / 0.5676 GB, free: 28.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001502/0.5244, allocations: 328 kB / 0.5679 GB, free: 28.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004517/0.5248, allocations: 195.2 kB / 0.5681 GB, free: 28.42 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001205/0.5249, allocations: 50.48 kB / 0.5681 GB, free: 28.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00371/0.5287, allocations: 6.671 MB / 0.5746 GB, free: 21.16 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.5287, allocations: 4 kB / 0.5746 GB, free: 21.16 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003425/0.5321, allocations: 2.714 MB / 0.5773 GB, free: 18.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006507/0.5328, allocations: 325.6 kB / 0.5776 GB, free: 17.98 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002742/0.5331, allocations: 43.98 kB / 0.5776 GB, free: 17.94 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008277/0.5339, allocations: 63.94 kB / 0.5777 GB, free: 17.88 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002206/0.5341, allocations: 101.1 kB / 0.5778 GB, free: 17.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.59e-05/0.5342, allocations: 39.98 kB / 0.5778 GB, free: 17.74 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007541/0.535, allocations: 0.6205 MB / 0.5784 GB, free: 17.11 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.535, allocations: 4 kB / 0.5784 GB, free: 17.11 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001953/0.537, allocations: 484 kB / 0.5789 GB, free: 16.63 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.0002191/0.5372, allocations: 162.7 kB / 0.579 GB, free: 16.46 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003893/0.5411, allocations: 2.729 MB / 0.5817 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.5411, allocations: 0 / 0.5817 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001456/0.5426, allocations: 1.246 MB / 0.5829 GB, free: 12.4 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/0.5439, allocations: 310.7 kB / 0.5832 GB, free: 12.1 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006729/0.5507, allocations: 4.895 MB / 0.588 GB, free: 7.172 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001105/0.5518, allocations: 1.517 MB / 0.5895 GB, free: 5.621 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00103/0.5529, allocations: 399.6 kB / 0.5899 GB, free: 5.227 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003548/0.5532, allocations: 99.44 kB / 0.59 GB, free: 5.129 MB / 414.1 MB Notification: Performance of SimCode: time 8.72e-07/0.5532, allocations: 0 / 0.59 GB, free: 5.129 MB / 414.1 MB Notification: Performance of Templates: time 0.04348/0.5968, allocations: 25.8 MB / 0.6152 GB, free: 11.33 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)