Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Limits_Disable.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: "" <> buildModelFMU(Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Limits_Disable,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_ASHRAE_G36_AHUs_SingleZone_VAV_Economizers_Subsequences_Validation_Limits_Disable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Limits_Disable,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_ASHRAE_G36_AHUs_SingleZone_VAV_Economizers_Subsequences_Validation_Limits_Disable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01124/0.01124, allocations: 99.72 kB / 15.73 MB, free: 6.492 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.002437/0.002437, allocations: 201.5 kB / 16.68 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.102/3.102, allocations: 222.9 MB / 240.4 MB, free: 4.305 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 5.923/5.923, allocations: 437 MB / 0.7105 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.003132/0.003132, allocations: 64.09 kB / 1.018 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6256/0.6287, allocations: 151.6 MB / 1.166 GB, free: 7.301 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Limits_Disable): time 0.007882/0.6367, allocations: 3.057 MB / 1.169 GB, free: 4.227 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.009244/0.646, allocations: 1.719 MB / 1.171 GB, free: 2.492 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001496/0.6476, allocations: 23.88 kB / 1.171 GB, free: 2.469 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0008261/0.6484, allocations: 122.4 kB / 1.171 GB, free: 2.348 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.001158/0.6497, allocations: 146.5 kB / 1.171 GB, free: 2.203 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.001449/0.6511, allocations: 439.5 kB / 1.172 GB, free: 1.773 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.002321/0.6535, allocations: 1.176 MB / 1.173 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001532/0.655, allocations: 0.5643 MB / 1.173 GB, free: 0 / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009947/0.6561, allocations: 434.2 kB / 1.174 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007978/0.6569, allocations: 489.4 kB / 1.174 GB, free: 15.09 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0002713/0.6572, allocations: 124 kB / 1.174 GB, free: 14.97 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003939/0.6576, allocations: 128 kB / 1.174 GB, free: 14.84 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0005161/0.6581, allocations: 255.2 kB / 1.175 GB, free: 14.59 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0009637/0.6591, allocations: 0.5206 MB / 1.175 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.003328/0.6624, allocations: 1.665 MB / 1.177 GB, free: 12.4 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 1.626e-05/0.6625, allocations: 0 / 1.177 GB, free: 12.4 MB / 0.9356 GB Notification: Performance of FrontEnd: time 4.578e-06/0.6626, allocations: 0 / 1.177 GB, free: 12.4 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.917e-05/0.6627, allocations: 0 / 1.177 GB, free: 12.4 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.004718/0.6674, allocations: 1.289 MB / 1.178 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 9.655e-05/0.6675, allocations: 11.97 kB / 1.178 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003251/0.6679, allocations: 148.2 kB / 1.178 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000416/0.6683, allocations: 132.1 kB / 1.178 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002524/0.6708, allocations: 0.755 MB / 1.179 GB, free: 9.969 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.804e-05/0.6709, allocations: 66.38 kB / 1.179 GB, free: 9.906 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002061/0.6712, allocations: 104.1 kB / 1.179 GB, free: 9.805 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006892/0.6781, allocations: 0.7844 MB / 1.18 GB, free: 9.016 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.771e-05/0.6782, allocations: 0 / 1.18 GB, free: 9.016 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001701/0.6784, allocations: 44 kB / 1.18 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.903e-05/0.6785, allocations: 20 kB / 1.18 GB, free: 8.953 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003307/0.6818, allocations: 0.6833 MB / 1.181 GB, free: 8.266 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008744/0.6906, allocations: 2.681 MB / 1.183 GB, free: 5.465 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001165/0.6918, allocations: 302.4 kB / 1.184 GB, free: 5.16 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005031/0.6923, allocations: 148.7 kB / 1.184 GB, free: 5.012 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 6.74e-05/0.6924, allocations: 7.984 kB / 1.184 GB, free: 5.004 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.64e-05/0.6925, allocations: 42.5 kB / 1.184 GB, free: 4.953 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=36): time 5.34e-06/0.6925, allocations: 0 / 1.184 GB, free: 4.953 MB / 0.9356 GB Notification: Performance of matching and sorting (n=36): time 0.006222/0.6987, allocations: 474.9 kB / 1.184 GB, free: 4.484 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.051e-05/0.6988, allocations: 59.27 kB / 1.184 GB, free: 4.414 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001584/0.7004, allocations: 0.8174 MB / 1.185 GB, free: 3.59 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 5.552e-05/0.7005, allocations: 33.7 kB / 1.185 GB, free: 3.551 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006381/0.7011, allocations: 0.5156 MB / 1.186 GB, free: 3.031 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002055/0.7014, allocations: 138.9 kB / 1.186 GB, free: 2.895 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004514/0.7018, allocations: 186.5 kB / 1.186 GB, free: 2.707 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0003352/0.7022, allocations: 394.7 kB / 1.186 GB, free: 2.312 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007212/0.7029, allocations: 177.9 kB / 1.187 GB, free: 2.141 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001089/0.704, allocations: 0.5279 MB / 1.187 GB, free: 1.453 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001833/0.7059, allocations: 0.7343 MB / 1.188 GB, free: 0.5547 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-05/0.7059, allocations: 11.88 kB / 1.188 GB, free: 0.543 MB / 0.9356 GB Notification: Performance of matching and sorting (n=101) (initialization): time 0.002808/0.7087, allocations: 0.7807 MB / 1.189 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.368e-05/0.7088, allocations: 12 kB / 1.189 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.8e-05/0.7088, allocations: 12 kB / 1.189 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.509e-05/0.7089, allocations: 16.62 kB / 1.189 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/0.7099, allocations: 159.7 kB / 1.189 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.903e-05/0.71, allocations: 23.92 kB / 1.189 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001274/0.7113, allocations: 127.1 kB / 1.189 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/0.7114, allocations: 40 kB / 1.189 GB, free: 15.37 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 39 (damLim3.and1.y,damLim2.and1.y,damLim2.and2.u2,damLim3.and2.u2,damLim1.and2.y,damLim1.not1.u,damLim2.and2.y,damLim2.not1.u,damLim3.and2.y,damLim3.not1.u,operationMode3.y,freProSta3.y,fanStatus3.y,operationMode2.y,freProSta2.y,fanStatus2.y,operationMode1.y,fanStatus1.y,damLim3.conInt1.y,damLim3.conInt.y,damLim2.conInt1.y,damLim2.conInt.y,damLim1.conInt1.y,damLim1.conInt.y,damLim1.intLesEqu.y,damLim1.and1.u2,damLim1.not1.y,damLim2.intLesEqu.y,damLim2.and1.u2,damLim3.intLesEqu.y,damLim3.and1.u2,damLim3.not1.y,damLim2.not1.y,damLim3.noZerMin.greHys.y,$PRE.damLim3.noZerMin.greHys.y,damLim2.noZerMin.greHys.y,$PRE.damLim2.noZerMin.greHys.y,damLim1.noZerMin.greHys.y,$PRE.damLim1.noZerMin.greHys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 101 * 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.000689/0.7121, allocations: 265.4 kB / 1.189 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002384/0.7124, allocations: 79.48 kB / 1.189 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006046/0.7185, allocations: 421.3 kB / 1.19 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.586e-05/0.7185, allocations: 4 kB / 1.19 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.79e-05/0.7186, allocations: 4 kB / 1.19 GB, free: 14.58 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.542e-05/0.7186, allocations: 3.984 kB / 1.19 GB, free: 14.58 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004536/0.7231, allocations: 1.355 MB / 1.191 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/0.7232, allocations: 128 / 1.191 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006317/0.7238, allocations: 75.89 kB / 1.191 GB, free: 13.05 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.411e-05/0.7239, allocations: 7.938 kB / 1.191 GB, free: 13.05 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.597e-05/0.7239, allocations: 8 kB / 1.191 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.381e-05/0.724, allocations: 11.92 kB / 1.191 GB, free: 13.03 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/0.724, allocations: 0 / 1.191 GB, free: 13.03 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001654/0.7256, allocations: 0.4987 MB / 1.192 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004247/0.7261, allocations: 172.3 kB / 1.192 GB, free: 12.31 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001348/0.7262, allocations: 8 kB / 1.192 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005285/0.7268, allocations: 35.95 kB / 1.192 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001859/0.727, allocations: 51.86 kB / 1.192 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.72e-05/0.727, allocations: 11.98 kB / 1.192 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001219/0.7283, allocations: 0.5107 MB / 1.192 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of sort global known variables: time 4.41e-07/0.7283, allocations: 0 / 1.192 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001338/0.7296, allocations: 163.6 kB / 1.192 GB, free: 11.54 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (damLim1.noZerMin.greHys.y,damLim2.noZerMin.greHys.y,damLim3.noZerMin.greHys.y) * Number of discrete states: 3 (damLim3.noZerMin.greHys.y,damLim2.noZerMin.greHys.y,damLim1.noZerMin.greHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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 Backend phase and start with SimCode phase: time 0.001943/0.7316, allocations: 1.063 MB / 1.194 GB, free: 10.44 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.005936/0.7375, allocations: 483.7 kB / 1.194 GB, free: 9.969 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-05/0.7376, allocations: 0 / 1.194 GB, free: 9.969 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0007639/0.7384, allocations: 161.4 kB / 1.194 GB, free: 9.812 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002021/0.7404, allocations: 270 kB / 1.194 GB, free: 9.555 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01969/0.7602, allocations: 5.874 MB / 1.2 GB, free: 3.227 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005139/0.7654, allocations: 0.9614 MB / 1.201 GB, free: 2.234 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0008354/0.7663, allocations: 111 kB / 1.201 GB, free: 2.121 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007772/0.7671, allocations: 355.3 kB / 1.202 GB, free: 1.777 MB / 0.9512 GB Notification: Performance of SimCode: time 1.403e-06/0.7672, allocations: 0 / 1.202 GB, free: 1.777 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1783/0.9455, allocations: 14.04 MB / 1.215 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.76/24.71, allocations: 23.86 kB / 1.215 GB, free: 4.023 MB / 0.9669 GB (rm -f Buildings_10_Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Limits_Disable.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Limits_Disable.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Limits_Disable.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Limits_Disable.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Limits_Disable_res.csv --start-time 0 --stop-time 1800 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.72 Buildings_10_Buildings_Controls_OBC_ASHRAE_G36_AHUs_SingleZone_VAV_Economizers_Subsequences_Validation_Limits_Disable.fmu > Buildings_10_Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Limits_Disable.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Limits_Disable_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_ASHRAE_G36_AHUs_SingleZone_VAV_Economizers_Subsequences_Validation_Limits_Disable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Limits_Disable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches