Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.S.1.|load.S.2.|sou.S.1.|sou.S.2.|load.i.1.|load.i.2.|conACAC.terminal_n.v.1.|conACAC.terminal_n.v.2.|conACAC.terminal_p.v.1.|conACAC.terminal_p.v.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter") translateModel(Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.S.1.|load.S.2.|sou.S.1.|sou.S.2.|load.i.1.|load.i.2.|conACAC.terminal_n.v.1.|conACAC.terminal_n.v.2.|conACAC.terminal_p.v.1.|conACAC.terminal_p.v.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008871/0.008871, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001814/0.001814, allocations: 195.9 kB / 16.67 MB, free: 5.977 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.485/1.485, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.813/2.813, allocations: 461.9 MB / 0.7348 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002016/0.002017, allocations: 60.12 kB / 1.054 GB, free: 7.176 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3533/0.3553, allocations: 157.4 MB / 1.208 GB, free: 9.672 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter): time 0.005006/0.3604, allocations: 2.742 MB / 1.21 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003618/0.364, allocations: 2.095 MB / 1.212 GB, free: 4.809 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002434/0.3643, allocations: 8 kB / 1.212 GB, free: 4.801 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001016/0.3654, allocations: 227.1 kB / 1.213 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0007245/0.3661, allocations: 211 kB / 1.213 GB, free: 4.371 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008597/0.367, allocations: 281.6 kB / 1.213 GB, free: 4.098 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0005252/0.3675, allocations: 323 kB / 1.213 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003822/0.3679, allocations: 156.1 kB / 1.214 GB, free: 3.629 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002853/0.3682, allocations: 123.6 kB / 1.214 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004079/0.3686, allocations: 151.5 kB / 1.214 GB, free: 3.359 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 6.045e-05/0.3687, allocations: 20 kB / 1.214 GB, free: 3.34 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007995/0.3695, allocations: 419.2 kB / 1.214 GB, free: 2.93 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.00013/0.3697, allocations: 95.77 kB / 1.214 GB, free: 2.836 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001334/0.3698, allocations: 111.4 kB / 1.214 GB, free: 2.727 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0008716/0.3707, allocations: 494.6 kB / 1.215 GB, free: 2.242 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.3707, allocations: 0 / 1.215 GB, free: 2.242 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.964e-06/0.3707, allocations: 0 / 1.215 GB, free: 2.242 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.092e-05/0.3707, allocations: 4 kB / 1.215 GB, free: 2.238 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001111/0.3718, allocations: 0.5498 MB / 1.215 GB, free: 1.641 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.3719, allocations: 12.62 kB / 1.215 GB, free: 1.629 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001068/0.373, allocations: 140.4 kB / 1.216 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004035/0.3734, allocations: 274.8 kB / 1.216 GB, free: 1.188 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.191e-05/0.3734, allocations: 16.81 kB / 1.216 GB, free: 1.172 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.293e-05/0.3735, allocations: 20.12 kB / 1.216 GB, free: 1.152 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007254/0.3742, allocations: 393.9 kB / 1.216 GB, free: 0.7344 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.3742, allocations: 0 / 1.216 GB, free: 0.7344 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.502e-05/0.3743, allocations: 8 kB / 1.216 GB, free: 0.7266 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.375e-05/0.3743, allocations: 23.98 kB / 1.216 GB, free: 0.7031 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007521/0.3751, allocations: 383.5 kB / 1.217 GB, free: 336 kB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002148/0.3773, allocations: 1.737 MB / 1.218 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007372/0.378, allocations: 356.9 kB / 1.219 GB, free: 14.08 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003428/0.3784, allocations: 189.6 kB / 1.219 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001599/0.3785, allocations: 93.11 kB / 1.219 GB, free: 13.78 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.3786, allocations: 34.56 kB / 1.219 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=25): time 1.864e-06/0.3786, allocations: 0 / 1.219 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of matching and sorting (n=35): time 0.008891/0.3875, allocations: 2.048 MB / 1.221 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.298e-05/0.3876, allocations: 81.11 kB / 1.221 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001825/0.3878, allocations: 187.3 kB / 1.221 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.51e-05/0.3878, allocations: 33.7 kB / 1.221 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.689e-05/0.3879, allocations: 148.4 kB / 1.221 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001077/0.388, allocations: 122.3 kB / 1.222 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001667/0.3882, allocations: 77.59 kB / 1.222 GB, free: 11 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.3883, allocations: 338.8 kB / 1.222 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005709/0.3889, allocations: 264.7 kB / 1.222 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006097/0.3895, allocations: 341.5 kB / 1.223 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001161/0.3907, allocations: 0.619 MB / 1.223 GB, free: 9.375 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.3907, allocations: 3.938 kB / 1.223 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001365/0.3921, allocations: 0.659 MB / 1.224 GB, free: 8.707 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.3921, allocations: 5.406 kB / 1.224 GB, free: 8.703 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.3921, allocations: 7.984 kB / 1.224 GB, free: 8.695 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.3922, allocations: 4.281 kB / 1.224 GB, free: 8.691 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009723/0.3932, allocations: 155.8 kB / 1.224 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.617e-05/0.3932, allocations: 4 kB / 1.224 GB, free: 8.535 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004865/0.3937, allocations: 55.92 kB / 1.224 GB, free: 8.48 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.148e-05/0.3937, allocations: 15.98 kB / 1.224 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006439/0.3944, allocations: 379.9 kB / 1.224 GB, free: 8.09 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005686/0.395, allocations: 337.9 kB / 1.225 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0011/0.3961, allocations: 0.598 MB / 1.225 GB, free: 7.098 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.655e-06/0.3961, allocations: 0 / 1.225 GB, free: 7.098 MB / 0.9825 GB Notification: Performance of matching and sorting (n=44) (initialization_lambda0): time 0.00132/0.3974, allocations: 0.6337 MB / 1.226 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.3974, allocations: 4 kB / 1.226 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.974e-06/0.3974, allocations: 7.984 kB / 1.226 GB, free: 6.445 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.162e-06/0.3975, allocations: 4 kB / 1.226 GB, free: 6.441 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008745/0.3983, allocations: 151.9 kB / 1.226 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.3984, allocations: 7.984 kB / 1.226 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004557/0.3988, allocations: 51.94 kB / 1.226 GB, free: 6.234 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.367e-05/0.3989, allocations: 15.98 kB / 1.226 GB, free: 6.219 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (44): * Single equations (assignments): 44 * 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.0001869/0.3991, allocations: 200.1 kB / 1.226 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.085e-05/0.3992, allocations: 19.81 kB / 1.226 GB, free: 5.996 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001406/0.4006, allocations: 0.696 MB / 1.227 GB, free: 5.289 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.4006, allocations: 4 kB / 1.227 GB, free: 5.285 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.615e-06/0.4006, allocations: 0 / 1.227 GB, free: 5.285 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.4006, allocations: 0 / 1.227 GB, free: 5.285 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002272/0.4029, allocations: 1.373 MB / 1.228 GB, free: 3.816 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.4029, allocations: 0 / 1.228 GB, free: 3.816 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00056/0.4035, allocations: 119.8 kB / 1.229 GB, free: 3.699 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.518e-06/0.4035, allocations: 4 kB / 1.229 GB, free: 3.695 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.375e-05/0.4035, allocations: 8 kB / 1.229 GB, free: 3.688 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.505e-06/0.4035, allocations: 11.88 kB / 1.229 GB, free: 3.676 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.4036, allocations: 4 kB / 1.229 GB, free: 3.672 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.4046, allocations: 0.7166 MB / 1.229 GB, free: 2.918 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001842/0.4048, allocations: 140.8 kB / 1.229 GB, free: 2.762 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.025e-05/0.4048, allocations: 8 kB / 1.229 GB, free: 2.754 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003583/0.4052, allocations: 43.88 kB / 1.229 GB, free: 2.711 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.897e-05/0.4053, allocations: 27.97 kB / 1.229 GB, free: 2.684 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.104e-05/0.4054, allocations: 16 kB / 1.229 GB, free: 2.668 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001787/0.4055, allocations: 155.6 kB / 1.23 GB, free: 2.516 MB / 0.9825 GB Notification: Performance of sort global known variables: time 3.9e-07/0.4055, allocations: 0 / 1.23 GB, free: 2.516 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000687/0.4062, allocations: 144 kB / 1.23 GB, free: 2.375 MB / 0.9825 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 (37): * Single equations (assignments): 37 * 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.0002509/0.4065, allocations: 143.1 kB / 1.23 GB, free: 2.223 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001833/0.4083, allocations: 0.8748 MB / 1.231 GB, free: 1.348 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.4084, allocations: 0 / 1.231 GB, free: 1.348 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0004571/0.4088, allocations: 259.7 kB / 1.231 GB, free: 1.094 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005427/0.4094, allocations: 48.58 kB / 1.231 GB, free: 1.047 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/0.4107, allocations: 0.6931 MB / 1.232 GB, free: 308 kB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003739/0.4111, allocations: 0.7799 MB / 1.232 GB, free: 15.49 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0005195/0.4116, allocations: 182.8 kB / 1.233 GB, free: 15.31 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001646/0.4118, allocations: 31.42 kB / 1.233 GB, free: 15.28 MB / 0.9981 GB Notification: Performance of SimCode: time 3.21e-07/0.4118, allocations: 0 / 1.233 GB, free: 15.28 MB / 0.9981 GB Notification: Performance of Templates: time 0.01064/0.4224, allocations: 5.355 MB / 1.238 GB, free: 9.949 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Conversion_Examples_ACACConverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches