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.001102/0.001102, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001064/0.001064, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.331/1.331, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1712/0.1712, allocations: 38.04 MB / 330.4 MB, free: 8.824 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 69.86 kB / 399.5 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1305, allocations: 58.05 MB / 457.5 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01946/0.15, allocations: 10.6 MB / 468.1 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01446/0.1645, allocations: 6.231 MB / 474.4 MB, free: 7.168 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00165/0.1662, allocations: 51.69 kB / 474.4 MB, free: 7.117 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01637/0.1826, allocations: 5.508 MB / 479.9 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004079/0.1867, allocations: 1.077 MB / 481 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002752/0.1895, allocations: 0.6472 MB / 481.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006402/0.1959, allocations: 3.209 MB / 484.9 MB, free: 12.65 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002372/0.1983, allocations: 1.008 MB / 485.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002528/0.2009, allocations: 1.051 MB / 486.9 MB, free: 10.56 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002811/0.2037, allocations: 1.355 MB / 488.3 MB, free: 9.203 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006492/0.2044, allocations: 144 kB / 488.4 MB, free: 9.062 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001665/0.206, allocations: 419.5 kB / 488.8 MB, free: 8.652 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001579/0.2076, allocations: 0.8495 MB / 489.7 MB, free: 7.801 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00213/0.2098, allocations: 0.9174 MB / 490.6 MB, free: 6.879 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003466/0.2133, allocations: 2.235 MB / 492.8 MB, free: 4.637 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.865e-05/0.2133, allocations: 8 kB / 492.8 MB, free: 4.629 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.378e-06/0.2133, allocations: 0 / 492.8 MB, free: 4.629 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.895e-05/0.2134, allocations: 3.938 kB / 492.8 MB, free: 4.625 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.006494/0.2199, allocations: 2.052 MB / 494.9 MB, free: 2.512 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/0.22, allocations: 11.89 kB / 494.9 MB, free: 2.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002533/0.2225, allocations: 286.4 kB / 495.2 MB, free: 2.219 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003599/0.2262, allocations: 1.151 MB / 496.3 MB, free: 1.023 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001164/0.2263, allocations: 106.6 kB / 496.4 MB, free: 0.918 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008369/0.2271, allocations: 227.7 kB / 496.7 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004949/0.2321, allocations: 2.111 MB / 498.8 MB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.991e-05/0.2322, allocations: 4 kB / 498.8 MB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002231/0.2324, allocations: 55.98 kB / 498.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001028/0.2335, allocations: 182.7 kB / 499 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004462/0.238, allocations: 1.709 MB / 0.489 GB, free: 12.53 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.01693/0.2549, allocations: 7.957 MB / 0.4967 GB, free: 4.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003346/0.2583, allocations: 1.626 MB / 0.4983 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001508/0.2598, allocations: 0.6684 MB / 0.499 GB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001073/0.26, allocations: 24.97 kB / 0.499 GB, free: 1.824 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.3e-05/0.26, allocations: 43.56 kB / 0.4991 GB, free: 1.773 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 5.831e-06/0.26, allocations: 0 / 0.4991 GB, free: 1.773 MB / 382.1 MB Notification: Performance of matching and sorting (n=138): time 0.2754/0.5355, allocations: 5.072 MB / 0.504 GB, free: 56.03 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.886e-05/0.5355, allocations: 96.8 kB / 0.5041 GB, free: 55.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001437/0.537, allocations: 0.9385 MB / 0.505 GB, free: 55.55 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001044/0.5371, allocations: 53.64 kB / 0.5051 GB, free: 55.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004594/0.5376, allocations: 0.7139 MB / 0.5058 GB, free: 54.95 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004081/0.538, allocations: 0.5002 MB / 0.5063 GB, free: 54.55 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004534/0.5384, allocations: 310.2 kB / 0.5065 GB, free: 54.42 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.595e-05/0.5385, allocations: 302.2 kB / 0.5068 GB, free: 54.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0012/0.5397, allocations: 0.705 MB / 0.5075 GB, free: 53.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001377/0.5411, allocations: 1.158 MB / 0.5087 GB, free: 53.16 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.01048/0.5516, allocations: 4.094 MB / 0.5127 GB, free: 51.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.23e-05/0.5516, allocations: 3.938 kB / 0.5127 GB, free: 51.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.007176/0.5588, allocations: 3.357 MB / 0.5159 GB, free: 50.35 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.353e-05/0.5589, allocations: 11.45 kB / 0.5159 GB, free: 50.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.079e-05/0.5589, allocations: 13.25 kB / 0.516 GB, free: 50.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003049/0.562, allocations: 1.199 MB / 0.5171 GB, free: 50.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.5633, allocations: 299.8 kB / 0.5174 GB, free: 50.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01607/0.5794, allocations: 15.16 MB / 0.5322 GB, free: 39.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00143/0.5808, allocations: 75.95 kB / 0.5323 GB, free: 39.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001379/0.581, allocations: 71.98 kB / 0.5324 GB, free: 39.17 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.0008322/0.5818, allocations: 0.4922 MB / 0.5328 GB, free: 38.67 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002063/0.582, allocations: 130.4 kB / 0.533 GB, free: 38.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00264/0.5847, allocations: 2.014 MB / 0.5349 GB, free: 36.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.317e-06/0.5847, allocations: 12 kB / 0.5349 GB, free: 36.44 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.5847, allocations: 5.062 kB / 0.535 GB, free: 36.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.307e-05/0.5847, allocations: 7.969 kB / 0.535 GB, free: 36.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005043/0.5898, allocations: 3.762 MB / 0.5386 GB, free: 32.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/0.5898, allocations: 4 kB / 0.5386 GB, free: 32.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001478/0.5913, allocations: 328 kB / 0.5389 GB, free: 32.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004473/0.5917, allocations: 195 kB / 0.5391 GB, free: 32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.839e-05/0.5919, allocations: 47.97 kB / 0.5392 GB, free: 31.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003581/0.5954, allocations: 6.668 MB / 0.5457 GB, free: 24.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.5955, allocations: 4 kB / 0.5457 GB, free: 24.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003658/0.5991, allocations: 2.728 MB / 0.5484 GB, free: 21.88 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008017/0.6, allocations: 315.2 kB / 0.5487 GB, free: 21.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001886/0.6002, allocations: 43.98 kB / 0.5487 GB, free: 21.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007097/0.6009, allocations: 59.95 kB / 0.5488 GB, free: 21.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002091/0.6011, allocations: 105 kB / 0.5489 GB, free: 21.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.298e-05/0.6012, allocations: 44 kB / 0.5489 GB, free: 21.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006703/0.6019, allocations: 0.6205 MB / 0.5495 GB, free: 20.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.773e-06/0.6019, allocations: 0 / 0.5495 GB, free: 20.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001759/0.6036, allocations: 490.4 kB / 0.55 GB, free: 20.2 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.0001981/0.6038, allocations: 156 kB / 0.5501 GB, free: 20.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00501/0.6089, allocations: 3.483 MB / 0.5535 GB, free: 16.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/0.6089, allocations: 4 kB / 0.5535 GB, free: 16.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00149/0.6104, allocations: 1.245 MB / 0.5547 GB, free: 15.22 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001456/0.6119, allocations: 323.9 kB / 0.5551 GB, free: 14.92 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006967/0.6188, allocations: 5.051 MB / 0.56 GB, free: 9.844 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009738/0.6199, allocations: 1.513 MB / 0.5615 GB, free: 8.301 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004485/0.6203, allocations: 107.4 kB / 0.5616 GB, free: 8.195 MB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.6203, allocations: 3.5 kB / 0.5616 GB, free: 8.195 MB / 382.1 MB Notification: Performance of Templates: time 0.04865/0.669, allocations: 42.99 MB / 0.6035 GB, free: 13.21 MB / 430.1 MB 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