/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 9 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 = 7424
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1421.1+3859_daily_bin864
RA = 215.292, Dec = 38.9966
tmin = 463276801, tmax = 463536001
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='366943', job_status='RUN', time_executed='2021-09-09 10:46:34.562164', time_epoch_executed='1631209594.56' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='864'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/366943

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/366943/ft1_4FGL_J1421.1+3859_daily_bin864.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/366943/ft2_4FGL_J1421.1+3859_daily_bin864.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/366943/ft1_4FGL_J1421.1+3859_daily_bin864.fits outfile=/scratch/kocevski/366943/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin864.fits ra=215.292 dec=38.9966 rad=12.0 tmin=463276801.0 tmax=463536001.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.68
user 3.45
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/366943/ft2_4FGL_J1421.1+3859_daily_bin864.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/366943/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin864.fits evtable="EVENTS" outfile="/scratch/kocevski/366943/ft1_filtered_4FGL_J1421.1+3859_daily_bin864.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.49
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/366943/ft1_filtered_4FGL_J1421.1+3859_daily_bin864.fits evtable="EVENTS" scfile=/scratch/kocevski/366943/ft2_4FGL_J1421.1+3859_daily_bin864.fits sctable="SC_DATA" expcube=/scratch/kocevski/366943/ltcube_463276801_463536001_4FGL_J1421.1+3859_daily_bin864.fits outfile=/scratch/kocevski/366943/expmap_463276801_463536001_4FGL_J1421.1+3859_daily_bin864.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/366943/ltcube_463276801_463536001_4FGL_J1421.1+3859_daily_bin864.fits
.....................!
real 190.89
user 185.47
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
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/366943/ft1_filtered_4FGL_J1421.1+3859_daily_bin864.fits scfile=/scratch/kocevski/366943/ft2_4FGL_J1421.1+3859_daily_bin864.fits outfile=/scratch/kocevski/366943/cmap_463276801_463536001_4FGL_J1421.1+3859_daily_bin864.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/366943/ft1_filtered_4FGL_J1421.1+3859_daily_bin864.fits scfile=/scratch/kocevski/366943/ft2_4FGL_J1421.1+3859_daily_bin864.fits outfile=/scratch/kocevski/366943/cmap_HighResolution_463276801_463536001_4FGL_J1421.1+3859_daily_bin864.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/366943/ft1_filtered_4FGL_J1421.1+3859_daily_bin864.fits', '/scratch/kocevski/366943/ft2_4FGL_J1421.1+3859_daily_bin864.fits', expMap='/scratch/kocevski/366943/expmap_463276801_463536001_4FGL_J1421.1+3859_daily_bin864.fits', expCube='/scratch/kocevski/366943/ltcube_463276801_463536001_4FGL_J1421.1+3859_daily_bin864.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/366943/Model_4FGL_J1421.1+3859_daily_bin864.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/366943/ft1_filtered_4FGL_J1421.1+3859_daily_bin864.fits
Spacecraft file(s): /scratch/kocevski/366943/ft2_4FGL_J1421.1+3859_daily_bin864.fits
Exposure map: /scratch/kocevski/366943/expmap_463276801_463536001_4FGL_J1421.1+3859_daily_bin864.fits
Exposure cube: /scratch/kocevski/366943/ltcube_463276801_463536001_4FGL_J1421.1+3859_daily_bin864.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/366943/Model_4FGL_J1421.1+3859_daily_bin864.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) = 6389.6658211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.421       1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.009       1.0000         .10000E-03   10000.    
     3 'norm      '    9.9761       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    23.219       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.000       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.907       1.0000         .10000E-03   10000.    
    10 'norm      '    3.2956       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20547E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6311       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2417       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.377       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.0927       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .91798       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.1159       1.0000         .10000E-03   10000.    
    25 'norm      '    6.4153       1.0000         .10000E-03   10000.    
    26 'norm      '    7.3268       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.5489       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3150       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .74207       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=   6389.661     FROM MIGRAD    STATUS=CONVERGED    822 CALLS     4157 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.424        69.075       -.13383E-06    .28150E-05
   2  Prefactor     42.015        74.444       -.38716E-06    .69657E-05
   3  norm          9.9763        2.3990        .26054E-07    .49165E-04
   4  Prefactor     .10000E-03    4.2451       -.39773E-07** at limit **
   5  norm          23.217        18.511        .18039E-06    .65706E-04
   6  Prefactor     10.996        16.063        .31051E-06    .73548E-04
   7  Prefactor     .10000E-03    49.348        .38355E-05** at limit **
   8  Prefactor     .10000E-03    3.7051       -.54166E-07** at limit **
   9  Prefactor     19.904        23.402        .28791E-07    .34863E-05
  10  norm          3.2951        3.9668        .13078E-06    .10872E-03
  11  Prefactor     .10000E-03    13.575        .40643E-06** at limit **
  12  Prefactor     .10033E-03    17.038       -.19730E-05** at limit **
  13  Prefactor     2.6311        2.8231        .34013E-07    .40229E-04
  14  norm          .10000E-03    4.4796       -.11474E-07** at limit **
  15  Prefactor     .10000E-03    9.3309       -.46628E-07** at limit **
  16  norm          2.2405        7.3008        .51312E-06    .80331E-04
  17  Prefactor     .10000E-03    29.911       -.51423E-06** at limit **
  18  Prefactor     24.379        19.476       -.71864E-07   -.18477E-05
  19  Prefactor     5.0925        18.662        .19732E-05    .22627E-04
  20  norm          .10000E-03    3.4922       -.30715E-07** at limit **
  21  Prefactor     .10000E-03    9.8189        .91681E-07** at limit **
  22  Prefactor     .10000E-03    12.466       -.32381E-06** at limit **
  23  Prefactor     .92610        7.7768       -.62834E-06    .85796E-04
  24  Prefactor     4.1175        8.3584        .27660E-05    .12130E-03
  25  norm          6.4144        2.8475        .77402E-07    .45179E-03
  26  norm          7.3288        4.4670       -.30294E-06    .90796E-05
  27  Prefactor     .10000E-03    14.605        .17222E-06** at limit **
  28  Prefactor     .10000E-03    59.459       -.47355E-05** at limit **
  29  Prefactor     3.5604        34.154        .11277E-05    .86666E-05
  30  Normalizat    1.3149        .19560       -.37150E-06    .17891E-03
  31  Prefactor     .74213        .20337       -.16185E-06    .11491E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.4244
  Prefactor  = 42.0148
  norm       = 9.97633
  Prefactor  = 0.0001
  norm       = 23.2171
  Prefactor  = 10.9962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.9043
  norm       = 3.29514
  Prefactor  = 0.0001
  Prefactor  = 0.000100332
  Prefactor  = 2.63115
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.24051
  Prefactor  = 0.0001
  Prefactor  = 24.3789
  Prefactor  = 5.09252
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.926103
  Prefactor  = 4.11748
  norm       = 6.41439
  norm       = 7.32875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.5604
  Normalizat = 1.31487
  Prefactor  = 0.742133
 **********
 **   18 **HESSE 
 **********

 FCN=   6389.661     FROM HESSE     STATUS=OK           628 CALLS     4785 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.424        69.110        .21129E-03   -1.3803    
   2  Prefactor     42.015        74.905        .61850E-04   -1.4411    
   3  norm          9.9763        2.4048        .57833E-04   -1.5076    
   4  Prefactor     .10000E-03    4.3638        .32137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          23.217        18.509        .83127E-04   -1.4744    
   6  Prefactor     10.996        15.887        .12080E-03   -1.5045    
   7  Prefactor     .10000E-03    49.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.7723        .15013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.904        23.607        .89770E-04   -1.4815    
  10  norm          3.2951        3.9470        .16695E-03   -1.5345    
  11  Prefactor     .10000E-03    13.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10033E-03    158.64        .57437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.6311        2.8177        .13403E-03   -1.5384    
  14  norm          .10000E-03    4.4804        .16522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.3456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2405        7.2438        .27450E-03   -1.5409    
  17  Prefactor     .10000E-03    29.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.379        19.468        .81132E-04   -1.4720    
  19  Prefactor     5.0925        18.663        .89083E-03   -1.5257    
  20  norm          .10000E-03    3.4944        .14587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.8555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .92610        38.626        .34735E-02   -1.5516    
  24  Prefactor     4.1175        8.4003        .99350E-03   -1.5302    
  25  norm          6.4144        2.9720        .71256E-04   -1.5201    
  26  norm          7.3288        4.4604        .12659E-03   -1.5166    
  27  Prefactor     .10000E-03    14.974        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    59.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     3.5604        34.038        .21456E-03   -1.5331    
  30  Normalizat    1.3149        .23486        .23207E-03   -.83124    
  31  Prefactor     .74213        .24314        .33146E-03   -1.0190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1542e-09
Minuit parameter uncertainties:
  1  69.1714
  2  75.0733
  3  2.40486
  4  3.00654e-06
  5  18.5135
  6  15.8928
  7  9.03934e-05
  8  3.02775e-06
  9  23.618
  10  3.94733
  11  1.34278e-05
  12  0.014553
  13  2.81789
  14  8.59085e-07
  15  1.00077e-06
  16  7.24662
  17  3.60141e-06
  18  19.4731
  19  18.6847
  20  7.25005e-08
  21  2.3355e-06
  22  1.16928e-06
  23  11.9695
  24  8.40269
  25  2.97212
  26  4.46062
  27  3.48206e-05
  28  3.01324e-05
  29  22.0335
  30  0.235046
  31  0.243489
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.003e-04  1.455e-02  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:  7.421e-01  2.435e-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.315e+00  2.350e-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: 9.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/366943/likelihoodResults_463276801_463536001_4FGL_J1421.1+3859_daily_bin864.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) = 6389.66068787
delta logL = -2.89305990009e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6389.66068787
delta logL = -2.89224853987e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96349E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6699       1.0000          .0000       10.000    
     3 'Normalizat'    1.3149       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74215       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=   6389.655     FROM MIGRAD    STATUS=CONVERGED    122 CALLS      294 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82798        83.198        .90714E-02    .58885E-03
   2  Index         3.3223        1.0487        .50000       -.35688E-04
   3  Normalizat    1.3078        .10434E-01    .52611E-01   -.40702E-03
   4  Prefactor     .74635        .11604E-01    .74692E-01    .83781E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.827977
  Index      = 3.3223
  Normalizat = 1.30778
  Prefactor  = 0.746351
 **********
 **   18 **HESSE 
 **********

 FCN=   6389.655     FROM HESSE     STATUS=OK            31 CALLS      325 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82798        34.393        .36285E-03   -1.5526    
   2  Index         3.3223        6.5980        .75553E-02   -.34218    
   3  Normalizat    1.3078        .22446        .23262E-03   -.83335    
   4  Prefactor     .74635        .24111        .33061E-03   -1.0174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63008e-09
Minuit parameter uncertainties:
  1  10.6786
  2  4.72584
  3  0.224631
  4  0.241449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/366943': 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) = 6389.65497759
delta logL = 0.00568135365029

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  8.280e-01  1.068e+01  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  3.322e+00  4.726e+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:  7.464e-01  2.414e-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.308e+00  2.246e-01  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/366943/cmap_HighResolution_463276801_463536001_4FGL_J1421.1+3859_daily_bin864.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.76e-03', job_status='DONE', photon_flux_upper_limit='9.87e-08', time_completed='2021-09-09 11:01:32.650098', job_id='366943', GAL2='0.75', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1631210492.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='5.68e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='864' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:01:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 366943: <4FGL_J1421.1+3859_daily_bin864> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin864> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 10:46:16 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:46:17 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:46:17 2021
Terminated at Thu Sep  9 11:01:33 2021
Results reported at Thu Sep  9 11:01:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin864 215.292 38.9966 463276801 463536001 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 :                                   896.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

