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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin309
RA = 195.12, Dec = 14.2701
tmin = 319420801, tmax = 319680001
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='92990', job_status='RUN', time_executed='2021-09-06 14:29:43.046959', time_epoch_executed='1630963783.05' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='309'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92990

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92990/ft1_4FGL_J1300.4+1416_daily_bin309.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92990/ft2_4FGL_J1300.4+1416_daily_bin309.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92990/ft1_4FGL_J1300.4+1416_daily_bin309.fits outfile=/scratch/kocevski/92990/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin309.fits ra=195.12 dec=14.2701 rad=12.0 tmin=319420801.0 tmax=319680001.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.44
user 3.21
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92990/ft1_filtered_4FGL_J1300.4+1416_daily_bin309.fits evtable="EVENTS" scfile=/scratch/kocevski/92990/ft2_4FGL_J1300.4+1416_daily_bin309.fits sctable="SC_DATA" expcube=/scratch/kocevski/92990/ltcube_319420801_319680001_4FGL_J1300.4+1416_daily_bin309.fits outfile=/scratch/kocevski/92990/expmap_319420801_319680001_4FGL_J1300.4+1416_daily_bin309.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/92990/ltcube_319420801_319680001_4FGL_J1300.4+1416_daily_bin309.fits
.....................!
real 190.59
user 184.92
sys 5.22

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/92990/ft1_filtered_4FGL_J1300.4+1416_daily_bin309.fits scfile=/scratch/kocevski/92990/ft2_4FGL_J1300.4+1416_daily_bin309.fits outfile=/scratch/kocevski/92990/cmap_319420801_319680001_4FGL_J1300.4+1416_daily_bin309.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92990/ft1_filtered_4FGL_J1300.4+1416_daily_bin309.fits scfile=/scratch/kocevski/92990/ft2_4FGL_J1300.4+1416_daily_bin309.fits outfile=/scratch/kocevski/92990/cmap_HighResolution_319420801_319680001_4FGL_J1300.4+1416_daily_bin309.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/92990/ft1_filtered_4FGL_J1300.4+1416_daily_bin309.fits evtable="EVENTS" scfile=/scratch/kocevski/92990/ft2_4FGL_J1300.4+1416_daily_bin309.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/92990/Model_4FGL_J1300.4+1416_daily_bin309.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/92990/ft1_filtered_4FGL_J1300.4+1416_daily_bin309.fits.....................!
real 55.28
user 53.93
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2732       1.0000         .10000E-03   10000.    
     3 'norm      '    5.6138       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13116E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.716       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.376       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6061       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8141       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.685       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.340       1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.341       1.0000         .10000E-03   10000.    
    17 'norm      '    22.569       1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.681       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2532       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .67302       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=   6417.232     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     2032 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .80985        .60330E-08** at limit **
   2  Prefactor     1.2581        137.61        .27811E-04    .12352E-03
   3  norm          5.6138        .61651        .11159E-07   -.29631E-03
   4  Prefactor     .10002E-03    309.97       -.48372E-05** at limit **
   5  Prefactor     17.716        12.213       -.87872E-06   -.53302E-03
   6  Prefactor     .10000E-03    29.906       -.18304E-06** at limit **
   7  norm          10.376        2.8255        .48668E-07   -.22752E-03
   8  Prefactor     3.6527        180.70        .17283E-04    .73177E-04
   9  Prefactor     2.8138        4.0278        .39804E-05   -.15301E-02
  10  Prefactor     .10000E-03    8.3053        .69202E-06** at limit **
  11  Prefactor     16.683        15.075        .56185E-06    .45578E-04
  12  norm          .10000E-03    .96403       -.41046E-07** at limit **
  13  norm          .10000E-03    8.0326       -.33129E-07** at limit **
  14  norm          .10000E-03    4.8445        .27873E-06** at limit **
  15  Prefactor     16.340        13.449        .57269E-06    .55894E-04
  16  Prefactor     35.340        36.561        .40349E-06   -.73192E-05
  17  norm          22.572        11.024        .10318E-05    .58625E-03
  18  Prefactor     32.683        51.571        .66548E-06   -.85728E-05
  19  Normalizat    1.2533        .20337       -.11078E-05   -.12467E-03
  20  Prefactor     .67295        .16870       -.81570E-06   -.15922E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.25805
  norm       = 5.61383
  Prefactor  = 0.000100021
  Prefactor  = 17.7156
  Prefactor  = 0.0001
  norm       = 10.3757
  Prefactor  = 3.65275
  Prefactor  = 2.81383
  Prefactor  = 0.0001
  Prefactor  = 16.683
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 16.3396
  Prefactor  = 35.3405
  norm       = 22.5717
  Prefactor  = 32.6827
  Normalizat = 1.25329
  Prefactor  = 0.672946
 **********
 **   18 **HESSE 
 **********

 FCN=   6417.232     FROM HESSE     STATUS=OK           291 CALLS     2323 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .81242        .70401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2581        150.38        .39405E-03   -1.5484    
   3  norm          5.6138        .61822        .20128E-04   -1.5234    
   4  Prefactor     .10002E-03    311.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.716        12.339        .95156E-04   -1.4866    
   6  Prefactor     .10000E-03    30.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.376        2.8273        .67374E-04   -1.5064    
   8  Prefactor     3.6527        185.67        .21278E-03   -1.5326    
   9  Prefactor     2.8138        4.2664        .99226E-03   -1.5372    
  10  Prefactor     .10000E-03    8.3467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.683        15.120        .98051E-04   -1.4891    
  12  norm          .10000E-03    .96701        .76809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.0451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.9003        .17181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.340        13.475        .99082E-04   -1.4899    
  16  Prefactor     35.340        36.578        .67411E-04   -1.4518    
  17  norm          22.572        11.150        .84314E-04   -1.4757    
  18  Prefactor     32.683        51.610        .70093E-04   -1.4564    
  19  Normalizat    1.2533        .24372        .26814E-03   -.84972    
  20  Prefactor     .67295        .20006        .29870E-03   -1.0460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51712e-09
Minuit parameter uncertainties:
  1  1.66447e-06
  2  27.5793
  3  0.618216
  4  0.00517691
  5  12.3409
  6  0.000122171
  7  2.82737
  8  52.2557
  9  4.26691
  10  9.06001e-05
  11  15.1239
  12  3.86712e-07
  13  4.70593e-06
  14  3.61318e-05
  15  13.4772
  16  36.6008
  17  11.1506
  18  51.6802
  19  0.243945
  20  0.200269
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.668e+01  1.512e+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:  6.729e-01  2.003e-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.253e+00  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.79
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 5.66e-08 +/- 5.12e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 1.20e-05

TS (Fixed Index): 1.79
Ra Dec: 195.120 14.270
Photon Flux Upper Limit: 1.65e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.30e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/92990/likelihoodResults_319420801_319680001_4FGL_J1300.4+1416_daily_bin309.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) = 6417.00509802
delta logL = 0.227251993986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6416.99605159
delta logL = 0.2362984191

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.813       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2004       1.0000          .0000       10.000    
     3 'Normalizat'    1.2808       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65340       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=   6416.996     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      221 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.800        21.956        .23086E-02    .29231E-03
   2  Index         2.1992        .67995        .24750       -.37115E-04
   3  Normalizat    1.2807        .19807        .60056E-01    .43660E-05
   4  Prefactor     .65351        .16808        .68375E-01    .23136E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7999
  Index      = 2.19919
  Normalizat = 1.28075
  Prefactor  = 0.653511
 **********
 **   18 **HESSE 
 **********

 FCN=   6416.996     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.800        16.939        .46171E-03   -1.4841    
   2  Index         2.1992        .69069        .96276E-02   -.59458    
   3  Normalizat    1.2807        .23627        .26560E-03   -.84143    
   4  Prefactor     .65351        .19790        .30260E-03   -1.0538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1527e-10
Minuit parameter uncertainties:
  1  16.9432
  2  0.693932
  3  0.236471
  4  0.198114
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92990': 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) = 6416.99604962
delta logL = 0.236300392768

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.880e+01  1.694e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.199e+00  6.939e-01  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:  6.535e-01  1.981e-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.281e+00  2.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.23
Ra Dec: 195.120 14.270
Photon Index (Free Index): 2.20 +/- 0.69
Photon Flux (Free Index): 4.14e-08 +/- 4.51e-08
Energy Flux (Free Index): 1.86e-05 +/- 2.04e-05

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/92990/cmap_HighResolution_319420801_319680001_4FGL_J1300.4+1416_daily_bin309.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', comment='SUCCESS', photon_flux='5.66e-08', energy_flux2='1.86e-05', photon_flux_error='5.12e-08', dlogl='2.36e-01', energy_flux='1.32e-05', photon_flux2='4.14e-08', job_status='DONE', time_completed='2021-09-06 14:39:54.287367', photon_index_error2='0.69', photon_index2='2.20', ts='1.79', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='1.65e-07', energy_flux_error2='2.04e-05', EG='1.25', time_epoch_completed='1630964394.29', return_code='0', job_id='92990', GAL2='0.65', EG2='1.28', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='4.51e-08', ts2='2.23', photon_index='2.74' WHERE bin_id='309' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:39:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 92990: <4FGL_J1300.4+1416_daily_bin309> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin309> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 14:26:04 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:26:06 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:26:06 2021
Terminated at Mon Sep  6 14:39:55 2021
Results reported at Mon Sep  6 14:39:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin309 195.12 14.2701 319420801 319680001 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 :                                   604.40 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             257.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            831 sec.

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

