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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin820
RA = 195.12, Dec = 14.2701
tmin = 451872001, tmax = 452131201
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='97254', job_status='RUN', time_executed='2021-09-06 14:43:14.020594', time_epoch_executed='1630964594.02' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='820'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97254

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97254/ft1_4FGL_J1300.4+1416_daily_bin820.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97254/ft2_4FGL_J1300.4+1416_daily_bin820.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97254/ft1_4FGL_J1300.4+1416_daily_bin820.fits outfile=/scratch/kocevski/97254/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin820.fits ra=195.12 dec=14.2701 rad=12.0 tmin=451872001.0 tmax=452131201.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.37
user 3.15
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/97254/ft2_4FGL_J1300.4+1416_daily_bin820.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/97254/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin820.fits evtable="EVENTS" outfile="/scratch/kocevski/97254/ft1_filtered_4FGL_J1300.4+1416_daily_bin820.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.55
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/97254/ft1_filtered_4FGL_J1300.4+1416_daily_bin820.fits" evtable="EVENTS" scfile=/scratch/kocevski/97254/ft2_4FGL_J1300.4+1416_daily_bin820.fits sctable="SC_DATA" outfile=/scratch/kocevski/97254/ltcube_451872001_452131201_4FGL_J1300.4+1416_daily_bin820.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/97254/ft2_4FGL_J1300.4+1416_daily_bin820.fits
.....................!
real 14.20
user 13.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97254/ft1_filtered_4FGL_J1300.4+1416_daily_bin820.fits evtable="EVENTS" scfile=/scratch/kocevski/97254/ft2_4FGL_J1300.4+1416_daily_bin820.fits sctable="SC_DATA" expcube=/scratch/kocevski/97254/ltcube_451872001_452131201_4FGL_J1300.4+1416_daily_bin820.fits outfile=/scratch/kocevski/97254/expmap_451872001_452131201_4FGL_J1300.4+1416_daily_bin820.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/97254/ltcube_451872001_452131201_4FGL_J1300.4+1416_daily_bin820.fits
.....................!
real 192.82
user 187.29
sys 5.10

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/97254/ft1_filtered_4FGL_J1300.4+1416_daily_bin820.fits scfile=/scratch/kocevski/97254/ft2_4FGL_J1300.4+1416_daily_bin820.fits outfile=/scratch/kocevski/97254/cmap_451872001_452131201_4FGL_J1300.4+1416_daily_bin820.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.58
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2005       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.1763       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .18246E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.618       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0366       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.192       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.221       1.0000         .10000E-03   10000.    
    12 'norm      '    .17017       1.0000         .10000E-03   10000.    
    13 'norm      '    .10242E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .16842E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8728       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12913E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .66935       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99840       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94457       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=   5390.472     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     2058 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2681       -.34744E-07** at limit **
   2  Prefactor     .10000E-03    10.049       -.20622E-06** at limit **
   3  norm          1.2005        .32710        .19506E-08   -.38229E-03
   4  Prefactor     .10000E-03    34.576       -.26561E-04** at limit **
   5  Prefactor     8.1738        7.3803       -.15700E-05   -.29574E-03
   6  Prefactor     .10000E-03    41.547        .36300E-04** at limit **
   7  norm          .16822E-01    .68285       -.13849E-06    .37833E-03
   8  Prefactor     17.618        54.800       -.32475E-06   -.87605E-04
   9  Prefactor     8.0370        6.1877        .27890E-05    .26584E-04
  10  Prefactor     12.190        14.900       -.29101E-06   -.10075E-03
  11  Prefactor     22.219        14.459        .11547E-06   -.41854E-04
  12  norm          .16461        2.0313       -.78673E-06    .29417E-03
  13  norm          .10000E-03    36.902        .20324E-05** at limit **
  14  norm          .10000E-03    7.4589        .18303E-06** at limit **
  15  Prefactor     5.8724        6.2294        .32821E-05    .26770E-04
  16  Prefactor     .10000E-03    78.885       -.20200E-04** at limit **
  17  norm          .66128        4.5312       -.49562E-06   -.29915E-04
  18  Prefactor     .10000E-03    18.506        .18302E-05** at limit **
  19  Normalizat    .99851        .19374       -.80664E-06    .88397E-05
  20  Prefactor     .94449        .16956        .23596E-06   -.20443E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.20048
  Prefactor  = 0.0001
  Prefactor  = 8.17382
  Prefactor  = 0.0001
  norm       = 0.0168223
  Prefactor  = 17.6176
  Prefactor  = 8.037
  Prefactor  = 12.1899
  Prefactor  = 22.2193
  norm       = 0.164607
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.87245
  Prefactor  = 0.000100001
  norm       = 0.661277
  Prefactor  = 0.0001
  Normalizat = 0.998513
  Prefactor  = 0.944494
 **********
 **   18 **HESSE 
 **********

 FCN=   5390.472     FROM HESSE     STATUS=OK           303 CALLS     2361 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2790        .80715E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2005        .32776        .21088E-04   -1.5489    
   4  Prefactor     .10000E-03    34.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.1738        7.4005        .14021E-03   -1.5136    
   6  Prefactor     .10000E-03    41.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .16822E-01    26.623        .11704E-02   -1.5682    
   8  Prefactor     17.618        54.695        .47711E-03   -1.4868    
   9  Prefactor     8.0370        6.1870        .14143E-03   -1.5141    
  10  Prefactor     12.190        14.867        .11472E-03   -1.5010    
  11  Prefactor     22.219        14.487        .84971E-04   -1.4765    
  12  norm          .16461        16.596        .19965E-02   -1.5627    
  13  norm          .10000E-03    37.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.6911        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.8724        6.2351        .16571E-03   -1.5223    
  16  Prefactor     .10000E-03    81.028        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .66128        23.403        .29460E-02   -1.5545    
  18  Prefactor     .10000E-03    18.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .99851        .23000        .24792E-03   -.93080    
  20  Prefactor     .94449        .20098        .23102E-03   -.94603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57154e-08
Minuit parameter uncertainties:
  1  5.94706e-07
  2  1.90459e-06
  3  0.327759
  4  1.12526e-06
  5  7.40131
  6  7.43396e-05
  7  1.33506
  8  54.8509
  9  6.18751
  10  14.8717
  11  14.4896
  12  3.30556
  13  3.25641e-05
  14  2.69877e-05
  15  6.23579
  16  0.000599428
  17  7.87062
  18  4.41838e-07
  19  0.230227
  20  0.201141
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.222e+01  1.449e+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.445e-01  2.011e-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:  9.985e-01  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.79
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 7.54e-08 +/- 4.91e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 1.15e-05

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

Saving results to:
/scratch/kocevski/97254/likelihoodResults_451872001_452131201_4FGL_J1300.4+1416_daily_bin820.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) = 5390.36199518
delta logL = 0.109510695484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5390.31552266
delta logL = 0.155983219389

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.426       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2157       1.0000          .0000       10.000    
     3 'Normalizat'    1.0243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92455       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=   5390.316     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      222 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.436        25.329        .19124E-02    .22847E-03
   2  Index         2.2147        .77261        .16758       -.61827E-04
   3  Normalizat    1.0247        .18810        .42784E-01    .55962E-05
   4  Prefactor     .92428        .17117        .45317E-01    .88930E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.4363
  Index      = 2.21469
  Normalizat = 1.02468
  Prefactor  = 0.92428
 **********
 **   18 **HESSE 
 **********

 FCN=   5390.316     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.436        17.526        .38249E-03   -1.4660    
   2  Index         2.2147        .67767        .90756E-02   -.59084    
   3  Normalizat    1.0247        .22181        .24508E-03   -.92208    
   4  Prefactor     .92428        .19948        .23313E-03   -.95298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71381e-09
Minuit parameter uncertainties:
  1  17.529
  2  0.680711
  3  0.22201
  4  0.199635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97254': 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) = 5390.31552007
delta logL = 0.15598580596

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.744e+01  1.753e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.215e+00  6.807e-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:  9.243e-01  1.996e-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.025e+00  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.07
Ra Dec: 195.120 14.270
Photon Index (Free Index): 2.21 +/- 0.68
Photon Flux (Free Index): 6.11e-08 +/- 4.94e-08
Energy Flux (Free Index): 2.67e-05 +/- 2.59e-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/97254/cmap_HighResolution_451872001_452131201_4FGL_J1300.4+1416_daily_bin820.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-02', comment='SUCCESS', photon_flux='7.54e-08', energy_flux2='2.67e-05', photon_flux_error='4.91e-08', dlogl='1.56e-01', energy_flux='1.76e-05', photon_flux2='6.11e-08', job_status='DONE', time_completed='2021-09-06 14:53:27.672396', photon_index_error2='0.68', photon_index2='2.21', ts='3.79', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.73e-07', energy_flux_error2='2.59e-05', EG='1.00', time_epoch_completed='1630965207.67', return_code='0', job_id='97254', GAL2='0.92', EG2='1.02', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='4.94e-08', ts2='4.07', photon_index='2.74' WHERE bin_id='820' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:53:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 97254: <4FGL_J1300.4+1416_daily_bin820> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin820> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 14:40:23 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:40:24 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:40:24 2021
Terminated at Mon Sep  6 14:53:28 2021
Results reported at Mon Sep  6 14:53:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin820 195.12 14.2701 451872001 452131201 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 :                                   565.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            785 sec.

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

