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

Could not find machine match for 'login01' or 'login01'Machine is huleiERROR: Expected one child

HU lei

Hulei
New Member
Hello
I was troubled in porting CESM on a new server。 Now one error occurred since I started creating the new case, as shown below:
[hejx@login01 scripts]$ ./create_newcase --case con2015 --res f09_g16 --compset BC5L45BGC --run-unsupport --mach hulei
Compset longname is 2000_CAM50_CLM45%BGC_CICE_POP2_MOSART_SGLC_SWAV
Compset specification file is /public/home/hejx/CESM2.1.1/cime/../cime_config/config_compsets.xml
Compset forcing is 1972-2004
ATM component is CAM cam5 physics:
LND component is clm4.5:BGC (vert. resol. CN and methane):
ICE component is Sea ICE (cice) model version 5
OCN component is POP2
ROF component is MOSART: MOdel for Scale Adaptive River Transport
GLC component is Stub glacier (land ice) component
WAV component is Stub wave component
ESP component is
Pes specification file is /public/home/hejx/CESM2.1.1/cime/../cime_config/config_pes.xml
Compset specific settings: name is RUN_STARTDATE and value is 0001-01-01
Could not find machine match for 'login01' or 'login01'
Machine is hulei
ERROR: Expected one child

So, please give me some advice on solving this problem, the files for machine and compilers defining are attached.

config_machine.xml:
<?xml version="1.0"?>
<config_machines>
<machine MACH="hulei">
<!-- customize these fields as appropriate for your system (max tasks) and
desired layout (change '${HOME}/projects' to your
prefered location). -->
<DESC>ORNL XE6, os is CNL, 32 pes/node, batch system is PBS</DESC>
<NODENAME_REGEX> something.matching.your.machine.hostname </NODENAME_REGEX>
<OS>CNL</OS>
<COMPILERS>intel,pgi,cray,gnu</COMPILERS>
<MPILIBS>mpich</MPILIBS>
<CIME_OUTPUT_ROOT>/public/home/hejx/CESM2.1.1/cime/scripts/output</CIME_OUTPUT_ROOT>
<DIN_LOC_ROOT>/data/hejx/xudsh/lsw/cas_esm2/input/rootDirectory/inputdata</DIN_LOC_ROOT>
<DIN_LOC_ROOT_CLMFORC>/data/hejx/xudsh/lsw/cas_esm2/input/rootDirectory/inputdata/atm/datm7</DIN_LOC_ROOT_CLMFORC>
<DOUT_S_ROOT>$CIME_OUTPUT_ROOT/archive/$CASE</DOUT_S_ROOT>
<BASELINE_ROOT>/public/home/hejx/CESM2.1.1/baselines</BASELINE_ROOT>
<CCSM_CPRNC>/public/home/hejx/CESM2.1.1/cime/tools/cprnc</CCSM_CPRNC>
<GMAKE_J>8</GMAKE_J>
<BATCH_SYSTEM>pbs</BATCH_SYSTEM>
<SUPPORTED_BY>cseg</SUPPORTED_BY>
<MAX_TASKS_PER_NODE>32</MAX_TASKS_PER_NODE>
<MAX_MPITASKS_PER_NODE>16</MAX_MPITASKS_PER_NODE>
<PROJECT_REQUIRED>TRUE</PROJECT_REQUIRED>
<mpirun mpilib="default">
<executable>mpirun</executable>
<arguments>
<arg name="num_tasks"> -np $TOTALPES</arg>
</arguments>
</mpirun>
<module_system type="none"/>
<!--
<init_path lang="perl">/usr/share/Modules/init/perl.pm</init_path>
<init_path lang="python">/usr/share/Modules/init/python.py</init_path>
<init_path lang="csh">/usr/share/Modules/init/csh</init_path>
<init_path lang="sh">/usr/share/Modules/init/sh</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="sh">module</cmd_path>
<cmd_path lang="csh">module</cmd_path>
<modules>
<command name="purge"/>
</modules>
<modules compiler="intel">
<command name="load">/public/software/modules/compiler/intel/intel-compiler-2017.5.239</command>
</modules>
<modules mpilib="intelmpi">
<command name="load">mpi/intelmpi/2017.4.239</command>
</modules>
<modules mpilib="netcdf">
<command name="load">/public/software/modules/mathlib/netcdf/4.7.1/impi_pnetcdf</command>
</modules>
</module_system>
-->
<environment_variables>
<env name="OMP_STACKSIZE">256M</env>
<env name="PATH">$ENV{HOME}/bin:$ENV{PATH}</env>
<env name="NETCDF_PATH">/public/software/mathlib/netcdf/intel/4.7.4/include/netcdf</env>
</environment_variables>
</machine>

</config_machines>

config_compilers.xml:
<?xml version="1.0"?>
<config_compilers version="2.0">
<!-- customize these fields as appropriate for your
system. Examples are prodived for Mac OS X systems with
homebrew and macports. -->
<compiler COMPILER="intel" MACH="hulei">
<CFLAGS>
<base> -qno-opt-dynamic-align -fp-model precise -std=gnu99 </base>
<append compile_threaded="true"> -qopenmp </append>
<append DEBUG="FALSE"> -O2 -debug minimal </append>
<append DEBUG="TRUE"> -O0 -g </append>
</CFLAGS>
<CPPDEFS>
<!-- Technical Library -->
<append> -DFORTRANUNDERSCORE -DCPRINTEL</append>
</CPPDEFS>
<CXX_LDFLAGS>
<base> -cxxlib </base>
</CXX_LDFLAGS>
<CXX_LINKER>FORTRAN</CXX_LINKER>
<FC_AUTO_R8>
<base> -r8 </base>
</FC_AUTO_R8>
<FFLAGS>
<base> -qno-opt-dynamic-align -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs -fp-model source </base>
<append compile_threaded="true"> -qopenmp </append>
<append DEBUG="TRUE"> -O0 -g -check uninit -check bounds -check pointers -fpe0 -check noarg_temp_created </append>
<append DEBUG="FALSE"> -O2 -debug minimal </append>
</FFLAGS>
<FFLAGS_NOOPT>
<base> -O0 </base>
<append compile_threaded="true"> -qopenmp </append>
</FFLAGS_NOOPT>
<FIXEDFLAGS>
<base> -fixed </base>
</FIXEDFLAGS>
<FREEFLAGS>
<base> -free </base>
</FREEFLAGS>
<LDFLAGS>
<append compile_threaded="true"> -qopenmp </append>
</LDFLAGS>
<MPICC> mpiicc </MPICC>
<MPICXX> mpiicpc </MPICXX>
<MPIFC> mpiifort </MPIFC>
<SCC> icc </SCC>
<SCXX> icpc </SCXX>
<SFC> ifort </SFC>
<MPI_PATH>/public/software/mpi/intelmpi/2017.4.239/intel64</MPI_PATH>
<SLIBS>
<base>-L/public/software/mathlib/netcdf/intel/4.7.4/lib -lnetcdf -lnetcdff -L/public/software/mathlib/libs-gcc/lapack/3.9.1/lib -llapack -lblas -mkl</base>
<append MPILIB="mpich"> -mkl=cluster </append>
<append MPILIB="mpich2"> -mkl=cluster </append>
<append MPILIB="mvapich"> -mkl=cluster </append>
<append MPILIB="mvapich2"> -mkl=cluster </append>
<append MPILIB="mpt"> -mkl=cluster </append>
<append MPILIB="openmpi"> -mkl=cluster </append>
<append MPILIB="impi"> -mkl=cluster </append>
<append MPILIB="mpi-serial"> -mkl </append>
</SLIBS>
<SUPPORTS_CXX>TRUE</SUPPORTS_CXX>
<LAPACK_LIBDIR>/public/software/mathlib/libs-gcc/lapack/3.9.1/lib</LAPACK_LIBDIR>
</compiler>
</config_compilers>

config_batch.xml:
 

sacks

Bill Sacks
CSEG and Liaisons
Staff member
I am moving this to the infrastructure / porting forum. To help us help you better, can you please:

