/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 6 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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 = 7665
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1421.1+3859_daily_bin300
RA = 215.292, Dec = 38.9966
tmin = 317088001, tmax = 317347201
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='365003', job_status='RUN', time_executed='2021-09-09 10:41:20.047782', time_epoch_executed='1631209280.05' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365003

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365003/ft1_4FGL_J1421.1+3859_daily_bin300.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365003/ft2_4FGL_J1421.1+3859_daily_bin300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365003/ft1_4FGL_J1421.1+3859_daily_bin300.fits outfile=/scratch/kocevski/365003/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin300.fits ra=215.292 dec=38.9966 rad=12.0 tmin=317088001.0 tmax=317347201.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.88
user 3.63
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/365003/ft2_4FGL_J1421.1+3859_daily_bin300.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/365003/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin300.fits evtable="EVENTS" outfile="/scratch/kocevski/365003/ft1_filtered_4FGL_J1421.1+3859_daily_bin300.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/365003/ft1_filtered_4FGL_J1421.1+3859_daily_bin300.fits" evtable="EVENTS" scfile=/scratch/kocevski/365003/ft2_4FGL_J1421.1+3859_daily_bin300.fits sctable="SC_DATA" outfile=/scratch/kocevski/365003/ltcube_317088001_317347201_4FGL_J1421.1+3859_daily_bin300.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/365003/ft2_4FGL_J1421.1+3859_daily_bin300.fits
.....................!
real 11.72
user 11.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365003/ft1_filtered_4FGL_J1421.1+3859_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/365003/ft2_4FGL_J1421.1+3859_daily_bin300.fits sctable="SC_DATA" expcube=/scratch/kocevski/365003/ltcube_317088001_317347201_4FGL_J1421.1+3859_daily_bin300.fits outfile=/scratch/kocevski/365003/expmap_317088001_317347201_4FGL_J1421.1+3859_daily_bin300.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/365003/ltcube_317088001_317347201_4FGL_J1421.1+3859_daily_bin300.fits
.....................!
real 190.13
user 185.05
sys 4.58

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/365003/ft1_filtered_4FGL_J1421.1+3859_daily_bin300.fits scfile=/scratch/kocevski/365003/ft2_4FGL_J1421.1+3859_daily_bin300.fits outfile=/scratch/kocevski/365003/cmap_317088001_317347201_4FGL_J1421.1+3859_daily_bin300.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/365003/ft1_filtered_4FGL_J1421.1+3859_daily_bin300.fits scfile=/scratch/kocevski/365003/ft2_4FGL_J1421.1+3859_daily_bin300.fits outfile=/scratch/kocevski/365003/cmap_HighResolution_317088001_317347201_4FGL_J1421.1+3859_daily_bin300.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.57
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/365003/ft1_filtered_4FGL_J1421.1+3859_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/365003/ft2_4FGL_J1421.1+3859_daily_bin300.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/365003/Model_4FGL_J1421.1+3859_daily_bin300.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/365003/ft1_filtered_4FGL_J1421.1+3859_daily_bin300.fits.....................!
real 44.72
user 43.39
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/365003/ft1_filtered_4FGL_J1421.1+3859_daily_bin300.fits', '/scratch/kocevski/365003/ft2_4FGL_J1421.1+3859_daily_bin300.fits', expMap='/scratch/kocevski/365003/expmap_317088001_317347201_4FGL_J1421.1+3859_daily_bin300.fits', expCube='/scratch/kocevski/365003/ltcube_317088001_317347201_4FGL_J1421.1+3859_daily_bin300.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/365003/Model_4FGL_J1421.1+3859_daily_bin300.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  1.000e-04  1.000e+04 ( 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/365003/ft1_filtered_4FGL_J1421.1+3859_daily_bin300.fits
Spacecraft file(s): /scratch/kocevski/365003/ft2_4FGL_J1421.1+3859_daily_bin300.fits
Exposure map: /scratch/kocevski/365003/expmap_317088001_317347201_4FGL_J1421.1+3859_daily_bin300.fits
Exposure cube: /scratch/kocevski/365003/ltcube_317088001_317347201_4FGL_J1421.1+3859_daily_bin300.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/365003/Model_4FGL_J1421.1+3859_daily_bin300.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) = 5763.19611143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.136       1.0000         .10000E-03   10000.    
     3 'norm      '    4.5542       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.708       1.0000         .10000E-03   10000.    
     5 'norm      '    .11502E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.2295       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .27459E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6857       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .75580       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.809       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    50.253       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.8126       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12528E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.6808       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .57808       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.1726       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.3571       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .86044       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0552       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5763.100     FROM MIGRAD    STATUS=CONVERGED    804 CALLS     3594 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.782       -.29235E-05** at limit **
   2  Prefactor     29.133        40.520       -.70876E-06   -.80199E-04
   3  norm          4.5542        1.7012        .62391E-07   -.15390E-03
   4  Prefactor     11.708        5.5470        .49036E-06   -.94715E-03
   5  norm          .10000E-03    38.455        .41070E-05** at limit **
   6  Prefactor     8.2276        13.093        .15075E-06   -.33614E-04
   7  Prefactor     .10000E-03    37.211        .28673E-05** at limit **
   8  Prefactor     .10001E-03    2.2712        .28818E-06** at limit **
   9  Prefactor     .10000E-03    3.7335        .10224E-05** at limit **
  10  norm          .10000E-03    1.3962       -.21900E-07** at limit **
  11  Prefactor     6.6858        8.3545        .63547E-07   -.44131E-04
  12  Prefactor     .10000E-03    4.3442        .88642E-06** at limit **
  13  Prefactor     .75661        3.3978        .11642E-05   -.39475E-03
  14  norm          .10000E-03    3.7957       -.14021E-05** at limit **
  15  Prefactor     10.816        21.716        .12075E-05    .70744E-04
  16  norm          .10000E-03    1.9761        .99471E-08** at limit **
  17  Prefactor     50.253        41.116       -.20076E-06   -.13009E-04
  18  Prefactor     9.8083        13.342        .74107E-06   -.22092E-03
  19  Prefactor     .10000E-03    12.682        .11405E-05** at limit **
  20  norm          .10000E-03    2.7314       -.16713E-07** at limit **
  21  Prefactor     .10000E-03    7.0189        .18959E-05** at limit **
  22  Prefactor     .10001E-03    53.321       -.62267E-05** at limit **
  23  Prefactor     1.6702        11.130        .23471E-05    .11044E-03
  24  Prefactor     .56654        8.0077        .24348E-05   -.42931E-03
  25  norm          .10001E-03    .95456       -.57603E-06** at limit **
  26  norm          5.1738        3.4621       -.17534E-07    .30825E-03
  27  Prefactor     .10000E-03    7.8110       -.22253E-05** at limit **
  28  Prefactor     .10000E-03    33.473        .20956E-06** at limit **
  29  Prefactor     5.3578        16.736        .31791E-05   -.25857E-03
  30  Normalizat    .86038        .16780       -.85002E-06    .47429E-04
  31  Prefactor     1.0553        .19081       -.53131E-06    .25519E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 29.1335
  norm       = 4.55424
  Prefactor  = 11.7082
  norm       = 0.000100004
  Prefactor  = 8.22762
  Prefactor  = 0.000100003
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.68575
  Prefactor  = 0.0001
  Prefactor  = 0.756611
  norm       = 0.000100001
  Prefactor  = 10.8161
  norm       = 0.0001
  Prefactor  = 50.2526
  Prefactor  = 9.80828
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.00010001
  Prefactor  = 1.67025
  Prefactor  = 0.566539
  norm       = 0.000100008
  norm       = 5.17379
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.35779
  Normalizat = 0.860376
  Prefactor  = 1.0553
 **********
 **   18 **HESSE 
 **********

 FCN=   5763.100     FROM HESSE     STATUS=OK           620 CALLS     4214 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.133        40.724        .74224E-04   -1.4628    
   3  norm          4.5542        1.7037        .57629E-04   -1.5281    
   4  Prefactor     11.708        5.6567        .58539E-03   -1.5023    
   5  norm          .10000E-03    40.292        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.2276        13.078        .13975E-03   -1.5134    
   7  Prefactor     .10000E-03    37.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    23.415        .22054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.7789        .14407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.4066        .87566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.6858        8.3499        .15519E-03   -1.5191    
  12  Prefactor     .10000E-03    4.3798        .15505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .75661        3.6090        .26644E-03   -1.5534    
  14  norm          .10000E-03    3.8787        .14598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.816        21.745        .12186E-03   -1.5050    
  16  norm          .10000E-03    1.9838        .10419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     50.253        41.136        .56571E-04   -1.4289    
  18  Prefactor     9.8083        13.423        .63962E-03   -1.5082    
  19  Prefactor     .10000E-03    12.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.7331        .12253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.1693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    55.720        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.6702        9.2325        .32492E-03   -1.5449    
  24  Prefactor     .56654        9.1500        .43573E-03   -1.5557    
  25  norm          .10001E-03    5.2828        .12318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.1738        3.4595        .11196E-03   -1.5253    
  27  Prefactor     .10000E-03    8.1045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    33.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     5.3578        17.419        .86816E-03   -1.5245    
  30  Normalizat    .86038        .19676        .22925E-03   -.97867    
  31  Prefactor     1.0553        .22361        .24992E-03   -.90908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78334e-09
Minuit parameter uncertainties:
  1  0.000537843
  2  40.7632
  3  1.70375
  4  5.65697
  5  0.000851219
  6  13.0825
  7  0.000636177
  8  0.000870418
  9  7.38718e-05
  10  7.56889e-07
  11  8.3514
  12  6.86257e-05
  13  3.30502
  14  0.000103729
  15  21.7604
  16  5.61179e-07
  17  41.1594
  18  13.4267
  19  0.00015178
  20  1.34386e-06
  21  0.000188007
  22  0.00147427
  23  7.85541
  24  4.55403
  25  0.000399312
  26  3.4596
  27  0.000220331
  28  5.87907e-05
  29  17.4351
  30  0.196926
  31  0.223806
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  6.863e-05  1.000e-04  1.000e+04 ( 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:  1.055e+00  2.238e-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:  8.604e-01  1.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 215.292 38.997
Photon Flux Upper Limit: 4.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/365003/likelihoodResults_317088001_317347201_4FGL_J1421.1+3859_daily_bin300.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): 102
logL (Free Index) = 5763.10147978
delta logL = -0.00108492943764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5763.10039476
delta logL = 9.26575012272e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6492       1.0000          .0000       10.000    
     3 'Normalizat'    .86036       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0553       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5763.100     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      250 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.969        .15782E-01** at limit **
   2  Index         1.8775        8.7317        .50000       -.24033E-07
   3  Normalizat    .86037        .76120E-02    .22925E-03   -.42750E-03
   4  Prefactor     1.0553        .91480E-02    .24992E-03   -.38243E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.87749
  Normalizat = 0.860375
  Prefactor  = 1.0553
 **********
 **   18 **HESSE 
 **********

 FCN=   5763.100     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    226.36        .18814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8775        7.2073        .50000       -.67449    
   3  Normalizat    .86037        .23809E-01    .45850E-04   -.97867    
   4  Prefactor     1.0553        .28613E-01    .49983E-04   -.90908    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.09852e-11
Minuit parameter uncertainties:
  1  3.05256e-05
  2  943.045
  3  0.0238095
  4  0.0286139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365003': 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): 102
logL (Free Index) = 5763.10039119
delta logL = 3.6544061004e-06

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  3.053e-05  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  1.877e+00  9.430e+02  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:  1.055e+00  2.861e-02  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:  8.604e-01  2.381e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 215.292 38.997

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/365003/cmap_HighResolution_317088001_317347201_4FGL_J1421.1+3859_daily_bin300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.89e-03', job_status='DONE', photon_flux_upper_limit='4.95e-08', time_completed='2021-09-09 10:54:45.262274', job_id='365003', GAL2='1.06', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631210085.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='3.65e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='300' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:54:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 365003: <4FGL_J1421.1+3859_daily_bin300> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin300> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 10:41:03 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:41:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 10:41:05 2021
Terminated at Thu Sep  9 10:54:46 2021
Results reported at Thu Sep  9 10:54:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin300 215.292 38.9966 317088001 317347201 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 :                                   801.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            823 sec.

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

