Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.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.AC.OnePhase.Loads.Examples.ParallelResistors,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors",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.004116/0.004116, allocations: 98.67 kB / 15.73 MB, free: 6.039 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.001148/0.001148, allocations: 202.2 kB / 16.68 MB, free: 5.961 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.28/1.28, 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 10.1.1-maint.10.0.x/package.mo): time 2.415/2.415, allocations: 437.1 MB / 0.7106 GB, free: 4.977 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001744/0.001745, allocations: 67.83 kB / 1.018 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2613, allocations: 151.6 MB / 1.166 GB, free: 7.418 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors): time 0.003819/0.2651, allocations: 2.635 MB / 1.169 GB, free: 4.758 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001957/0.2671, allocations: 1.321 MB / 1.17 GB, free: 3.43 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.987e-05/0.2672, allocations: 4 kB / 1.17 GB, free: 3.426 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0005987/0.2678, allocations: 179.2 kB / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0003314/0.2681, allocations: 163.3 kB / 1.17 GB, free: 3.09 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003233/0.2685, allocations: 168.5 kB / 1.171 GB, free: 2.926 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003053/0.2688, allocations: 259.2 kB / 1.171 GB, free: 2.672 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002739/0.2691, allocations: 145.4 kB / 1.171 GB, free: 2.527 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001514/0.2692, allocations: 103.6 kB / 1.171 GB, free: 2.426 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002372/0.2695, allocations: 119.6 kB / 1.171 GB, free: 2.309 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.263e-05/0.2695, allocations: 16 kB / 1.171 GB, free: 2.293 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002273/0.2697, allocations: 143.7 kB / 1.171 GB, free: 2.152 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 8.629e-05/0.2698, allocations: 71.78 kB / 1.171 GB, free: 2.082 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 9.862e-05/0.2699, allocations: 91.53 kB / 1.171 GB, free: 1.992 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003546/0.2703, allocations: 303.1 kB / 1.172 GB, free: 1.695 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.2703, allocations: 0 / 1.172 GB, free: 1.695 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.132e-06/0.2703, allocations: 0 / 1.172 GB, free: 1.695 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.099e-06/0.2703, allocations: 0 / 1.172 GB, free: 1.695 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0007351/0.2711, allocations: 0.4909 MB / 1.172 GB, free: 1.152 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.2711, allocations: 12.03 kB / 1.172 GB, free: 1.141 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.195e-05/0.2712, allocations: 50.67 kB / 1.172 GB, free: 1.082 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004421/0.2716, allocations: 72.72 kB / 1.172 GB, free: 1.012 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002766/0.2719, allocations: 255.8 kB / 1.173 GB, free: 0.7227 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.2719, allocations: 12.59 kB / 1.173 GB, free: 0.7109 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.627e-05/0.272, allocations: 8.375 kB / 1.173 GB, free: 0.7031 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004984/0.2725, allocations: 316.3 kB / 1.173 GB, free: 376 kB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.709e-06/0.2725, allocations: 3.938 kB / 1.173 GB, free: 372 kB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.212e-05/0.2725, allocations: 4 kB / 1.173 GB, free: 368 kB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.18e-05/0.2726, allocations: 24.27 kB / 1.173 GB, free: 344 kB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000484/0.2731, allocations: 260.6 kB / 1.173 GB, free: 84 kB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001589/0.2746, allocations: 1.502 MB / 1.175 GB, free: 14.43 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004877/0.2751, allocations: 257.1 kB / 1.175 GB, free: 14.16 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000227/0.2754, allocations: 125.6 kB / 1.175 GB, free: 14.04 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.2754, allocations: 4 kB / 1.175 GB, free: 14.03 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.855e-05/0.2754, allocations: 46.44 kB / 1.175 GB, free: 13.98 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=15): time 1.193e-06/0.2755, allocations: 0 / 1.175 GB, free: 13.98 MB / 0.9356 GB Notification: Performance of matching and sorting (n=15): time 0.0007265/0.2762, allocations: 340.9 kB / 1.175 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.115e-05/0.2762, allocations: 85.05 kB / 1.175 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000165/0.2764, allocations: 178.7 kB / 1.176 GB, free: 13.35 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.672e-05/0.2764, allocations: 33.7 kB / 1.176 GB, free: 13.31 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 9.591e-05/0.2766, allocations: 144.2 kB / 1.176 GB, free: 13.17 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.761e-05/0.2766, allocations: 55.53 kB / 1.176 GB, free: 13.11 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.994e-05/0.2767, allocations: 45.66 kB / 1.176 GB, free: 13.06 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001517/0.2768, allocations: 330.8 kB / 1.176 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002111/0.2771, allocations: 104.8 kB / 1.176 GB, free: 12.62 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002553/0.2773, allocations: 169.9 kB / 1.176 GB, free: 12.43 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00047/0.2778, allocations: 277.1 kB / 1.177 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.2778, allocations: 7.984 kB / 1.177 GB, free: 12.13 MB / 0.9356 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005572/0.2784, allocations: 305.2 kB / 1.177 GB, free: 11.83 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.2784, allocations: 7.984 kB / 1.177 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.2784, allocations: 4 kB / 1.177 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.2784, allocations: 4 kB / 1.177 GB, free: 11.81 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002594/0.2787, allocations: 55.89 kB / 1.177 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.2787, allocations: 4 kB / 1.177 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001796/0.2789, allocations: 40.08 kB / 1.177 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.2789, allocations: 7.938 kB / 1.177 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002626/0.2792, allocations: 192.1 kB / 1.177 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002265/0.2794, allocations: 148.5 kB / 1.177 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004123/0.2798, allocations: 257.9 kB / 1.178 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.193e-06/0.2799, allocations: 0 / 1.178 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0004918/0.2804, allocations: 269.2 kB / 1.178 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.2804, allocations: 17.89 kB / 1.178 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.164e-06/0.2804, allocations: 4 kB / 1.178 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.158e-06/0.2804, allocations: 4 kB / 1.178 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002098/0.2806, allocations: 55.91 kB / 1.178 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.946e-06/0.2806, allocations: 0 / 1.178 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001631/0.2808, allocations: 31.92 kB / 1.178 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.2808, allocations: 8 kB / 1.178 GB, free: 10.68 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (23): * Single equations (assignments): 23 * 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.0001207/0.2809, allocations: 196.1 kB / 1.178 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.745e-05/0.281, allocations: 23.91 kB / 1.178 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005395/0.2815, allocations: 268.3 kB / 1.179 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2816, allocations: 4 kB / 1.179 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.2816, allocations: 0 / 1.179 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.2816, allocations: 0 / 1.179 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001014/0.2826, allocations: 0.6888 MB / 1.179 GB, free: 9.422 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.2826, allocations: 0 / 1.179 GB, free: 9.422 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002173/0.2828, allocations: 43.95 kB / 1.179 GB, free: 9.379 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.2828, allocations: 3.938 kB / 1.179 GB, free: 9.375 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.633e-05/0.2829, allocations: 8 kB / 1.179 GB, free: 9.367 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.2829, allocations: 4 kB / 1.179 GB, free: 9.363 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.2829, allocations: 3.938 kB / 1.179 GB, free: 9.359 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005499/0.2834, allocations: 446.1 kB / 1.18 GB, free: 8.895 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001099/0.2835, allocations: 113 kB / 1.18 GB, free: 8.766 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.192e-05/0.2836, allocations: 19.88 kB / 1.18 GB, free: 8.746 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001932/0.2838, allocations: 15.97 kB / 1.18 GB, free: 8.73 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.19e-05/0.2838, allocations: 19.92 kB / 1.18 GB, free: 8.711 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.2839, allocations: 4 kB / 1.18 GB, free: 8.707 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001103/0.284, allocations: 131.2 kB / 1.18 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.284, allocations: 0 / 1.18 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0004223/0.2844, allocations: 83.83 kB / 1.18 GB, free: 8.496 MB / 0.9356 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 (16): * Single equations (assignments): 16 * 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.0008489/0.2853, allocations: 0.9902 MB / 1.181 GB, free: 7.469 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000717/0.286, allocations: 375.4 kB / 1.181 GB, free: 7.105 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.286, allocations: 0 / 1.181 GB, free: 7.105 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002214/0.2862, allocations: 120 kB / 1.182 GB, free: 6.988 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004269/0.2867, allocations: 38.2 kB / 1.182 GB, free: 6.953 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002895/0.2896, allocations: 2.469 MB / 1.184 GB, free: 4.336 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003673/0.2899, allocations: 0.7478 MB / 1.185 GB, free: 3.562 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001805/0.2901, allocations: 85.45 kB / 1.185 GB, free: 3.48 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.2903, allocations: 47.42 kB / 1.185 GB, free: 3.434 MB / 0.9356 GB Notification: Performance of SimCode: time 2.7e-07/0.2903, allocations: 0 / 1.185 GB, free: 3.434 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3971/0.6874, allocations: 4.21 MB / 1.189 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.37/8.058, allocations: 12.64 kB / 1.189 GB, free: 15.35 MB / 0.9512 GB (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors.fmu > Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches