Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.Humidifiers.Validation.SteamHumidifier_X_dynamic.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Humidifiers.Validation.SteamHumidifier_X_dynamic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|XSet.y.1.|senHum.X|hum.sta_a.T|hum.sta_b.T|hum.mWat_flow",fileNamePrefix="Buildings_11_Buildings.Fluid.Humidifiers.Validation.SteamHumidifier_X_dynamic") translateModel(Buildings.Fluid.Humidifiers.Validation.SteamHumidifier_X_dynamic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|XSet.y.1.|senHum.X|hum.sta_a.T|hum.sta_b.T|hum.mWat_flow",fileNamePrefix="Buildings_11_Buildings.Fluid.Humidifiers.Validation.SteamHumidifier_X_dynamic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001745/0.001745, allocations: 108.1 kB / 15.99 MB, free: 6.348 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.001829/0.001829, allocations: 191.3 kB / 16.91 MB, free: 6.188 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.406/1.406, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.676/2.676, allocations: 469.8 MB / 0.7427 GB, free: 3.668 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00187/0.00187, allocations: 64.27 kB / 0.9087 GB, free: 14.24 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3253, allocations: 159.1 MB / 1.064 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Humidifiers.Validation.SteamHumidifier_X_dynamic): time 0.7932/1.119, allocations: 196.4 MB / 1.256 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.007201/1.126, allocations: 3.719 MB / 1.26 GB, free: 0.9062 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008749/1.127, allocations: 23.81 kB / 1.26 GB, free: 0.8828 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001264/1.128, allocations: 390.2 kB / 1.26 GB, free: 0.5 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.003371/1.131, allocations: 1.171 MB / 1.261 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.002148/1.134, allocations: 0.6713 MB / 1.262 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001955/1.136, allocations: 1.368 MB / 1.263 GB, free: 13.29 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007463/1.136, allocations: 494.5 kB / 1.264 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002867/1.139, allocations: 0.98 MB / 1.265 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000727/1.14, allocations: 498 kB / 1.265 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 7.587e-05/1.14, allocations: 44 kB / 1.265 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002446/1.142, allocations: 1.22 MB / 1.266 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002524/1.143, allocations: 203.4 kB / 1.266 GB, free: 9.879 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.000405/1.143, allocations: 326.3 kB / 1.267 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001485/1.145, allocations: 0.8771 MB / 1.268 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/1.145, allocations: 0 / 1.268 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.194e-06/1.145, allocations: 3.938 kB / 1.268 GB, free: 8.676 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.136e-05/1.145, allocations: 0 / 1.268 GB, free: 8.676 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.00228/1.147, allocations: 1.049 MB / 1.269 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/1.147, allocations: 8.031 kB / 1.269 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001291/1.148, allocations: 218.9 kB / 1.269 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008306/1.149, allocations: 0.5381 MB / 1.269 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.66e-05/1.149, allocations: 36.94 kB / 1.269 GB, free: 6.738 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.714e-05/1.149, allocations: 40 kB / 1.269 GB, free: 6.699 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001118/1.15, allocations: 0.5513 MB / 1.27 GB, free: 6.129 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/1.15, allocations: 0 / 1.27 GB, free: 6.129 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.001e-05/1.151, allocations: 16 kB / 1.27 GB, free: 6.113 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.01e-05/1.151, allocations: 17 kB / 1.27 GB, free: 6.098 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00117/1.152, allocations: 0.4957 MB / 1.271 GB, free: 5.602 MB / 0.9825 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.003329/1.155, allocations: 2.23 MB / 1.273 GB, free: 3.203 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007019/1.156, allocations: 359.9 kB / 1.273 GB, free: 2.824 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002469/1.156, allocations: 156.7 kB / 1.273 GB, free: 2.668 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001429/1.157, allocations: 0.8377 MB / 1.274 GB, free: 1.664 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003652/1.158, allocations: 193 kB / 1.274 GB, free: 1.457 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=28): time 2.144e-06/1.158, allocations: 3.938 kB / 1.274 GB, free: 1.453 MB / 0.9825 GB Notification: Performance of matching and sorting (n=28): time 0.001085/1.159, allocations: 458.6 kB / 1.275 GB, free: 1 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.525e-05/1.159, allocations: 89.03 kB / 1.275 GB, free: 0.8945 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008859/1.16, allocations: 0.6486 MB / 1.275 GB, free: 240 kB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.078e-05/1.16, allocations: 33.7 kB / 1.275 GB, free: 200 kB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.000284/1.16, allocations: 323.8 kB / 1.276 GB, free: 15.88 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.038e-05/1.16, allocations: 90.66 kB / 1.276 GB, free: 15.79 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001581/1.161, allocations: 90.02 kB / 1.276 GB, free: 15.69 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001816/1.161, allocations: 366.8 kB / 1.276 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003719/1.161, allocations: 154.5 kB / 1.276 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000501/1.162, allocations: 286.3 kB / 1.277 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000699/1.162, allocations: 418.4 kB / 1.277 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/1.162, allocations: 0 / 1.277 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001045/1.163, allocations: 0.4931 MB / 1.278 GB, free: 13.87 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/1.163, allocations: 8.031 kB / 1.278 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/1.163, allocations: 8 kB / 1.278 GB, free: 13.85 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/1.163, allocations: 4 kB / 1.278 GB, free: 13.85 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004468/1.164, allocations: 99.81 kB / 1.278 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.376e-05/1.164, allocations: 4 kB / 1.278 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006569/1.165, allocations: 91.42 kB / 1.278 GB, free: 13.66 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.929e-05/1.165, allocations: 24.48 kB / 1.278 GB, free: 13.63 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005711/1.165, allocations: 305.9 kB / 1.278 GB, free: 13.33 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004932/1.166, allocations: 291.5 kB / 1.278 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006954/1.166, allocations: 413.5 kB / 1.279 GB, free: 12.52 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.014e-06/1.166, allocations: 0 / 1.279 GB, free: 12.52 MB / 0.9981 GB Notification: Performance of matching and sorting (n=47) (initialization_lambda0): time 0.001037/1.167, allocations: 497.9 kB / 1.279 GB, free: 12.03 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/1.168, allocations: 8 kB / 1.279 GB, free: 12.02 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/1.168, allocations: 4 kB / 1.279 GB, free: 12.02 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.306e-06/1.168, allocations: 8 kB / 1.279 GB, free: 12.01 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004176/1.168, allocations: 96.5 kB / 1.279 GB, free: 11.92 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/1.168, allocations: 8 kB / 1.279 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006313/1.169, allocations: 71.8 kB / 1.279 GB, free: 11.84 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.146e-05/1.169, allocations: 27.98 kB / 1.279 GB, free: 11.81 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.XSet.nextTimeEvent,$whenCondition1,XSet.nextTimeEventScaled,$PRE.XSet.nextTimeEventScaled,XSet.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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.0002195/1.169, allocations: 208.1 kB / 1.28 GB, free: 11.6 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.923e-05/1.169, allocations: 59.25 kB / 1.28 GB, free: 11.54 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000686/1.17, allocations: 339.2 kB / 1.28 GB, free: 11.2 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/1.17, allocations: 0 / 1.28 GB, free: 11.2 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/1.17, allocations: 5.5 kB / 1.28 GB, free: 11.2 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/1.17, allocations: 7.984 kB / 1.28 GB, free: 11.19 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001656/1.171, allocations: 1.11 MB / 1.281 GB, free: 9.992 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/1.171, allocations: 0 / 1.281 GB, free: 9.992 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002274/1.172, allocations: 43.92 kB / 1.281 GB, free: 9.949 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/1.172, allocations: 7.938 kB / 1.281 GB, free: 9.941 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.927e-05/1.172, allocations: 12 kB / 1.281 GB, free: 9.93 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.001e-06/1.172, allocations: 4 kB / 1.281 GB, free: 9.926 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/1.172, allocations: 0 / 1.281 GB, free: 9.926 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009051/1.173, allocations: 0.6265 MB / 1.282 GB, free: 9.254 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002022/1.173, allocations: 160.4 kB / 1.282 GB, free: 9.078 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.497e-05/1.173, allocations: 16.09 kB / 1.282 GB, free: 9.062 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003689/1.173, allocations: 39.89 kB / 1.282 GB, free: 9.023 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.977e-05/1.173, allocations: 27.91 kB / 1.282 GB, free: 8.996 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.46e-05/1.173, allocations: 8 kB / 1.282 GB, free: 8.988 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0006991/1.174, allocations: 486.9 kB / 1.282 GB, free: 8.516 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.7e-07/1.174, allocations: 3.938 kB / 1.282 GB, free: 8.512 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000954/1.175, allocations: 271.7 kB / 1.283 GB, free: 8.246 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 2 (hum.outCon.T,hum.outCon.Xi) * Number of discrete variables: 3 ($whenCondition1,XSet.nextTimeEvent,XSet.nextTimeEventScaled) * Number of discrete states: 2 (XSet.nextTimeEvent,XSet.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001772/1.177, allocations: 0.4908 MB / 1.283 GB, free: 7.91 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001308/1.178, allocations: 0.553 MB / 1.284 GB, free: 7.359 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/1.178, allocations: 384 / 1.284 GB, free: 7.359 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002437/1.178, allocations: 135.8 kB / 1.284 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/1.18, allocations: 276.6 kB / 1.284 GB, free: 6.961 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002319/1.182, allocations: 1.403 MB / 1.286 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005375/1.183, allocations: 0.89 MB / 1.286 GB, free: 4.574 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001721/1.183, allocations: 55.36 kB / 1.286 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of SimCode: time 5.41e-07/1.183, allocations: 4 kB / 1.286 GB, free: 4.516 MB / 0.9981 GB Notification: Performance of Templates: time 0.01695/1.2, allocations: 9.972 MB / 1.296 GB, free: 10.63 MB / 1.014 GB make -j1 -f Buildings_11_Buildings.Fluid.Humidifiers.Validation.SteamHumidifier_X_dynamic.makefile (rm -f Buildings_11_Buildings.Fluid.Humidifiers.Validation.SteamHumidifier_X_dynamic.pipe ; mkfifo Buildings_11_Buildings.Fluid.Humidifiers.Validation.SteamHumidifier_X_dynamic.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Humidifiers.Validation.SteamHumidifier_X_dynamic.pipe >> ../files/Buildings_11_Buildings.Fluid.Humidifiers.Validation.SteamHumidifier_X_dynamic.sim & ./Buildings_11_Buildings.Fluid.Humidifiers.Validation.SteamHumidifier_X_dynamic -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Humidifiers.Validation.SteamHumidifier_X_dynamic.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Humidifiers.Validation.SteamHumidifier_X_dynamic_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Humidifiers_Validation_SteamHumidifier_X_dynamic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Humidifiers.Validation.SteamHumidifier_X_dynamic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches