Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.QCon_flow|heaPum1.QCon_flow|capErr.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor") translateModel(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.QCon_flow|heaPum1.QCon_flow|capErr.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008765/0.0008765, allocations: 92.78 kB / 16.02 MB, free: 80 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.001216/0.001217, allocations: 178.4 kB / 16.92 MB, free: 6.652 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.439/1.439, allocations: 223.3 MB / 241 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.864/2.864, allocations: 462.7 MB / 0.7371 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003584/0.0003584, allocations: 15.09 kB / 0.9034 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.337/0.3374, allocations: 159.6 MB / 1.059 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor): time 0.1399/0.4773, allocations: 127.9 MB / 1.184 GB, free: 4.605 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.03964/0.517, allocations: 25.01 MB / 1.209 GB, free: 11.54 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0057/0.5228, allocations: 127.2 kB / 1.209 GB, free: 11.41 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.005315/0.5281, allocations: 1.41 MB / 1.21 GB, free: 9.992 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.01399/0.5422, allocations: 4.177 MB / 1.214 GB, free: 5.805 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.00974/0.5519, allocations: 3.193 MB / 1.217 GB, free: 2.645 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.01527/0.5672, allocations: 11.43 MB / 1.229 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00549/0.5727, allocations: 2.523 MB / 1.231 GB, free: 4.605 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007159/0.5799, allocations: 2.753 MB / 1.234 GB, free: 1.84 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00482/0.5848, allocations: 2.298 MB / 1.236 GB, free: 15.53 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.00113/0.5859, allocations: 128 kB / 1.236 GB, free: 15.41 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007406/0.5934, allocations: 2.48 MB / 1.238 GB, free: 12.92 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001524/0.5949, allocations: 0.6182 MB / 1.239 GB, free: 12.3 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.004195/0.5992, allocations: 1.7 MB / 1.241 GB, free: 10.59 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.008362/0.6075, allocations: 4.832 MB / 1.245 GB, free: 5.742 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.6076, allocations: 4 kB / 1.245 GB, free: 5.738 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.886e-06/0.6076, allocations: 0 / 1.245 GB, free: 5.738 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0002086/0.6078, allocations: 0 / 1.245 GB, free: 5.738 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 577 * Number of variables: 577 Notification: Performance of Generate backend data structure: time 0.008685/0.6165, allocations: 3.363 MB / 1.249 GB, free: 2.273 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/0.6166, allocations: 12.03 kB / 1.249 GB, free: 2.262 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01073/0.6273, allocations: 1.37 MB / 1.25 GB, free: 0.8867 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.6174/1.245, allocations: 2.92 MB / 1.253 GB, free: 182.4 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000461/1.245, allocations: 253.2 kB / 1.253 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008168/1.246, allocations: 238 kB / 1.253 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009576/1.256, allocations: 3.172 MB / 1.256 GB, free: 181.8 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001029/1.256, allocations: 14.56 kB / 1.257 GB, free: 181.8 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005193/1.256, allocations: 100.6 kB / 1.257 GB, free: 181.8 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.665e-05/1.256, allocations: 68.5 kB / 1.257 GB, free: 181.8 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009676/1.266, allocations: 2.788 MB / 1.259 GB, free: 181.8 MB / 0.9981 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.02455/1.291, allocations: 13.27 MB / 1.272 GB, free: 175.5 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004813/1.296, allocations: 1.434 MB / 1.274 GB, free: 175 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003263/1.299, allocations: 0.9021 MB / 1.275 GB, free: 174.7 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001543/1.3, allocations: 1.78 MB / 1.276 GB, free: 172.8 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003881/1.304, allocations: 1.171 MB / 1.278 GB, free: 172.3 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=126): time 4.168e-06/1.304, allocations: 0 / 1.278 GB, free: 172.3 MB / 0.9981 GB Notification: Performance of matching and sorting (n=126): time 0.02299/1.327, allocations: 4.29 MB / 1.282 GB, free: 171.1 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001491/1.328, allocations: 0.5816 MB / 1.282 GB, free: 170.4 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004537/1.332, allocations: 2.508 MB / 1.285 GB, free: 169.5 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004714/1.333, allocations: 58.58 kB / 1.285 GB, free: 169.4 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001079/1.334, allocations: 1.341 MB / 1.286 GB, free: 168.4 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005379/1.334, allocations: 448.6 kB / 1.287 GB, free: 168 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002525/1.335, allocations: 149.9 kB / 1.287 GB, free: 168 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.88e-05/1.335, allocations: 304.4 kB / 1.287 GB, free: 167.7 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003848/1.338, allocations: 0.9719 MB / 1.288 GB, free: 167.2 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004012/1.342, allocations: 1.564 MB / 1.289 GB, free: 166 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006957/1.349, allocations: 2.226 MB / 1.292 GB, free: 164.6 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.042e-05/1.35, allocations: 3.438 kB / 1.292 GB, free: 164.6 MB / 0.9981 GB Notification: Performance of matching and sorting (n=223) (initialization): time 0.01225/1.362, allocations: 3.105 MB / 1.295 GB, free: 163 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002683/1.362, allocations: 474.3 kB / 1.295 GB, free: 162.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.429e-05/1.362, allocations: 15.16 kB / 1.295 GB, free: 162.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002607/1.365, allocations: 0.7288 MB / 1.296 GB, free: 162.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002964/1.368, allocations: 0.498 MB / 1.296 GB, free: 161.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002185/1.37, allocations: 1.805 MB / 1.298 GB, free: 160.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005161/1.375, allocations: 0.5053 MB / 1.299 GB, free: 160.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003765/1.375, allocations: 99.06 kB / 1.299 GB, free: 160.2 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/1.376, allocations: 8.219 kB / 1.299 GB, free: 160.2 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01036/1.386, allocations: 2.812 MB / 1.301 GB, free: 158.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.16e-05/1.386, allocations: 11 kB / 1.301 GB, free: 158.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002295/1.388, allocations: 0.7269 MB / 1.302 GB, free: 158.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002714/1.391, allocations: 0.4989 MB / 1.303 GB, free: 158.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001989/1.393, allocations: 1.8 MB / 1.304 GB, free: 156.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004592/1.398, allocations: 451.3 kB / 1.305 GB, free: 156.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003843/1.398, allocations: 106.9 kB / 1.305 GB, free: 156.6 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 10 (realToInteger.y,N.count,$PRE.N.count,N.T_start,$PRE.N.T_start,heaPum1.com.isOn,$PRE.heaPum1.com.isOn,heaPum.com.isOn,$PRE.heaPum.com.isOn,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (186): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,17), (2,17)} Notification: Performance of prepare postOptimizeDAE: time 0.002009/1.4, allocations: 0.7031 MB / 1.306 GB, free: 156.1 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008614/1.401, allocations: 278.5 kB / 1.306 GB, free: 155.9 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01081/1.412, allocations: 2.583 MB / 1.308 GB, free: 154.5 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-05/1.412, allocations: 19.88 kB / 1.308 GB, free: 154.5 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.401e-05/1.412, allocations: 7.5 kB / 1.308 GB, free: 154.5 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009759/1.422, allocations: 2.218 MB / 1.311 GB, free: 153.3 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01525/1.437, allocations: 6.522 MB / 1.317 GB, free: 148.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.769e-05/1.437, allocations: 8 kB / 1.317 GB, free: 148.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001768/1.439, allocations: 300.2 kB / 1.317 GB, free: 148.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00221/1.441, allocations: 0.7057 MB / 1.318 GB, free: 147.5 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001434/1.441, allocations: 51.94 kB / 1.318 GB, free: 147.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001884/1.443, allocations: 1.792 MB / 1.32 GB, free: 145.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.7e-06/1.443, allocations: 8 kB / 1.32 GB, free: 145.6 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01073/1.454, allocations: 3.582 MB / 1.323 GB, free: 141.9 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001726/1.456, allocations: 0.6534 MB / 1.324 GB, free: 141.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005387/1.456, allocations: 40 kB / 1.324 GB, free: 141.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00329/1.459, allocations: 281.7 kB / 1.324 GB, free: 140.9 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002148/1.46, allocations: 116.7 kB / 1.324 GB, free: 140.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001471/1.46, allocations: 75.92 kB / 1.324 GB, free: 140.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002651/1.462, allocations: 1.759 MB / 1.326 GB, free: 138.9 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.51e-07/1.462, allocations: 4 kB / 1.326 GB, free: 138.9 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004958/1.467, allocations: 1.672 MB / 1.328 GB, free: 137.3 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 4 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U,heaPum1.con.vol.dynBal.U,heaPum1.eva.vol.dynBal.U) * Number of discrete variables: 6 ($whenCondition1,heaPum.com.isOn,heaPum1.com.isOn,N.T_start,N.count,realToInteger.y) * Number of discrete states: 3 (N.count,heaPum1.com.isOn,heaPum.com.isOn) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,17), (2,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001711/1.469, allocations: 0.7995 MB / 1.328 GB, free: 136.6 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01123/1.48, allocations: 3.622 MB / 1.332 GB, free: 133 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.672e-05/1.48, allocations: 8.812 kB / 1.332 GB, free: 133 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003213/1.484, allocations: 0.9914 MB / 1.333 GB, free: 132 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01041/1.494, allocations: 1.428 MB / 1.334 GB, free: 130.6 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01267/1.507, allocations: 6.449 MB / 1.341 GB, free: 124 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009801/1.508, allocations: 1.7 MB / 1.342 GB, free: 122.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001113/1.509, allocations: 283.2 kB / 1.343 GB, free: 122 MB / 0.9981 GB Notification: Performance of SimCode: time 8.42e-07/1.509, allocations: 0 / 1.343 GB, free: 122 MB / 0.9981 GB Notification: Performance of Templates: time 0.08165/1.591, allocations: 80.51 MB / 1.421 GB, free: 41.85 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_ScalingFactor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_ScalingFactor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches