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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin133
RA = 195.12, Dec = 14.2701
tmin = 273801601, tmax = 274060801
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='92770', job_status='RUN', time_executed='2021-09-06 14:26:04.903748', time_epoch_executed='1630963564.9' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92770

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92770/ft1_4FGL_J1300.4+1416_daily_bin133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92770/ft2_4FGL_J1300.4+1416_daily_bin133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92770/ft1_4FGL_J1300.4+1416_daily_bin133.fits outfile=/scratch/kocevski/92770/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin133.fits ra=195.12 dec=14.2701 rad=12.0 tmin=273801601.0 tmax=274060801.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.64
user 3.36
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92770/ft1_filtered_4FGL_J1300.4+1416_daily_bin133.fits evtable="EVENTS" scfile=/scratch/kocevski/92770/ft2_4FGL_J1300.4+1416_daily_bin133.fits sctable="SC_DATA" expcube=/scratch/kocevski/92770/ltcube_273801601_274060801_4FGL_J1300.4+1416_daily_bin133.fits outfile=/scratch/kocevski/92770/expmap_273801601_274060801_4FGL_J1300.4+1416_daily_bin133.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/92770/ltcube_273801601_274060801_4FGL_J1300.4+1416_daily_bin133.fits
.....................!
real 191.86
user 186.35
sys 5.17

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/92770/ft1_filtered_4FGL_J1300.4+1416_daily_bin133.fits scfile=/scratch/kocevski/92770/ft2_4FGL_J1300.4+1416_daily_bin133.fits outfile=/scratch/kocevski/92770/cmap_273801601_274060801_4FGL_J1300.4+1416_daily_bin133.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92770/ft1_filtered_4FGL_J1300.4+1416_daily_bin133.fits scfile=/scratch/kocevski/92770/ft2_4FGL_J1300.4+1416_daily_bin133.fits outfile=/scratch/kocevski/92770/cmap_HighResolution_273801601_274060801_4FGL_J1300.4+1416_daily_bin133.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    77.820       1.0000         .10000E-03   10000.    
     3 'norm      '    .71175       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    73.876       1.0000         .10000E-03   10000.    
     7 'norm      '    6.6340       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5851       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10530E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.127       1.0000         .10000E-03   10000.    
    12 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    47.284       1.0000         .10000E-03   10000.    
    14 'norm      '    .10290E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1013       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4129       1.0000         .10000E-03   10000.    
    17 'norm      '    6.8080       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2295       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1409       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=   7242.176     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     1766 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0894       -.17795E-07** at limit **
   2  Prefactor     77.817        47.501       -.23203E-05   -.16438E-04
   3  norm          .71186        .29395       -.10526E-07    .63502E-04
   4  Prefactor     .10000E-03    74.819        .63936E-06** at limit **
   5  Prefactor     .10000E-03    3.8549        .47563E-08** at limit **
   6  Prefactor     73.874        38.846       -.10306E-05   -.37474E-05
   7  norm          6.6341        2.2380       -.23972E-07    .11846E-04
   8  Prefactor     .10000E-03    17.844        .55582E-07** at limit **
   9  Prefactor     3.5844        2.9125        .36699E-06   -.10409E-02
  10  Prefactor     .10000E-03    15.727       -.20407E-07** at limit **
  11  Prefactor     19.132        16.405       -.26655E-06    .11139E-04
  12  norm          .10000E-03    2.3258       -.46502E-07** at limit **
  13  norm          47.284        25.406       -.12972E-07    .62976E-05
  14  norm          .10000E-03    3.4744       -.57790E-08** at limit **
  15  Prefactor     2.0995        15.323       -.11669E-05   -.30105E-04
  16  Prefactor     3.4033        73.177       -.15656E-04   -.13696E-04
  17  norm          6.8085        6.9269       -.12774E-06   -.11448E-05
  18  Prefactor     .10000E-03    47.018       -.12694E-06** at limit **
  19  Normalizat    1.2290        .20631        .49994E-06    .45770E-04
  20  Prefactor     1.1413        .17542        .65766E-06    .34360E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 77.8167
  norm       = 0.711856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.874
  norm       = 6.63406
  Prefactor  = 0.0001
  Prefactor  = 3.58437
  Prefactor  = 0.0001
  Prefactor  = 19.1319
  norm       = 0.0001
  norm       = 47.284
  norm       = 0.0001
  Prefactor  = 2.09949
  Prefactor  = 3.40331
  norm       = 6.80849
  Prefactor  = 0.0001
  Normalizat = 1.22904
  Prefactor  = 1.1413
 **********
 **   18 **HESSE 
 **********

 FCN=   7242.176     FROM HESSE     STATUS=OK           289 CALLS     2055 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1464        .24018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     77.817        47.588        .45522E-04   -1.3941    
   3  norm          .71186        .29433        .28584E-04   -1.5539    
   4  Prefactor     .10000E-03    74.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8572        .16315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     73.874        39.019        .46712E-04   -1.3987    
   7  norm          6.6341        2.2390        .71269E-04   -1.5193    
   8  Prefactor     .10000E-03    17.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.5844        7.0142        .10671E-02   -1.5329    
  10  Prefactor     .10000E-03    15.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.132        16.452        .91580E-04   -1.4833    
  12  norm          .10000E-03    2.3613        .12671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          47.284        25.408        .58312E-04   -1.4332    
  14  norm          .10000E-03    3.5009        .15481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0995        15.498        .28468E-03   -1.5418    
  16  Prefactor     3.4033        74.023        .21898E-03   -1.5339    
  17  norm          6.8085        6.9309        .15377E-03   -1.5186    
  18  Prefactor     .10000E-03    47.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2290        .25013        .29204E-03   -.85710    
  20  Prefactor     1.1413        .21187        .26091E-03   -.88157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5124e-09
