/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 44 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 = 7378
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1421.1+3859_daily_bin29
RA = 215.292, Dec = 38.9966
tmin = 246844801, tmax = 247104001
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='363627', job_status='RUN', time_executed='2021-09-09 10:37:18.215423', time_epoch_executed='1631209038.22' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='29'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363627

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363627/ft1_4FGL_J1421.1+3859_daily_bin29.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363627/ft2_4FGL_J1421.1+3859_daily_bin29.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363627/ft1_4FGL_J1421.1+3859_daily_bin29.fits outfile=/scratch/kocevski/363627/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin29.fits ra=215.292 dec=38.9966 rad=12.0 tmin=246844801.0 tmax=247104001.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 1.49
user 1.26
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/363627/ft1_filtered_4FGL_J1421.1+3859_daily_bin29.fits" evtable="EVENTS" scfile=/scratch/kocevski/363627/ft2_4FGL_J1421.1+3859_daily_bin29.fits sctable="SC_DATA" outfile=/scratch/kocevski/363627/ltcube_246844801_247104001_4FGL_J1421.1+3859_daily_bin29.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/363627/ft2_4FGL_J1421.1+3859_daily_bin29.fits
.....................!
real 14.62
user 14.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363627/ft1_filtered_4FGL_J1421.1+3859_daily_bin29.fits evtable="EVENTS" scfile=/scratch/kocevski/363627/ft2_4FGL_J1421.1+3859_daily_bin29.fits sctable="SC_DATA" expcube=/scratch/kocevski/363627/ltcube_246844801_247104001_4FGL_J1421.1+3859_daily_bin29.fits outfile=/scratch/kocevski/363627/expmap_246844801_247104001_4FGL_J1421.1+3859_daily_bin29.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/363627/ltcube_246844801_247104001_4FGL_J1421.1+3859_daily_bin29.fits
.....................!
real 190.29
user 185.66
sys 4.31

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/363627/ft1_filtered_4FGL_J1421.1+3859_daily_bin29.fits scfile=/scratch/kocevski/363627/ft2_4FGL_J1421.1+3859_daily_bin29.fits outfile=/scratch/kocevski/363627/cmap_246844801_247104001_4FGL_J1421.1+3859_daily_bin29.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/363627/ft1_filtered_4FGL_J1421.1+3859_daily_bin29.fits scfile=/scratch/kocevski/363627/ft2_4FGL_J1421.1+3859_daily_bin29.fits outfile=/scratch/kocevski/363627/cmap_HighResolution_246844801_247104001_4FGL_J1421.1+3859_daily_bin29.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.52
user 0.37
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .11881E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1716       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .42337       1.0000         .10000E-03   10000.    
     5 'norm      '    4.6096       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4975       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5366       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .50914E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.746       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4549       1.0000         .10000E-03   10000.    
    14 'norm      '    .30497E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .29417E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    5.0903       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6427       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3203       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.663       1.0000         .10000E-03   10000.    
    20 'norm      '    .94555       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.7074       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.2981       1.0000         .10000E-03   10000.    
    25 'norm      '    2.5079       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.4410       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1527       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .72961       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=   7943.872     FROM MIGRAD    STATUS=CONVERGED    837 CALLS     3640 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    187.33       -.21127E-05** at limit **
   2  Prefactor     .10000E-03    73.726        .43175E-06** at limit **
   3  norm          1.1715        .97578       -.36859E-07    .45208E-05
   4  Prefactor     .42195        1.6811       -.10812E-06   -.10292E-03
   5  norm          4.6054        13.659       -.71047E-06   -.11021E-03
   6  Prefactor     .10000E-03    7.9848        .10032E-06** at limit **
   7  Prefactor     .10000E-03    34.726       -.12915E-06** at limit **
   8  Prefactor     2.4977        3.0334       -.10869E-07    .23028E-04
   9  Prefactor     .10000E-03    10.212        .11174E-06** at limit **
  10  norm          1.5367        2.2971       -.20554E-06   -.48567E-03
  11  Prefactor     .10051E-03    12.097        .41464E-05** at limit **
  12  Prefactor     34.789        18.646       -.74188E-06   -.16497E-02
  13  Prefactor     3.4546        2.5026       -.65125E-07   -.14176E-03
  14  norm          .10005E-03    9.9538       -.24935E-05** at limit **
  15  Prefactor     .10006E-03    124.44        .22767E-04** at limit **
  16  norm          5.0902        5.6098       -.18923E-06   -.24765E-03
  17  Prefactor     3.6293        87.294       -.21589E-05   -.48085E-04
  18  Prefactor     4.3194        13.329       -.46774E-05   -.80508E-04
  19  Prefactor     20.651        30.653       -.78384E-07    .35607E-04
  20  norm          .94585        5.2695       -.54079E-06    .16331E-03
  21  Prefactor     .10000E-03    21.534        .12223E-05** at limit **
  22  Prefactor     .10000E-03    11.526        .47428E-06** at limit **
  23  Prefactor     1.7071        5.6969       -.76462E-06    .70549E-04
  24  Prefactor     8.2972        6.3933       -.15339E-06   -.45563E-04
  25  norm          2.5078        1.4394        .90932E-07    .36397E-03
  26  norm          .10000E-03    .77241        .26034E-06** at limit **
  27  Prefactor     7.4395        6.2137       -.46080E-06   -.73478E-04
  28  Prefactor     .10000E-03    23.772        .15347E-05** at limit **
  29  Prefactor     .10000E-03    13.148        .81744E-06** at limit **
  30  Normalizat    1.1528        .15133        .10038E-05   -.61770E-03
  31  Prefactor     .72962        .16376       -.53372E-06   -.42617E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 1.17145
  Prefactor  = 0.421945
  norm       = 4.60536
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.49766
  Prefactor  = 0.0001
  norm       = 1.53669
  Prefactor  = 0.000100513
  Prefactor  = 34.7888
  Prefactor  = 3.45455
  norm       = 0.000100045
  Prefactor  = 0.000100056
  norm       = 5.09015
  Prefactor  = 3.62929
  Prefactor  = 4.31939
  Prefactor  = 20.6508
  norm       = 0.945853
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 1.70712
  Prefactor  = 8.29724
  norm       = 2.50778
  norm       = 0.0001
  Prefactor  = 7.4395
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.15283
  Prefactor  = 0.729624
 **********
 **   18 **HESSE 
 **********

 FCN=   7943.872     FROM HESSE     STATUS=OK           640 CALLS     4280 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    188.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    74.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1715        .96570        .77008E-04   -1.5492    
   4  Prefactor     .42195        6.4655        .21695E-02   -1.5578    
   5  norm          4.6054        13.634        .18747E-03   -1.5279    
   6  Prefactor     .10000E-03    8.0053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4977        3.0250        .16584E-03   -1.5392    
   9  Prefactor     .10000E-03    10.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5367        2.2651        .15877E-03   -1.5460    
  11  Prefactor     .10051E-03    21.240        .69870E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     34.789        21.063        .67984E-04   -1.4528    
  13  Prefactor     3.4546        2.4972        .11530E-03   -1.5336    
  14  norm          .10005E-03    27.936        .45260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10006E-03    132.38        .66598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.0902        5.5627        .17821E-03   -1.5257    
  17  Prefactor     3.6293        85.818        .21166E-03   -1.5327    
  18  Prefactor     4.3194        13.395        .96904E-03   -1.5292    
  19  Prefactor     20.651        30.718        .88112E-04   -1.4799    
  20  norm          .94585        5.1901        .39833E-03   -1.5513    
  21  Prefactor     .10000E-03    22.410        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.7071        5.6201        .32178E-03   -1.5447    
  24  Prefactor     8.2972        6.3899        .13917E-03   -1.5132    
  25  norm          2.5078        1.4198        .72043E-04   -1.5391    
  26  norm          .10000E-03    .77660        .76651E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.4395        6.2096        .14703E-03   -1.5162    
  28  Prefactor     .10000E-03    23.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    13.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1528        .17596        .20839E-03   -.88073    
  31  Prefactor     .72962        .19244        .29151E-03   -1.0238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40552e-08
Minuit parameter uncertainties:
  1  0.0019589
  2  0.000177436
  3  0.965709
  4  3.30341
  5  13.6433
  6  8.87525e-06
  7  7.55437e-05
  8  3.02515
  9  3.30666e-05
  10  2.26518
  11  0.00660377
  12  21.0674
  13  2.49724
  14  0.00225403
  15  0.00543839
  16  5.56327
  17  35.3529
  18  13.4045
  19  30.7413
  20  4.43163
  21  0.000565581
  22  8.85724e-05
  23  5.62183
  24  6.39041
  25  1.41981
  26  1.18799e-05
  27  6.21009
  28  1.85745e-05
  29  0.000151145
  30  0.176055
  31  0.192613
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  3.479e+01  2.107e+01  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.296e-01  1.926e-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.153e+00  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.46
Ra Dec: 215.292 38.997
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 7.96e-08 +/- 4.81e-08
Energy Flux (Fixed Index): 1.96e-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) = 7943.4748989
delta logL = 0.396650637735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7943.47197059
delta logL = 0.399578947538

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.408       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1994       1.0000          .0000       10.000    
     3 'Normalizat'    1.1796       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70529       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=   7943.472     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      312 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.418        30.289        .53889E-04    .25105E-04
   2  Index         2.1996        .46479        .67419E-02    .36622E-03
   3  Normalizat    1.1796        .16961        .20633E-03    .40222E-04
   4  Prefactor     .70529        .19033        .29593E-03   -.40107E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.4175
  Index      = 2.19962
  Normalizat = 1.17959
  Prefactor  = 0.705285
 **********
 **   18 **HESSE 
 **********

 FCN=   7943.472     FROM HESSE     STATUS=OK            25 CALLS      337 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.418        29.589        .21555E-05   -1.4218    
   2  Index         2.1996        .45375        .13484E-02   -.59448    
   3  Normalizat    1.1796        .16965        .82534E-05   -.87236    
   4  Prefactor     .70529        .19041        .11837E-04   -1.0332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.821e-11
Minuit parameter uncertainties:
  1  29.597
  2  0.454665
  3  0.169727
  4  0.190584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363627': 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) = 7943.47197027
delta logL = 0.399579264164

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  5.542e+01  2.960e+01  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.200e+00  4.547e-01  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.053e-01  1.906e-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.180e+00  1.697e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.19
Ra Dec: 215.292 38.997
Photon Index (Free Index): 2.20 +/- 0.45
Photon Flux (Free Index): 6.19e-08 +/- 3.66e-08
Energy Flux (Free Index): 2.78e-05 +/- 1.84e-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/363627/cmap_HighResolution_246844801_247104001_4FGL_J1421.1+3859_daily_bin29.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.96e-08', energy_flux2='2.78e-05', photon_flux_error='4.81e-08', dlogl='4.00e-01', energy_flux='1.96e-05', photon_flux2='6.19e-08', job_status='DONE', time_completed='2021-09-09 10:50:55.362911', photon_index_error2='0.45', photon_index2='2.20', ts='9.46', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.84e-05', EG='1.15', time_epoch_completed='1631209855.36', return_code='0', job_id='363627', GAL2='0.71', EG2='1.18', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='3.66e-08', ts2='10.19', photon_index='2.67' WHERE bin_id='29' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:50:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 363627: <4FGL_J1421.1+3859_daily_bin29> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin29> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  9 10:36:19 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:36:20 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:36:20 2021
Terminated at Thu Sep  9 10:50:56 2021
Results reported at Thu Sep  9 10:50:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin29 215.292 38.9966 246844801 247104001 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 :                                   814.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            877 sec.

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

