Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG") translateModel(PowerSystems.Examples.Wind.WindTurbine_DFIG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_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.001592/0.001592, allocations: 109.8 kB / 17.74 MB, free: 5.359 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.001924/0.001924, allocations: 181.5 kB / 18.66 MB, free: 4.445 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.4/1.4, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1777/0.1777, allocations: 38.04 MB / 330.6 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001742/0.001742, allocations: 63.91 kB / 458.8 MB, free: 6.867 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.3457, allocations: 58.05 MB / 0.5048 GB, free: 7.734 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01076/0.3565, allocations: 10.61 MB / 0.5151 GB, free: 320 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01091/0.3674, allocations: 6.234 MB / 0.5212 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001232/0.3687, allocations: 48.34 kB / 0.5212 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01251/0.3812, allocations: 5.518 MB / 0.5266 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003414/0.3847, allocations: 1.073 MB / 0.5277 GB, free: 9.555 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002017/0.3867, allocations: 0.6453 MB / 0.5283 GB, free: 9.262 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005088/0.3918, allocations: 3.212 MB / 0.5314 GB, free: 7.789 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001538/0.3933, allocations: 1.009 MB / 0.5324 GB, free: 7.207 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002071/0.3954, allocations: 1.078 MB / 0.5335 GB, free: 6.586 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002053/0.3975, allocations: 1.344 MB / 0.5348 GB, free: 5.805 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000296/0.3978, allocations: 143.2 kB / 0.5349 GB, free: 5.805 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001118/0.3989, allocations: 430.5 kB / 0.5353 GB, free: 5.652 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009259/0.3999, allocations: 0.8498 MB / 0.5362 GB, free: 5.109 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001176/0.4011, allocations: 0.9243 MB / 0.5371 GB, free: 4.488 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002862/0.4039, allocations: 2.263 MB / 0.5393 GB, free: 2.992 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.404, allocations: 0 / 0.5393 GB, free: 2.992 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.404, allocations: 0 / 0.5393 GB, free: 2.992 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.447e-05/0.404, allocations: 0 / 0.5393 GB, free: 2.992 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.00465/0.4087, allocations: 2.065 MB / 0.5413 GB, free: 1.523 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/0.4087, allocations: 13.48 kB / 0.5413 GB, free: 1.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001678/0.4104, allocations: 277.3 kB / 0.5416 GB, free: 1.387 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002541/0.413, allocations: 1.209 MB / 0.5428 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.944e-05/0.413, allocations: 104.2 kB / 0.5429 GB, free: 492 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005303/0.4136, allocations: 221.8 kB / 0.5431 GB, free: 416 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003579/0.4172, allocations: 2.104 MB / 0.5451 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.1e-05/0.4172, allocations: 11.91 kB / 0.5451 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001644/0.4174, allocations: 59.97 kB / 0.5452 GB, free: 14.99 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006877/0.4181, allocations: 186.6 kB / 0.5454 GB, free: 14.8 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002795/0.4209, allocations: 1.709 MB / 0.547 GB, free: 13.09 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.01098/0.4319, allocations: 7.895 MB / 0.5548 GB, free: 4.855 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00229/0.4342, allocations: 1.627 MB / 0.5563 GB, free: 3.141 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009983/0.4352, allocations: 0.6605 MB / 0.557 GB, free: 2.477 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.013e-05/0.4353, allocations: 24.98 kB / 0.557 GB, free: 2.453 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.622e-05/0.4354, allocations: 47.55 kB / 0.5571 GB, free: 2.395 MB / 414.1 MB Notification: Performance of pre-optimization done (n=127): time 4.589e-06/0.4354, allocations: 4 kB / 0.5571 GB, free: 2.391 MB / 414.1 MB Notification: Performance of matching and sorting (n=138): time 0.009306/0.4447, allocations: 5.076 MB / 0.562 GB, free: 13.12 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.398e-05/0.4448, allocations: 94.36 kB / 0.5621 GB, free: 13.01 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001173/0.446, allocations: 0.9426 MB / 0.563 GB, free: 12.05 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000102/0.4461, allocations: 49.7 kB / 0.5631 GB, free: 12 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000479/0.4466, allocations: 0.7172 MB / 0.5638 GB, free: 11.27 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004176/0.447, allocations: 0.5007 MB / 0.5643 GB, free: 10.76 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004232/0.4474, allocations: 299.3 kB / 0.5645 GB, free: 10.46 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.491e-05/0.4475, allocations: 305.1 kB / 0.5648 GB, free: 10.16 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00109/0.4486, allocations: 0.7066 MB / 0.5655 GB, free: 9.449 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001399/0.45, allocations: 1.151 MB / 0.5667 GB, free: 8.113 MB / 430.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.00949/0.4595, allocations: 4.082 MB / 0.5706 GB, free: 3.863 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.359e-05/0.4596, allocations: 4 kB / 0.5706 GB, free: 3.859 MB / 430.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006575/0.4661, allocations: 3.358 MB / 0.5739 GB, free: 468 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.789e-05/0.4662, allocations: 16.66 kB / 0.5739 GB, free: 452 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.516e-05/0.4662, allocations: 15.94 kB / 0.574 GB, free: 436 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002805/0.469, allocations: 1.201 MB / 0.5751 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001188/0.4702, allocations: 295.5 kB / 0.5754 GB, free: 14.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01896/0.4892, allocations: 15.13 MB / 0.5902 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001479/0.4907, allocations: 75.89 kB / 0.5903 GB, free: 15.14 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003266/0.4911, allocations: 75.92 kB / 0.5903 GB, free: 15.06 MB / 462.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.001171/0.4922, allocations: 0.491 MB / 0.5908 GB, free: 14.56 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003166/0.4926, allocations: 130.4 kB / 0.5909 GB, free: 14.43 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003299/0.4959, allocations: 2.022 MB / 0.5929 GB, free: 12.33 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-05/0.4959, allocations: 16 kB / 0.5929 GB, free: 12.32 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.4959, allocations: 0 / 0.5929 GB, free: 12.32 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.507e-05/0.4959, allocations: 7.969 kB / 0.5929 GB, free: 12.31 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006208/0.5022, allocations: 3.748 MB / 0.5966 GB, free: 8.383 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.458e-06/0.5022, allocations: 11.92 kB / 0.5966 GB, free: 8.371 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001609/0.5038, allocations: 323.6 kB / 0.5969 GB, free: 8.055 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004855/0.5043, allocations: 199.2 kB / 0.5971 GB, free: 7.848 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001075/0.5044, allocations: 47.97 kB / 0.5971 GB, free: 7.801 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005278/0.5097, allocations: 6.664 MB / 0.6037 GB, free: 0.5742 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.835e-06/0.5097, allocations: 11.92 kB / 0.6037 GB, free: 0.5625 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004149/0.5139, allocations: 2.713 MB / 0.6063 GB, free: 13.72 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007536/0.5147, allocations: 327.2 kB / 0.6066 GB, free: 13.38 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003398/0.515, allocations: 47.98 kB / 0.6067 GB, free: 13.34 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009184/0.5159, allocations: 55.94 kB / 0.6067 GB, free: 13.28 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002334/0.5162, allocations: 101.1 kB / 0.6068 GB, free: 13.18 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.623e-05/0.5163, allocations: 40 kB / 0.6069 GB, free: 13.14 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001035/0.5173, allocations: 0.6244 MB / 0.6075 GB, free: 12.51 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5173, allocations: 0 / 0.6075 GB, free: 12.51 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002181/0.5195, allocations: 484 kB / 0.6079 GB, free: 12.04 MB / 478.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.0003157/0.5198, allocations: 155 kB / 0.6081 GB, free: 11.88 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00522/0.5251, allocations: 2.738 MB / 0.6108 GB, free: 9.086 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.307e-06/0.5251, allocations: 0 / 0.6108 GB, free: 9.086 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002127/0.5272, allocations: 1.238 MB / 0.612 GB, free: 7.801 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001945/0.5292, allocations: 317.8 kB / 0.6123 GB, free: 7.492 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008469/0.5377, allocations: 5.004 MB / 0.6172 GB, free: 2.406 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001618/0.5393, allocations: 1.521 MB / 0.6186 GB, free: 0.8555 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004964/0.5398, allocations: 103.4 kB / 0.6187 GB, free: 0.7539 MB / 478.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5399, allocations: 4 kB / 0.6187 GB, free: 0.75 MB / 478.1 MB Notification: Performance of Templates: time 0.0539/0.5938, allocations: 43.15 MB / 0.6609 GB, free: 5.602 MB / 0.5137 GB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.sim & ./PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Wind.WindTurbine_DFIG.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,meter.i[1],meter.i[2],meter.i[3],meter.p[1],meter.p[2],meter.p[3],meter.v[1],meter.v[2],meter.v[3] Variables in the result:meter.i[1],meter.i[2],meter.i[3],meter.p[1],meter.p[2],meter.p[3],meter.v[1],meter.v[2],meter.v[3],time