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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001082/0.001082, allocations: 112.5 kB / 16.51 MB, free: 6.707 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.001321/0.001321, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 222.9 MB / 241.1 MB, free: 13.66 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1672/0.1672, allocations: 38.03 MB / 329.3 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002242/0.002242, allocations: 70.11 kB / 398.1 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1124, allocations: 58.05 MB / 456.1 MB, free: 8.504 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01301/0.1254, allocations: 12.64 MB / 468.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01119/0.1366, allocations: 7.031 MB / 475.8 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001798/0.1385, allocations: 91.44 kB / 475.9 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01021/0.1487, allocations: 5.373 MB / 481.3 MB, free: 15.28 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002731/0.1514, allocations: 1.012 MB / 482.3 MB, free: 14.26 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001801/0.1533, allocations: 0.5773 MB / 482.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005523/0.1588, allocations: 4.726 MB / 487.6 MB, free: 8.945 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001494/0.1603, allocations: 0.9028 MB / 488.5 MB, free: 8.008 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00162/0.1619, allocations: 0.9102 MB / 489.4 MB, free: 7.094 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002148/0.1641, allocations: 1.421 MB / 490.8 MB, free: 5.668 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003969/0.1645, allocations: 96 kB / 490.9 MB, free: 5.574 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001049/0.1656, allocations: 379.5 kB / 491.3 MB, free: 5.203 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009613/0.1666, allocations: 0.8143 MB / 492.1 MB, free: 4.387 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001359/0.1679, allocations: 0.8705 MB / 493 MB, free: 3.512 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002316/0.1702, allocations: 2.18 MB / 495.2 MB, free: 1.324 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.1703, allocations: 4 kB / 495.2 MB, free: 1.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1703, allocations: 0 / 495.2 MB, free: 1.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.581e-05/0.1704, allocations: 0 / 495.2 MB, free: 1.32 MB / 366.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.004654/0.175, allocations: 2.06 MB / 497.2 MB, free: 15.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/0.1751, allocations: 8.031 kB / 497.2 MB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001549/0.1766, allocations: 278.5 kB / 497.5 MB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002221/0.1789, allocations: 1.155 MB / 498.7 MB, free: 13.72 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.451e-05/0.179, allocations: 102.6 kB / 498.8 MB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004836/0.1794, allocations: 223.7 kB / 499 MB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003265/0.1827, allocations: 2.107 MB / 0.4893 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.02e-05/0.1828, allocations: 11.92 kB / 0.4893 GB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001454/0.1829, allocations: 59.97 kB / 0.4894 GB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006479/0.1836, allocations: 178.7 kB / 0.4896 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002786/0.1864, allocations: 1.717 MB / 0.4913 GB, free: 9.223 MB / 382.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.01089/0.1973, allocations: 7.953 MB / 0.499 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1947/0.392, allocations: 1.622 MB / 0.5006 GB, free: 56.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001175/0.3932, allocations: 0.664 MB / 0.5013 GB, free: 56.37 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.529e-05/0.3933, allocations: 15.7 kB / 0.5013 GB, free: 56.37 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/0.3934, allocations: 51.16 kB / 0.5013 GB, free: 56.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.466e-06/0.3934, allocations: 0 / 0.5013 GB, free: 56.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=138): time 0.008864/0.4022, allocations: 5.087 MB / 0.5063 GB, free: 53.89 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.136e-05/0.4023, allocations: 92.72 kB / 0.5064 GB, free: 53.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001195/0.4035, allocations: 0.9311 MB / 0.5073 GB, free: 53.42 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.89e-05/0.4036, allocations: 50.89 kB / 0.5073 GB, free: 53.37 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003903/0.404, allocations: 0.7204 MB / 0.508 GB, free: 52.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003251/0.4043, allocations: 0.4989 MB / 0.5085 GB, free: 52.42 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000425/0.4048, allocations: 307.2 kB / 0.5088 GB, free: 52.28 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.468e-05/0.4048, allocations: 306.7 kB / 0.5091 GB, free: 51.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001109/0.4059, allocations: 0.7082 MB / 0.5098 GB, free: 51.76 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001328/0.4073, allocations: 1.156 MB / 0.5109 GB, free: 51.01 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.0103/0.4176, allocations: 4.077 MB / 0.5149 GB, free: 49.51 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.027e-05/0.4176, allocations: 2.844 kB / 0.5149 GB, free: 49.51 MB / 382.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006356/0.424, allocations: 3.354 MB / 0.5182 GB, free: 48.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.424, allocations: 11.72 kB / 0.5182 GB, free: 48.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.346e-05/0.424, allocations: 12.69 kB / 0.5182 GB, free: 48.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002914/0.4269, allocations: 1.199 MB / 0.5194 GB, free: 48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.428, allocations: 300 kB / 0.5197 GB, free: 47.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01397/0.442, allocations: 13.8 MB / 0.5331 GB, free: 37.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001088/0.4431, allocations: 76.89 kB / 0.5332 GB, free: 37.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001145/0.4432, allocations: 71.98 kB / 0.5333 GB, free: 37.54 MB / 382.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.0006737/0.4439, allocations: 0.4938 MB / 0.5338 GB, free: 37.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001704/0.4441, allocations: 134.4 kB / 0.5339 GB, free: 36.9 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00259/0.4467, allocations: 2.021 MB / 0.5359 GB, free: 34.81 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.895e-05/0.4467, allocations: 16 kB / 0.5359 GB, free: 34.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.4467, allocations: 4.875 kB / 0.5359 GB, free: 34.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.4467, allocations: 7.969 kB / 0.5359 GB, free: 34.78 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004809/0.4515, allocations: 3.763 MB / 0.5396 GB, free: 30.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.4516, allocations: 4 kB / 0.5396 GB, free: 30.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001525/0.4531, allocations: 332 kB / 0.5399 GB, free: 30.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004298/0.4535, allocations: 183.3 kB / 0.5401 GB, free: 30.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.352e-05/0.4536, allocations: 49.36 kB / 0.5401 GB, free: 30.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003359/0.457, allocations: 6.14 MB / 0.5461 GB, free: 23.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.457, allocations: 11.92 kB / 0.5461 GB, free: 23.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003286/0.4603, allocations: 2.712 MB / 0.5488 GB, free: 20.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004935/0.4608, allocations: 319.3 kB / 0.5491 GB, free: 20.47 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001763/0.461, allocations: 47.92 kB / 0.5491 GB, free: 20.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006928/0.4617, allocations: 55.95 kB / 0.5492 GB, free: 20.37 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002172/0.4619, allocations: 105 kB / 0.5493 GB, free: 20.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.774e-05/0.462, allocations: 36 kB / 0.5493 GB, free: 20.23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007544/0.4628, allocations: 0.6283 MB / 0.5499 GB, free: 19.6 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4628, allocations: 0 / 0.5499 GB, free: 19.6 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001608/0.4644, allocations: 480 kB / 0.5504 GB, free: 19.13 MB / 382.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.0001676/0.4646, allocations: 163 kB / 0.5505 GB, free: 18.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003664/0.4683, allocations: 2.666 MB / 0.5531 GB, free: 16.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4683, allocations: 4.5 kB / 0.5531 GB, free: 16.24 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001448/0.4697, allocations: 1.241 MB / 0.5544 GB, free: 14.95 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001387/0.4711, allocations: 308.5 kB / 0.5546 GB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006364/0.4775, allocations: 5.578 MB / 0.5601 GB, free: 9.055 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007938/0.4783, allocations: 1.517 MB / 0.5616 GB, free: 7.504 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001123/0.4795, allocations: 403.6 kB / 0.562 GB, free: 7.105 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003061/0.4798, allocations: 99.42 kB / 0.5621 GB, free: 7.008 MB / 382.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4798, allocations: 0 / 0.5621 GB, free: 7.008 MB / 382.1 MB Notification: Performance of Templates: time 0.0354/0.5152, allocations: 23.6 MB / 0.5851 GB, free: 15.59 MB / 414.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)