Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Controls.OBC.CDL.Continuous.Validation.PIDInitialState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.I.y|limPID.D.y|limPI.I.y|limPID.D.u",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.I.y|limPID.D.y|limPI.I.y|limPID.D.u",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.001481/0.001481, allocations: 192.1 kB / 17.31 MB, free: 5.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.472/1.472, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.383/2.383, allocations: 390.3 MB / 0.6655 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002081/0.002081, allocations: 63.22 kB / 0.814 GB, free: 32.77 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3418/0.344, allocations: 140.4 MB / 0.9511 GB, free: 8.055 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState): time 0.003454/0.3475, allocations: 1.856 MB / 0.953 GB, free: 6.195 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001925/0.3494, allocations: 1.256 MB / 0.9542 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001878/0.3496, allocations: 8 kB / 0.9542 GB, free: 4.918 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002654/0.3499, allocations: 75.19 kB / 0.9543 GB, free: 4.844 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001412/0.3501, allocations: 55.47 kB / 0.9543 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004388/0.3505, allocations: 171.7 kB / 0.9545 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0005454/0.3511, allocations: 496.9 kB / 0.955 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004437/0.3515, allocations: 267.5 kB / 0.9552 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001719/0.3517, allocations: 175.3 kB / 0.9554 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002015/0.3519, allocations: 198.9 kB / 0.9556 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.203e-05/0.352, allocations: 56 kB / 0.9556 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 5.053e-05/0.352, allocations: 52 kB / 0.9557 GB, free: 3.398 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.3521, allocations: 107.6 kB / 0.9558 GB, free: 3.293 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001631/0.3523, allocations: 210.8 kB / 0.956 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0005697/0.3529, allocations: 0.5799 MB / 0.9565 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.3529, allocations: 4 kB / 0.9565 GB, free: 2.5 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.136e-06/0.3529, allocations: 0 / 0.9565 GB, free: 2.5 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.644e-06/0.3529, allocations: 3.938 kB / 0.9565 GB, free: 2.496 MB / 0.7325 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.001213/0.3541, allocations: 0.7445 MB / 0.9573 GB, free: 1.699 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.3542, allocations: 8.031 kB / 0.9573 GB, free: 1.691 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.3543, allocations: 48.38 kB / 0.9573 GB, free: 1.645 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005051/0.3548, allocations: 348.3 kB / 0.9577 GB, free: 1.262 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.213e-05/0.3548, allocations: 29.38 kB / 0.9577 GB, free: 1.234 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.776e-05/0.3549, allocations: 48.36 kB / 0.9577 GB, free: 1.188 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006268/0.3556, allocations: 403.5 kB / 0.9581 GB, free: 0.7773 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.3556, allocations: 192 / 0.9581 GB, free: 0.7773 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.922e-05/0.3556, allocations: 19.94 kB / 0.9581 GB, free: 0.7578 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.3556, allocations: 12 kB / 0.9582 GB, free: 0.7461 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000539/0.3562, allocations: 287.8 kB / 0.9584 GB, free: 476 kB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001941/0.3581, allocations: 1.366 MB / 0.9598 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006671/0.3588, allocations: 250.8 kB / 0.96 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002186/0.359, allocations: 116.8 kB / 0.9601 GB, free: 14.66 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 2.459e-05/0.3591, allocations: 4 kB / 0.9601 GB, free: 14.65 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/0.3591, allocations: 34.56 kB / 0.9601 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=20): time 1.954e-06/0.3591, allocations: 0 / 0.9601 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of matching and sorting (n=20): time 0.0006341/0.3598, allocations: 302.8 kB / 0.9604 GB, free: 14.31 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001418/0.3599, allocations: 106.8 kB / 0.9605 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004665/0.3604, allocations: 409.5 kB / 0.9609 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.874e-05/0.3604, allocations: 33.7 kB / 0.961 GB, free: 13.73 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001747/0.3606, allocations: 243.8 kB / 0.9612 GB, free: 13.49 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.805e-05/0.3607, allocations: 82.89 kB / 0.9613 GB, free: 13.41 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.3608, allocations: 62.03 kB / 0.9613 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001444/0.3609, allocations: 346.8 kB / 0.9617 GB, free: 12.99 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002431/0.3612, allocations: 118 kB / 0.9618 GB, free: 12.87 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003198/0.3615, allocations: 212.3 kB / 0.962 GB, free: 12.62 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004649/0.362, allocations: 273.4 kB / 0.9622 GB, free: 12.33 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.362, allocations: 0 / 0.9622 GB, free: 12.33 MB / 0.7481 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006452/0.3626, allocations: 366.8 kB / 0.9626 GB, free: 11.97 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.3627, allocations: 5.875 kB / 0.9626 GB, free: 11.96 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.3627, allocations: 8.219 kB / 0.9626 GB, free: 11.96 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.3627, allocations: 11.97 kB / 0.9626 GB, free: 11.95 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002763/0.363, allocations: 75.89 kB / 0.9627 GB, free: 11.87 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.363, allocations: 4 kB / 0.9627 GB, free: 11.87 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002248/0.3632, allocations: 55.5 kB / 0.9627 GB, free: 11.81 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.238e-05/0.3633, allocations: 15.94 kB / 0.9628 GB, free: 11.8 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002591/0.3635, allocations: 204.3 kB / 0.963 GB, free: 11.6 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002159/0.3638, allocations: 183.3 kB / 0.9631 GB, free: 11.38 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003083/0.3641, allocations: 235.6 kB / 0.9634 GB, free: 11.12 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.883e-06/0.3641, allocations: 0 / 0.9634 GB, free: 11.12 MB / 0.7481 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.0005341/0.3646, allocations: 324 kB / 0.9637 GB, free: 10.8 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.903e-05/0.3647, allocations: 4 kB / 0.9637 GB, free: 10.8 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.665e-06/0.3647, allocations: 4 kB / 0.9637 GB, free: 10.79 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.72e-06/0.3647, allocations: 4 kB / 0.9637 GB, free: 10.79 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002204/0.3649, allocations: 67.84 kB / 0.9637 GB, free: 10.72 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.3649, allocations: 4 kB / 0.9637 GB, free: 10.72 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001894/0.3651, allocations: 35.77 kB / 0.9638 GB, free: 10.68 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.923e-05/0.3652, allocations: 15.94 kB / 0.9638 GB, free: 10.67 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 2 (limPI.con1.y,limPID.con1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001607/0.3653, allocations: 204.3 kB / 0.964 GB, free: 10.46 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.417e-05/0.3654, allocations: 39.52 kB / 0.964 GB, free: 10.42 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005011/0.3659, allocations: 240.9 kB / 0.9643 GB, free: 10.18 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.3659, allocations: 0 / 0.9643 GB, free: 10.18 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3659, allocations: 0 / 0.9643 GB, free: 10.18 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.3659, allocations: 0 / 0.9643 GB, free: 10.18 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001316/0.3673, allocations: 0.7871 MB / 0.965 GB, free: 9.324 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.3673, allocations: 4.156 kB / 0.965 GB, free: 9.32 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001912/0.3675, allocations: 51.91 kB / 0.9651 GB, free: 9.27 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.3675, allocations: 0 / 0.9651 GB, free: 9.27 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.993e-05/0.3675, allocations: 4 kB / 0.9651 GB, free: 9.266 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.3675, allocations: 4 kB / 0.9651 GB, free: 9.262 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.3675, allocations: 3.984 kB / 0.9651 GB, free: 9.258 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006961/0.3682, allocations: 460.6 kB / 0.9655 GB, free: 8.777 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001063/0.3683, allocations: 120.7 kB / 0.9656 GB, free: 8.641 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.067e-05/0.3684, allocations: 4 kB / 0.9656 GB, free: 8.637 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001878/0.3686, allocations: 23.98 kB / 0.9657 GB, free: 8.613 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.374e-05/0.3686, allocations: 15.92 kB / 0.9657 GB, free: 8.598 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.608e-05/0.3686, allocations: 8 kB / 0.9657 GB, free: 8.59 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002999/0.369, allocations: 287.2 kB / 0.966 GB, free: 8.312 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.6e-07/0.369, allocations: 3.938 kB / 0.966 GB, free: 8.309 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0005027/0.3695, allocations: 131.4 kB / 0.9661 GB, free: 8.18 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 3 (limPID.I.y,limPID.D.x,limPI.I.y) * 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 (20): * Single equations (assignments): 20 * 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.0002462/0.3697, allocations: 111.2 kB / 0.9662 GB, free: 8.059 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0007722/0.3705, allocations: 388.2 kB / 0.9666 GB, free: 7.68 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.3705, allocations: 3.984 kB / 0.9666 GB, free: 7.676 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001693/0.3707, allocations: 95.95 kB / 0.9667 GB, free: 7.582 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005013/0.3712, allocations: 76.33 kB / 0.9667 GB, free: 7.516 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001303/0.3725, allocations: 0.6634 MB / 0.9674 GB, free: 6.809 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003667/0.3729, allocations: 0.8073 MB / 0.9682 GB, free: 5.973 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001488/0.373, allocations: 39.27 kB / 0.9682 GB, free: 5.934 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.286e-05/0.3731, allocations: 31.42 kB / 0.9682 GB, free: 5.902 MB / 0.7481 GB Notification: Performance of SimCode: time 6.21e-07/0.3732, allocations: 7.938 kB / 0.9682 GB, free: 5.895 MB / 0.7481 GB Notification: Performance of Templates: time 0.007568/0.3807, allocations: 3.469 MB / 0.9716 GB, free: 2.457 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_PIDInitialState.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches