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 74 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 = 7548
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1421.1+3859_daily_bin1765
RA = 215.292, Dec = 38.9966
tmin = 696816001, tmax = 697075201
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='636867', job_status='RUN', time_executed='2023-02-03 01:07:54.550254', time_epoch_executed='1675415274.55' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636867

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636867/ft1_4FGL_J1421.1+3859_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636867/ft2_4FGL_J1421.1+3859_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/636867/ft1_4FGL_J1421.1+3859_daily_bin1765.fits outfile=/scratch/kocevski/636867/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1765.fits ra=215.292 dec=38.9966 rad=12.0 tmin=696816001.0 tmax=697075201.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 3.72
user 3.45
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/636867/ft2_4FGL_J1421.1+3859_daily_bin1765.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/636867/ft2_4FGL_J1421.1+3859_daily_bin1765.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/636867/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/636867/ft1_filtered_4FGL_J1421.1+3859_daily_bin1765.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.54
user 0.35
sys 0.17

Number of photons that the gtmktime cut: 629

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/636867/ft1_filtered_4FGL_J1421.1+3859_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/636867/ft2_4FGL_J1421.1+3859_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/636867/ltcube_696816001_697075201_4FGL_J1421.1+3859_daily_bin1765.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/636867/ft2_4FGL_J1421.1+3859_daily_bin1765.fits
.....................!
real 17.52
user 16.99
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636867/ft1_filtered_4FGL_J1421.1+3859_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/636867/ft2_4FGL_J1421.1+3859_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/636867/ltcube_696816001_697075201_4FGL_J1421.1+3859_daily_bin1765.fits outfile=/scratch/kocevski/636867/expmap_696816001_697075201_4FGL_J1421.1+3859_daily_bin1765.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/636867/ltcube_696816001_697075201_4FGL_J1421.1+3859_daily_bin1765.fits
.....................!
real 194.41
user 188.11
sys 5.17

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
Added 181 point sources and 0 extended sources

Setting source of interest to:
4FGL J1421.1+3859 @ 215.292 38.9966

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/636867/ft1_filtered_4FGL_J1421.1+3859_daily_bin1765.fits scfile=/scratch/kocevski/636867/ft2_4FGL_J1421.1+3859_daily_bin1765.fits outfile=/scratch/kocevski/636867/cmap_696816001_697075201_4FGL_J1421.1+3859_daily_bin1765.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=215.292 yref=38.9966 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.58
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/636867/ft1_filtered_4FGL_J1421.1+3859_daily_bin1765.fits scfile=/scratch/kocevski/636867/ft2_4FGL_J1421.1+3859_daily_bin1765.fits outfile=/scratch/kocevski/636867/cmap_HighResolution_696816001_697075201_4FGL_J1421.1+3859_daily_bin1765.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=215.292 yref=38.9966 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.60
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/636867/ft1_filtered_4FGL_J1421.1+3859_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/636867/ft2_4FGL_J1421.1+3859_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/636867/Model_4FGL_J1421.1+3859_daily_bin1765.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/636867/ft1_filtered_4FGL_J1421.1+3859_daily_bin1765.fits.....................!
real 53.06
user 51.61
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/636867/ft1_filtered_4FGL_J1421.1+3859_daily_bin1765.fits', '/scratch/kocevski/636867/ft2_4FGL_J1421.1+3859_daily_bin1765.fits', expMap='/scratch/kocevski/636867/expmap_696816001_697075201_4FGL_J1421.1+3859_daily_bin1765.fits', expCube='/scratch/kocevski/636867/ltcube_696816001_697075201_4FGL_J1421.1+3859_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/636867/Model_4FGL_J1421.1+3859_daily_bin1765.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1421.1+3859'

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.965e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
292        Index:  2.670e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  9.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/636867/ft1_filtered_4FGL_J1421.1+3859_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/636867/ft2_4FGL_J1421.1+3859_daily_bin1765.fits
Exposure map: /scratch/kocevski/636867/expmap_696816001_697075201_4FGL_J1421.1+3859_daily_bin1765.fits
Exposure cube: /scratch/kocevski/636867/ltcube_696816001_697075201_4FGL_J1421.1+3859_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/636867/Model_4FGL_J1421.1+3859_daily_bin1765.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) = 6794.40022462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    95.220       1.0000          .0000       .10000E+07
     2 'norm      '    .25924E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    13.937       1.0000          .0000       .10000E+07
     4 'norm      '    13.659       1.0000          .0000       .10000E+07
     5 'Prefactor '    46.816       1.0000          .0000       .10000E+07
     6 'Prefactor '    .24353E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .24699E-01   1.0000          .0000       .10000E+07
     8 'norm      '    2.0679       1.0000          .0000       .10000E+07
     9 'Prefactor '    .22484E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    11.201       1.0000          .0000       .10000E+07
    11 'Prefactor '    12.715       1.0000          .0000       .10000E+07
    12 'norm      '    .37788E-04   1.0000          .0000       .10000E+07
    13 'norm      '    3.9322       1.0000          .0000       .10000E+07
    14 'Prefactor '    .10550E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    231.86       1.0000          .0000       .10000E+07
    16 'norm      '    .26949E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    29.490       1.0000          .0000       .10000E+07
    18 'Prefactor '    .16477E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .50033E-05   1.0000          .0000       .10000E+07
    20 'norm      '     .0000       1.0000          .0000       .10000E+07
    21 'norm      '    4.6195       1.0000          .0000       .10000E+07
    22 'Prefactor '    .18856E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    1.1620       1.0000          .0000       .10000E+07
    24 'Prefactor '    35.234       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.0091       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99038       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6794.398     FROM MIGRAD    STATUS=CONVERGED    176 CALLS     2298 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     95.709        66.878        .85472E-07   -.12036    
   2  norm           .0000        .42580        .42138E-07** at limit **
   3  Prefactor     13.872        5.4570        .41757E-07    .57658E-03
   4  norm          13.676        7.7133        .24878E-06    .10491    
   5  Prefactor     46.957        19.061       -.25050E-06    .13888    
   6  Prefactor      .0000        1.8185       -.24741E-06** at limit **
   7  Prefactor      .0000        29.292        .27218E-06** at limit **
   8  norm          2.0571        3.8801       -.16968E-06   -.81668E-03
   9  Prefactor     .39080E-06    9.4008        .31243E-06** at limit **
  10  Prefactor     11.175        14.276        .10859E-06    .27686E-02
  11  Prefactor     12.770        4.5898        .31871E-07    .16611E-03
  12  norm          .30365E-07    17.858        .81536E-06** at limit **
  13  norm          3.9599        5.3187       -.15345E-06    .54913E-03
  14  Prefactor     .38858E-09    4.3812       -.23940E-06** at limit **
  15  Prefactor     231.99        12.499       -.30779E-07    .10839    
  16  norm          .94369E-09    5.0390        .36424E-06** at limit **
  17  Prefactor     29.474        4.6720       -.10779E-06   -.85208E-01
  18  Prefactor     .61712E-06    9.3718       -.53507E-06** at limit **
  19  Prefactor     .55511E-10    2.2985        .23104E-06** at limit **
  20  norm           .0000        .60269       -.13618E-06** at limit **
  21  norm          4.6264        3.5404        .24114E-06    .20261E-02
  22  Prefactor     .17764E-08    6.9252        .32600E-06** at limit **
  23  Prefactor     1.3481        122.17       -.23287E-05    .19397E-01
  24  Prefactor     35.292        25.945       -.26250E-06   -.12617    
  25  Normalizat    1.0088        .20406       -.37004E-05   -.14429E-03
  26  Prefactor     .99039        .23035       -.54922E-05   -.12541E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 95.7088
  norm       = 0
  Prefactor  = 13.8721
  norm       = 13.6763
  Prefactor  = 46.9569
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.05709
  Prefactor  = 3.90799e-07
  Prefactor  = 11.1753
  Prefactor  = 12.7704
  norm       = 3.03646e-08
  norm       = 3.95992
  Prefactor  = 3.88578e-10
  Prefactor  = 231.987
  norm       = 9.4369e-10
  Prefactor  = 29.4735
  Prefactor  = 6.17117e-07
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 4.62644
  Prefactor  = 1.77636e-09
  Prefactor  = 1.34807
  Prefactor  = 35.2923
  Normalizat = 1.00881
  Prefactor  = 0.990386
 **********
 **   18 **HESSE 
 **********

 FCN=   6794.398     FROM HESSE     STATUS=OK           510 CALLS     2808 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     95.709        79.962        .10249E-03   -1.5512    
   2  norm           .0000        .42399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.872        5.4606        .26804E-03   -1.5633    
   4  norm          13.676        14.108        .27076E-03   -1.5634    
   5  Prefactor     46.957        41.044        .14616E-03   -1.5571    
   6  Prefactor      .0000        1.8142        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        11.365        .86247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0571        3.9135        .71815E-03   -1.5679    
   9  Prefactor     .39080E-06    12.103        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.175        14.471        .29910E-03   -1.5641    
  11  Prefactor     12.770        4.5959        .28067E-03   -1.5636    
  12  norm          .30365E-07    17.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.9599        5.3361        .50849E-03   -1.5668    
  14  Prefactor     .38858E-09    4.3805        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     231.99        50.271        .65681E-04   -1.5403    
  16  norm          .94369E-09    5.0358        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.474        14.695        .18418E-03   -1.5599    
  18  Prefactor     .61712E-06    12.317        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    2.2988        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        .59651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.6264        3.5506        .46805E-03   -1.5665    
  22  Prefactor     .17764E-08    6.9264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.3481        397.37        .10679E-02   -1.5685    
  24  Prefactor     35.292        27.976        .16849E-03   -1.5589    
  25  Normalizat    1.0088        .17647        .46280E-01   -.92736    
  26  Prefactor     .99039        .19731        .46147E-01   -.93051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05206e-06
Minuit parameter uncertainties:
  1  79.9632
  2  1.31273e-06
  3  5.46059
  4  14.1085
  5  41.0438
  6  8.84736e-07
  7  1.56011e-05
  8  3.91346
  9  0.00434974
  10  14.471
  11  4.59586
  12  0.00147196
  13  5.33612
  14  8.10262e-05
  15  50.2707
  16  0.000138273
  17  14.6949
  18  0.00551407
  19  1.91975e-05
  20  1.05269e-06
  21  3.55057
  22  0.000222176
  23  46.2928
  24  27.9762
  25  0.176575
  26  0.197459
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.118e+01  1.447e+01  0.000e+00  1.000e+06 ( 1.000e-13)
292        Index:  2.670e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  9.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  9.904e-01  1.975e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  1.009e+00  1.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.80
Ra Dec: 215.292 38.997
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/636867/likelihoodResults_696816001_697075201_4FGL_J1421.1+3859_daily_bin1765.txt

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) = 6794.39482045
delta logL = 0.00341387159642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6794.39080563
delta logL = 0.00742869964142

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5007       1.0000          .0000       .10000E+07
     2 'Index     '    2.8140       1.0000          .0000       10.000    
     3 'Normalizat'    1.0051       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99371       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6794.391     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      203 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4867        303.96        .32488E-03    .61640E-03
   2  Index         2.8172        3.6996        .22569        .74297E-04
   3  Normalizat    1.0051        .45620E-01    .46230E-01   -.67902E-05
   4  Prefactor     .99368        .49475E-01    .46188E-01   -.16719E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.48672
  Index      = 2.81724
  Normalizat = 1.00513
  Prefactor  = 0.993685
 **********
 **   18 **HESSE 
 **********

 FCN=   6794.391     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4867        22.513        .12995E-04   -1.5646    
   2  Index         2.8172        1.4616        .84235E-02   -.45176    
   3  Normalizat    1.0051        .20108        .24498E-03   -.92859    
   4  Prefactor     .99368        .23199        .28750E-03   -.92940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94501e-11
Minuit parameter uncertainties:
  1  22.5129
  2  1.48858
  3  0.201232
  4  0.232218
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636867': 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) = 6794.3907993
delta logL = 0.00743502897785

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  9.487e+00  2.251e+01  0.000e+00  1.000e+06 ( 1.000e-13)
292        Index:  2.817e+00  1.489e+00  0.000e+00  1.000e+01 (-1.000e+00)
293        Scale:  9.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  9.937e-01  2.322e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  1.005e+00  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.80
Ra Dec: 215.292 38.997

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/636867/cmap_HighResolution_696816001_697075201_4FGL_J1421.1+3859_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.89e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2023-02-03 01:19:27.557948', job_id='636867', GAL2='0.99', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1675415967.56', return_code2='0', ts='0.80', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='7.44e-03', ts2='0.81', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1765' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:19:27 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 636867: <4FGL_J1421.1+3859_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin1765> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Feb  3 01:05:29 2023
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 01:06:29 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 01:06:29 2023
Terminated at Fri Feb  3 01:19:28 2023
Results reported at Fri Feb  3 01:19:28 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin1765 215.292 38.9966 696816001 697075201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1421.1+3859 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   693.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            839 sec.

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

