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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin786
RA = 195.12, Dec = 14.2701
tmin = 443059201, tmax = 443318401
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='95854', job_status='RUN', time_executed='2021-09-06 14:39:34.522370', time_epoch_executed='1630964374.52' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='786'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95854

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95854/ft1_4FGL_J1300.4+1416_daily_bin786.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95854/ft2_4FGL_J1300.4+1416_daily_bin786.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95854/ft1_4FGL_J1300.4+1416_daily_bin786.fits outfile=/scratch/kocevski/95854/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin786.fits ra=195.12 dec=14.2701 rad=12.0 tmin=443059201.0 tmax=443318401.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.80
user 3.54
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/95854/ft2_4FGL_J1300.4+1416_daily_bin786.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/95854/ft2_4FGL_J1300.4+1416_daily_bin786.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/95854/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin786.fits evtable="EVENTS" outfile="/scratch/kocevski/95854/ft1_filtered_4FGL_J1300.4+1416_daily_bin786.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95854/ft1_filtered_4FGL_J1300.4+1416_daily_bin786.fits" evtable="EVENTS" scfile=/scratch/kocevski/95854/ft2_4FGL_J1300.4+1416_daily_bin786.fits sctable="SC_DATA" outfile=/scratch/kocevski/95854/ltcube_443059201_443318401_4FGL_J1300.4+1416_daily_bin786.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/95854/ft2_4FGL_J1300.4+1416_daily_bin786.fits
.....................!
real 12.06
user 11.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95854/ft1_filtered_4FGL_J1300.4+1416_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/95854/ft2_4FGL_J1300.4+1416_daily_bin786.fits sctable="SC_DATA" expcube=/scratch/kocevski/95854/ltcube_443059201_443318401_4FGL_J1300.4+1416_daily_bin786.fits outfile=/scratch/kocevski/95854/expmap_443059201_443318401_4FGL_J1300.4+1416_daily_bin786.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/95854/ltcube_443059201_443318401_4FGL_J1300.4+1416_daily_bin786.fits
.....................!
real 191.74
user 185.77
sys 5.59

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

Setting source of interest to:
4FGL J1300.4+1416 @ 195.12 14.2701

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/95854/ft1_filtered_4FGL_J1300.4+1416_daily_bin786.fits scfile=/scratch/kocevski/95854/ft2_4FGL_J1300.4+1416_daily_bin786.fits outfile=/scratch/kocevski/95854/cmap_443059201_443318401_4FGL_J1300.4+1416_daily_bin786.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=195.12 yref=14.2701 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.53
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95854/ft1_filtered_4FGL_J1300.4+1416_daily_bin786.fits scfile=/scratch/kocevski/95854/ft2_4FGL_J1300.4+1416_daily_bin786.fits outfile=/scratch/kocevski/95854/cmap_HighResolution_443059201_443318401_4FGL_J1300.4+1416_daily_bin786.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=195.12 yref=14.2701 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/95854/ft1_filtered_4FGL_J1300.4+1416_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/95854/ft2_4FGL_J1300.4+1416_daily_bin786.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/95854/Model_4FGL_J1300.4+1416_daily_bin786.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/95854/ft1_filtered_4FGL_J1300.4+1416_daily_bin786.fits.....................!
real 52.95
user 51.59
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/95854/ft1_filtered_4FGL_J1300.4+1416_daily_bin786.fits', '/scratch/kocevski/95854/ft2_4FGL_J1300.4+1416_daily_bin786.fits', expMap='/scratch/kocevski/95854/expmap_443059201_443318401_4FGL_J1300.4+1416_daily_bin786.fits', expCube='/scratch/kocevski/95854/ltcube_443059201_443318401_4FGL_J1300.4+1416_daily_bin786.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/95854/Model_4FGL_J1300.4+1416_daily_bin786.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1300.4+1416'

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  6.920e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.738e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.431e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/95854/ft1_filtered_4FGL_J1300.4+1416_daily_bin786.fits
Spacecraft file(s): /scratch/kocevski/95854/ft2_4FGL_J1300.4+1416_daily_bin786.fits
Exposure map: /scratch/kocevski/95854/expmap_443059201_443318401_4FGL_J1300.4+1416_daily_bin786.fits
Exposure cube: /scratch/kocevski/95854/ltcube_443059201_443318401_4FGL_J1300.4+1416_daily_bin786.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/95854/Model_4FGL_J1300.4+1416_daily_bin786.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) = 6307.80551306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5487       1.0000         .10000E-03   10000.    
     4 'Prefactor '    100.03       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21004       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.4650       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.800       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.067       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2716       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0458       1.0000         .10000E-03   10000.    
    12 'norm      '    3.0201       1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.2631       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.426       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .71109       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2518       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6307.792     FROM MIGRAD    STATUS=FAILED       760 CALLS     2372 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6878        .19847E-03** at limit **
   2  Prefactor     .10000E-03    9.0235        .18142E-02** at limit **
   3  norm          1.5486        .36497        .22242E-04   -.15437E-03
   4  Prefactor     100.09        148.54        .20098E-03    .62223E-06
   5  Prefactor     .23849        45.096        .37490E-02    .15356E-02
   6  Prefactor     .10000E-03    10.095        .18142E-02** at limit **
   7  norm          1.4649        1.1356        .72604E-04   -.11634E-03
   8  Prefactor     31.050        72.806        .72196E-04   -.62988E-06
   9  Prefactor     17.066        9.4851        .96949E-04   -.92639E-05
  10  Prefactor     1.1544        81.877        .19723E-02   -.20031E-03
  11  Prefactor     5.0865        16.239        .89504E-03   -.64437E-04
  12  norm          3.0197        3.1732        .13983E-03   -.18374E-04
  13  norm          .10000E-03    6.8672        .18142E-02** at limit **
  14  norm          5.2632        5.6932        .17520E-03   -.17520E-05
  15  Prefactor     .10000E-03    2.2283        .11574E-02** at limit **
  16  Prefactor     .10000E-03    8.4590        .18142E-02** at limit **
  17  norm          10.425        8.1997        .12409E-03   -.10078E-04
  18  Prefactor     .10000E-03    22.526        .18142E-02** at limit **
  19  Normalizat    .71146        .22259        .30255E-03    .71394E-06
  20  Prefactor     1.2515        .19511        .21697E-03   -.37306E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6307.792     FROM SIMPLEX   STATUS=UNCHANGED    924 CALLS     3296 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6878        .29454E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.0235        .32740E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5486        .36497        .35754E-07   -1.5459    
   4  Prefactor     100.09        148.54        .31819E-07   -1.3704    
   5  Prefactor     .23849        45.096        .36660E-07   -1.5610    
   6  Prefactor     .10000E-03    10.095        .24278E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.4649        1.1356        .36196E-07   -1.5466    
   8  Prefactor     31.050        72.806        .34388E-07   -1.4593    
   9  Prefactor     17.066        9.4851        .35071E-07   -1.4882    
  10  Prefactor     1.1544        81.877        .39070E-07   -1.5493    
  11  Prefactor     5.0865        16.239        .36548E-07   -1.5257    
  12  norm          3.0197        3.1732        .36665E-07   -1.5360    
  13  norm          .10000E-03    6.8672        .54860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.2632        5.6932        .34965E-07   -1.5249    
  15  Prefactor     .10000E-03    2.2283        .14096E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.4590        .10082E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.425        8.1997        .34541E-07   -1.5062    
  18  Prefactor     .10000E-03    22.526        .12935E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .71146        .22259        .23720E-07   -1.0344    
  20  Prefactor     1.2515        .19511        .19435E-07   -.84762    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6307.792     FROM MIGRAD    STATUS=CONVERGED    282 CALLS     3578 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6878        .39693E-04** at limit **
   2  Prefactor     .10000E-03    9.0238        .36285E-03** at limit **
   3  norm          1.5486        .36494        .88966E-06   -.25910E-04
   4  Prefactor     100.09        148.55        .80391E-05   -.56567E-07
   5  Prefactor     .23849        46.103        .74980E-03    .60116E-04
   6  Prefactor     .10000E-03    10.096        .36285E-03** at limit **
   7  norm          1.4649        1.1356        .29042E-05   -.18007E-04
   8  Prefactor     31.049        69.604        .28879E-05   -.14960E-04
   9  Prefactor     17.066        9.4835        .38780E-05   -.23453E-05
  10  Prefactor     1.1550        72.362        .78893E-04   -.12825E-04
  11  Prefactor     5.0863        15.801        .35802E-04   -.28897E-04
  12  norm          3.0197        3.1730        .55934E-05   -.24390E-05
  13  norm          .10000E-03    6.8677        .36285E-03** at limit **
  14  norm          5.2632        5.6928        .70081E-05   -.64889E-06
  15  Prefactor     .10000E-03    2.2283        .23149E-03** at limit **
  16  Prefactor     .10000E-03    8.4591        .36285E-03** at limit **
  17  norm          10.425        8.1990        .49636E-05   -.13742E-05
  18  Prefactor     .10000E-03    22.527        .36285E-03** at limit **
  19  Normalizat    .71145        .22224        .12102E-04   -.17473E-04
  20  Prefactor     1.2515        .19490        .43395E-04   -.23369E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.54858
  Prefactor  = 100.086
  Prefactor  = 0.238489
  Prefactor  = 0.0001
  norm       = 1.46489
  Prefactor  = 31.0485
  Prefactor  = 17.0656
  Prefactor  = 1.15504
  Prefactor  = 5.08629
  norm       = 3.01971
  norm       = 0.0001
  norm       = 5.26325
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.4253
  Prefactor  = 0.0001
  Normalizat = 0.711455
  Prefactor  = 1.25147
 **********
 **   18 **HESSE 
 **********

 FCN=   6307.792     FROM HESSE     STATUS=OK           273 CALLS     3851 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6878        .79387E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.0238        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5486        .36495        .36857E-06   -1.5459    
   4  Prefactor     100.09        148.54        .80391E-05   -1.3704    
   5  Prefactor     .23849        46.098        .14996E-03   -1.5610    
   6  Prefactor     .10000E-03    10.096        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.4649        1.1357        .58083E-06   -1.5466    
   8  Prefactor     31.049        71.176        .57757E-06   -1.4593    
   9  Prefactor     17.066        9.4865        .77559E-06   -1.4882    
  10  Prefactor     1.1550        73.050        .31557E-05   -1.5493    
  11  Prefactor     5.0863        15.814        .14321E-05   -1.5257    
  12  norm          3.0197        3.1729        .11187E-05   -1.5360    
  13  norm          .10000E-03    6.8677        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.2632        5.6943        .14016E-05   -1.5249    
  15  Prefactor     .10000E-03    2.2283        .46298E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.4591        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.425        8.2017        .99273E-06   -1.5062    
  18  Prefactor     .10000E-03    22.527        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .71145        .22237        .24204E-05   -1.0344    
  20  Prefactor     1.2515        .19496        .86790E-05   -.84762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0529e-12
Minuit parameter uncertainties:
  1  3.08063e-07
  2  3.36128e-06
  3  0.364952
  4  149.099
  5  6.63516
  6  4.36553e-07
  7  1.13573
  8  71.3718
  9  9.48737
  10  18.3939
  11  15.8268
  12  3.1731
  13  3.86712e-08
  14  5.69485
  15  1.51983e-07
  16  3.8144e-07
  17  8.20258
  18  1.59881e-06
  19  0.222655
  20  0.19507
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  5.086e+00  1.583e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.738e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.431e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.251e+00  1.951e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  7.115e-01  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 195.120 14.270
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/95854/likelihoodResults_443059201_443318401_4FGL_J1300.4+1416_daily_bin786.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) = 6307.31041681
delta logL = 0.481351627287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6307.27775057
delta logL = 0.514017868721

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8810       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3694       1.0000          .0000       10.000    
     3 'Normalizat'    .65465       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2836       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6307.278     FROM MIGRAD    STATUS=FAILED        82 CALLS      258 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8823        131.73        .12449E-03    .30510E-02
   2  Index         4.3700        6.6730        .89419E-02    .42696E-03
   3  Normalizat    .65467        .21357        .31466E-03    .95378E-03
   4  Prefactor     1.2836        .19250        .21462E-03    .99804E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6307.278     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      345 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8823        131.73        .12744E-03    .30510E-02
   2  Index         4.3700        6.6730        .97844E-03    .42696E-03
   3  Normalizat    .65467        .21357        .15418E-03    .95378E-03
   4  Prefactor     1.2836        .19250        .96991E-04    .99804E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6307.278     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      378 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8824        7.4980        .49798E-05    .10684E-03
   2  Index         4.3699        1.9395        .35768E-03    .11506E-04
   3  Normalizat    .65467        .21647        .62931E-04    .39743E-05
   4  Prefactor     1.2836        .19504        .42924E-04   -.27015E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.88243
  Index      = 4.36993
  Normalizat = 0.65467
  Prefactor  = 1.28356
 **********
 **   18 **HESSE 
 **********

 FCN=   6307.278     FROM HESSE     STATUS=OK            23 CALLS      401 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8824        7.3587        .99595E-06   -1.5368    
   2  Index         4.3699        1.9052        .14307E-04   -.12635    
   3  Normalizat    .65467        .21628        .25173E-05   -1.0571    
   4  Prefactor     1.2836        .19491        .85848E-05   -.83797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21663e-12
Minuit parameter uncertainties:
  1  7.36097
  2  1.95541
  3  0.216564
  4  0.195017
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95854': 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) = 6307.27774966
delta logL = 0.514018777659

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.882e+00  7.361e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  4.370e+00  1.955e+00  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.431e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.284e+00  1.950e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  6.547e-01  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 195.120 14.270
Photon Index (Free Index): 4.37 +/- 1.96
Photon Flux (Free Index): 5.74e-08 +/- 5.80e-08
Energy Flux (Free Index): 8.15e-06 +/- 8.51e-06

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/95854/cmap_HighResolution_443059201_443318401_4FGL_J1300.4+1416_daily_bin786.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.20e-03', comment='SUCCESS', energy_flux2='8.15e-06', dlogl='5.14e-01', photon_flux2='5.74e-08', job_status='DONE', time_completed='2021-09-06 14:51:24.405128', photon_index_error2='1.96', photon_index2='4.37', ts='0.16', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='8.51e-06', EG='0.71', time_epoch_completed='1630965084.41', return_code='0', job_id='95854', GAL2='1.28', EG2='0.65', return_code2='0', photon_flux_error2='5.80e-08', ts2='1.29', photon_index='2.74' WHERE bin_id='786' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:51:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 95854: <4FGL_J1300.4+1416_daily_bin786> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin786> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 14:35:45 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:35:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 14:35:46 2021
Terminated at Mon Sep  6 14:51:24 2021
Results reported at Mon Sep  6 14:51:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin786 195.12 14.2701 443059201 443318401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1300.4+1416 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   709.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            939 sec.

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

