aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 88 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7488
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2121.0+1901_daily_bin1746
RA = 320.26, Dec = 19.0324
tmin = 691891201, tmax = 692150401
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='739091', job_status='RUN', time_executed='2022-12-08 01:41:55.011824', time_epoch_executed='1670492515.01' WHERE source_name='4FGL J2121.0+1901' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/739091

Creating custom pfile directory:
/scratch/kocevski/739091/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=691891201.0 && nMetStart<692150401.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=691891201.0 && nMetStart<692150401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/739091/ft1_4FGL_J2121.0+1901_daily_bin1746.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=691891201.0 && nMetStart<692150401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/739091/ft2_4FGL_J2121.0+1901_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/739091/ft1_4FGL_J2121.0+1901_daily_bin1746.fits outfile=/scratch/kocevski/739091/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin1746.fits ra=320.26 dec=19.0324 rad=12.0 tmin=691891201.0 tmax=692150401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.76
user 4.54
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/739091/ft2_4FGL_J2121.0+1901_daily_bin1746.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/739091/ft2_4FGL_J2121.0+1901_daily_bin1746.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/739091/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/739091/ft1_filtered_4FGL_J2121.0+1901_daily_bin1746.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 1018

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/739091/ft1_filtered_4FGL_J2121.0+1901_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/739091/ft2_4FGL_J2121.0+1901_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/739091/ltcube_691891201_692150401_4FGL_J2121.0+1901_daily_bin1746.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/739091/ft2_4FGL_J2121.0+1901_daily_bin1746.fits
.....................!
real 12.17
user 11.79
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/739091/ft1_filtered_4FGL_J2121.0+1901_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/739091/ft2_4FGL_J2121.0+1901_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/739091/ltcube_691891201_692150401_4FGL_J2121.0+1901_daily_bin1746.fits outfile=/scratch/kocevski/739091/expmap_691891201_692150401_4FGL_J2121.0+1901_daily_bin1746.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/739091/ltcube_691891201_692150401_4FGL_J2121.0+1901_daily_bin1746.fits
.....................!
real 191.56
user 186.18
sys 4.97

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 193 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2121.0+1901 @ 320.26 19.0324

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/739091/ft1_filtered_4FGL_J2121.0+1901_daily_bin1746.fits scfile=/scratch/kocevski/739091/ft2_4FGL_J2121.0+1901_daily_bin1746.fits outfile=/scratch/kocevski/739091/cmap_691891201_692150401_4FGL_J2121.0+1901_daily_bin1746.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=320.26 yref=19.0324 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/739091/ft1_filtered_4FGL_J2121.0+1901_daily_bin1746.fits scfile=/scratch/kocevski/739091/ft2_4FGL_J2121.0+1901_daily_bin1746.fits outfile=/scratch/kocevski/739091/cmap_HighResolution_691891201_692150401_4FGL_J2121.0+1901_daily_bin1746.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=320.26 yref=19.0324 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/739091/ft1_filtered_4FGL_J2121.0+1901_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/739091/ft2_4FGL_J2121.0+1901_daily_bin1746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/739091/Model_4FGL_J2121.0+1901_daily_bin1746.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/739091/ft1_filtered_4FGL_J2121.0+1901_daily_bin1746.fits.....................!
real 153.48
user 151.63
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/739091/ft1_filtered_4FGL_J2121.0+1901_daily_bin1746.fits', '/scratch/kocevski/739091/ft2_4FGL_J2121.0+1901_daily_bin1746.fits', expMap='/scratch/kocevski/739091/expmap_691891201_692150401_4FGL_J2121.0+1901_daily_bin1746.fits', expCube='/scratch/kocevski/739091/ltcube_691891201_692150401_4FGL_J2121.0+1901_daily_bin1746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/739091/Model_4FGL_J2121.0+1901_daily_bin1746.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2121.0+1901'

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  3.670e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  2.156e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
392         beta:  5.740e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/739091/ft1_filtered_4FGL_J2121.0+1901_daily_bin1746.fits
Spacecraft file(s): /scratch/kocevski/739091/ft2_4FGL_J2121.0+1901_daily_bin1746.fits
Exposure map: /scratch/kocevski/739091/expmap_691891201_692150401_4FGL_J2121.0+1901_daily_bin1746.fits
Exposure cube: /scratch/kocevski/739091/ltcube_691891201_692150401_4FGL_J2121.0+1901_daily_bin1746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/739091/Model_4FGL_J2121.0+1901_daily_bin1746.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 10549.6151227

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 10549.613329

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.269       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.7736       1.0000          .0000       .10000E+07
     3 'Prefactor '    59.287       1.0000          .0000       .10000E+07
     4 'Prefactor '    .56778E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .25971E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .13024E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .49838E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .28554E-03   1.0000          .0000       .10000E+07
     9 'norm      '    1.3038       1.0000          .0000       .10000E+07
    10 'norm      '    5.1694       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.4452       1.0000          .0000       .10000E+07
    12 'Prefactor '    .52407       1.0000          .0000       .10000E+07
    13 'norm      '    3.2704       1.0000          .0000       .10000E+07
    14 'norm      '    .30992E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    4.3407       1.0000          .0000       .10000E+07
    16 'Prefactor '    .41039E-01   1.0000          .0000       .10000E+07
    17 'norm      '    .12659       1.0000          .0000       .10000E+07
    18 'Normalizat'    .94139       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93912       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10549.61     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     1451 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.269        1.0952        .46096E-09    .39917E-02
   2  Prefactor     2.7793        1.3258        .75599E-09    .82534E-02
   3  Prefactor     59.223        4.8378       -.14710E-08    .76752E-01
   4  Prefactor      .0000        4.7105       -.27258E-08** at limit **
   5  Prefactor      .0000        6.4977        .13872E-06** at limit **
   6  Prefactor      .0000        4.3663       -.66794E-07** at limit **
   7  Prefactor      .0000        7.7624        .34454E-07** at limit **
   8  Prefactor      .0000        3.3500       -.77497E-07** at limit **
   9  norm          1.3050        4.6275        .10675E-06    .90254E-04
  10  norm          5.1740        3.1942        .19406E-07    .34276E-04
  11  Prefactor     2.4932        4.3508       -.10950E-06    .12416E-03
  12  Prefactor     .31586E-07    168.07       -.26349E-06** at limit **
  13  norm          3.2788        2.4311        .58750E-07    .10524E-03
  14  norm           .0000        1.0029        .47519E-07** at limit **
  15  Prefactor     4.2337        33.790       -.32841E-07    .35154E-02
  16  Prefactor      .0000        20.271        .60301E-07** at limit **
  17  norm          .12877        1.4546       -.14758E-06** at limit **
  18  Normalizat    .94122        .24614        .12343E-05   -.22809E-05
  19  Prefactor     .93911        .91436E-01   -.79189E-06   -.56021E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 18.2687
  Prefactor  = 2.77925
  Prefactor  = 59.2229
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.30499
  norm       = 5.17404
  Prefactor  = 2.49325
  Prefactor  = 3.15858e-08
  norm       = 3.27882
  norm       = 0
  Prefactor  = 4.23374
  Prefactor  = 0
  norm       = 0.128771
  Normalizat = 0.941219
  Prefactor  = 0.939107
 **********
 **   18 **HESSE 
 **********

 FCN=   10549.61     FROM HESSE     STATUS=OK           312 CALLS     1763 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.269        11.565        .23405E-03   -1.5622    
   2  Prefactor     2.7793        12.221        .61081E-03   -1.5675    
   3  Prefactor     59.223        50.902        .12988E-03   -1.5554    
   4  Prefactor      .0000        4.7070        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        6.5095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        4.3665        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        7.7639        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        3.3333        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.3050        4.6196        .96666E-03   -1.5685    
  10  norm          5.1740        3.1809        .44192E-03   -1.5662    
  11  Prefactor     2.4932        4.3629        .65396E-03   -1.5676    
  12  Prefactor     .31586E-07    168.49        .76324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2788        2.4668        .55971E-03   -1.5672    
  14  norm           .0000        .99479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2337        34.566        .48324E-03   -1.5667    
  16  Prefactor      .0000        20.221        .15917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .12877        .52991        .24228E-02   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .94122        .21302        .89228E-01   -.95027    
  19  Prefactor     .93911        .79111E-01    .34142E-01   -.94788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59808e-06
Minuit parameter uncertainties:
  1  11.5653
  2  11.6562
  3  50.9024
  4  5.09219e-06
  5  9.08909e-06
  6  7.7969e-06
  7  4.61004e-06
  8  2.19387e-06
  9  4.61963
  10  3.18089
  11  4.36291
  12  0.00461324
  13  2.4668
  14  2.45796e-08
  15  24.1949
  16  5.28009e-06
  17  0.522446
  18  0.213208
  19  0.0791204
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 10549.6098959

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  5.174e+00  3.181e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  2.156e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
392         beta:  5.740e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  9.391e-01  7.912e-02  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  9.412e-01  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.92
Ra Dec: 320.260 19.032
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 4.23e-08 +/- 2.60e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.19e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10549.6098151
delta logL = 8.07691612863e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10549.6098098
delta logL = 8.61268181325e-05

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1814       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1477       1.0000          .0000       5.0000    
     3 'Normalizat'    .94164       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93904       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10549.61     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      234 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1847        76.102        .44140E-03    .57405E-03
   2  alpha         2.1485        3.3646        .41680        .25812E-04
   3  Normalizat    .94157        .12488        .89213E-01    .39267E-04
   4  Prefactor     .93904        .33472E-01    .34143E-01   -.26224E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.18471
  alpha      = 2.14855
  Normalizat = 0.94157
  Prefactor  = 0.939041
 **********
 **   18 **HESSE 
 **********

 FCN=   10549.61     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1847        3.3170        .13928E-04   -1.5662    
   2  alpha         2.1485        .53781        .16003E-01   -.14105    
   3  Normalizat    .94157        .23366        .39507E-03   -.95014    
   4  Prefactor     .93904        .89266E-01    .15086E-03   -.94790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26113e-10
Minuit parameter uncertainties:
  1  3.31699
  2  0.542137
  3  0.233911
  4  0.0892796
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/739091': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10549.6098076
delta logL = 8.83425709617e-05

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  5.185e+00  3.317e+00  0.000e+00  1.000e+06 ( 1.000e-12)
391        alpha:  2.149e+00  5.421e-01  0.000e+00  5.000e+00 ( 1.000e+00)
392         beta:  5.740e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  9.390e-01  8.928e-02  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  9.416e-01  2.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.92
Ra Dec: 320.260 19.032
Photon Index (Free Index): 2.15 +/- 0.54
Photon Flux (Free Index): 4.20e-08 +/- 3.34e-08
Energy Flux (Free Index): 1.94e-05 +/- 1.39e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/739091/cmap_HighResolution_691891201_692150401_4FGL_J2121.0+1901_daily_bin1746.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/739091

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.23e-08', energy_flux2='1.94e-05', photon_flux_error='2.60e-08', dlogl='8.83e-05', energy_flux='1.93e-05', photon_flux2='4.20e-08', job_status='DONE', time_completed='2022-12-08 01:54:45.712559', photon_index_error2='0.54', photon_index2='2.15', ts='6.92', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='0.94', time_epoch_completed='1670493285.71', return_code='0', job_id='739091', GAL2='0.94', EG2='0.94', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='3.34e-08', ts2='6.92', photon_index='2.16' WHERE bin_id='1746' AND source_name='4FGL J2121.0+1901' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 01:54:45 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 739091: <4FGL_J2121.0+1901_daily_bin1746> in cluster <slac> Done

Job <4FGL_J2121.0+1901_daily_bin1746> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Dec  8 01:40:17 2022
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 01:40:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 01:40:18 2022
Terminated at Thu Dec  8 01:54:46 2022
Results reported at Thu Dec  8 01:54:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2121.0+1901_daily_bin1746 320.26 19.0324 691891201 692150401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2121.0+1901 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   772.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            869 sec.

The output (if any) is above this job summary.

