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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin217
RA = 195.12, Dec = 14.2701
tmin = 295574401, tmax = 295833601
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='92891', job_status='RUN', time_executed='2021-09-06 14:29:17.508429', time_epoch_executed='1630963757.51' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='217'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92891

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92891/ft1_4FGL_J1300.4+1416_daily_bin217.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92891/ft2_4FGL_J1300.4+1416_daily_bin217.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92891/ft1_4FGL_J1300.4+1416_daily_bin217.fits outfile=/scratch/kocevski/92891/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin217.fits ra=195.12 dec=14.2701 rad=12.0 tmin=295574401.0 tmax=295833601.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 2.38
user 2.15
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92891/ft1_filtered_4FGL_J1300.4+1416_daily_bin217.fits" evtable="EVENTS" scfile=/scratch/kocevski/92891/ft2_4FGL_J1300.4+1416_daily_bin217.fits sctable="SC_DATA" outfile=/scratch/kocevski/92891/ltcube_295574401_295833601_4FGL_J1300.4+1416_daily_bin217.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/92891/ft2_4FGL_J1300.4+1416_daily_bin217.fits
.....................!
real 12.07
user 11.72
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92891/ft1_filtered_4FGL_J1300.4+1416_daily_bin217.fits evtable="EVENTS" scfile=/scratch/kocevski/92891/ft2_4FGL_J1300.4+1416_daily_bin217.fits sctable="SC_DATA" expcube=/scratch/kocevski/92891/ltcube_295574401_295833601_4FGL_J1300.4+1416_daily_bin217.fits outfile=/scratch/kocevski/92891/expmap_295574401_295833601_4FGL_J1300.4+1416_daily_bin217.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/92891/ltcube_295574401_295833601_4FGL_J1300.4+1416_daily_bin217.fits
.....................!
real 191.23
user 185.71
sys 5.09

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/92891/ft1_filtered_4FGL_J1300.4+1416_daily_bin217.fits scfile=/scratch/kocevski/92891/ft2_4FGL_J1300.4+1416_daily_bin217.fits outfile=/scratch/kocevski/92891/cmap_295574401_295833601_4FGL_J1300.4+1416_daily_bin217.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92891/ft1_filtered_4FGL_J1300.4+1416_daily_bin217.fits scfile=/scratch/kocevski/92891/ft2_4FGL_J1300.4+1416_daily_bin217.fits outfile=/scratch/kocevski/92891/cmap_HighResolution_295574401_295833601_4FGL_J1300.4+1416_daily_bin217.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.58
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7338       1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.729       1.0000         .10000E-03   10000.    
     3 'norm      '    6.8389       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0986       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.434       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3910       1.0000         .10000E-03   10000.    
     7 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9342       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17513E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.774       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .70208       1.0000         .10000E-03   10000.    
    14 'norm      '    8.7735       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.034       1.0000         .10000E-03   10000.    
    17 'norm      '    31.370       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.0269       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0280       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92213       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=   6526.963     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2056 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7337        2.6509       -.33845E-06   -.80886E-03
   2  Prefactor     38.727        36.667       -.20048E-05    .48115E-04
   3  norm          6.8389        .65805       -.38838E-07    .11124E-02
   4  Prefactor     6.0813        444.20       -.68237E-04    .24536E-05
   5  Prefactor     14.433        11.543       -.69866E-07    .12933E-03
   6  Prefactor     3.3894        59.608       -.73312E-05   -.17636E-04
   7  norm          .10000E-03    1.0736       -.47831E-06** at limit **
   8  Prefactor     .10000E-03    26.008        .28709E-05** at limit **
   9  Prefactor     1.9345        5.0844       -.98637E-05   -.76430E-03
  10  Prefactor     .10000E-03    5.9077       -.14982E-05** at limit **
  11  Prefactor     17.768        13.153       -.52949E-06    .24683E-03
  12  norm          .10000E-03    1.3603        .77270E-07** at limit **
  13  norm          .69787        11.429       -.28004E-05    .10607E-03
  14  norm          8.7739        7.0179       -.34794E-06    .16487E-03
  15  Prefactor     .10000E-03    5.6792       -.21856E-06** at limit **
  16  Prefactor     12.006        37.156       -.64516E-04    .17225E-04
  17  norm          31.370        11.523       -.33336E-06    .17084E-03
  18  Prefactor     9.0261        113.28       -.29673E-05    .14324E-04
  19  Normalizat    1.0280        .20300        .47843E-05    .43099E-03
  20  Prefactor     .92210        .17325        .33837E-05    .49479E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.73372
  Prefactor  = 38.7273
  norm       = 6.83886
  Prefactor  = 6.08126
  Prefactor  = 14.4326
  Prefactor  = 3.38938
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.93453
  Prefactor  = 0.0001
  Prefactor  = 17.7682
  norm       = 0.0001
  norm       = 0.697875
  norm       = 8.7739
  Prefactor  = 0.0001
  Prefactor  = 12.0064
  norm       = 31.3704
  Prefactor  = 9.02612
  Normalizat = 1.02801
  Prefactor  = 0.9221
 **********
 **   18 **HESSE 
 **********

 FCN=   6526.963     FROM HESSE     STATUS=OK           299 CALLS     2355 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7337        2.6530        .53904E-03   -1.5321    
   2  Prefactor     38.727        36.639        .64405E-04   -1.4463    
   3  norm          6.8389        .65922        .19613E-04   -1.5185    
   4  Prefactor     6.0813        444.82        .16258E-03   -1.5215    
   5  Prefactor     14.433        11.440        .10542E-03   -1.4948    
   6  Prefactor     3.3894        58.793        .21972E-03   -1.5340    
   7  norm          .10000E-03    2.4778        .16167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9345        5.1421        .28962E-03   -1.5430    
  10  Prefactor     .10000E-03    28.014        .37196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.768        13.102        .95002E-04   -1.4865    
  12  norm          .10000E-03    1.3708        .91997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .69787        61.633        .52530E-02   -1.5541    
  14  norm          8.7739        7.0119        .13532E-03   -1.5115    
  15  Prefactor     .10000E-03    5.7144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.006        36.983        .11547E-03   -1.5015    
  17  norm          31.370        11.524        .71538E-04   -1.4587    
  18  Prefactor     9.0261        113.31        .13340E-03   -1.5107    
  19  Normalizat    1.0280        .24317        .28158E-03   -.92098    
  20  Prefactor     .92210        .20837        .26174E-03   -.95373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1275e-09
Minuit parameter uncertainties:
  1  2.65307
  2  36.6602
  3  0.659221
  4  104.84
  5  11.4421
  6  28.2649
  7  6.5453e-05
  8  4.56697e-05
  9  5.14331
  10  0.000167023
  11  13.1036
  12  8.79854e-07
  13  13.1298
  14  7.01252
  15  2.66084e-05
  16  37.0533
  17  11.5247
  18  64.1113
  19  0.243434
  20  0.208555
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.777e+01  1.310e+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:  9.221e-01  2.086e-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.028e+00  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.71
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 6.03e-08 +/- 4.44e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.04e-05

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

Saving results to:
/scratch/kocevski/92891/likelihoodResults_295574401_295833601_4FGL_J1300.4+1416_daily_bin217.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) = 6526.90582989
delta logL = 0.0569580550173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6526.90296924
delta logL = 0.0598187071573

Fit tolerance = 1e-08

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

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

 FCN=   6526.903     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      287 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.320        18.740        .10586E-03    .26204E-03
   2  Index         3.1056        1.3251        .92709E-02    .57550E-04
   3  Normalizat    1.0100        .23981        .28360E-03    .78584E-03
   4  Prefactor     .93523        .20957        .26016E-03    .11952E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.32
  Index      = 3.10555
  Normalizat = 1.00996
  Prefactor  = 0.93523
 **********
 **   18 **HESSE 
 **********

 FCN=   6526.903     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.320        16.461        .42344E-05   -1.4951    
   2  Index         3.1056        1.1662        .37084E-03   -.38860    
   3  Normalizat    1.0100        .23926        .56720E-04   -.92698    
   4  Prefactor     .93523        .20894        .52032E-04   -.94921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78424e-09
Minuit parameter uncertainties:
  1  16.4661
  2  1.17889
  3  0.239519
  4  0.209121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92891': 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) = 6526.90296722
delta logL = 0.0598207312614

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.432e+01  1.647e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  3.106e+00  1.179e+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:  9.352e-01  2.091e-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.010e+00  2.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.82
Ra Dec: 195.120 14.270
Photon Index (Free Index): 3.11 +/- 1.18
Photon Flux (Free Index): 6.93e-08 +/- 5.35e-08
Energy Flux (Free Index): 1.32e-05 +/- 9.81e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/92891/cmap_HighResolution_295574401_295833601_4FGL_J1300.4+1416_daily_bin217.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', photon_flux='6.03e-08', energy_flux2='1.32e-05', photon_flux_error='4.44e-08', dlogl='5.98e-02', energy_flux='1.41e-05', photon_flux2='6.93e-08', job_status='DONE', time_completed='2021-09-06 14:39:50.559299', photon_index_error2='1.18', photon_index2='3.11', ts='2.71', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='9.81e-06', EG='1.03', time_epoch_completed='1630964390.56', return_code='0', job_id='92891', GAL2='0.94', EG2='1.01', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='5.35e-08', ts2='2.82', photon_index='2.74' WHERE bin_id='217' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:39:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 92891: <4FGL_J1300.4+1416_daily_bin217> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin217 195.12 14.2701 295574401 295833601 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 :                                   629.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            837 sec.

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