(1) Tell us the version of CESM you are using. See Information to include in help requests for notes on how to find the version. From your directory path, it looks like you are using CESM2.1.1. If so, we recommend updating to a more recent release version. For example, the latest version in the CESM2.1 series is CESM2.1.5 (see Models | Community Earth System Model). This may not fix your error, but would give you a better starting point.

(2) Attach your three config xml files as attachments rather than pasting them into the message; this will help us see if the issue is in formatting, for example.

(3) Try rerunning the create_newcase command adding the '-d' (debug) flag. Adding this flag will often give more information. It may also put you into a python debugger when you hit an error. Please send us the output from this. If you get a prompt that looks like "(Pdb)", type "where" and hit return; this will give a backtrace; please send us that as well. (You can then exit pdb by typing "exit".)
 

HU lei

Hulei
New Member
Dear Bill, thanks for your suggestion.

The version of CESM is CESM2.1.1.

[hejx@login01 scripts]$ ./create_newcase --case con2015 --res f09_g16 --compset BC5L45BGC --run-unsupport --mach hulei -d
RUN: /usr/bin/xmllint --noout --schema /public/home/hejx/CESM2.1.1/cime/config/xml_schemas/config_compsets.xsd /public/home/hejx/CESM2.1.1/cime/../cime_config/config_compsets.xml
errput: /public/home/hejx/CESM2.1.1/cime/../cime_config/config_compsets.xml validates

Compset longname is 2000_CAM50_CLM45%BGC_CICE_POP2_MOSART_SGLC_SWAV
Compset specification file is /public/home/hejx/CESM2.1.1/cime/../cime_config/config_compsets.xml
RUN: /usr/bin/xmllint --noout --schema /public/home/hejx/CESM2.1.1/cime/config/xml_schemas/config_grids_v2.xsd /public/home/hejx/CESM2.1.1/cime/config/cesm/config_grids.xml
errput: /public/home/hejx/CESM2.1.1/cime/config/cesm/config_grids.xml validates

RUN: /usr/bin/xmllint --noout --schema /public/home/hejx/CESM2.1.1/cime/config/xml_schemas/entry_id.xsd /public/home/hejx/CESM2.1.1/cime/src/drivers/mct/cime_config/config_component.xml
errput: /public/home/hejx/CESM2.1.1/cime/src/drivers/mct/cime_config/config_component.xml validates

RUN: /usr/bin/xmllint --noout --schema /public/home/hejx/CESM2.1.1/cime/config/xml_schemas/entry_id_version3.xsd /public/home/hejx/CESM2.1.1/cime/src/drivers/mct/cime_config/config_component_cesm.xml
errput: /public/home/hejx/CESM2.1.1/cime/src/drivers/mct/cime_config/config_component_cesm.xml validates

Compset forcing is 1972-2004
RUN: /usr/bin/xmllint --noout --schema /public/home/hejx/CESM2.1.1/cime/config/xml_schemas/entry_id_version3.xsd /public/home/hejx/CESM2.1.1/cime/../components/cam//cime_config/config_component.xml
errput: /public/home/hejx/CESM2.1.1/cime/../components/cam//cime_config/config_component.xml validates

ATM component is CAM cam5 physics:
RUN: /usr/bin/xmllint --noout --schema /public/home/hejx/CESM2.1.1/cime/config/xml_schemas/entry_id_version3.xsd /public/home/hejx/CESM2.1.1/cime/../components/clm//cime_config/config_component.xml
errput: /public/home/hejx/CESM2.1.1/cime/../components/clm//cime_config/config_component.xml validates

LND component is clm4.5:BGC (vert. resol. CN and methane):
RUN: /usr/bin/xmllint --noout --schema /public/home/hejx/CESM2.1.1/cime/config/xml_schemas/entry_id_version3.xsd /public/home/hejx/CESM2.1.1/cime/../components/cice//cime_config/config_component.xml
errput: /public/home/hejx/CESM2.1.1/cime/../components/cice//cime_config/config_component.xml validates

ICE component is Sea ICE (cice) model version 5
RUN: /usr/bin/xmllint --noout --schema /public/home/hejx/CESM2.1.1/cime/config/xml_schemas/entry_id_version3.xsd /public/home/hejx/CESM2.1.1/cime/../components/pop//cime_config/config_component.xml
errput: /public/home/hejx/CESM2.1.1/cime/../components/pop//cime_config/config_component.xml validates

OCN component is POP2
RUN: /usr/bin/xmllint --noout --schema /public/home/hejx/CESM2.1.1/cime/config/xml_schemas/entry_id_version3.xsd /public/home/hejx/CESM2.1.1/cime/../components/mosart//cime_config/config_component.xml
errput: /public/home/hejx/CESM2.1.1/cime/../components/mosart//cime_config/config_component.xml validates

ROF component is MOSART: MOdel for Scale Adaptive River Transport
RUN: /usr/bin/xmllint --noout --schema /public/home/hejx/CESM2.1.1/cime/config/xml_schemas/entry_id_version3.xsd /public/home/hejx/CESM2.1.1/cime/src/components/stub_comps/sglc/cime_config/config_component.xml
errput: /public/home/hejx/CESM2.1.1/cime/src/components/stub_comps/sglc/cime_config/config_component.xml validates

GLC component is Stub glacier (land ice) component
RUN: /usr/bin/xmllint --noout --schema /public/home/hejx/CESM2.1.1/cime/config/xml_schemas/entry_id_version3.xsd /public/home/hejx/CESM2.1.1/cime/src/components/stub_comps/swav/cime_config/config_component.xml
errput: /public/home/hejx/CESM2.1.1/cime/src/components/stub_comps/swav/cime_config/config_component.xml validates

WAV component is Stub wave component
RUN: /usr/bin/xmllint --noout --schema /public/home/hejx/CESM2.1.1/cime/config/xml_schemas/entry_id_version3.xsd /public/home/hejx/CESM2.1.1/cime/src/components/stub_comps/sesp/cime_config/config_component.xml
errput: /public/home/hejx/CESM2.1.1/cime/src/components/stub_comps/sesp/cime_config/config_component.xml validates

ESP component is
Pes specification file is /public/home/hejx/CESM2.1.1/cime/../cime_config/config_pes.xml
RUN: /usr/bin/xmllint --noout --schema /public/home/hejx/CESM2.1.1/cime/config/xml_schemas/config_compsets.xsd /public/home/hejx/CESM2.1.1/cime_config/config_compsets.xml
errput: /public/home/hejx/CESM2.1.1/cime_config/config_compsets.xml validates

Compset specific settings: name is RUN_STARTDATE and value is 0001-01-01
Could not find machine match for 'login01' or 'login01'
Machine is hulei
> /public/home/hejx/CESM2.1.1/cime/scripts/lib/CIME/utils.py(126)expect()
-> try:
(Pdb) where
/public/home/hejx/CESM2.1.1/cime/scripts/create_newcase(210)<module>()
-> _main_func(__doc__)
/public/home/hejx/CESM2.1.1/cime/scripts/create_newcase(205)_main_func()
-> input_dir=input_dir, driver=driver)
/public/home/hejx/CESM2.1.1/cime/scripts/lib/CIME/case/case.py(1444)create()
-> input_dir=input_dir, driver=driver)
/public/home/hejx/CESM2.1.1/cime/scripts/lib/CIME/case/case.py(851)configure()
-> env_mach_specific_obj.populate(machobj)
/public/home/hejx/CESM2.1.1/cime/scripts/lib/CIME/XML/env_mach_specific.py(30)populate()
-> default_run_suffix = machobj.get_child("default_run_suffix", root=machobj.root)
/public/home/hejx/CESM2.1.1/cime/scripts/lib/CIME/XML/machines.py(61)get_child()
-> return super(Machines, self).get_child(name, attributes, root, err_msg)
/public/home/hejx/CESM2.1.1/cime/scripts/lib/CIME/XML/generic_xml.py(255)get_child()
-> expect(len(children) == 1, err_msg if err_msg else "Expected one child")
> /public/home/hejx/CESM2.1.1/cime/scripts/lib/CIME/utils.py(126)expect()
-> try:
(Pdb)
 

Attachments

  • config_machines.txt
    2.7 KB · Views: 5
  • config_compilers.txt
    2.6 KB · Views: 1
  • config_batch.txt
    22.9 KB · Views: 1

sacks

