Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

cesm2_3_beta08 Porting error

jhPark

Junghyun Park
New Member
Hello.

I am trying to port cesm2_3_beta08 to implement CAM6-MOM6 coupled model.

config_machines.xml, config_batch.xml, and config_compilers.xml that worked in CESM 2.2 version were used for porting cesm2_3_beta08, but the following error occurred during ./case.setup. Previous CESM 2.2 versions worked fine.

ERROR: Could not initialize machine object from /lustre/cesm2/CESM_MOM6/ccs_config/machines/config_machines.xml. This machine is not available for the target CIME_MODEL.

To solve this error, I tried following the other advice in the CESM forum, but it still doesn't run with another error.

ERROR: Command: '/usr/bin/xmllint --xinclude --noout --schema /lustre/cesm2/CESM_MOM6/cime/config/xml_schemas/config_machines.xsd /lustre/cesm2/CESM_MOM6/ccs_config/machines/config_machines.xml ' failed with error '/lustre/cesm2/CESM_MOM6/ccs_config/machines/config_machines.xml:55: element NODENAME_REGEX: Schemas validity error : Element 'NODENAME_REGEX': This element is not expected. Expected is one of ( PROXY, COMPILERS ).
/lustre/cesm2/CESM_MOM6/ccs_config/machines/config_machines.xml fails to validate' from dir '/lustre/cesm2/CESM_MOM6/cases/2020_cice_case


Here is my env_machine.xml script.

Code:
<config_machines version="2.0">
<machine MACH="MyMach">
    <DESC>MACH</DESC>
    <OS>LINUX</OS>
    <NODENAME_REGEX>chukchi\d\d</NODENAME_REGEX>
    <PROXY>https://PP.ac.kr</PROXY>
    <!--PROJECT>none</PROJECT-->
    <COMPILERS>intel</COMPILERS>
    <MPILIBS>mvapich2</MPILIBS>
    <CIME_OUTPUT_ROOT>$ENV{HOME}/CESM_MOM6/output</CIME_OUTPUT_ROOT>
    <DIN_LOC_ROOT>$ENV{HOME}/2.2.0/inputdata</DIN_LOC_ROOT>
    <DIN_LOC_ROOT_CLMFORC>$ENV{HOME}/2.2.0/inputdata/lmwg</DIN_LOC_ROOT_CLMFORC>
    <!-- <DIN_LOC_ROOT_CLMFORC>$ENV{HOME}/inputdata/atm/datm7</DIN_LOC_ROOT_CLMFORC> -->
    <DOUT_S_ROOT>$ENV{HOME}/cases/$CASE</DOUT_S_ROOT>
    <BASELINE_ROOT>$ENV{HOME}/CESM_MOM6/cesm_baselines</BASELINE_ROOT>
    <!-- <BASELINE_ROOT>/nobackup/fvitt/cesm_baselines</BASELINE_ROOT>  -->
    <CCSM_CPRNC>$ENV{HOME}/CESM_MOM6/cime/tools/cprnc/cprnc</CCSM_CPRNC>
    <!-- <CCSM_CPRNC>/u/fvitt/bin/cprnc</CCSM_CPRNC> -->
    <GMAKE_J>16</GMAKE_J>
    <BATCH_SYSTEM>pbs</BATCH_SYSTEM>
    <SUPPORTED_BY>jhpark@PP.ac.kr</SUPPORTED_BY>
    <MAX_TASKS_PER_NODE>36</MAX_TASKS_PER_NODE>
    <MAX_MPITASKS_PER_NODE>36</MAX_MPITASKS_PER_NODE>
    <PROJECT_REQUIRED>FALSE</PROJECT_REQUIRED>
    <mpirun mpilib="mvapich2">
      <executable>mpirun</executable>
      <arguments>
        <arg name="machine_file">-hostfile $ENV{PBS_NODEFILE}</arg>
        <arg name="num_tasks"> -np {{ total_tasks }}</arg>
      </arguments>
    </mpirun>
    <module_system type="module">
      <init_path lang="perl">/usr/share/Modules/init/perl.pm</init_path>
      <init_path lang="sh">/usr/share/Modules/init/sh</init_path>
      <init_path lang="csh">/usr/share/Modules/init/csh</init_path>
      <init_path lang="python">/usr/share/Modules/init/python.py</init_path>
      <cmd_path lang="perl">/usr/bin/modulecmd perl</cmd_path>
      <cmd_path lang="python">/usr/bin/modulecmd python</cmd_path>
      <cmd_path lang="csh">module</cmd_path>
      <cmd_path lang="sh">module</cmd_path>
      <modules>
        <command name="purge"/>
        <command name="load">intel18/compiler-18</command>
        <command name="load">intel18/mvapich2-2.2</command>
        <command name="load">intel18/netcdf-4.6.1</command>
        <command name="load">intel18/pnetcdf-1.11.2</command>
        <command name="load">gcc/hdf5-1.10.5</command>
        </modules>
    </module_system>
    <environment_variables>
      <env name="NETCDF_PATH">/lustre/local/netcdf/461_intel18</env>
      <env name="NETCDF_C_PATH">/lustre/local/netcdf/461_intel18</env>
      <env name="NETCDF_FORTRAN_PATH">/lustre/local/netcdf/461_intel18</env>
      <env name="HDF5_PATH">/lustre/local/hdf5/1.10.5</env>
      <env name="PNETCDF_PATH">/lustre/local/pnetcdf/1.11.2_intel18_mvapich2-2.2</env>
      <env name="CIME_MODEL">cesm</env>
      <env name="CIMEROOT">/lustre/cesm2/CESM_MOM6/ccs_config</env>
      <env name="OMP_STACKSIZE">256M</env>
    </environment_variables>
</machine>




If anyone knows more about this, any help would be greatly appreciated.

Thanks.

jhpark.
 

Attachments

  • env_batch.xml.txt
    425 bytes · Views: 0
  • env_compile.xml.txt
    2.2 KB · Views: 0

jedwards

CSEG and Liaisons
Staff member
config_machines.xml requires variables to be in a specific order. This order is listed in file /lustre/cesm2/CESM_MOM6/cime/config/xml_schemas/config_machines.xsd
In this case the error appears to be that the NODENAME_REGEX line should precede the OS line.
 
Top