Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter.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.Electrical.DC.Conversion.Examples.DCDCConverter,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Conversion_Examples_DCDCConverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Conversion.Examples.DCDCConverter,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Conversion_Examples_DCDCConverter",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.006511/0.006511, allocations: 101.7 kB / 15.73 MB, free: 5.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.001324/0.001324, allocations: 188.4 kB / 16.67 MB, free: 5.422 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.349/1.349, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.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.543/2.543, allocations: 437 MB / 0.7105 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 59.91 kB / 1.018 GB, free: 9.91 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8262/0.8276, allocations: 151.6 MB / 1.166 GB, free: 3.75 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Conversion.Examples.DCDCConverter): time 0.004406/0.8321, allocations: 3.371 MB / 1.169 GB, free: 372 kB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002118/0.8342, allocations: 1.488 MB / 1.171 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001495/0.8344, allocations: 7.938 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001543/0.8359, allocations: 0.7025 MB / 1.172 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0004652/0.8364, allocations: 187.1 kB / 1.172 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006752/0.8371, allocations: 243.4 kB / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0004427/0.8375, allocations: 415.2 kB / 1.172 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005051/0.8381, allocations: 298 kB / 1.173 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001645/0.8382, allocations: 151.5 kB / 1.173 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000305/0.8385, allocations: 207.2 kB / 1.173 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 4.366e-05/0.8386, allocations: 24 kB / 1.173 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003729/0.839, allocations: 235.5 kB / 1.173 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001009/0.8391, allocations: 103.7 kB / 1.173 GB, free: 12.33 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001359/0.8392, allocations: 151.2 kB / 1.173 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0004639/0.8397, allocations: 454.5 kB / 1.174 GB, free: 11.73 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.8397, allocations: 0 / 1.174 GB, free: 11.73 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.423e-06/0.8397, allocations: 4 kB / 1.174 GB, free: 11.73 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 9.799e-06/0.8397, allocations: 0 / 1.174 GB, free: 11.73 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0009726/0.8407, allocations: 0.6042 MB / 1.175 GB, free: 11.08 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.8408, allocations: 12.92 kB / 1.175 GB, free: 11.07 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.561e-05/0.8408, allocations: 58.73 kB / 1.175 GB, free: 11 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006631/0.8415, allocations: 104.5 kB / 1.175 GB, free: 10.9 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003475/0.8419, allocations: 288.3 kB / 1.175 GB, free: 10.57 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.406e-05/0.8419, allocations: 50.81 kB / 1.175 GB, free: 10.52 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.091e-05/0.842, allocations: 24.38 kB / 1.175 GB, free: 10.49 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006066/0.8426, allocations: 424.4 kB / 1.175 GB, free: 10.06 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.8426, allocations: 0 / 1.175 GB, free: 10.06 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.984e-05/0.8427, allocations: 15.98 kB / 1.175 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.355e-05/0.8427, allocations: 28.55 kB / 1.175 GB, free: 10.01 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005502/0.8433, allocations: 326 kB / 1.176 GB, free: 9.695 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001932/0.8452, allocations: 2.084 MB / 1.178 GB, free: 7.387 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005007/0.8457, allocations: 194.7 kB / 1.178 GB, free: 7.188 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002878/0.846, allocations: 140.7 kB / 1.178 GB, free: 7.047 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.147e-05/0.8461, allocations: 11.92 kB / 1.178 GB, free: 7.035 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.945e-05/0.8461, allocations: 30.56 kB / 1.178 GB, free: 6.996 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=17): time 1.403e-06/0.8461, allocations: 0 / 1.178 GB, free: 6.996 MB / 0.9044 GB Notification: Performance of matching and sorting (n=17): time 0.0005815/0.8467, allocations: 257.2 kB / 1.178 GB, free: 6.738 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.431e-05/0.8467, allocations: 55.41 kB / 1.178 GB, free: 6.672 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001862/0.8469, allocations: 228.9 kB / 1.179 GB, free: 6.445 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.8469, allocations: 25.7 kB / 1.179 GB, free: 6.414 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.8471, allocations: 187.9 kB / 1.179 GB, free: 6.227 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.379e-05/0.8471, allocations: 63.19 kB / 1.179 GB, free: 6.164 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.619e-05/0.8472, allocations: 61.53 kB / 1.179 GB, free: 6.098 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 9.971e-05/0.8473, allocations: 330.8 kB / 1.179 GB, free: 5.766 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001824/0.8475, allocations: 84.8 kB / 1.179 GB, free: 5.68 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002148/0.8477, allocations: 181.6 kB / 1.18 GB, free: 5.453 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000384/0.8481, allocations: 267.3 kB / 1.18 GB, free: 5.148 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.8481, allocations: 4 kB / 1.18 GB, free: 5.145 MB / 0.9044 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004892/0.8486, allocations: 293.3 kB / 1.18 GB, free: 4.852 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.8486, allocations: 4 kB / 1.18 GB, free: 4.848 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.8486, allocations: 7.938 kB / 1.18 GB, free: 4.84 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.8487, allocations: 4 kB / 1.18 GB, free: 4.836 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003942/0.8491, allocations: 75.89 kB / 1.18 GB, free: 4.762 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009533/0.85, allocations: 1.408 MB / 1.182 GB, free: 3.215 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001824/0.8502, allocations: 39.67 kB / 1.182 GB, free: 3.176 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.901e-05/0.8502, allocations: 12 kB / 1.182 GB, free: 3.164 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002459/0.8505, allocations: 196 kB / 1.182 GB, free: 2.969 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002116/0.8507, allocations: 176.2 kB / 1.182 GB, free: 2.746 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003697/0.8511, allocations: 284 kB / 1.182 GB, free: 2.422 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.136e-06/0.8511, allocations: 4 kB / 1.182 GB, free: 2.418 MB / 0.9044 GB Notification: Performance of matching and sorting (n=31) (initialization_lambda0): time 0.0004651/0.8516, allocations: 277.5 kB / 1.183 GB, free: 2.141 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.8516, allocations: 8 kB / 1.183 GB, free: 2.133 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.8516, allocations: 7.984 kB / 1.183 GB, free: 2.125 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.839e-06/0.8516, allocations: 4 kB / 1.183 GB, free: 2.121 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003469/0.852, allocations: 63.91 kB / 1.183 GB, free: 2.059 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008817/0.8529, allocations: 1.408 MB / 1.184 GB, free: 0.5117 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001812/0.8531, allocations: 27.75 kB / 1.184 GB, free: 496 kB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.523e-05/0.8531, allocations: 8 kB / 1.184 GB, free: 488 kB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001193/0.8532, allocations: 208.2 kB / 1.184 GB, free: 272 kB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.456e-05/0.8533, allocations: 23.75 kB / 1.184 GB, free: 248 kB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.77e-05/0.8533, allocations: 22.19 kB / 1.184 GB, free: 224 kB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.8533, allocations: 4 kB / 1.184 GB, free: 220 kB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.8533, allocations: 0 / 1.184 GB, free: 220 kB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.8533, allocations: 3.984 kB / 1.184 GB, free: 216 kB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009369/0.8543, allocations: 0.7349 MB / 1.185 GB, free: 15.39 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.8543, allocations: 4 kB / 1.185 GB, free: 15.38 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000322/0.8546, allocations: 47.91 kB / 1.185 GB, free: 15.34 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.8546, allocations: 4 kB / 1.185 GB, free: 15.33 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.8546, allocations: 8 kB / 1.185 GB, free: 15.32 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.8547, allocations: 0 / 1.185 GB, free: 15.32 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.8547, allocations: 4.156 kB / 1.185 GB, free: 15.32 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004071/0.8551, allocations: 329.6 kB / 1.185 GB, free: 14.97 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 9.044e-05/0.8552, allocations: 116.8 kB / 1.185 GB, free: 14.84 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.186e-05/0.8552, allocations: 4 kB / 1.185 GB, free: 14.83 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001301/0.8553, allocations: 15.92 kB / 1.186 GB, free: 14.82 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.984e-05/0.8554, allocations: 15.92 kB / 1.186 GB, free: 14.8 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.209e-05/0.8554, allocations: 8 kB / 1.186 GB, free: 14.79 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001301/0.8555, allocations: 160.5 kB / 1.186 GB, free: 14.63 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8556, allocations: 0 / 1.186 GB, free: 14.63 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0004992/0.8561, allocations: 123.6 kB / 1.186 GB, free: 14.51 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (17): * Single equations (assignments): 17 * 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.0006717/0.8567, allocations: 0.85 MB / 1.187 GB, free: 13.62 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0009275/0.8577, allocations: 335.8 kB / 1.187 GB, free: 13.3 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.8577, allocations: 3.938 kB / 1.187 GB, free: 13.29 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0003207/0.858, allocations: 91.88 kB / 1.187 GB, free: 13.2 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004003/0.8584, allocations: 53.27 kB / 1.187 GB, free: 13.16 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002777/0.8612, allocations: 2.573 MB / 1.19 GB, free: 10.39 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002964/0.8615, allocations: 0.7753 MB / 1.19 GB, free: 9.59 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0001581/0.8617, allocations: 57.89 kB / 1.19 GB, free: 9.535 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.8618, allocations: 67.42 kB / 1.19 GB, free: 9.469 MB / 0.92 GB Notification: Performance of SimCode: time 3.51e-07/0.8618, allocations: 0 / 1.19 GB, free: 9.469 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02283/0.8846, allocations: 4.889 MB / 1.195 GB, free: 4.734 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.97, allocations: 8.531 kB / 1.195 GB, free: 4.727 MB / 0.92 GB (rm -f Buildings_10_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_DC_Conversion_Examples_DCDCConverter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_DC_Conversion_Examples_DCDCConverter.fmu > Buildings_10_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Conversion_Examples_DCDCConverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Conversion.Examples.DCDCConverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches