Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.ThermalZones.Detailed.Constructions.Examples.ExteriorWall.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.ThermalZones.Detailed.Constructions.Examples.ExteriorWall,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conExt.1..opa.T.1.|conExt.1..opa.T.2.|conExt.1..opa.T.3.|conExt.1..opa.T.4.|conExt.1..opa.T.5.|bouConExt.weaBus.TDryBul",fileNamePrefix="Buildings_10_Buildings.ThermalZones.Detailed.Constructions.Examples.ExteriorWall") translateModel(Buildings.ThermalZones.Detailed.Constructions.Examples.ExteriorWall,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conExt.1..opa.T.1.|conExt.1..opa.T.2.|conExt.1..opa.T.3.|conExt.1..opa.T.4.|conExt.1..opa.T.5.|bouConExt.weaBus.TDryBul",fileNamePrefix="Buildings_10_Buildings.ThermalZones.Detailed.Constructions.Examples.ExteriorWall") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002074/0.002074, allocations: 108 kB / 15.61 MB, free: 152 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.002757/0.002757, allocations: 196.3 kB / 16.53 MB, free: 6.664 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.531/1.531, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 3.013/3.013, allocations: 437.1 MB / 0.7104 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002263/0.002263, allocations: 67.89 kB / 0.8692 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7034/0.7057, allocations: 151.6 MB / 1.017 GB, free: 2.438 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.Detailed.Constructions.Examples.ExteriorWall): time 0.01366/0.7194, allocations: 9.877 MB / 1.027 GB, free: 8.512 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.196/0.9154, allocations: 154.7 MB / 1.178 GB, free: 13.21 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002729/0.9182, allocations: 43.75 kB / 1.178 GB, free: 13.17 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.003939/0.9222, allocations: 1.15 MB / 1.179 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.004695/0.9269, allocations: 1.15 MB / 1.18 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.004644/0.9315, allocations: 1.703 MB / 1.182 GB, free: 9.164 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.007804/0.9394, allocations: 4.844 MB / 1.187 GB, free: 4.305 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004034/0.9435, allocations: 1.795 MB / 1.188 GB, free: 2.473 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005179/0.9487, allocations: 1.952 MB / 1.19 GB, free: 0.5156 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004342/0.9531, allocations: 1.784 MB / 1.192 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.001549/0.9546, allocations: 380 kB / 1.192 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003548/0.9582, allocations: 1.147 MB / 1.194 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.001991/0.9602, allocations: 0.9893 MB / 1.195 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.004148/0.9644, allocations: 1.789 MB / 1.196 GB, free: 10.42 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.009341/0.9737, allocations: 5.457 MB / 1.202 GB, free: 4.945 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.9738, allocations: 0 / 1.202 GB, free: 4.945 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.964e-06/0.9738, allocations: 0 / 1.202 GB, free: 4.945 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 0.0001806/0.974, allocations: 0 / 1.202 GB, free: 4.945 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 502 * Number of variables: 502 Notification: Performance of Generate backend data structure: time 0.01211/0.9861, allocations: 4.107 MB / 1.206 GB, free: 0.7695 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.317e-05/0.9862, allocations: 8.031 kB / 1.206 GB, free: 0.7617 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00832/0.9945, allocations: 1.581 MB / 1.207 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005239/0.9998, allocations: 2.597 MB / 1.21 GB, free: 12.51 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002468/1, allocations: 189.6 kB / 1.21 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000472/1.001, allocations: 208 kB / 1.21 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007485/1.008, allocations: 3.319 MB / 1.213 GB, free: 8.738 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.56e-05/1.008, allocations: 0 / 1.213 GB, free: 8.738 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002416/1.008, allocations: 84 kB / 1.213 GB, free: 8.656 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.061e-05/1.008, allocations: 44 kB / 1.213 GB, free: 8.613 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009245/1.018, allocations: 3.96 MB / 1.217 GB, free: 4.648 MB / 0.9669 GB 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.02231/1.04, allocations: 10.53 MB / 1.228 GB, free: 9.758 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0081/1.048, allocations: 2.923 MB / 1.23 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003402/1.052, allocations: 1.379 MB / 1.232 GB, free: 5.445 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008835/1.052, allocations: 490.7 kB / 1.232 GB, free: 4.875 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004035/1.057, allocations: 1.618 MB / 1.234 GB, free: 3.234 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=166): time 5.52e-06/1.057, allocations: 0 / 1.234 GB, free: 3.234 MB / 0.9825 GB Notification: Performance of matching and sorting (n=166): time 0.01347/1.07, allocations: 4.746 MB / 1.239 GB, free: 14.39 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001623/1.07, allocations: 201.2 kB / 1.239 GB, free: 14.16 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007484/1.078, allocations: 3.173 MB / 1.242 GB, free: 10.96 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004077/1.078, allocations: 65.69 kB / 1.242 GB, free: 10.89 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001662/1.08, allocations: 1.131 MB / 1.243 GB, free: 9.746 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001001/1.081, allocations: 0.5391 MB / 1.243 GB, free: 9.199 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001309/1.082, allocations: 427.2 kB / 1.244 GB, free: 8.777 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000133/1.082, allocations: 301.1 kB / 1.244 GB, free: 8.48 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003451/1.086, allocations: 1.37 MB / 1.246 GB, free: 7.109 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003809/1.09, allocations: 1.78 MB / 1.247 GB, free: 5.184 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006869/1.096, allocations: 2.987 MB / 1.25 GB, free: 2.055 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-05/1.097, allocations: 4 kB / 1.25 GB, free: 2.051 MB / 0.9981 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.6072/1.704, allocations: 3.717 MB / 1.254 GB, free: 226.3 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.284e-05/1.704, allocations: 11 kB / 1.254 GB, free: 226.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.155e-05/1.704, allocations: 16.41 kB / 1.254 GB, free: 226.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0021/1.706, allocations: 394.1 kB / 1.254 GB, free: 226.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003222/1.709, allocations: 0.5459 MB / 1.255 GB, free: 226.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005002/1.714, allocations: 5.735 MB / 1.26 GB, free: 221.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003898/1.718, allocations: 486.2 kB / 1.261 GB, free: 221.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003405/1.719, allocations: 94.45 kB / 1.261 GB, free: 221.5 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 23 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,bouConExt.HDifTil[1].incAng.decAng.tNext,$PRE.bouConExt.HDifTil[1].incAng.decAng.tNext,bouConExt.HDirTil[1].incAng.decAng.tNext,$PRE.bouConExt.HDirTil[1].incAng.decAng.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 219 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.002319/1.721, allocations: 1.118 MB / 1.262 GB, free: 221 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009076/1.722, allocations: 247.2 kB / 1.262 GB, free: 221 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00965/1.731, allocations: 3.566 MB / 1.266 GB, free: 219.9 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.792e-05/1.731, allocations: 17.72 kB / 1.266 GB, free: 219.9 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.308e-06/1.731, allocations: 1.031 kB / 1.266 GB, free: 219.9 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.46e-05/1.732, allocations: 9.875 kB / 1.266 GB, free: 219.9 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005528/1.737, allocations: 2.968 MB / 1.269 GB, free: 218.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.216e-06/1.737, allocations: 3.938 kB / 1.269 GB, free: 218.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002267/1.739, allocations: 429.1 kB / 1.269 GB, free: 218.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001773/1.741, allocations: 371.4 kB / 1.269 GB, free: 218.6 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002621/1.741, allocations: 62.83 kB / 1.269 GB, free: 218.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004599/1.746, allocations: 5.735 MB / 1.275 GB, free: 213.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/1.746, allocations: 1.281 kB / 1.275 GB, free: 213.5 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01151/1.758, allocations: 4.915 MB / 1.28 GB, free: 211.7 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001997/1.76, allocations: 0.7918 MB / 1.281 GB, free: 211.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005946/1.76, allocations: 51.88 kB / 1.281 GB, free: 211.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002397/1.763, allocations: 307.4 kB / 1.281 GB, free: 211.2 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000348/1.763, allocations: 141.1 kB / 1.281 GB, free: 211.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001614/1.763, allocations: 70.48 kB / 1.281 GB, free: 211.2 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.003416/1.767, allocations: 2.25 MB / 1.283 GB, free: 210.4 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8.61e-07/1.767, allocations: 2.844 kB / 1.283 GB, free: 210.4 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003548/1.77, allocations: 0.8721 MB / 1.284 GB, free: 210.3 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (conExt[1].opa.lay[1].T[1],conExt[1].opa.lay[1].T[2],conExt[1].opa.lay[2].T[1],conExt[1].opa.lay[2].T[2],conExt[1].opa.lay[2].T[3]) * Number of discrete variables: 14 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,bouConExt.HDirTil[1].incAng.decAng.tNext,bouConExt.HDifTil[1].incAng.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 7 (bouConExt.HDirTil[1].incAng.decAng.tNext,bouConExt.HDifTil[1].incAng.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (172): * Single equations (assignments): 161 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002207/1.772, allocations: 0.6949 MB / 1.285 GB, free: 210 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01024/1.783, allocations: 4.87 MB / 1.29 GB, free: 208.2 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/1.783, allocations: 3.844 kB / 1.29 GB, free: 208.2 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003406/1.786, allocations: 1.834 MB / 1.291 GB, free: 207.1 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003829/1.79, allocations: 0.8461 MB / 1.292 GB, free: 206.7 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01035/1.8, allocations: 6.656 MB / 1.299 GB, free: 200.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001461/1.802, allocations: 2.353 MB / 1.301 GB, free: 198.1 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002919/1.805, allocations: 0.9008 MB / 1.302 GB, free: 197.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007555/1.806, allocations: 223.3 kB / 1.302 GB, free: 197 MB / 0.9981 GB Notification: Performance of SimCode: time 1.102e-06/1.806, allocations: 0 / 1.302 GB, free: 197 MB / 0.9981 GB Notification: Performance of Templates: time 0.06548/1.871, allocations: 48.71 MB / 1.35 GB, free: 148.8 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.ThermalZones.Detailed.Constructions.Examples.ExteriorWall.makefile (rm -f Buildings_10_Buildings.ThermalZones.Detailed.Constructions.Examples.ExteriorWall.pipe ; mkfifo Buildings_10_Buildings.ThermalZones.Detailed.Constructions.Examples.ExteriorWall.pipe ; head -c 1048576 < Buildings_10_Buildings.ThermalZones.Detailed.Constructions.Examples.ExteriorWall.pipe >> ../files/Buildings_10_Buildings.ThermalZones.Detailed.Constructions.Examples.ExteriorWall.sim & ./Buildings_10_Buildings.ThermalZones.Detailed.Constructions.Examples.ExteriorWall -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.ThermalZones.Detailed.Constructions.Examples.ExteriorWall.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.ThermalZones.Detailed.Constructions.Examples.ExteriorWall_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_ThermalZones_Detailed_Constructions_Examples_ExteriorWall.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.ThermalZones.Detailed.Constructions.Examples.ExteriorWall.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches