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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin601
RA = 195.12, Dec = 14.2701
tmin = 395107201, tmax = 395366401
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='95570', job_status='RUN', time_executed='2021-09-06 14:38:20.501985', time_epoch_executed='1630964300.5' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95570

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

Retrieving the FT1 file...

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

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

Retrieving 55 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95570/ft1_4FGL_J1300.4+1416_daily_bin601.fits


Retrieving the FT1 file...

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

Retrieving 55 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95570/ft2_4FGL_J1300.4+1416_daily_bin601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95570/ft1_4FGL_J1300.4+1416_daily_bin601.fits outfile=/scratch/kocevski/95570/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin601.fits ra=195.12 dec=14.2701 rad=12.0 tmin=395107201.0 tmax=395366401.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 7.97
user 7.67
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95570/ft1_filtered_4FGL_J1300.4+1416_daily_bin601.fits" evtable="EVENTS" scfile=/scratch/kocevski/95570/ft2_4FGL_J1300.4+1416_daily_bin601.fits sctable="SC_DATA" outfile=/scratch/kocevski/95570/ltcube_395107201_395366401_4FGL_J1300.4+1416_daily_bin601.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/95570/ft2_4FGL_J1300.4+1416_daily_bin601.fits
.....................!
real 11.99
user 11.45
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95570/ft1_filtered_4FGL_J1300.4+1416_daily_bin601.fits evtable="EVENTS" scfile=/scratch/kocevski/95570/ft2_4FGL_J1300.4+1416_daily_bin601.fits sctable="SC_DATA" expcube=/scratch/kocevski/95570/ltcube_395107201_395366401_4FGL_J1300.4+1416_daily_bin601.fits outfile=/scratch/kocevski/95570/expmap_395107201_395366401_4FGL_J1300.4+1416_daily_bin601.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/95570/ltcube_395107201_395366401_4FGL_J1300.4+1416_daily_bin601.fits
.....................!
real 189.98
user 185.02
sys 4.50

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/95570/ft1_filtered_4FGL_J1300.4+1416_daily_bin601.fits scfile=/scratch/kocevski/95570/ft2_4FGL_J1300.4+1416_daily_bin601.fits outfile=/scratch/kocevski/95570/cmap_395107201_395366401_4FGL_J1300.4+1416_daily_bin601.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95570/ft1_filtered_4FGL_J1300.4+1416_daily_bin601.fits scfile=/scratch/kocevski/95570/ft2_4FGL_J1300.4+1416_daily_bin601.fits outfile=/scratch/kocevski/95570/cmap_HighResolution_395107201_395366401_4FGL_J1300.4+1416_daily_bin601.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.57
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/95570/ft1_filtered_4FGL_J1300.4+1416_daily_bin601.fits', '/scratch/kocevski/95570/ft2_4FGL_J1300.4+1416_daily_bin601.fits', expMap='/scratch/kocevski/95570/expmap_395107201_395366401_4FGL_J1300.4+1416_daily_bin601.fits', expCube='/scratch/kocevski/95570/ltcube_395107201_395366401_4FGL_J1300.4+1416_daily_bin601.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/95570/Model_4FGL_J1300.4+1416_daily_bin601.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/95570/ft1_filtered_4FGL_J1300.4+1416_daily_bin601.fits
Spacecraft file(s): /scratch/kocevski/95570/ft2_4FGL_J1300.4+1416_daily_bin601.fits
Exposure map: /scratch/kocevski/95570/expmap_395107201_395366401_4FGL_J1300.4+1416_daily_bin601.fits
Exposure cube: /scratch/kocevski/95570/ltcube_395107201_395366401_4FGL_J1300.4+1416_daily_bin601.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/95570/Model_4FGL_J1300.4+1416_daily_bin601.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) = 5639.43494809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5001       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.6001       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.159       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.487       1.0000         .10000E-03   10000.    
     7 'norm      '    3.3456       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.711       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    47.695       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.9761       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    56.196       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3862       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .71543       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.

 FCN=   5639.374     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2039 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5002        3.4825        .33671E-07   -.13189E-04
   2  Prefactor     .10000E-03    16.069       -.54178E-06** at limit **
   3  norm          2.6002        .51523        .74365E-09   -.55486E-04
   4  Prefactor     .10000E-03    114.91       -.58605E-07** at limit **
   5  Prefactor     15.158        22.106       -.39792E-06   -.23275E-04
   6  Prefactor     24.496        49.550        .11476E-05    .25028E-04
   7  norm          3.3458        1.7413        .13852E-07    .11117E-04
   8  Prefactor     30.692        38.486       -.15562E-05   -.97830E-04
   9  Prefactor     .10000E-03    4.2048        .57941E-07** at limit **
  10  Prefactor     .10000E-03    4.5128       -.76912E-07** at limit **
  11  Prefactor     .10000E-03    14.139        .14669E-05** at limit **
  12  norm          .10000E-03    2.5331        .30745E-07** at limit **
  13  norm          47.694        28.551       -.35834E-07    .62092E-05
  14  norm          .10000E-03    3.3587        .13377E-07** at limit **
  15  Prefactor     7.9768        11.890        .26722E-05   -.15665E-03
  16  Prefactor     .10000E-03    34.259        .58177E-07** at limit **
  17  norm          .10000E-03    13.546       -.67722E-06** at limit **
  18  Prefactor     56.181        54.707       -.14493E-05   -.74108E-04
  19  Normalizat    1.3861        .20958       -.25352E-06    .48076E-07
  20  Prefactor     .71553        .17535       -.39725E-07   -.18326E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.50019
  Prefactor  = 0.0001
  norm       = 2.60023
  Prefactor  = 0.0001
  Prefactor  = 15.1577
  Prefactor  = 24.4962
  norm       = 3.34578
  Prefactor  = 30.6918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 47.6943
  norm       = 0.0001
  Prefactor  = 7.97676
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 56.1811
  Normalizat = 1.38609
  Prefactor  = 0.715535
 **********
 **   18 **HESSE 
 **********

 FCN=   5639.374     FROM HESSE     STATUS=OK           285 CALLS     2324 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5002        3.4806        .11945E-03   -1.5284    
   2  Prefactor     .10000E-03    16.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.6002        .51657        .23060E-04   -1.5385    
   4  Prefactor     .10000E-03    114.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.158        22.097        .10287E-03   -1.4929    
   6  Prefactor     24.496        49.637        .80950E-04   -1.4718    
   7  norm          3.3458        1.7412        .69221E-04   -1.5342    
   8  Prefactor     30.692        39.399        .72300E-04   -1.4599    
   9  Prefactor     .10000E-03    4.2199        .15037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.5214        .15577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.5689        .11667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          47.694        28.563        .58061E-04   -1.4326    
  14  norm          .10000E-03    3.3731        .13436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.9768        12.155        .70986E-03   -1.5143    
  16  Prefactor     .10000E-03    34.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.956        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     56.181        55.475        .53512E-04   -1.4207    
  19  Normalizat    1.3861        .24965        .25320E-03   -.81032    
  20  Prefactor     .71553        .20780        .28575E-03   -1.0292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66709e-10
Minuit parameter uncertainties:
  1  3.48075
  2  6.37331e-05
  3  0.51657
  4  2.41476e-05
  5  22.109
  6  49.7205
  7  1.74119
  8  39.4322
  9  9.44875e-07
  10  5.07292e-06
  11  0.000135726
  12  1.06215e-08
  13  28.5716
  14  1.68443e-06
  15  12.1589
  16  1.13368e-05
  17  5.88649e-05
  18  55.5256
  19  0.249868
  20  0.20803
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.357e-04  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:  7.155e-01  2.080e-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:  1.386e+00  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/95570/likelihoodResults_395107201_395366401_4FGL_J1300.4+1416_daily_bin601.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) = 5639.37471704
delta logL = -0.000326394875628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5639.3743907
delta logL = -4.82459654449e-08

Fit tolerance = 1e-08

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

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

 FCN=   5639.374     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      214 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.188        .90712E-02** at limit **
   2  Index         2.7325        5.2074        .50000        .15184E-05
   3  Normalizat    1.3861        .10914E-01    .57259E-01    .86711E-05
   4  Prefactor     .71554        .92209E-02    .64590E-01    .24261E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.73254
  Normalizat = 1.38609
  Prefactor  = 0.715535
 **********
 **   18 **HESSE 
 **********

 FCN=   5639.374     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      247 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    297.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7325        5.7428        .50000       -.47068    
   3  Normalizat    1.3861        .24590E-01    .25320E-03   -.81032    
   4  Prefactor     .71554        .20753E-01    .28575E-03   -1.0292    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.58412e-08
Minuit parameter uncertainties:
  1  0.00014102
  2  767.196
  3  0.0245898
  4  0.0207537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95570': 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) = 5639.37439065
delta logL = 1.92721927306e-09

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.410e-04  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.733e+00  7.672e+02  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:  7.155e-01  2.075e-02  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:  1.386e+00  2.459e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 195.120 14.270

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/95570/cmap_HighResolution_395107201_395366401_4FGL_J1300.4+1416_daily_bin601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.13e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-06 14:48:11.274327', job_id='95570', GAL2='0.72', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1630964891.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.93e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='601' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:48:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 95570: <4FGL_J1300.4+1416_daily_bin601> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin601> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 14:35:25 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:35:26 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:26 2021
Terminated at Mon Sep  6 14:48:12 2021
Results reported at Mon Sep  6 14:48:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin601 195.12 14.2701 395107201 395366401 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 :                                   587.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            767 sec.

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

