Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_etaPL.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Fluid.HeatPumps.Validation.Carnot_TCon_etaPL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.sta_a2.T|heaPum.sta_b2.T|heaPum.TSet|heaPum.QEva_flow|heaPum.QCon_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP|heaPum.etaPL",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_etaPL") translateModel(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_etaPL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.sta_a2.T|heaPum.sta_b2.T|heaPum.TSet|heaPum.QEva_flow|heaPum.QCon_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP|heaPum.etaPL",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_etaPL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007682/0.0007682, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004918/0.004918, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.368/1.368, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.384/2.384, allocations: 390.9 MB / 0.6663 GB, free: 2.324 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003546/0.0003546, allocations: 11.94 kB / 0.8159 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6816/0.682, allocations: 142.4 MB / 0.955 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_etaPL): time 0.06248/0.7445, allocations: 59.8 MB / 1.013 GB, free: 3.375 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01788/0.7624, allocations: 11.92 MB / 1.025 GB, free: 7.426 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00225/0.7647, allocations: 47.69 kB / 1.025 GB, free: 7.379 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002147/0.7669, allocations: 0.5555 MB / 1.026 GB, free: 6.82 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.005355/0.7722, allocations: 1.8 MB / 1.027 GB, free: 5.012 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.003085/0.7753, allocations: 1.078 MB / 1.028 GB, free: 3.941 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.00511/0.7805, allocations: 3.906 MB / 1.032 GB, free: 28 kB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001581/0.7821, allocations: 0.9039 MB / 1.033 GB, free: 15.09 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00255/0.7846, allocations: 1.112 MB / 1.034 GB, free: 13.97 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001519/0.7862, allocations: 0.8631 MB / 1.035 GB, free: 13.11 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.000118/0.7863, allocations: 40 kB / 1.035 GB, free: 13.07 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002888/0.7892, allocations: 1.337 MB / 1.036 GB, free: 11.73 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0003053/0.7895, allocations: 210.9 kB / 1.037 GB, free: 11.52 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0009348/0.7905, allocations: 0.6311 MB / 1.037 GB, free: 10.88 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.003326/0.7938, allocations: 2.212 MB / 1.039 GB, free: 8.66 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.7938, allocations: 0 / 1.039 GB, free: 8.66 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.783e-06/0.7938, allocations: 0 / 1.039 GB, free: 8.66 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.909e-05/0.7938, allocations: 0 / 1.039 GB, free: 8.66 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.002824/0.7967, allocations: 1.49 MB / 1.041 GB, free: 7.113 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.7967, allocations: 8.031 kB / 1.041 GB, free: 7.105 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002265/0.799, allocations: 474.8 kB / 1.041 GB, free: 6.641 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002098/0.8011, allocations: 1.127 MB / 1.042 GB, free: 5.457 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003925/0.8015, allocations: 125.9 kB / 1.043 GB, free: 5.336 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001327/0.8017, allocations: 88 kB / 1.043 GB, free: 5.25 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002235/0.8039, allocations: 1.001 MB / 1.044 GB, free: 4.203 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.8039, allocations: 3.938 kB / 1.044 GB, free: 4.199 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.456e-05/0.804, allocations: 36 kB / 1.044 GB, free: 4.164 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.959e-05/0.8041, allocations: 20 kB / 1.044 GB, free: 4.145 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002545/0.8066, allocations: 0.925 MB / 1.045 GB, free: 3.219 MB / 0.795 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.006823/0.8134, allocations: 4.895 MB / 1.049 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003669/0.8171, allocations: 0.894 MB / 1.05 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000812/0.818, allocations: 330.1 kB / 1.051 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007428/0.8187, allocations: 0.9102 MB / 1.051 GB, free: 11.62 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.183e-05/0.8188, allocations: 38.5 kB / 1.051 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=44): time 2.806e-06/0.8188, allocations: 8 kB / 1.051 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of matching and sorting (n=44): time 0.009317/0.8281, allocations: 2.161 MB / 1.054 GB, free: 9.379 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.232e-05/0.8282, allocations: 63.36 kB / 1.054 GB, free: 9.305 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001676/0.8298, allocations: 1.048 MB / 1.055 GB, free: 8.242 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 6.872e-05/0.8299, allocations: 37.7 kB / 1.055 GB, free: 8.199 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004149/0.8303, allocations: 0.5312 MB / 1.055 GB, free: 7.664 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/0.8305, allocations: 161.8 kB / 1.055 GB, free: 7.504 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.588e-05/0.8306, allocations: 45.64 kB / 1.055 GB, free: 7.453 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.8307, allocations: 330 kB / 1.056 GB, free: 7.125 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001065/0.8318, allocations: 320.9 kB / 1.056 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001105/0.8329, allocations: 0.5333 MB / 1.057 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001816/0.8347, allocations: 0.7365 MB / 1.057 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.8347, allocations: 3.938 kB / 1.057 GB, free: 5.395 MB / 0.8106 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00287/0.8376, allocations: 1.05 MB / 1.058 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001841/0.8378, allocations: 208.5 kB / 1.059 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.8378, allocations: 4 kB / 1.059 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001367/0.8392, allocations: 338.7 kB / 1.059 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005621/0.8398, allocations: 139.7 kB / 1.059 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001651/0.8414, allocations: 0.9386 MB / 1.06 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001333/0.8428, allocations: 187.3 kB / 1.06 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.968e-05/0.8428, allocations: 31.98 kB / 1.06 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 8.576e-06/0.8429, allocations: 4 kB / 1.06 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002767/0.8456, allocations: 0.914 MB / 1.061 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.8457, allocations: 4 kB / 1.061 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001239/0.8469, allocations: 331.1 kB / 1.061 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005378/0.8475, allocations: 131.8 kB / 1.061 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001466/0.8489, allocations: 0.9309 MB / 1.062 GB, free: 88 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001312/0.8503, allocations: 171.3 kB / 1.063 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.325e-05/0.8503, allocations: 35.92 kB / 1.063 GB, free: 15.88 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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 {(1,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0005639/0.8509, allocations: 345.9 kB / 1.063 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001729/0.8511, allocations: 106.7 kB / 1.063 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004192/0.8553, allocations: 1.213 MB / 1.064 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-05/0.8553, allocations: 4 kB / 1.064 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.8553, allocations: 3.938 kB / 1.064 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.884e-06/0.8553, allocations: 3.984 kB / 1.064 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00588/0.8612, allocations: 2.3 MB / 1.066 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.8612, allocations: 0 / 1.066 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003141/0.8616, allocations: 71.89 kB / 1.066 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001189/0.8628, allocations: 326.4 kB / 1.067 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.068e-05/0.8628, allocations: 27.92 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001577/0.8644, allocations: 0.9621 MB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.8644, allocations: 8.062 kB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003945/0.8684, allocations: 1.286 MB / 1.069 GB, free: 9.059 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005106/0.8689, allocations: 279.5 kB / 1.069 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001873/0.8691, allocations: 15.98 kB / 1.069 GB, free: 8.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.8701, allocations: 111.8 kB / 1.069 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.8702, allocations: 47.77 kB / 1.069 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.147e-05/0.8703, allocations: 19.98 kB / 1.069 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001502/0.8718, allocations: 0.7467 MB / 1.07 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of sort global known variables: time 5.81e-07/0.8718, allocations: 3.938 kB / 1.07 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001799/0.8736, allocations: 0.5613 MB / 1.071 GB, free: 7.254 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * 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 (34): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(1,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008777/0.8745, allocations: 392.7 kB / 1.071 GB, free: 6.867 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.003485/0.878, allocations: 1.172 MB / 1.072 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.878, allocations: 3.938 kB / 1.072 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0009748/0.879, allocations: 374.2 kB / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003007/0.882, allocations: 0.5005 MB / 1.073 GB, free: 4.832 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005722/0.8878, allocations: 2.536 MB / 1.076 GB, free: 2.238 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006307/0.8884, allocations: 1.058 MB / 1.077 GB, free: 1.152 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0009561/0.8894, allocations: 223.9 kB / 1.077 GB, free: 0.9336 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002046/0.8896, allocations: 79.42 kB / 1.077 GB, free: 0.8555 MB / 0.8262 GB Notification: Performance of SimCode: time 1.272e-06/0.8896, allocations: 0 / 1.077 GB, free: 0.8555 MB / 0.8262 GB Notification: Performance of Templates: time 0.04097/0.9306, allocations: 24.08 MB / 1.1 GB, free: 9.047 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_etaPL.makefile (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_etaPL.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_etaPL.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_etaPL.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_etaPL.sim & ./Buildings_9_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_etaPL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_etaPL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_etaPL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatPumps_Validation_Carnot_TCon_etaPL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_etaPL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches