/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 223 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 = 6613
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1300.4+1416_daily_bin92
RA = 195.12, Dec = 14.2701
tmin = 263174401, tmax = 263433601
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='92709', job_status='RUN', time_executed='2021-09-06 14:29:46.956082', time_epoch_executed='1630963786.96' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92709

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92709/ft1_4FGL_J1300.4+1416_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92709/ft2_4FGL_J1300.4+1416_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92709/ft1_4FGL_J1300.4+1416_daily_bin92.fits outfile=/scratch/kocevski/92709/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin92.fits ra=195.12 dec=14.2701 rad=12.0 tmin=263174401.0 tmax=263433601.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 1.50
user 1.17
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92709/ft1_filtered_4FGL_J1300.4+1416_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/92709/ft2_4FGL_J1300.4+1416_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/92709/ltcube_263174401_263433601_4FGL_J1300.4+1416_daily_bin92.fits outfile=/scratch/kocevski/92709/expmap_263174401_263433601_4FGL_J1300.4+1416_daily_bin92.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/92709/ltcube_263174401_263433601_4FGL_J1300.4+1416_daily_bin92.fits
.....................!
real 192.75
user 187.73
sys 4.63

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/92709/ft1_filtered_4FGL_J1300.4+1416_daily_bin92.fits scfile=/scratch/kocevski/92709/ft2_4FGL_J1300.4+1416_daily_bin92.fits outfile=/scratch/kocevski/92709/cmap_263174401_263433601_4FGL_J1300.4+1416_daily_bin92.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92709/ft1_filtered_4FGL_J1300.4+1416_daily_bin92.fits scfile=/scratch/kocevski/92709/ft2_4FGL_J1300.4+1416_daily_bin92.fits outfile=/scratch/kocevski/92709/cmap_HighResolution_263174401_263433601_4FGL_J1300.4+1416_daily_bin92.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .41522E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .64658       1.0000         .10000E-03   10000.    
     4 'Prefactor '    212.84       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.0377       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .94781E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .60935       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6054       1.0000         .10000E-03   10000.    
    13 'norm      '    29.114       1.0000         .10000E-03   10000.    
    14 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.6196       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5645       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .81283       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=   5393.147     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2059 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6114       -.11851E-06** at limit **
   2  Prefactor     .10004E-03    37.347        .96398E-05** at limit **
   3  norm          .64653        .32495       -.56153E-08    .93773E-03
   4  Prefactor     213.27        178.96       -.60003E-07    .12761E-04
   5  Prefactor     .10000E-03    2.3903        .35701E-07** at limit **
   6  Prefactor     .10000E-03    6.5234       -.86108E-08** at limit **
   7  norm          3.0373        1.7917        .64633E-07    .40772E-03
   8  Prefactor     .10000E-03    27.447       -.23021E-06** at limit **
   9  Prefactor     .10016E-03    13.120       -.44282E-05** at limit **
  10  Prefactor     .10000E-03    8.7925       -.30752E-06** at limit **
  11  Prefactor     .51599        10.425       -.13975E-05    .15777E-03
  12  norm          1.6050        2.8226        .30266E-06    .46959E-03
  13  norm          29.119        22.417       -.55175E-07    .39094E-04
  14  norm          .10000E-03    2.4496       -.83317E-07** at limit **
  15  Prefactor     .10000E-03    4.1635       -.17343E-06** at limit **
  16  Prefactor     .10000E-03    17.156       -.20752E-06** at limit **
  17  norm          5.6198        6.1884        .57049E-07    .10097E-03
  18  Prefactor     .10000E-03    30.860       -.22356E-06** at limit **
  19  Normalizat    1.5645        .22277        .28209E-05    .60285E-03
  20  Prefactor     .81282        .19009       -.24701E-05    .39945E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100037
  norm       = 0.646534
  Prefactor  = 213.272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.0373
  Prefactor  = 0.0001
  Prefactor  = 0.000100161
  Prefactor  = 0.0001
  Prefactor  = 0.515986
  norm       = 1.60496
  norm       = 29.1192
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.61979
  Prefactor  = 0.0001
  Normalizat = 1.56451
  Prefactor  = 0.812817
 **********
 **   18 **HESSE 
 **********

 FCN=   5393.147     FROM HESSE     STATUS=OK           287 CALLS     2346 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6582        .18213E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10004E-03    41.066        .21246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .64653        .32238        .28569E-04   -1.5547    
   4  Prefactor     213.27        178.95        .13857E-03   -1.2777    
   5  Prefactor     .10000E-03    2.3910        .11089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.5256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.0373        1.7903        .72962E-04   -1.5359    
   8  Prefactor     .10000E-03    27.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10016E-03    29.491        .35354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.8699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .51599        110.14        .42708E-02   -1.5564    
  12  norm          1.6050        2.7947        .15939E-03   -1.5455    
  13  norm          29.119        22.417        .74251E-04   -1.4628    
  14  norm          .10000E-03    2.4584        .11225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.1730        .14638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.6198        6.1854        .16946E-03   -1.5234    
  18  Prefactor     .10000E-03    30.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.5645        .25473        .23741E-03   -.75982    
  20  Prefactor     .81282        .21489        .27587E-03   -.99258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61894e-09
