Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Movers.Validation.SpeedControlled_y_linear.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.Movers.Validation.SpeedControlled_y_linear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pumFixDp.m_flow|pumFixM_flow.dp",fileNamePrefix="Buildings_9_Buildings.Fluid.Movers.Validation.SpeedControlled_y_linear") translateModel(Buildings.Fluid.Movers.Validation.SpeedControlled_y_linear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pumFixDp.m_flow|pumFixM_flow.dp",fileNamePrefix="Buildings_9_Buildings.Fluid.Movers.Validation.SpeedControlled_y_linear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 107.5 kB / 15.99 MB, free: 6.355 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.001947/0.001946, allocations: 198.4 kB / 16.91 MB, free: 6.195 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.395/1.395, allocations: 222.9 MB / 240.6 MB, free: 13.74 MB / 206.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.422/2.422, allocations: 390.3 MB / 0.665 GB, free: 0.8828 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 64.83 kB / 0.8127 GB, free: 32.53 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3185, allocations: 140.4 MB / 0.9498 GB, free: 9.238 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Movers.Validation.SpeedControlled_y_linear): time 0.06539/0.3839, allocations: 57.32 MB / 1.006 GB, free: 15.72 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.02963/0.4136, allocations: 17.76 MB / 1.023 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00461/0.4182, allocations: 75.5 kB / 1.023 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.004384/0.4226, allocations: 1.03 MB / 1.024 GB, free: 12.81 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.009426/0.4321, allocations: 2.486 MB / 1.027 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.006765/0.4389, allocations: 2.061 MB / 1.029 GB, free: 8.273 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.008182/0.4471, allocations: 4.829 MB / 1.033 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003848/0.451, allocations: 1.76 MB / 1.035 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006022/0.457, allocations: 1.978 MB / 1.037 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003067/0.4601, allocations: 1.494 MB / 1.038 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0008292/0.461, allocations: 188 kB / 1.039 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005198/0.4662, allocations: 2.024 MB / 1.041 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.001282/0.4675, allocations: 0.6113 MB / 1.041 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.002386/0.4699, allocations: 1.081 MB / 1.042 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.005098/0.475, allocations: 2.791 MB / 1.045 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.475, allocations: 0 / 1.045 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.224e-06/0.475, allocations: 0 / 1.045 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 0.000127/0.4752, allocations: 0 / 1.045 GB, free: 7.441 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 262 * Number of variables: 262 Notification: Performance of Generate backend data structure: time 0.006628/0.4818, allocations: 2.513 MB / 1.047 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/0.4819, allocations: 12.02 kB / 1.047 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004494/0.4864, allocations: 0.7437 MB / 1.048 GB, free: 4.109 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005515/0.4919, allocations: 1.988 MB / 1.05 GB, free: 2.07 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001349/0.4921, allocations: 90.06 kB / 1.05 GB, free: 1.98 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003499/0.4924, allocations: 112 kB / 1.05 GB, free: 1.871 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003292/0.4957, allocations: 1.329 MB / 1.052 GB, free: 488 kB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.865e-05/0.4958, allocations: 3.938 kB / 1.052 GB, free: 484 kB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001475/0.4959, allocations: 40 kB / 1.052 GB, free: 444 kB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.652e-05/0.496, allocations: 28 kB / 1.052 GB, free: 416 kB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003019/0.499, allocations: 1.077 MB / 1.053 GB, free: 15.33 MB / 0.8419 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.009823/0.5088, allocations: 5.959 MB / 1.059 GB, free: 8.961 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002708/0.5116, allocations: 0.8652 MB / 1.059 GB, free: 8.086 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001032/0.5126, allocations: 438.2 kB / 1.06 GB, free: 7.652 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00371/0.5163, allocations: 2.524 MB / 1.062 GB, free: 4.844 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.531e-05/0.5164, allocations: 43.11 kB / 1.062 GB, free: 4.793 MB / 0.8419 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006882/0.5171, allocations: 75.27 kB / 1.062 GB, free: 4.719 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=58): time 4.047e-06/0.5171, allocations: 0 / 1.062 GB, free: 4.719 MB / 0.8419 GB Notification: Performance of matching and sorting (n=58): time 0.004571/0.5217, allocations: 1.424 MB / 1.064 GB, free: 3.262 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.317e-05/0.5217, allocations: 63.97 kB / 1.064 GB, free: 3.188 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003073/0.5248, allocations: 1.564 MB / 1.065 GB, free: 1.578 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0001231/0.525, allocations: 41.7 kB / 1.065 GB, free: 1.531 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007835/0.5258, allocations: 0.8269 MB / 1.066 GB, free: 0.6953 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002368/0.526, allocations: 205 kB / 1.066 GB, free: 0.4922 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004615/0.5265, allocations: 222.4 kB / 1.067 GB, free: 276 kB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001669/0.5266, allocations: 338 kB / 1.067 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001325/0.528, allocations: 492.5 kB / 1.067 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001645/0.5296, allocations: 0.8008 MB / 1.068 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002789/0.5324, allocations: 1.209 MB / 1.069 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.19e-05/0.5325, allocations: 4 kB / 1.069 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of matching and sorting (n=106) (initialization): time 0.003953/0.5364, allocations: 1.482 MB / 1.071 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.765e-05/0.5365, allocations: 14.81 kB / 1.071 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.028e-05/0.5365, allocations: 8 kB / 1.071 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005082/0.537, allocations: 109.1 kB / 1.071 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/0.5381, allocations: 231.6 kB / 1.071 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007833/0.5389, allocations: 0.6147 MB / 1.072 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001554/0.5404, allocations: 119.8 kB / 1.072 GB, free: 10.58 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001591/0.5406, allocations: 63.91 kB / 1.072 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001767/0.5424, allocations: 0.7478 MB / 1.073 GB, free: 9.766 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001317/0.5437, allocations: 0.7246 MB / 1.073 GB, free: 8.902 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00231/0.546, allocations: 1.092 MB / 1.074 GB, free: 7.699 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.016e-05/0.5461, allocations: 4 kB / 1.074 GB, free: 7.695 MB / 0.8575 GB Notification: Performance of matching and sorting (n=106) (initialization_lambda0): time 0.003542/0.5496, allocations: 1.357 MB / 1.076 GB, free: 6.324 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.5496, allocations: 11.94 kB / 1.076 GB, free: 6.312 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.5497, allocations: 8 kB / 1.076 GB, free: 6.305 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000585/0.5503, allocations: 121.1 kB / 1.076 GB, free: 6.184 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009339/0.5512, allocations: 227.7 kB / 1.076 GB, free: 5.961 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00473/0.5559, allocations: 2.89 MB / 1.079 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001498/0.5575, allocations: 112 kB / 1.079 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001675/0.5576, allocations: 51.97 kB / 1.079 GB, free: 2.691 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (100): * Single equations (assignments): 97 * Array equations: 2 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003831/0.558, allocations: 240.5 kB / 1.079 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004321/0.5585, allocations: 169.8 kB / 1.079 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00365/0.5621, allocations: 1.367 MB / 1.081 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.652e-05/0.5622, allocations: 8 kB / 1.081 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.5622, allocations: 0 / 1.081 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.5622, allocations: 3.984 kB / 1.081 GB, free: 0.8984 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5055/1.068, allocations: 2.579 MB / 1.083 GB, free: 129.1 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/1.068, allocations: 2.812 kB / 1.083 GB, free: 129.1 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008384/1.069, allocations: 157.1 kB / 1.083 GB, free: 129.1 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002729/1.069, allocations: 67.94 kB / 1.084 GB, free: 129.1 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.848e-05/1.069, allocations: 25.58 kB / 1.084 GB, free: 129.1 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003402/1.069, allocations: 0.602 MB / 1.084 GB, free: 128.6 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/1.069, allocations: 2.156 kB / 1.084 GB, free: 128.6 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003095/1.072, allocations: 1.305 MB / 1.085 GB, free: 128.1 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007155/1.073, allocations: 345.3 kB / 1.086 GB, free: 127.9 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001889/1.073, allocations: 20.05 kB / 1.086 GB, free: 127.9 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009884/1.074, allocations: 98.2 kB / 1.086 GB, free: 127.9 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/1.074, allocations: 57.67 kB / 1.086 GB, free: 127.9 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.2e-05/1.075, allocations: 37.86 kB / 1.086 GB, free: 127.9 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001815/1.076, allocations: 1.068 MB / 1.087 GB, free: 127.5 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.81e-07/1.076, allocations: 0.7188 kB / 1.087 GB, free: 127.5 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.00337/1.08, allocations: 0.9355 MB / 1.088 GB, free: 127.4 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (70): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001728/1.081, allocations: 0.5859 MB / 1.089 GB, free: 127.3 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.005348/1.087, allocations: 1.875 MB / 1.09 GB, free: 126.7 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 6.974e-06/1.087, allocations: 4.797 kB / 1.09 GB, free: 126.7 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001382/1.088, allocations: 0.5037 MB / 1.091 GB, free: 126.6 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004596/1.093, allocations: 0.8502 MB / 1.092 GB, free: 126.4 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007032/1.1, allocations: 3.641 MB / 1.095 GB, free: 124.3 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001597/1.102, allocations: 1.385 MB / 1.097 GB, free: 123.5 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007132/1.102, allocations: 159.5 kB / 1.097 GB, free: 123.5 MB / 0.8575 GB Notification: Performance of SimCode: time 9.42e-07/1.102, allocations: 1.312 kB / 1.097 GB, free: 123.5 MB / 0.8575 GB Notification: Performance of Templates: time 0.07009/1.172, allocations: 40.08 MB / 1.136 GB, free: 107.4 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.Movers.Validation.SpeedControlled_y_linear.makefile (rm -f Buildings_9_Buildings.Fluid.Movers.Validation.SpeedControlled_y_linear.pipe ; mkfifo Buildings_9_Buildings.Fluid.Movers.Validation.SpeedControlled_y_linear.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Movers.Validation.SpeedControlled_y_linear.pipe >> ../files/Buildings_9_Buildings.Fluid.Movers.Validation.SpeedControlled_y_linear.sim & ./Buildings_9_Buildings.Fluid.Movers.Validation.SpeedControlled_y_linear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Movers.Validation.SpeedControlled_y_linear.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Movers.Validation.SpeedControlled_y_linear_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Movers_Validation_SpeedControlled_y_linear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Movers.Validation.SpeedControlled_y_linear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches