• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. Liberate System error - could not execute command

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 126
  • Views 4456
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Liberate System error - could not execute command

Grant Brown
Grant Brown over 4 years ago

I am working on characterizing some newly created standard cells and I keep getting the following error after the char_library is executed:


ERROR (LIB-5048): (LIBERATE): System error - could not execute command: cd /tmp/altos.lnissrv2.eng.utah.edu.T20201002102423635916S0030740.0; /uusoc/facility/cad_tools/Cadence/lnis_tools/SPECTRE191/bin/spectre +lqt 0 -outdir /tmp/u1249940/ =log sim.lis +lorder MMSIM:PRODUCT +spice =log sim.lis +libtkn 0001208F0F964DEB4DDB67C73FE609F74FDE77D55BF946F37BD5279610F747F509CF6EC154DA12934B9F70D7629B49EA4ECE0BD3368335D8109B25EB159644D65A996F953AED25A20AD079D119DF75F437E972DC5A8843920ED063D001D50190449B2D8705DC47920DD879D1288977A237E979D11B8977A237E926A64FB32398689E00003A6F /tmp/altos.lnissrv2.eng.utah.edu.T20201002102423635916S0030740.0/sim.sp >& /dev/null. Error code: 2.
*Info* Simulation failed to complete. Restart the simulation in 5 seconds on host lnissrv2.eng.utah.edu.

This is the log output file

Fullscreen char.log Download
ROOT_DIR = /uusoc/facility/cad_tools/Cadence/lnis_tools/LIBERATE192
exepath = /uusoc/facility/cad_tools/Cadence/lnis_tools/LIBERATE192/bin
Host : lnissrv2.eng.utah.edu x86_64 Linux 3.10.0-1062.9.1.el7.x86_64
LIBERATE Library Characterization Platform (x86_64) 
Release 19.2.1.591, compiled by vficcm on Tue Jul  7 07:33:18 PDT 2020


    ********************************************************************
    *   Copyright (c)  Cadence Design Systems, Inc.  2006 - 2020.      *
    *             All rights reserved.                                 *
    *                                                                  *
    *                                                                  *
    *                                                                  *
    * This program contains confidential and trade secret information  *
    * of Cadence Design Systems, Inc. and is protected by copyright    *
    * law and international treaties.  Any reproduction, use,          *
    * distribution or disclosure of this program or any portion of it, *
    * or any attempt to obtain a human-readable version of this        *
    * program, without the express, prior written consent of           *
    * Cadence Design Systems, Inc., is strictly prohibited.            *
    *                                                                  *
    *         Cadence Design Systems, Inc.                             *
    *           2655 Seely Avenue                                      *
    *           San Jose, CA 95134,  USA                               *
    *                                                                  *
    *                                                                  *
    ********************************************************************
    
    
    Copyright notices for Open Source and Third Party Tools used by this 
    software can be viewed at <cds_inst_dir>/doc/liberate/thirdpartyinfo/Notices.txt

LIBERATE started on lnissrv2.eng.utah.edu at Fri Oct  2 10:24:23 2020

Command line arguments: 'tcl/char.tcl'.
ALTOSHOME set to '/uusoc/facility/cad_tools/Cadence/lnis_tools/LIBERATE192'.
Server ID : T20201002102423635916S0030740
LIBERATE parameter "extsim_cmd" set to "spectre"
LIBERATE parameter "extsim_deck_dir" set to "/tmp/u1249940/"
LIBERATE parameter "extsim_cmd_option" set to "+lqt 0 -outdir /tmp/u1249940/ =log sim.lis +lorder MMSIM:PRODUCT +spice"
LIBERATE parameter "parse_ignore_duplicate_subckt" set to "1"
*Warning* (set_gnd) : Gnd supply vgnd has already been set, overriding previous value to 0
LIBERATE parameter "slew_lower_rise" set to "0.2"
LIBERATE parameter "slew_lower_fall" set to "0.2"
LIBERATE parameter "slew_upper_rise" set to "0.8"
LIBERATE parameter "slew_upper_fall" set to "0.8"
LIBERATE parameter "measure_slew_lower_rise" set to "0.2"
LIBERATE parameter "measure_slew_lower_fall" set to "0.2"
LIBERATE parameter "measure_slew_upper_rise" set to "0.8"
LIBERATE parameter "measure_slew_upper_fall" set to "0.8"
LIBERATE parameter "delay_inp_rise" set to "0.5"
LIBERATE parameter "delay_inp_fall" set to "0.5"
LIBERATE parameter "delay_out_rise" set to "0.5"
LIBERATE parameter "delay_out_fall" set to "0.5"
LIBERATE parameter "def_arc_msg_level" set to "0"
LIBERATE parameter "process_match_pins_to_ports" set to "1"
LIBERATE parameter "max_transition" set to "1.5e-09"
LIBERATE parameter "min_transition" set to "1e-11"
LIBERATE parameter "min_output_cap" set to "0"
Specifying External Model
LIBERATE parameter "extsim_model_include" set to "/home/u1249940/Documents/Skywater/lib/MODELS/SPECTRE/include_tt.scs"
LIBERATE parameter "extsim_flatten_netlist" set to "1"
Reading Spice Files 
Characterizing Library
LIBERATE parameter "keep_dcap_leakage" set to "1"
LIBERATE parameter "simulator" set to "spectre"
Start Characterizing Library at (Fri Oct  2 10:24:25 MDT 2020)

INFO (LIB-956): (read_spice): Reading file: '/home/u1249940/Documents/Skywater/lib/MODELS/SPECTRE/include_tt.scs'.
INFO (LIB-956): (read_spice): Reading file: '/home/u1249940/Documents/Skywater/lib/NETLIST/SPECTRE/scs8ms_muxinv2_1.scs'.
INFO (LIB-940): The parser has identified the following leaf cells. Review these for missing or incorrect settings and if needed, add them to your Tcl script and rerun.
INFO (LIB-511): (define_leafcell): Leafcell 'nlowvt' (instance) has been identified with pin_position (0 1 2 3) mapped to (D G S B).
INFO (LIB-906): (AUTO): define_leafcell -type nmos -pin_position {0 1 2 3} nlowvt
INFO (LIB-511): (define_leafcell): Leafcell 'pshort' (instance) has been identified with pin_position (0 1 2 3) mapped to (D G S B).
INFO (LIB-906): (AUTO): define_leafcell -type pmos -pin_position {0 1 2 3} pshort
INFO (LIB-943): Finished reading netlist(s) at Oct  2 10:24:26.
INFO (LIB-711): Feature 'Spectre_char_opt' exists in the license pool. The parameter 'spectre_use_char_opt_license' will be set to '1'.
INFO (LIB-1008): (char_library): This LIBERATE release was qualified with MMSIM version '19.1.0.237.isr3' but newer version '19.1.0.454.isr10' was detected. If MMSIM-related issues are found, update to the qualified MMSIM version and re-run.
INFO (LIB-966): Using Spectre version 19.1.0.454.isr10 located at: /uusoc/facility/cad_tools/Cadence/lnis_tools/SPECTRE191/bin/spectre.
*Info* Use temporary directory '/tmp'.
Initializing Spice
*Info* Adding 2 global models to Spice.
Building library database
Processing cell: scs8ms_muxinv2_1
*Warning* (char_library) : Area, l, and w are not specified for diode DX10_noxref.
(Oct  2 10:24:26) Finish building module.
ERROR (LIB-5048): (LIBERATE): System error - could not execute command: cd /tmp/altos.lnissrv2.eng.utah.edu.T20201002102423635916S0030740.0; /uusoc/facility/cad_tools/Cadence/lnis_tools/SPECTRE191/bin/spectre  +lqt 0 -outdir /tmp/u1249940/ =log sim.lis +lorder MMSIM:PRODUCT +spice =log sim.lis  +libtkn 0001208F0F964DEB4DDB67C73FE609F74FDE77D55BF946F37BD5279610F747F509CF6EC154DA12934B9F70D7629B49EA4ECE0BD3368335D8109B25EB159644D65A996F953AED25A20AD079D119DF75F437E972DC5A8843920ED063D001D50190449B2D8705DC47920DD879D1288977A237E979D11B8977A237E926A64FB32398689E00003A6F /tmp/altos.lnissrv2.eng.utah.edu.T20201002102423635916S0030740.0/sim.sp >& /dev/null. Error code: 2.
*Info* Simulation failed to complete. Restart the simulation in 5 seconds on host lnissrv2.eng.utah.edu.

I have copied that command from the terminal and run it outside of liberate and it seems to work fine, the sim.sp file is outputted to that directory specified.I am trying to change the locations of where to store the spectre files are outputted to along with command options for spectre by setting the extsim variables just as provided in the documentation but it is obviously not working. Any and all help will be appreciated, I am adding my scripts below for a complete explanation of the problem

I will be attaching my scripts below also:


char.tcl

set SRC_DIR [pwd]
set RUN_DIR [pwd]

set PROCESS tt
set VDD_VALUE 1.8
set TEMP 25
set LIB scs8ms_muxinv2_1
set TEMPLATE skywater_scs8ms_template

set SETTINGS_FILE ${SRC_DIR}/SETTINGS/settings.tcl
set TEMPLATE_FILE ${SRC_DIR}/template/${TEMPLATE}.tcl
set CELLS_FILE ${SRC_DIR}/tcl/cells.tcl
set MODEL_INCLUDE_FILE ${SRC_DIR}/MODELS/SPECTRE/include_${PROCESS}.scs
set NETLIST_DIR ${SRC_DIR}/NETLIST/SPECTRE
set USERDATA ${SRC_DIR}/userdata/userdata.lib

source ${SETTINGS_FILE}
source ${TEMPLATE_FILE}
source ${CELLS_FILE}

set_operating_condition -voltage ${VDD_VALUE} -temp ${TEMP}

puts "Specifying External Model"
set_var extsim_model_include ${MODEL_INCLUDE_FILE} ;#Define Model file to use
set_var extsim_flatten_netlist 1

set spectrefiles {}
lappend spectrefiles ${SRC_DIR}/MODELS/SPECTRE/include_${PROCESS}.scs
foreach cell ${cells} {
lappend spectrefiles ${NETLIST_DIR}/${cell}.scs
}

#Reading Spice Files
puts "Reading Spice Files "
read_spice -format spectre "${spectrefiles}"

#Initiates characterization, -extsim specifies to use an external spice simulator program
puts "Characterizing Library"
char_library -extsim spectre -cells $cells

#Writes a Liberate library database (.ldb) which will be read back later for formatting library data
write_ldb -overwrite ${RUN_DIR}/LDB/${LIB}.ldb

#Write the liberty file
write_library ${SRC_DIR}/LIBRARY/${LIB}.lib


cells.tcl

#Create List of all cells defined in the template file
#This file allows the user to redefine the $cells variable to quickly reduce the characterization size without editing the template file
set cells { \
scs8ms_muxinv2_1 \
}


template.tcl

# existing_templates.tcl : template Tcl file generated by Liberate 19.2.1.591 on Tue Sep 29 10:05:56 MDT 2020

#Identify power and ground nets and set their values
set_vdd -cells {scs8ms_muxinv2_1} -type primary vpwr 1.8
set_gnd -type primary vgnd 0

#-no_model used to specify if GND is not a net it is excluded from the Liberty file
set_gnd -no_model vgnd 0

set_var slew_lower_rise 0.2
set_var slew_lower_fall 0.2
set_var slew_upper_rise 0.8
set_var slew_upper_fall 0.8

set_var measure_slew_lower_rise 0.2
set_var measure_slew_lower_fall 0.2
set_var measure_slew_upper_rise 0.8
set_var measure_slew_upper_fall 0.8

set_var delay_inp_rise 0.5
set_var delay_inp_fall 0.5
set_var delay_out_rise 0.5
set_var delay_out_fall 0.5

set_var def_arc_msg_level 0
set_var process_match_pins_to_ports 1
set_var max_transition 1.5e-09
set_var min_transition 1e-11
set_var min_output_cap 0.0

define_template -type delay \
-index_1 {0.01 0.01735 0.02602 0.03903 0.05855 0.08782 0.13172 0.19757 0.29634 0.44449 0.6667 1.0 1.5 } \
-index_2 {0.0 0.00985 0.01182 0.01418 0.01702 0.02042 0.0245 0.0294 0.03528 0.04233 0.0508 0.06096 0.07315 0.08778 0.10534 0.12641 0.15169 0.18203 0.21844 } \
delay_template_13x19

define_template -type power \
-index_1 {0.01 0.01735 0.02602 0.03903 0.05855 0.08782 0.13172 0.19757 0.29634 0.44449 0.6667 1.0 1.5 } \
-index_2 {0.0 0.00985 0.01182 0.01418 0.01702 0.02042 0.0245 0.0294 0.03528 0.04233 0.0508 0.06096 0.07315 0.08778 0.10534 0.12641 0.15169 0.18203 0.21844 } \
power_template_13x19

define_cell \
-input { Q1 Q2 S } \
-output { Z } \
-pinlist { Q1 Q2 S Z } \
-delay delay_template_13x19 \
-power power_template_13x19 \
{scs8ms_muxinv2_1}

define_leakage scs8ms_muxinv2_1

# power arcs from => Q1 hidden
define_arc \
-type hidden \
-vector {Rxxx} \
-pin Q1 \
scs8ms_muxinv2_1

# power arcs from => Q1 hidden
define_arc \
-type hidden \
-vector {Fxxx} \
-pin Q1 \
scs8ms_muxinv2_1

# power arcs from => Q2 hidden
define_arc \
-type hidden \
-vector {xRxx} \
-pin Q2 \
scs8ms_muxinv2_1

# power arcs from => Q2 hidden
define_arc \
-type hidden \
-vector {xFxx} \
-pin Q2 \
scs8ms_muxinv2_1

# power arcs from => S hidden
define_arc \
-type hidden \
-vector {xxRx} \
-pin S \
scs8ms_muxinv2_1

# power arcs from => S hidden
define_arc \
-type hidden \
-vector {xxFx} \
-pin S \
scs8ms_muxinv2_1

# delay arcs from Q1 => Z positive_unate combinational
define_arc \
-vector {RxxF} \
-related_pin Q1 \
-pin Z \
scs8ms_muxinv2_1

# delay arcs from Q1 => Z positive_unate combinational
define_arc \
-vector {FxxR} \
-related_pin Q1 \
-pin Z \
scs8ms_muxinv2_1

# delay arcs from Q2 => Z positive_unate combinational
define_arc \
-vector {xRxF} \
-related_pin Q2 \
-pin Z \
scs8ms_muxinv2_1

# delay arcs from Q2 => Z positive_unate combinational
define_arc \
-vector {xFxR} \
-related_pin Q2 \
-pin Z \
scs8ms_muxinv2_1

# delay arcs from S => X positive_unate combinational
define_arc \
-when "(!Q1)" \
-vector {xxFR} \
-related_pin S \
-pin Z \
scs8ms_muxinv2_1

# delay arcs from B1 => X positive_unate combinational
define_arc \
-when "(Q1)" \
-vector {xxFF} \
-related_pin S \
-pin Z \
scs8ms_muxinv2_1

define_arc \
-when "(!Q2)" \
-vector {xxRR} \
-related_pin S \
-pin Z \
scs8ms_muxinv2_1

define_arc \
-when "(Q2)" \
-vector {xxRF} \
-related_pin S \
-pin Z \
scs8ms_muxinv2_1

  • Cancel
  • bbhav
    bbhav over 4 years ago

    Hello Grant Brown

    Did you find a solution for the Error (LIB-5048)? I am seeing similar errors in my characterization runs .

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Guangjun Cao
    Guangjun Cao over 4 years ago in reply to bbhav

    Has the run eventually finished after restart? If not please run soectre on the xx.sp file and check the logfile for errors. You may also use set_var tmpdir <full path> to save the temp files.

    Guangjun

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Guangjun Cao
    Guangjun Cao over 4 years ago in reply to Guangjun Cao

    in the 'Error (LIB-5048) ' message, you can find a <path>/sim.sp file. if you see the log file, sim.lis, check for errors. Or, you can run Spectre on the sim.sp. As I said before, you may set a local directory for tmpdir.

    Guangjun

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • bbhav
    bbhav over 4 years ago in reply to Guangjun Cao

    Thank you Guangjun for the suggestion. When I run a spectre on sim.so file I get an SFE-400 error...The instance "  " does not have a valid master. But I have given all the right model files for the same.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information