Minuit parameter uncertainties:
  1  1.75888e-06
  2  47.6116
  3  0.294328
  4  3.62182e-05
  5  3.03523e-06
  6  39.0325
  7  2.23902
  8  1.52738e-06
  9  7.01579
  10  7.49265e-07
  11  16.456
  12  3.52129e-06
  13  25.4139
  14  2.63508e-06
  15  11.4124
  16  31.7883
  17  6.93173
  18  2.03387e-06
  19  0.25037
  20  0.21203
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.913e+01  1.646e+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:  1.141e+00  2.120e-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.229e+00  2.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.75
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 6.49e-08 +/- 5.57e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.31e-05

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

Saving results to:
/scratch/kocevski/92770/likelihoodResults_273801601_274060801_4FGL_J1300.4+1416_daily_bin133.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) = 7242.06486463
delta logL = 0.11074809502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7242.05627053
delta logL = 0.119342200785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.556       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3130       1.0000          .0000       10.000    
     3 'Normalizat'    1.2543       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1244       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=   7242.056     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      245 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.560        17.714        .88341E-04   -.24335E-03
   2  Index         2.3134        .76382        .10678E-01   -.57125E-04
   3  Normalizat    1.2543        .24536        .28946E-03   -.78989E-03
   4  Prefactor     1.1244        .20973        .26252E-03   -.86870E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.5601
  Index      = 2.3134
  Normalizat = 1.25434
  Prefactor  = 1.12435
 **********
 **   18 **HESSE 
 **********

 FCN=   7242.056     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.560        17.912        .35337E-05   -1.4801    
   2  Index         2.3134        .77227        .42713E-03   -.56726    
   3  Normalizat    1.2543        .24574        .57892E-04   -.84940    
   4  Prefactor     1.1244        .20989        .52504E-04   -.88692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.60321e-10
Minuit parameter uncertainties:
  1  17.9169
  2  0.776656
  3  0.24597
  4  0.210042
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92770': 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) = 7242.0562703
delta logL = 0.119342429874

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.056e+01  1.792e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.313e+00  7.767e-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:  1.124e+00  2.100e-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.254e+00  2.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.96
Ra Dec: 195.120 14.270
Photon Index (Free Index): 2.31 +/- 0.78
Photon Flux (Free Index): 4.90e-08 +/- 5.64e-08
Energy Flux (Free Index): 1.82e-05 +/- 1.70e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/92770/cmap_HighResolution_273801601_274060801_4FGL_J1300.4+1416_daily_bin133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-02', comment='SUCCESS', photon_flux='6.49e-08', energy_flux2='1.82e-05', photon_flux_error='5.57e-08', dlogl='1.19e-01', energy_flux='1.52e-05', photon_flux2='4.90e-08', job_status='DONE', time_completed='2021-09-06 14:36:22.107504', photon_index_error2='0.78', photon_index2='2.31', ts='1.75', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.76e-07', energy_flux_error2='1.70e-05', EG='1.23', time_epoch_completed='1630964182.11', return_code='0', job_id='92770', GAL2='1.12', EG2='1.25', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='5.64e-08', ts2='1.96', photon_index='2.74' WHERE bin_id='133' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:36:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 92770: <4FGL_J1300.4+1416_daily_bin133> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin133> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 14:25:44 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:25:46 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:46 2021
Terminated at Mon Sep  6 14:36:22 2021
Results reported at Mon Sep  6 14:36:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin133 195.12 14.2701 273801601 274060801 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 :                                   614.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            638 sec.

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