Bill Sacks
CSEG and Liaisons
Staff member
Thanks - that information is very helpful.

It looks like the problem is that you have probably replaced the original config_machines.xml file with a completely new one that deleted some elements. The recommended procedure is to either add a section to the existing file or to add a config_machines.xml file within a ".cime" directory in your home directory: see 6. Porting and validating CIME on a new platform — CIME cime5.6 documentation.

Specifically, it looks like you removed this block from the bottom of the config_machines.xml file, which apparently is needed:

XML:
<default_run_suffix>
    <default_run_exe>${EXEROOT}/cesm.exe </default_run_exe>
    <default_run_misc_suffix> >> cesm.log.$LID 2>&amp;1 </default_run_misc_suffix>
  </default_run_suffix>
 

HU lei

Hulei
New Member
Dear Bill, thanks for your suggestions. But now I'm trying to build cesm2.1.1(BC5L45BGC), it gives error in ./case.build, as shown below:

[hejx@login01 con1995]$ ./case.build
Building case in directory /public/home/hejx/CESM2.1.1/cime/scripts/con1995
sharedlib_only is False
model_only is False
Generating component namelists as part of build
Creating component namelists
Calling /public/home/hejx/CESM2.1.1/components/cam//cime_config/buildnml
...calling cam buildcpp to set build time options
CAM namelist copy: file1 /public/home/hejx/CESM2.1.1/cime/scripts/con1995/Buildconf/camconf/atm_in file2 /public/home/hejx/CESM2.1.1/cime/scripts/output/con1995/run/atm_in
Calling /public/home/hejx/CESM2.1.1/components/clm//cime_config/buildnml
Calling /public/home/hejx/CESM2.1.1/components/cice//cime_config/buildnml
...buildnml calling cice buildcpp to set build time options
Calling /public/home/hejx/CESM2.1.1/components/pop//cime_config/buildnml
... buildnml: calling pop buildcpp to set build time options
Calling /public/home/hejx/CESM2.1.1/components/mosart//cime_config/buildnml
Calling /public/home/hejx/CESM2.1.1/cime/src/components/stub_comps/sglc/cime_config/buildnml
Calling /public/home/hejx/CESM2.1.1/cime/src/components/stub_comps/swav/cime_config/buildnml
Calling /public/home/hejx/CESM2.1.1/cime/src/components/stub_comps/sesp/cime_config/buildnml
Calling /public/home/hejx/CESM2.1.1/cime/src/drivers/mct/cime_config/buildnml
Finished creating component namelists
Building gptl with output to file /public/home/hejx/CESM2.1.1/cime/scripts/output/con1995/bld/gptl.bldlog.240215-132322
Calling /public/home/hejx/CESM2.1.1/cime/src/build_scripts/buildlib.gptl
Building mct with output to file /public/home/hejx/CESM2.1.1/cime/scripts/output/con1995/bld/mct.bldlog.240215-132322
Calling /public/home/hejx/CESM2.1.1/cime/src/build_scripts/buildlib.mct
Building pio with output to file /public/home/hejx/CESM2.1.1/cime/scripts/output/con1995/bld/pio.bldlog.240215-132322
Calling /public/home/hejx/CESM2.1.1/cime/src/build_scripts/buildlib.pio
Building csm_share with output to file /public/home/hejx/CESM2.1.1/cime/scripts/output/con1995/bld/csm_share.bldlog.240215-132322
Calling /public/home/hejx/CESM2.1.1/cime/src/build_scripts/buildlib.csm_share
ERROR: /public/home/hejx/CESM2.1.1/cime/src/build_scripts/buildlib.csm_share FAILED, cat /public/home/hejx/CESM2.1.1/cime/scripts/output/con1995/bld/csm_share.bldlog.240215-132322
 

sacks

Bill Sacks
CSEG and Liaisons
Staff member
You should see more information in the file /public/home/hejx/CESM2.1.1/cime/scripts/output/con1995/bld/csm_share.bldlog.240215-132322, as noted at the end of your build output. If you can't tell what the problem is from that, you can attach that file and I can see if I can tell what the problem is.

Can you also please let me know whether you have made any changes to the code?
 
Top