Minuit parameter uncertainties:
  1  7.13625e-06
  2  0.00246924
  3  0.322381
  4  179.408
  5  1.78335e-06
  6  2.01217e-06
  7  1.79035
  8  5.70634e-05
  9  0.00436637
  10  3.70228e-05
  11  15.1037
  12  2.79494
  13  22.4232
  14  6.1808e-06
  15  1.52972e-05
  16  3.38396e-05
  17  6.18614
  18  4.21513e-05
  19  0.254941
  20  0.215116
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  5.160e-01  1.510e+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:  8.128e-01  2.151e-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.565e+00  2.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/92709/likelihoodResults_263174401_263433601_4FGL_J1300.4+1416_daily_bin92.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) = 5392.56833804
delta logL = 0.578714083793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5392.56097613
delta logL = 0.58607599006

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30353       1.0000         .10000E-03   10000.    
     2 'Index     '    6.4185       1.0000          .0000       10.000    
     3 'Normalizat'    1.4640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86878       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5392.561     FROM MIGRAD    STATUS=FAILED        80 CALLS      254 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30345        13.759        .38175E-04   -.14212E-01
   2  Index         6.4187        8.1360        .84535E-02   -.63444E-03
   3  Normalizat    1.4640        .21127        .24393E-03   -.87924E-03
   4  Prefactor     .86876        .17974        .26785E-03   -.45470E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5392.561     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      342 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30345        13.759        .95468E-04   -.14212E-01
   2  Index         6.4187        8.1360        .22174E-02   -.63444E-03
   3  Normalizat    1.4640        .21127        .19076E-03   -.87924E-03
   4  Prefactor     .86876        .17974        .13344E-03   -.45470E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5392.561     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      375 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30317        4.3768        .15270E-05   -.73370E-05
   2  Index         6.4195        7.6603        .33814E-03   -.43708E-06
   3  Normalizat    1.4640        .26120        .48785E-04    .19948E-04
   4  Prefactor     .86876        .22076        .53569E-04    .36248E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.303173
  Index      = 6.41947
  Normalizat = 1.46404
  Prefactor  = 0.868759
 **********
 **   18 **HESSE 
 **********

 FCN=   5392.561     FROM HESSE     STATUS=OK            23 CALLS      398 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30317        3.1905        .37188E-06   -1.5598    
   2  Index         6.4195        7.3617        .13526E-04    .28785    
   3  Normalizat    1.4640        .26117        .97570E-05   -.78794    
   4  Prefactor     .86876        .22083        .10714E-04   -.97241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84475e-12
Minuit parameter uncertainties:
  1  1.9668
  2  4.84092
  3  0.261411
  4  0.221055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92709': 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) = 5392.56097606
delta logL = 0.586076062161

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  3.032e-01  1.967e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  6.419e+00  4.841e+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:  8.688e-01  2.211e-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.464e+00  2.614e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 195.120 14.270
Photon Index (Free Index): 6.42 +/- 4.84
Photon Flux (Free Index): 8.00e-08 +/- 8.08e-08
Energy Flux (Free Index): 9.77e-06 +/- 1.03e-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/92709/cmap_HighResolution_263174401_263433601_4FGL_J1300.4+1416_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', comment='SUCCESS', energy_flux2='9.77e-06', dlogl='5.86e-01', photon_flux2='8.00e-08', job_status='DONE', time_completed='2021-09-06 14:39:11.054223', photon_index_error2='4.84', photon_index2='6.42', ts='0.00', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.03e-05', EG='1.56', time_epoch_completed='1630964351.05', return_code='0', job_id='92709', GAL2='0.87', EG2='1.46', return_code2='0', photon_flux_error2='8.08e-08', ts2='1.29', photon_index='2.74' WHERE bin_id='92' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:39:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 92709: <4FGL_J1300.4+1416_daily_bin92> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin92 195.12 14.2701 263174401 263433601 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 :                                   557.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            811 sec.

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

