Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_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 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.Fluid.Humidifiers.Validation.SprayAirWasher_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_10_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic") translateModel(Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_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_10_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004753/0.004753, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001141/0.001141, allocations: 191.7 kB / 16.67 MB, free: 5.938 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.338/1.338, allocations: 222.9 MB / 240.4 MB, free: 4.324 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 2.614/2.614, allocations: 437 MB / 0.7105 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 63.91 kB / 1.019 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3078/0.309, allocations: 151.6 MB / 1.167 GB, free: 6.852 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic): time 0.8962/1.205, allocations: 180.3 MB / 1.343 GB, free: 10.17 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.00691/1.212, allocations: 3.744 MB / 1.346 GB, free: 7.543 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00092/1.213, allocations: 27.56 kB / 1.346 GB, free: 7.531 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001349/1.215, allocations: 434.3 kB / 1.347 GB, free: 7.301 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.003512/1.218, allocations: 1.252 MB / 1.348 GB, free: 6.637 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.002192/1.22, allocations: 0.7497 MB / 1.349 GB, free: 6.258 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.002112/1.222, allocations: 1.362 MB / 1.35 GB, free: 5.625 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007738/1.223, allocations: 478.2 kB / 1.351 GB, free: 5.422 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003246/1.226, allocations: 0.9714 MB / 1.351 GB, free: 4.988 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009739/1.227, allocations: 465 kB / 1.352 GB, free: 4.797 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001118/1.228, allocations: 43.5 kB / 1.352 GB, free: 4.797 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002975/1.231, allocations: 1.187 MB / 1.353 GB, free: 4.367 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0002553/1.231, allocations: 204 kB / 1.353 GB, free: 4.277 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0004306/1.231, allocations: 324 kB / 1.354 GB, free: 4.086 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.002238/1.233, allocations: 1.208 MB / 1.355 GB, free: 3.637 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 8.426e-06/1.234, allocations: 2.344 kB / 1.355 GB, free: 3.637 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.543e-06/1.234, allocations: 3.938 kB / 1.355 GB, free: 3.633 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.288e-05/1.234, allocations: 5.375 kB / 1.355 GB, free: 3.629 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.002503/1.236, allocations: 1.075 MB / 1.356 GB, free: 2.84 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/1.236, allocations: 8.719 kB / 1.356 GB, free: 2.84 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001358/1.237, allocations: 217.8 kB / 1.356 GB, free: 2.793 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/1.238, allocations: 0.5824 MB / 1.357 GB, free: 2.395 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.639e-05/1.239, allocations: 35.69 kB / 1.357 GB, free: 2.383 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.149e-05/1.239, allocations: 42.95 kB / 1.357 GB, free: 2.367 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001125/1.24, allocations: 0.5418 MB / 1.357 GB, free: 2.129 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/1.24, allocations: 1.875 kB / 1.357 GB, free: 2.129 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.11e-05/1.24, allocations: 15.25 kB / 1.357 GB, free: 2.117 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.871e-05/1.24, allocations: 18.45 kB / 1.357 GB, free: 2.113 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001185/1.241, allocations: 0.4982 MB / 1.358 GB, free: 1.949 MB / 1.029 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.003362/1.244, allocations: 2.212 MB / 1.36 GB, free: 336 kB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006992/1.245, allocations: 360.9 kB / 1.36 GB, free: 124 kB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002498/1.245, allocations: 148.1 kB / 1.36 GB, free: 72 kB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001371/1.247, allocations: 0.8325 MB / 1.361 GB, free: 15.22 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003447/1.247, allocations: 206.8 kB / 1.361 GB, free: 15.1 MB / 1.045 GB Notification: Performance of pre-optimization done (n=28): time 1.853e-06/1.247, allocations: 0 / 1.361 GB, free: 15.1 MB / 1.045 GB Notification: Performance of matching and sorting (n=28): time 0.001106/1.248, allocations: 458.9 kB / 1.362 GB, free: 14.93 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.013e-05/1.248, allocations: 84.73 kB / 1.362 GB, free: 14.83 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009221/1.249, allocations: 0.6472 MB / 1.363 GB, free: 14.55 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.002e-05/1.249, allocations: 39.17 kB / 1.363 GB, free: 14.5 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.000244/1.25, allocations: 320.3 kB / 1.363 GB, free: 14.22 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 8.54e-05/1.25, allocations: 108.3 kB / 1.363 GB, free: 14.13 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/1.25, allocations: 88.67 kB / 1.363 GB, free: 14.07 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001458/1.25, allocations: 370 kB / 1.363 GB, free: 13.71 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004103/1.25, allocations: 152.9 kB / 1.364 GB, free: 13.64 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005324/1.251, allocations: 296.7 kB / 1.364 GB, free: 13.38 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006956/1.252, allocations: 409.8 kB / 1.364 GB, free: 13.07 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.912e-06/1.252, allocations: 6.25 kB / 1.364 GB, free: 13.07 MB / 1.045 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001078/1.253, allocations: 498.2 kB / 1.365 GB, free: 12.81 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/1.253, allocations: 7.125 kB / 1.365 GB, free: 12.81 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/1.253, allocations: 4 kB / 1.365 GB, free: 12.81 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.278e-05/1.253, allocations: 11.05 kB / 1.365 GB, free: 12.81 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004433/1.253, allocations: 93.89 kB / 1.365 GB, free: 12.79 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/1.253, allocations: 5.156 kB / 1.365 GB, free: 12.79 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006646/1.254, allocations: 75.75 kB / 1.365 GB, free: 12.75 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.649e-05/1.254, allocations: 19.88 kB / 1.365 GB, free: 12.74 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005891/1.255, allocations: 307.8 kB / 1.365 GB, free: 12.55 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005534/1.255, allocations: 296.5 kB / 1.366 GB, free: 12.29 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000683/1.256, allocations: 406 kB / 1.366 GB, free: 11.99 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.755e-06/1.256, allocations: 1.125 kB / 1.366 GB, free: 11.99 MB / 1.045 GB Notification: Performance of matching and sorting (n=47) (initialization_lambda0): time 0.001019/1.257, allocations: 0.4982 MB / 1.366 GB, free: 11.73 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/1.257, allocations: 9.906 kB / 1.366 GB, free: 11.73 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/1.257, allocations: 2.875 kB / 1.366 GB, free: 11.73 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.787e-06/1.257, allocations: 7.625 kB / 1.366 GB, free: 11.73 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003966/1.257, allocations: 84.3 kB / 1.367 GB, free: 11.71 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/1.257, allocations: 16.02 kB / 1.367 GB, free: 11.71 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000656/1.258, allocations: 71.98 kB / 1.367 GB, free: 11.67 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.984e-05/1.258, allocations: 19.47 kB / 1.367 GB, free: 11.66 MB / 1.045 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.0001708/1.258, allocations: 218.3 kB / 1.367 GB, free: 11.45 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.939e-05/1.258, allocations: 63.58 kB / 1.367 GB, free: 11.42 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00067/1.259, allocations: 339 kB / 1.367 GB, free: 11.21 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/1.259, allocations: 5.219 kB / 1.367 GB, free: 11.21 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/1.259, allocations: 0 / 1.367 GB, free: 11.21 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/1.259, allocations: 0 / 1.367 GB, free: 11.21 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001526/1.261, allocations: 1.121 MB / 1.368 GB, free: 10.32 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/1.261, allocations: 5.438 kB / 1.368 GB, free: 10.32 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002243/1.261, allocations: 45.92 kB / 1.368 GB, free: 10.31 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-06/1.261, allocations: 3.125 kB / 1.368 GB, free: 10.31 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.807e-05/1.261, allocations: 9.375 kB / 1.368 GB, free: 10.3 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.584e-06/1.261, allocations: 10.41 kB / 1.368 GB, free: 10.3 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/1.261, allocations: 2.125 kB / 1.368 GB, free: 10.3 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008971/1.262, allocations: 0.6328 MB / 1.369 GB, free: 9.852 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000207/1.262, allocations: 162.4 kB / 1.369 GB, free: 9.699 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.64e-05/1.262, allocations: 8.875 kB / 1.369 GB, free: 9.695 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003472/1.263, allocations: 23.73 kB / 1.369 GB, free: 9.684 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.488e-05/1.263, allocations: 26.05 kB / 1.369 GB, free: 9.668 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.893e-05/1.263, allocations: 17.77 kB / 1.369 GB, free: 9.66 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.00067/1.263, allocations: 472.9 kB / 1.37 GB, free: 9.406 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.6e-07/1.263, allocations: 0 / 1.37 GB, free: 9.406 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.000951/1.264, allocations: 276.8 kB / 1.37 GB, free: 9.348 MB / 1.045 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.001233/1.266, allocations: 0.506 MB / 1.37 GB, free: 9.102 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001297/1.267, allocations: 0.5333 MB / 1.371 GB, free: 8.867 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/1.267, allocations: 2.094 kB / 1.371 GB, free: 8.867 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0002336/1.267, allocations: 137.5 kB / 1.371 GB, free: 8.805 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00139/1.269, allocations: 291.1 kB / 1.371 GB, free: 8.652 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00194/1.27, allocations: 1.161 MB / 1.373 GB, free: 7.859 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004609/1.271, allocations: 0.8908 MB / 1.373 GB, free: 7.066 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0005775/1.272, allocations: 174.1 kB / 1.374 GB, free: 6.977 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/1.272, allocations: 52.73 kB / 1.374 GB, free: 6.961 MB / 1.045 GB Notification: Performance of SimCode: time 4.41e-07/1.272, allocations: 0 / 1.374 GB, free: 6.961 MB / 1.045 GB Notification: Performance of Templates: time 0.01987/1.292, allocations: 10.7 MB / 1.384 GB, free: 1.688 MB / 1.045 GB make -j1 -f Buildings_10_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic.makefile (rm -f Buildings_10_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic.pipe ; mkfifo Buildings_10_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic.pipe >> ../files/Buildings_10_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic.sim & ./Buildings_10_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Humidifiers_Validation_SprayAirWasher_X_dynamic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Humidifiers.Validation.SprayAirWasher_X_dynamic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches