Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|actMod|runSig.y|cooDowOpt.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|actMod|runSig.y|cooDowOpt.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.466/1.466, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.905/2.905, allocations: 472.7 MB / 0.7451 GB, free: 4.582 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 68.77 kB / 0.9121 GB, free: 33.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4042/0.4055, allocations: 159.9 MB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown): time 0.004553/0.4101, allocations: 2.78 MB / 1.071 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002856/0.4129, allocations: 1.681 MB / 1.073 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002121/0.4132, allocations: 4 kB / 1.073 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001035/0.4142, allocations: 318.9 kB / 1.073 GB, free: 5.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000438/0.4147, allocations: 183 kB / 1.073 GB, free: 5.391 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008524/0.4155, allocations: 374.7 kB / 1.073 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0007248/0.4163, allocations: 0.7185 MB / 1.074 GB, free: 4.309 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005579/0.4168, allocations: 471.8 kB / 1.075 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002686/0.4171, allocations: 267 kB / 1.075 GB, free: 3.582 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003127/0.4174, allocations: 294.6 kB / 1.075 GB, free: 3.293 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.46e-05/0.4175, allocations: 52 kB / 1.075 GB, free: 3.242 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002204/0.4178, allocations: 104 kB / 1.075 GB, free: 3.141 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001843/0.4179, allocations: 199.3 kB / 1.075 GB, free: 2.945 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002922/0.4182, allocations: 334 kB / 1.076 GB, free: 2.617 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007519/0.419, allocations: 0.7669 MB / 1.077 GB, free: 1.848 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.419, allocations: 0 / 1.077 GB, free: 1.848 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.543e-06/0.419, allocations: 7.938 kB / 1.077 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.067e-05/0.4191, allocations: 0 / 1.077 GB, free: 1.84 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001454/0.4205, allocations: 1.039 MB / 1.078 GB, free: 0.7422 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.4206, allocations: 8.031 kB / 1.078 GB, free: 0.7344 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001451/0.4207, allocations: 87.91 kB / 1.078 GB, free: 0.6484 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005932/0.4213, allocations: 488.8 kB / 1.078 GB, free: 136 kB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.481e-05/0.4214, allocations: 45.69 kB / 1.078 GB, free: 92 kB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.752e-05/0.4214, allocations: 63.92 kB / 1.078 GB, free: 28 kB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009315/0.4224, allocations: 0.6208 MB / 1.079 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.4224, allocations: 4 kB / 1.079 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.897e-05/0.4225, allocations: 20 kB / 1.079 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/0.4225, allocations: 16 kB / 1.079 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006588/0.4232, allocations: 379.5 kB / 1.079 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002499/0.4257, allocations: 2.592 MB / 1.082 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006795/0.4264, allocations: 376.5 kB / 1.082 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000262/0.4266, allocations: 181 kB / 1.082 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.524e-05/0.4267, allocations: 7.859 kB / 1.082 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004641/0.4271, allocations: 297.3 kB / 1.083 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=44): time 2.044e-06/0.4272, allocations: 0 / 1.083 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of matching and sorting (n=44): time 0.0009645/0.4281, allocations: 0.4987 MB / 1.083 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/0.4283, allocations: 222.2 kB / 1.083 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006593/0.4289, allocations: 0.6158 MB / 1.084 GB, free: 9.887 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.556e-05/0.429, allocations: 53.69 kB / 1.084 GB, free: 9.828 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002498/0.4293, allocations: 340.6 kB / 1.084 GB, free: 9.492 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.827e-05/0.4294, allocations: 110.6 kB / 1.084 GB, free: 9.383 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000183/0.4295, allocations: 158.2 kB / 1.084 GB, free: 9.219 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001439/0.4297, allocations: 378.7 kB / 1.085 GB, free: 8.84 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000263/0.43, allocations: 145.2 kB / 1.085 GB, free: 8.699 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003848/0.4304, allocations: 339 kB / 1.085 GB, free: 8.281 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005535/0.4309, allocations: 429 kB / 1.086 GB, free: 7.781 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.4309, allocations: 0 / 1.086 GB, free: 7.781 MB / 0.8419 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0008347/0.4318, allocations: 0.5416 MB / 1.086 GB, free: 7.234 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.4318, allocations: 10.34 kB / 1.086 GB, free: 7.227 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.4318, allocations: 4 kB / 1.086 GB, free: 7.223 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.597e-05/0.4319, allocations: 16 kB / 1.086 GB, free: 7.207 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002363/0.4321, allocations: 71.83 kB / 1.086 GB, free: 7.137 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.792e-05/0.4321, allocations: 15.88 kB / 1.086 GB, free: 7.121 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000241/0.4324, allocations: 67.36 kB / 1.086 GB, free: 7.055 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.589e-05/0.4324, allocations: 28 kB / 1.086 GB, free: 7.027 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 64 ($PRE.transition2.enableFire,$PRE.transition1.enableFire,$PRE.transition4.enableFire,$PRE.transition3.enableFire,$PRE.transition5.enableFire,$PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition1,transition2.t_start,$PRE.transition2.t_start,transition1.t_start,$PRE.transition1.t_start,transition4.t_start,$PRE.transition4.t_start,transition3.t_start,$PRE.transition3.t_start,transition5.t_start,$PRE.transition5.t_start,transition5.condition,stateGraphRoot.resume,stateGraphRoot.suspend,transition5.enableFire,timer.entryTime,$PRE.timer.entryTime,timer.passed,$PRE.timer.passed,transition3.enableFire,off.oldActive,$PRE.off.oldActive,off.newActive,$PRE.off.newActive,off.localActive,$PRE.off.localActive,off.active,transition4.enableFire,transition1.enableFire,transition2.enableFire,stateGraphRoot.activeSteps,norm.oldActive,$PRE.norm.oldActive,norm.newActive,$PRE.norm.newActive,norm.outPort[2].available,norm.inPort[2].occupied,norm.localActive,$PRE.norm.localActive,norm.active,cooDow.active,cooDow.oldActive,$PRE.cooDow.oldActive,cooDow.newActive,$PRE.cooDow.newActive,cooDow.outPort[2].available,cooDow.inPort[2].occupied,cooDow.localActive,$PRE.cooDow.localActive,and1.y,runSig.combiTimeTable.nextTimeEventScaled,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,runSig.y,actMod,$whenCondition4,$whenCondition3,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003142/0.4328, allocations: 279.8 kB / 1.087 GB, free: 6.746 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.207e-05/0.4329, allocations: 67.25 kB / 1.087 GB, free: 6.68 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006944/0.4336, allocations: 399.2 kB / 1.087 GB, free: 6.281 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.4336, allocations: 8 kB / 1.087 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.4336, allocations: 3.938 kB / 1.087 GB, free: 6.27 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.4336, allocations: 7.984 kB / 1.087 GB, free: 6.262 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001426/0.435, allocations: 1.071 MB / 1.088 GB, free: 5.129 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.4351, allocations: 7.938 kB / 1.088 GB, free: 5.121 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.4352, allocations: 31.91 kB / 1.088 GB, free: 5.09 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.181e-06/0.4352, allocations: 4 kB / 1.088 GB, free: 5.086 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.945e-05/0.4352, allocations: 8 kB / 1.088 GB, free: 5.078 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.542e-06/0.4352, allocations: 19.8 kB / 1.088 GB, free: 5.059 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.4352, allocations: 0 / 1.088 GB, free: 5.059 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006824/0.4359, allocations: 0.5214 MB / 1.089 GB, free: 4.5 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.986e-05/0.436, allocations: 148.1 kB / 1.089 GB, free: 4.336 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.579e-05/0.4361, allocations: 12 kB / 1.089 GB, free: 4.324 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000173/0.4363, allocations: 19.98 kB / 1.089 GB, free: 4.305 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.4364, allocations: 47.94 kB / 1.089 GB, free: 4.258 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-05/0.4365, allocations: 19.98 kB / 1.089 GB, free: 4.238 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004222/0.4369, allocations: 398.8 kB / 1.089 GB, free: 3.852 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4369, allocations: 0 / 1.089 GB, free: 3.852 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005365/0.4374, allocations: 143.6 kB / 1.09 GB, free: 3.711 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 42 (transition5.t_start,transition3.t_start,transition4.t_start,transition1.t_start,transition2.t_start,off.active,norm.active,cooDow.localActive,cooDow.active,$cse1,$cse2,$cse3,$cse4,$cse5,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition1,actMod,runSig.y,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled,and1.y,cooDow.inPort[2].occupied,cooDow.outPort[2].available,cooDow.newActive,cooDow.oldActive,norm.localActive,norm.inPort[2].occupied,norm.outPort[2].available,norm.newActive,norm.oldActive,stateGraphRoot.activeSteps,transition2.enableFire,transition1.enableFire,transition4.enableFire,off.localActive,off.newActive,off.oldActive,transition3.enableFire,timer.passed,timer.entryTime) * Number of discrete states: 11 (runSig.combiTimeTable.nextTimeEvent,cooDow.newActive,timer.entryTime,norm.newActive,off.newActive,runSig.combiTimeTable.nextTimeEventScaled,transition2.t_start,transition1.t_start,transition4.t_start,transition3.t_start,transition5.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001119/0.4386, allocations: 456 kB / 1.09 GB, free: 3.418 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008532/0.4394, allocations: 446.3 kB / 1.09 GB, free: 2.988 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4394, allocations: 0 / 1.09 GB, free: 2.988 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003187/0.4398, allocations: 204.1 kB / 1.091 GB, free: 2.789 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006063/0.4404, allocations: 97.55 kB / 1.091 GB, free: 2.695 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001768/0.4422, allocations: 1.155 MB / 1.092 GB, free: 1.496 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004869/0.4427, allocations: 0.926 MB / 1.093 GB, free: 0.5469 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002434/0.4429, allocations: 88.36 kB / 1.093 GB, free: 472 kB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.443, allocations: 43.42 kB / 1.093 GB, free: 428 kB / 0.8419 GB Notification: Performance of SimCode: time 5.01e-07/0.443, allocations: 0 / 1.093 GB, free: 428 kB / 0.8419 GB Notification: Performance of Templates: time 0.01175/0.4548, allocations: 5.566 MB / 1.098 GB, free: 10.89 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.makefile (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.sim & ./Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_CoolDown.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches