Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001468/0.001467, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001983/0.001983, allocations: 192 kB / 18.56 MB, free: 4.434 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.349/1.349, allocations: 222.9 MB / 242.2 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2103/0.2103, allocations: 44.17 MB / 336.6 MB, free: 2.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 65.34 kB / 408.4 MB, free: 27.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1351, allocations: 60.83 MB / 469.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D): time 0.01459/0.1498, allocations: 13.53 MB / 482.8 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01036/0.1602, allocations: 4.536 MB / 487.3 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003425/0.1637, allocations: 87.75 kB / 487.4 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008009/0.1717, allocations: 4.198 MB / 491.6 MB, free: 7.898 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006395/0.1782, allocations: 2.183 MB / 493.8 MB, free: 5.707 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002441/0.1807, allocations: 0.9204 MB / 494.7 MB, free: 4.785 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009013/0.1897, allocations: 6.03 MB / 0.489 GB, free: 14.74 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006253/0.196, allocations: 5.188 MB / 0.4941 GB, free: 9.492 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003766/0.1998, allocations: 2.122 MB / 0.4961 GB, free: 7.363 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004306/0.2041, allocations: 2.82 MB / 0.4989 GB, free: 4.535 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001353/0.2055, allocations: 472 kB / 0.4993 GB, free: 4.074 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002961/0.2085, allocations: 1.362 MB / 0.5007 GB, free: 2.711 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002608/0.2111, allocations: 2.529 MB / 0.5031 GB, free: 180 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2693/0.4805, allocations: 2.871 MB / 0.506 GB, free: 19.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01256/0.4931, allocations: 8.915 MB / 0.5147 GB, free: 18.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.824e-06/0.4931, allocations: 0.8125 kB / 0.5147 GB, free: 18.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.4931, allocations: 0 / 0.5147 GB, free: 18.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004261/0.4936, allocations: 1.094 kB / 0.5147 GB, free: 18.82 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1751 * Number of variables: 1751 Notification: Performance of Generate backend data structure: time 0.02252/0.5161, allocations: 6.13 MB / 0.5206 GB, free: 16.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/0.5162, allocations: 10.22 kB / 0.5207 GB, free: 16.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01379/0.53, allocations: 2.567 MB / 0.5232 GB, free: 16.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01251/0.5425, allocations: 3.803 MB / 0.5269 GB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003907/0.543, allocations: 296.9 kB / 0.5272 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00294/0.5459, allocations: 405.9 kB / 0.5275 GB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02738/0.5733, allocations: 11.47 MB / 0.5387 GB, free: 8.094 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001706/0.5735, allocations: 61.61 kB / 0.5388 GB, free: 8.078 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00059/0.5741, allocations: 187.4 kB / 0.539 GB, free: 7.984 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003095/0.5772, allocations: 2.082 MB / 0.541 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.018/0.5953, allocations: 9.694 MB / 0.5505 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06757/0.6629, allocations: 45.53 MB / 0.5949 GB, free: 1.156 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01065/0.6736, allocations: 4.144 MB / 0.599 GB, free: 12.88 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003525/0.6771, allocations: 2.347 MB / 0.6013 GB, free: 10.52 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01598/0.6931, allocations: 9.385 MB / 0.6105 GB, free: 1.02 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.713e-05/0.6932, allocations: 54.88 kB / 0.6105 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of pre-optimization done (n=169): time 4.97e-06/0.6932, allocations: 0 / 0.6105 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of matching and sorting (n=191): time 0.05167/0.7449, allocations: 19.37 MB / 0.6294 GB, free: 13.52 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.7451, allocations: 197.2 kB / 0.6296 GB, free: 13.29 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007422/0.7525, allocations: 4.705 MB / 0.6342 GB, free: 8.57 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005575/0.7531, allocations: 53.7 kB / 0.6343 GB, free: 8.512 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002438/0.7555, allocations: 3.592 MB / 0.6378 GB, free: 4.922 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001025/0.7565, allocations: 0.7465 MB / 0.6385 GB, free: 4.18 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001733/0.7583, allocations: 1.332 MB / 0.6398 GB, free: 2.84 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.956e-05/0.7584, allocations: 303.8 kB / 0.6401 GB, free: 2.543 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003218/0.7616, allocations: 2.379 MB / 0.6424 GB, free: 164 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005567/0.7672, allocations: 6.236 MB / 0.6485 GB, free: 8.082 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01062/0.7778, allocations: 9.266 MB / 0.6575 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.823e-05/0.7779, allocations: 36 kB / 0.6576 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of matching and sorting (n=850) (initialization): time 0.01714/0.7951, allocations: 9.713 MB / 0.6671 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.231e-05/0.7952, allocations: 63.98 kB / 0.6671 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001523/0.7954, allocations: 136 kB / 0.6673 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004271/0.7997, allocations: 1.603 MB / 0.6688 GB, free: 2.383 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004282/0.8039, allocations: 1.478 MB / 0.6703 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01262/0.8166, allocations: 10 MB / 0.68 GB, free: 6.617 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005916/0.8225, allocations: 363.5 kB / 0.6804 GB, free: 6.262 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001415/0.824, allocations: 384 kB / 0.6807 GB, free: 5.887 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 615 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (790): * Single equations (assignments): 785 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,31,77.8%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006271/0.8303, allocations: 2.485 MB / 0.6832 GB, free: 3.391 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001377/0.8317, allocations: 414.6 kB / 0.6836 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009296/0.841, allocations: 4.161 MB / 0.6876 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.236e-05/0.841, allocations: 24.09 kB / 0.6877 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.466e-05/0.8411, allocations: 4 kB / 0.6877 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.889e-05/0.8411, allocations: 15.95 kB / 0.6877 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02441/0.8655, allocations: 9.619 MB / 0.6971 GB, free: 5.098 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.947e-05/0.8656, allocations: 0 / 0.6971 GB, free: 5.098 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001567/0.8671, allocations: 287.5 kB / 0.6973 GB, free: 4.816 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00426/0.8714, allocations: 1.364 MB / 0.6987 GB, free: 3.445 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003082/0.8718, allocations: 28 kB / 0.6987 GB, free: 3.418 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3097/1.181, allocations: 9.391 MB / 0.7079 GB, free: 185.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/1.182, allocations: 4.016 kB / 0.7079 GB, free: 185.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01591/1.197, allocations: 6.872 MB / 0.7146 GB, free: 182.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002386/1.2, allocations: 454.8 kB / 0.715 GB, free: 182.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001083/1.201, allocations: 34.53 kB / 0.7151 GB, free: 182.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002424/1.203, allocations: 111.6 kB / 0.7152 GB, free: 182.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005746/1.204, allocations: 118.9 kB / 0.7153 GB, free: 182.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001882/1.204, allocations: 47.27 kB / 0.7153 GB, free: 182.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006931/1.211, allocations: 2.973 MB / 0.7182 GB, free: 181.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.102e-06/1.211, allocations: 1.312 kB / 0.7182 GB, free: 181.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008409/1.22, allocations: 1.193 MB / 0.7194 GB, free: 181.4 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 136 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,27,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007544/1.22, allocations: 167 kB / 0.7195 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01581/1.236, allocations: 6.917 MB / 0.7263 GB, free: 179.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.724e-06/1.236, allocations: 3.938 kB / 0.7263 GB, free: 179.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002903/1.239, allocations: 1.974 MB / 0.7282 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003746/1.243, allocations: 0.5473 MB / 0.7288 GB, free: 178 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02003/1.263, allocations: 11.2 MB / 0.7397 GB, free: 168.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003607/1.267, allocations: 3.857 MB / 0.7435 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004328/1.271, allocations: 1.992 MB / 0.7454 GB, free: 163.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006694/1.272, allocations: 267.4 kB / 0.7457 GB, free: 163.1 MB / 0.5294 GB Notification: Performance of SimCode: time 1.362e-06/1.272, allocations: 0 / 0.7457 GB, free: 163.1 MB / 0.5294 GB Notification: Performance of Templates: time 0.07326/1.345, allocations: 45.29 MB / 0.7899 GB, free: 118.1 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/Bevel1D/Bevel1D.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches