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.001924/0.001924, allocations: 109.9 kB / 17.29 MB, free: 6.059 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.002094/0.002094, allocations: 197.3 kB / 18.21 MB, free: 5.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.545/2.545, allocations: 222.9 MB / 241.9 MB, free: 13.67 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.329/0.329, allocations: 38.03 MB / 330.1 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002352/0.002353, allocations: 60.78 kB / 398.9 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1495/0.1519, allocations: 58.06 MB / 457 MB, free: 8.379 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.02611/0.1781, allocations: 12.65 MB / 469.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02014/0.1982, allocations: 6.825 MB / 476.5 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002619/0.2009, allocations: 99.38 kB / 476.6 MB, free: 4.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01822/0.2192, allocations: 5.548 MB / 482.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005234/0.2244, allocations: 1 MB / 483.1 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003487/0.228, allocations: 0.5851 MB / 483.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008484/0.2365, allocations: 3.259 MB / 487 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003207/0.2397, allocations: 1.051 MB / 488 MB, free: 9.238 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003329/0.2431, allocations: 1.078 MB / 489.1 MB, free: 8.156 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004092/0.2472, allocations: 1.449 MB / 490.5 MB, free: 6.703 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00078/0.2481, allocations: 144 kB / 490.7 MB, free: 6.562 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001954/0.25, allocations: 423.5 kB / 491.1 MB, free: 6.148 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001714/0.2518, allocations: 0.8611 MB / 492 MB, free: 5.285 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00192/0.2537, allocations: 0.9252 MB / 492.9 MB, free: 4.355 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003478/0.2572, allocations: 1.735 MB / 494.6 MB, free: 2.617 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.006e-05/0.2573, allocations: 4 kB / 494.6 MB, free: 2.613 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2573, allocations: 0 / 494.6 MB, free: 2.613 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.613e-05/0.2574, allocations: 0 / 494.6 MB, free: 2.613 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.008438/0.2658, allocations: 2.06 MB / 496.7 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.4e-05/0.2659, allocations: 11.89 kB / 496.7 MB, free: 492 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003173/0.2691, allocations: 282.4 kB / 497 MB, free: 208 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005181/0.2743, allocations: 1.148 MB / 498.1 MB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002256/0.2746, allocations: 102.6 kB / 498.2 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00108/0.2757, allocations: 231.7 kB / 498.4 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005971/0.2817, allocations: 2.103 MB / 0.4888 GB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.434e-05/0.2818, allocations: 7.938 kB / 0.4888 GB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003009/0.2821, allocations: 63.92 kB / 0.4889 GB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001019/0.2832, allocations: 182.7 kB / 0.4891 GB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004856/0.288, allocations: 1.713 MB / 0.4907 GB, free: 10.51 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.01813/0.3062, allocations: 7.957 MB / 0.4985 GB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003938/0.3102, allocations: 1.623 MB / 0.5001 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2824/0.5926, allocations: 0.6597 MB / 0.5007 GB, free: 56.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001744/0.5928, allocations: 21.28 kB / 0.5007 GB, free: 56.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.667e-05/0.5929, allocations: 49.25 kB / 0.5008 GB, free: 56.51 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 7.094e-06/0.5929, allocations: 0.9688 kB / 0.5008 GB, free: 56.51 MB / 382.1 MB Notification: Performance of matching and sorting (n=138): time 0.01514/0.6081, allocations: 5.081 MB / 0.5058 GB, free: 54.64 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.558e-05/0.6082, allocations: 91.08 kB / 0.5058 GB, free: 54.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00194/0.6101, allocations: 0.9358 MB / 0.5068 GB, free: 54.17 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001863/0.6103, allocations: 48.14 kB / 0.5068 GB, free: 54.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006906/0.611, allocations: 0.7233 MB / 0.5075 GB, free: 53.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005908/0.6116, allocations: 0.4976 MB / 0.508 GB, free: 53.17 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007125/0.6124, allocations: 309 kB / 0.5083 GB, free: 53.03 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.854e-05/0.6124, allocations: 306 kB / 0.5086 GB, free: 52.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001944/0.6144, allocations: 0.7043 MB / 0.5093 GB, free: 52.51 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002213/0.6166, allocations: 1.158 MB / 0.5104 GB, free: 51.76 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.01681/0.6335, allocations: 4.095 MB / 0.5144 GB, free: 50.24 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.48e-05/0.6335, allocations: 2.875 kB / 0.5144 GB, free: 50.24 MB / 382.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.01143/0.645, allocations: 3.349 MB / 0.5177 GB, free: 48.97 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.768e-05/0.6451, allocations: 10.66 kB / 0.5177 GB, free: 48.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.063e-05/0.6451, allocations: 13.06 kB / 0.5177 GB, free: 48.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004883/0.65, allocations: 1.215 MB / 0.5189 GB, free: 48.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002136/0.6522, allocations: 298.9 kB / 0.5192 GB, free: 48.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02601/0.6782, allocations: 15.15 MB / 0.534 GB, free: 37.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002038/0.6803, allocations: 70.7 kB / 0.534 GB, free: 37.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002338/0.6805, allocations: 71.98 kB / 0.5341 GB, free: 37.29 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.00121/0.6818, allocations: 0.51 MB / 0.5346 GB, free: 36.78 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000347/0.6821, allocations: 130.3 kB / 0.5347 GB, free: 36.65 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01353/0.6957, allocations: 2.014 MB / 0.5367 GB, free: 34.56 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-05/0.6957, allocations: 15.94 kB / 0.5367 GB, free: 34.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.605e-05/0.6958, allocations: 4 kB / 0.5367 GB, free: 34.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-05/0.6958, allocations: 7.969 kB / 0.5367 GB, free: 34.53 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0309/0.7267, allocations: 3.764 MB / 0.5404 GB, free: 30.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.738e-05/0.7268, allocations: 9.812 kB / 0.5404 GB, free: 30.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00342/0.7302, allocations: 315.6 kB / 0.5407 GB, free: 30.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009727/0.7312, allocations: 191.3 kB / 0.5409 GB, free: 30.11 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000239/0.7315, allocations: 43.98 kB / 0.5409 GB, free: 30.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01085/0.7423, allocations: 6.69 MB / 0.5475 GB, free: 22.83 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/0.7424, allocations: 4 kB / 0.5475 GB, free: 22.83 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006098/0.7485, allocations: 2.713 MB / 0.5501 GB, free: 19.99 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00114/0.7497, allocations: 315.4 kB / 0.5504 GB, free: 19.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003669/0.7501, allocations: 43.98 kB / 0.5505 GB, free: 19.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02176/0.7719, allocations: 55.94 kB / 0.5505 GB, free: 19.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004996/0.7724, allocations: 101.1 kB / 0.5506 GB, free: 19.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001473/0.7726, allocations: 46.09 kB / 0.5506 GB, free: 19.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001319/0.7739, allocations: 0.6283 MB / 0.5513 GB, free: 18.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.583e-06/0.774, allocations: 0 / 0.5513 GB, free: 18.79 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003211/0.7772, allocations: 483.9 kB / 0.5517 GB, free: 18.32 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.0003184/0.7775, allocations: 152.8 kB / 0.5519 GB, free: 18.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.02284/0.8004, allocations: 3.507 MB / 0.5553 GB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.387e-05/0.8005, allocations: 0 / 0.5553 GB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002923/0.8034, allocations: 1.237 MB / 0.5565 GB, free: 13.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002573/0.806, allocations: 331.8 kB / 0.5568 GB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01134/0.8174, allocations: 5.695 MB / 0.5624 GB, free: 7.293 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005865/0.8233, allocations: 1.52 MB / 0.5639 GB, free: 5.746 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008807/0.8242, allocations: 111.4 kB / 0.564 GB, free: 5.637 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.8242, allocations: 0 / 0.564 GB, free: 5.637 MB / 382.1 MB Notification: Performance of Templates: time 0.1116/0.9359, allocations: 42.98 MB / 0.6059 GB, free: 10.66 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