Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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) 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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 89.42 kB / 16.65 MB, free: 6.59 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.001119/0.001119, allocations: 181.6 kB / 17.56 MB, free: 6.203 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: 223.3 MB / 241.6 MB, free: 124 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002781/0.0002782, allocations: 8 kB / 301.5 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1018, allocations: 50.41 MB / 351.9 MB, free: 3.617 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002729/0.1046, allocations: 2.028 MB / 354 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.1064, allocations: 0.9055 MB / 354.9 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000225/0.1067, allocations: 7.938 kB / 354.9 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002203/0.1069, allocations: 39.7 kB / 354.9 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005288/0.1074, allocations: 107.5 kB / 355 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004198/0.1079, allocations: 155 kB / 355.2 MB, free: 368 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005057/0.1084, allocations: 406.7 kB / 355.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000176/0.1086, allocations: 56.58 kB / 355.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002751/0.1088, allocations: 159.4 kB / 355.8 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003571/0.1092, allocations: 199.3 kB / 356 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.997e-05/0.1093, allocations: 20 kB / 356 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002372/0.1095, allocations: 91.92 kB / 356.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00017/0.1097, allocations: 79.72 kB / 356.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002032/0.1099, allocations: 180.9 kB / 356.3 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005116/0.1105, allocations: 414.9 kB / 356.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.1105, allocations: 4 kB / 356.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.1105, allocations: 3.938 kB / 356.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.1105, allocations: 4 kB / 356.8 MB, free: 14.76 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001134/0.1116, allocations: 0.5772 MB / 357.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.1117, allocations: 8.031 kB / 357.3 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001453/0.1118, allocations: 66.72 kB / 357.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003516/0.1122, allocations: 48.55 kB / 357.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004468/0.1127, allocations: 299.7 kB / 357.8 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001272/0.1128, allocations: 92.52 kB / 357.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.283e-05/0.1129, allocations: 28.38 kB / 357.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007205/0.1136, allocations: 385.2 kB / 358.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.247e-05/0.1136, allocations: 4 kB / 358.3 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.602e-05/0.1137, allocations: 8 kB / 358.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/0.1137, allocations: 8 kB / 358.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009083/0.1146, allocations: 429.9 kB / 358.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002072/0.1167, allocations: 1.249 MB / 359.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006776/0.1174, allocations: 369.3 kB / 360.3 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003773/0.1178, allocations: 200.8 kB / 360.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.448e-05/0.1178, allocations: 8.141 kB / 360.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.393e-05/0.1178, allocations: 38.5 kB / 360.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.853e-06/0.1178, allocations: 0 / 360.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004837/0.1227, allocations: 1.973 MB / 362.5 MB, free: 8.688 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.807e-05/0.1228, allocations: 84.86 kB / 362.6 MB, free: 8.586 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002764/0.1231, allocations: 246.2 kB / 362.8 MB, free: 8.332 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.051e-05/0.1231, allocations: 33.7 kB / 362.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.644e-05/0.1232, allocations: 136.6 kB / 363 MB, free: 8.156 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/0.1233, allocations: 145.9 kB / 363.1 MB, free: 8.012 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.261e-05/0.1234, allocations: 41.7 kB / 363.2 MB, free: 7.965 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.1235, allocations: 338.8 kB / 363.5 MB, free: 7.625 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003524/0.1239, allocations: 180.8 kB / 363.7 MB, free: 7.449 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003848/0.1243, allocations: 229.9 kB / 363.9 MB, free: 7.207 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006825/0.125, allocations: 351.2 kB / 364.3 MB, free: 6.848 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.125, allocations: 0 / 364.3 MB, free: 6.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001081/0.1261, allocations: 0.5707 MB / 364.8 MB, free: 6.266 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.1261, allocations: 4 kB / 364.8 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.1261, allocations: 128 / 364.8 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007002/0.1268, allocations: 252.6 kB / 365.1 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002409/0.1271, allocations: 55.91 kB / 365.1 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003531/0.1306, allocations: 2.66 MB / 367.8 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002573/0.1309, allocations: 28.05 kB / 367.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.859e-05/0.1309, allocations: 19.98 kB / 367.8 MB, free: 3.121 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0001815/0.1311, allocations: 153.8 kB / 368 MB, free: 2.961 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.666e-05/0.1312, allocations: 27.66 kB / 368 MB, free: 2.934 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001024/0.1313, allocations: 42.98 kB / 368.1 MB, free: 2.891 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.199e-06/0.1313, allocations: 4 kB / 368.1 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.1313, allocations: 0 / 368.1 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.1313, allocations: 4 kB / 368.1 MB, free: 2.883 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001777/0.1331, allocations: 1.108 MB / 369.2 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.1331, allocations: 0 / 369.2 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002059/0.1333, allocations: 51.89 kB / 369.2 MB, free: 1.664 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006388/0.134, allocations: 236.7 kB / 369.5 MB, free: 1.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.509e-05/0.134, allocations: 12 kB / 369.5 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1816/0.3156, allocations: 2.598 MB / 372.1 MB, free: 23.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3157, allocations: 0 / 372.1 MB, free: 23.49 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001636/0.3173, allocations: 0.8308 MB / 372.9 MB, free: 23.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001539/0.3175, allocations: 140.1 kB / 373 MB, free: 23.26 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.245e-05/0.3175, allocations: 12.5 kB / 373 MB, free: 23.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002732/0.3178, allocations: 31.72 kB / 373.1 MB, free: 23.26 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002239/0.3181, allocations: 60.45 kB / 373.1 MB, free: 23.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.536e-05/0.3181, allocations: 16.22 kB / 373.2 MB, free: 23.26 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002568/0.3184, allocations: 177.2 kB / 373.3 MB, free: 23.19 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3184, allocations: 3.188 kB / 373.3 MB, free: 23.19 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007082/0.3191, allocations: 140.5 kB / 373.5 MB, free: 23.19 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00221/0.3213, allocations: 1.442 MB / 374.9 MB, free: 22.51 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001225/0.3225, allocations: 0.6316 MB / 375.5 MB, free: 22.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3226, allocations: 0 / 375.5 MB, free: 22.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007414/0.3233, allocations: 439.1 kB / 376 MB, free: 22.24 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004132/0.3237, allocations: 35.52 kB / 376 MB, free: 22.24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005018/0.3288, allocations: 3.617 MB / 379.6 MB, free: 20.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.329, allocations: 0.7767 MB / 380.4 MB, free: 19.4 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001981/0.3293, allocations: 55.55 kB / 380.5 MB, free: 19.4 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001379/0.3294, allocations: 82.14 kB / 380.5 MB, free: 19.34 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3294, allocations: 0 / 380.5 MB, free: 19.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02265/0.3521, allocations: 9 MB / 389.5 MB, free: 16.65 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001396/0.3522, allocations: 229.3 kB / 389.8 MB, free: 16.4 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.228/2.58, allocations: 1.781 kB / 389.8 MB, free: 16.4 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Inertia2.phi,Inertia2.w,gear.mode Variables in the result:Inertia1.J,Inertia1.a,Inertia1.flange_a.phi,Inertia1.flange_a.tau,Inertia1.flange_b.phi,Inertia1.flange_b.tau,Inertia1.phi,Inertia1.stateSelect,Inertia1.w,Inertia2.J,Inertia2.a,Inertia2.flange_a.phi,Inertia2.flange_a.tau,Inertia2.flange_b.phi,Inertia2.flange_b.tau,Inertia2.phi,Inertia2.stateSelect,Inertia2.w,der(Inertia1.w),der(Inertia2.phi),der(Inertia2.w),der(gear.phi_a),gear.a_a,gear.eta_mf1,gear.eta_mf2,gear.flange_a.phi,gear.flange_a.tau,gear.flange_b.phi,gear.flange_b.tau,gear.ideal,gear.interpolation_result[1,1],gear.interpolation_result[1,2],gear.interpolation_result[1,3],gear.interpolation_result[1,4],gear.locked,gear.lossPower,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.phi_a,gear.phi_b,gear.quadrant1,gear.quadrant1_p,gear.quadrant2,gear.quadrant2_p,gear.quadrant3,gear.quadrant3_m,gear.quadrant4,gear.quadrant4_m,gear.ratio,gear.sa,gear.startBackward,gear.startForward,gear.tauLoss,gear.tauLossMax,gear.tauLossMax_p,gear.tauLossMin,gear.tauLossMin_m,gear.tau_aPos,gear.tau_bf1,gear.tau_bf2,gear.tau_bf_a,gear.tau_eta,gear.tau_etaPos,gear.tau_eta_m,gear.tau_eta_p,gear.useHeatPort,gear.useSupport,gear.w_a,step.height,step.offset,step.startTime,step.y,step1.height,step1.offset,step1.startTime,step1.y,time,torque1.flange.phi,torque1.flange.tau,torque1.tau,torque1.useSupport,torque2.flange.phi,torque2.flange.tau,torque2.tau,torque2.useSupport