Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Movers.Examples.MoverParameter.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.Examples.MoverParameter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump_Nrpm.m_flow|pump_dp.m_flow|pump_m_flow.m_flow|pump_y.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Movers.Examples.MoverParameter") translateModel(Buildings.Fluid.Movers.Examples.MoverParameter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump_Nrpm.m_flow|pump_dp.m_flow|pump_m_flow.m_flow|pump_y.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Movers.Examples.MoverParameter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 106.1 kB / 15.98 MB, free: 6.285 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.001732/0.001732, allocations: 200.9 kB / 16.91 MB, free: 6.141 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.362/1.362, allocations: 222.9 MB / 240.6 MB, free: 15.37 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.266/2.266, allocations: 390.2 MB / 0.665 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001337, allocations: 64.05 kB / 0.8127 GB, free: 33.15 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/0.3108, allocations: 140.4 MB / 0.9498 GB, free: 9.23 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Movers.Examples.MoverParameter): time 0.09493/0.4057, allocations: 93.89 MB / 1.041 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.04254/0.4483, allocations: 29.75 MB / 1.071 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005828/0.4542, allocations: 135.2 kB / 1.071 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.005989/0.4602, allocations: 1.765 MB / 1.072 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.01271/0.473, allocations: 4.173 MB / 1.076 GB, free: 7.113 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0094/0.4824, allocations: 3.31 MB / 1.08 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.5866/1.069, allocations: 8.922 MB / 1.088 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007391/1.076, allocations: 3.283 MB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01243/1.089, allocations: 3.801 MB / 1.095 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007349/1.096, allocations: 2.954 MB / 1.098 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.00189/1.098, allocations: 394.4 kB / 1.099 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009133/1.107, allocations: 2.664 MB / 1.101 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.003685/1.111, allocations: 1.626 MB / 1.103 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.007631/1.119, allocations: 2.508 MB / 1.105 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.01339/1.132, allocations: 6.011 MB / 1.111 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/1.132, allocations: 2.312 kB / 1.111 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.265e-06/1.132, allocations: 1.281 kB / 1.111 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0002944/1.133, allocations: 0 / 1.111 GB, free: 11.65 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 478 * Number of variables: 478 Notification: Performance of Generate backend data structure: time 0.02098/1.154, allocations: 5.555 MB / 1.116 GB, free: 9.121 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.884e-05/1.154, allocations: 9.688 kB / 1.116 GB, free: 9.121 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01028/1.164, allocations: 1.546 MB / 1.118 GB, free: 8.789 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01549/1.179, allocations: 5.209 MB / 1.123 GB, free: 7.844 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008726/1.18, allocations: 289.3 kB / 1.123 GB, free: 7.824 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001299/1.182, allocations: 216.4 kB / 1.124 GB, free: 7.824 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009307/1.191, allocations: 2.973 MB / 1.126 GB, free: 7.543 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.182e-05/1.191, allocations: 12.39 kB / 1.126 GB, free: 7.539 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006029/1.192, allocations: 82.97 kB / 1.127 GB, free: 7.535 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.486e-05/1.192, allocations: 46.5 kB / 1.127 GB, free: 7.535 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007624/1.199, allocations: 2.337 MB / 1.129 GB, free: 7.484 MB / 0.8575 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.02992/1.229, allocations: 12.32 MB / 1.141 GB, free: 18.56 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005291/1.235, allocations: 1.773 MB / 1.143 GB, free: 18.48 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002224/1.237, allocations: 0.7857 MB / 1.143 GB, free: 18.45 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01287/1.25, allocations: 5.049 MB / 1.148 GB, free: 16.53 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.817e-05/1.25, allocations: 38.23 kB / 1.148 GB, free: 16.49 MB / 0.8731 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003097/1.253, allocations: 182.1 kB / 1.149 GB, free: 16.39 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=69): time 8.967e-06/1.253, allocations: 0 / 1.149 GB, free: 16.39 MB / 0.8731 GB Notification: Performance of matching and sorting (n=69): time 0.008053/1.261, allocations: 2.537 MB / 1.151 GB, free: 16.08 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.988e-05/1.261, allocations: 65.75 kB / 1.151 GB, free: 16.02 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01299/1.274, allocations: 4.79 MB / 1.156 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0008268/1.275, allocations: 50.36 kB / 1.156 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.003008/1.278, allocations: 2.074 MB / 1.158 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007318/1.279, allocations: 246.4 kB / 1.158 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001969/1.281, allocations: 0.5028 MB / 1.159 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001097/1.281, allocations: 305.1 kB / 1.159 GB, free: 12.13 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003225/1.284, allocations: 1.634 MB / 1.16 GB, free: 11.36 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003856/1.288, allocations: 2.653 MB / 1.163 GB, free: 9.203 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007378/1.296, allocations: 4.169 MB / 1.167 GB, free: 6.508 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.888e-05/1.296, allocations: 12 kB / 1.167 GB, free: 6.504 MB / 0.8731 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.0108/1.306, allocations: 4.561 MB / 1.172 GB, free: 4.504 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 5.964e-05/1.307, allocations: 22.14 kB / 1.172 GB, free: 4.5 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.243e-05/1.307, allocations: 32.88 kB / 1.172 GB, free: 4.5 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.075e-05/1.307, allocations: 41.88 kB / 1.172 GB, free: 4.5 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003881/1.311, allocations: 0.6272 MB / 1.172 GB, free: 4.363 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002882/1.314, allocations: 3.003 MB / 1.175 GB, free: 1.672 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004984/1.319, allocations: 292.9 kB / 1.176 GB, free: 1.555 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006995/1.319, allocations: 186.8 kB / 1.176 GB, free: 1.523 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006233/1.325, allocations: 2.281 MB / 1.178 GB, free: 304 kB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003801/1.329, allocations: 2.381 MB / 1.18 GB, free: 14.27 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005967/1.335, allocations: 3.644 MB / 1.184 GB, free: 11.81 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.592e-05/1.335, allocations: 6.375 kB / 1.184 GB, free: 11.81 MB / 0.8887 GB Notification: Performance of matching and sorting (n=259) (initialization_lambda0): time 0.009052/1.344, allocations: 4.015 MB / 1.188 GB, free: 9.094 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 5.035e-05/1.345, allocations: 24.56 kB / 1.188 GB, free: 9.07 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.259e-05/1.345, allocations: 35.94 kB / 1.188 GB, free: 9.035 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.939e-05/1.345, allocations: 44 kB / 1.188 GB, free: 8.992 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003116/1.348, allocations: 0.6633 MB / 1.188 GB, free: 8.363 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.425e-05/1.348, allocations: 66.81 kB / 1.189 GB, free: 8.312 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004627/1.352, allocations: 264.4 kB / 1.189 GB, free: 8.055 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005235/1.353, allocations: 184 kB / 1.189 GB, free: 7.875 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * 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 (228): * Single equations (assignments): 220 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001007/1.354, allocations: 327.2 kB / 1.189 GB, free: 7.586 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001666/1.356, allocations: 418.5 kB / 1.19 GB, free: 7.172 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007429/1.363, allocations: 2.525 MB / 1.192 GB, free: 4.684 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-05/1.363, allocations: 15.98 kB / 1.192 GB, free: 4.668 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/1.363, allocations: 0 / 1.192 GB, free: 4.668 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.417e-05/1.363, allocations: 3.984 kB / 1.192 GB, free: 4.664 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01433/1.378, allocations: 4.892 MB / 1.197 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.896e-06/1.378, allocations: 0 / 1.197 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001503/1.379, allocations: 272.8 kB / 1.197 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004008/1.38, allocations: 137.7 kB / 1.197 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001235/1.38, allocations: 47.45 kB / 1.197 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001824/1.382, allocations: 2.67 MB / 1.2 GB, free: 12.55 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/1.382, allocations: 7.969 kB / 1.2 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005682/1.387, allocations: 2.339 MB / 1.202 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002575/1.39, allocations: 0.6516 MB / 1.203 GB, free: 9.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00164/1.391, allocations: 16 kB / 1.203 GB, free: 9.504 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00339/1.395, allocations: 183.8 kB / 1.203 GB, free: 9.324 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001503/1.395, allocations: 64.84 kB / 1.203 GB, free: 9.262 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001805/1.395, allocations: 59.95 kB / 1.203 GB, free: 9.203 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.009515/1.405, allocations: 3.291 MB / 1.206 GB, free: 5.93 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.91e-07/1.405, allocations: 0 / 1.206 GB, free: 5.93 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0112/1.416, allocations: 1.684 MB / 1.208 GB, free: 4.242 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (95): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems 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): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002945/1.419, allocations: 0.6172 MB / 1.209 GB, free: 3.668 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.01389/1.433, allocations: 5.169 MB / 1.214 GB, free: 14.72 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/1.433, allocations: 8.047 kB / 1.214 GB, free: 14.71 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.002543/1.435, allocations: 0.9309 MB / 1.215 GB, free: 13.8 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01283/1.448, allocations: 2.279 MB / 1.217 GB, free: 11.57 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01728/1.466, allocations: 8.566 MB / 1.225 GB, free: 2.977 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003853/1.47, allocations: 2.476 MB / 1.228 GB, free: 484 kB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001655/1.471, allocations: 326.1 kB / 1.228 GB, free: 160 kB / 0.92 GB Notification: Performance of SimCode: time 1.022e-06/1.471, allocations: 0 / 1.228 GB, free: 160 kB / 0.92 GB Notification: Performance of Templates: time 0.1852/1.656, allocations: 144.5 MB / 1.369 GB, free: 0.5312 MB / 1.061 GB make -j1 -f Buildings_9_Buildings.Fluid.Movers.Examples.MoverParameter.makefile (rm -f Buildings_9_Buildings.Fluid.Movers.Examples.MoverParameter.pipe ; mkfifo Buildings_9_Buildings.Fluid.Movers.Examples.MoverParameter.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Movers.Examples.MoverParameter.pipe >> ../files/Buildings_9_Buildings.Fluid.Movers.Examples.MoverParameter.sim & ./Buildings_9_Buildings.Fluid.Movers.Examples.MoverParameter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Movers.Examples.MoverParameter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Movers.Examples.MoverParameter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Movers_Examples_MoverParameter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Movers.Examples.MoverParameter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches