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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin1296
RA = 195.12, Dec = 14.2701
tmin = 575251201, tmax = 575510401
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='99177', job_status='RUN', time_executed='2021-09-06 14:45:49.241825', time_epoch_executed='1630964749.24' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='1296'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99177

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99177/ft1_4FGL_J1300.4+1416_daily_bin1296.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99177/ft2_4FGL_J1300.4+1416_daily_bin1296.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99177/ft1_4FGL_J1300.4+1416_daily_bin1296.fits outfile=/scratch/kocevski/99177/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin1296.fits ra=195.12 dec=14.2701 rad=12.0 tmin=575251201.0 tmax=575510401.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 5.44
user 5.03
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99177/ft1_filtered_4FGL_J1300.4+1416_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/99177/ft2_4FGL_J1300.4+1416_daily_bin1296.fits sctable="SC_DATA" expcube=/scratch/kocevski/99177/ltcube_575251201_575510401_4FGL_J1300.4+1416_daily_bin1296.fits outfile=/scratch/kocevski/99177/expmap_575251201_575510401_4FGL_J1300.4+1416_daily_bin1296.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/99177/ltcube_575251201_575510401_4FGL_J1300.4+1416_daily_bin1296.fits
.....................!
real 191.85
user 185.04
sys 5.39

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/99177/ft1_filtered_4FGL_J1300.4+1416_daily_bin1296.fits scfile=/scratch/kocevski/99177/ft2_4FGL_J1300.4+1416_daily_bin1296.fits outfile=/scratch/kocevski/99177/cmap_575251201_575510401_4FGL_J1300.4+1416_daily_bin1296.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .42958       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2310       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.968       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8419       1.0000         .10000E-03   10000.    
    12 'norm      '    3.0626       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.693       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.5454       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.122       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0177       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95874       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=   4912.814     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     1740 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7539        .23660E-07** at limit **
   2  Prefactor     .10009E-03    51.550        .13869E-05** at limit **
   3  norm          .42964        .25036       -.19001E-07    .41684E-02
   4  Prefactor     .10002E-03    55.326       -.64391E-06** at limit **
   5  Prefactor     .10000E-03    4.4950       -.28203E-07** at limit **
   6  Prefactor     .10000E-03    7.5310       -.13750E-06** at limit **
   7  norm          1.2310        1.1746        .23884E-08   -.22673E-03
   8  Prefactor     .10000E-03    16.009        .12363E-06** at limit **
   9  Prefactor     .10000E-03    8.9604       -.27895E-07** at limit **
  10  Prefactor     12.967        13.201       -.16273E-06   -.25356E-03
  11  Prefactor     5.8444        8.8891       -.67170E-06   -.43609E-03
  12  norm          3.0630        2.2969       -.32704E-06   -.11899E-02
  13  norm          .10000E-03    11.640        .10572E-06** at limit **
  14  norm          .10000E-03    4.6415       -.84897E-07** at limit **
  15  Prefactor     23.694        15.277       -.28784E-07    .26719E-05
  16  Prefactor     .10000E-03    37.958        .10578E-06** at limit **
  17  norm          6.5419        6.1225       -.23781E-07    .10095E-03
  18  Prefactor     11.122        41.584       -.53076E-06    .11696E-03
  19  Normalizat    1.0174        .19645        .36504E-06   -.16746E-04
  20  Prefactor     .95891        .17608       -.98977E-07    .13701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100091
  norm       = 0.429642
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.23104
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.9671
  Prefactor  = 5.84438
  norm       = 3.06301
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 23.6943
  Prefactor  = 0.000100001
  norm       = 6.54186
  Prefactor  = 11.1217
  Normalizat = 1.01744
  Prefactor  = 0.958911
 **********
 **   18 **HESSE 
 **********

 FCN=   4912.814     FROM HESSE     STATUS=OK           287 CALLS     2027 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6161        .18038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10009E-03    51.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .42964        .24868        .25713E-04   -1.5577    
   4  Prefactor     .10002E-03    55.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.5131        .14512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.5318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2310        1.1906        .72071E-04   -1.5486    
   8  Prefactor     .10000E-03    16.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.3029        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.967        13.383        .55616E-03   -1.4988    
  11  Prefactor     5.8444        10.739        .83079E-03   -1.5224    
  12  norm          3.0630        3.1391        .61121E-03   -1.5358    
  13  norm          .10000E-03    11.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.6960        .14718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.694        15.291        .82293E-04   -1.4734    
  16  Prefactor     .10000E-03    38.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.5419        6.1210        .15686E-03   -1.5196    
  18  Prefactor     11.122        41.568        .12013E-03   -1.5041    
  19  Normalizat    1.0174        .23153        .24545E-03   -.92449    
  20  Prefactor     .95891        .20576        .22950E-03   -.94112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82927e-09
Minuit parameter uncertainties:
  1  6.29844e-05
  2  0.00431491
  3  0.248681
  4  0.00201531
  5  2.2299e-05
  6  0.000157378
  7  1.19065
  8  0.000200467
  9  4.76592e-05
  10  13.3858
  11  10.7428
  12  3.13926
  13  0.000145202
  14  7.64353e-05
  15  15.2936
  16  0.000289302
  17  6.12159
  18  41.6762
  19  0.231764
  20  0.205932
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  5.844e+00  1.074e+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.589e-01  2.059e-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.017e+00  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/99177/likelihoodResults_575251201_575510401_4FGL_J1300.4+1416_daily_bin1296.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) = 4912.78563572
delta logL = 0.0288625286157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4912.78503289
delta logL = 0.029465354879

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0269       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3893       1.0000          .0000       10.000    
     3 'Normalizat'    1.0239       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95499       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=   4912.785     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      237 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0269        29.299        .40888E-02   -.14943E-02
   2  Index         2.3893        2.4288        .28196       -.45652E-04
   3  Normalizat    1.0238        .19639        .42830E-01    .10951E-04
   4  Prefactor     .95507        .17973        .45702E-01   -.62756E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.02695
  Index      = 2.38929
  Normalizat = 1.02382
  Prefactor  = 0.955074
 **********
 **   18 **HESSE 
 **********

 FCN=   4912.785     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0269        10.662        .16355E-03   -1.5217    
   2  Index         2.3893        1.3144        .16270E-01   -.54936    
   3  Normalizat    1.0238        .22520        .24476E-03   -.92237    
   4  Prefactor     .95507        .20493        .22989E-03   -.94242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79152e-09
Minuit parameter uncertainties:
  1  10.6651
  2  1.3362
  3  0.225413
  4  0.2051
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99177': 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) = 4912.78503278
delta logL = 0.0294654691306

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  6.027e+00  1.067e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.389e+00  1.336e+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.551e-01  2.051e-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.024e+00  2.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.44
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/99177/cmap_HighResolution_575251201_575510401_4FGL_J1300.4+1416_daily_bin1296.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.13e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-06 14:54:57.085375', job_id='99177', GAL2='0.96', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630965297.09', return_code2='0', ts='0.44', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.95e-02', ts2='0.49', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1296' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:54:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 99177: <4FGL_J1300.4+1416_daily_bin1296> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin1296> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 14:45:25 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:45:27 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:45:27 2021
Terminated at Mon Sep  6 14:54:59 2021
Results reported at Mon Sep  6 14:54:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin1296 195.12 14.2701 575251201 575510401 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 :                                   525.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   570 sec.
    Turnaround time :                            574 sec.

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

