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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin492
RA = 195.12, Dec = 14.2701
tmin = 366854401, tmax = 367113601
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='94275', job_status='RUN', time_executed='2021-09-06 14:33:55.773589', time_epoch_executed='1630964035.77' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='492'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94275

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94275/ft1_4FGL_J1300.4+1416_daily_bin492.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94275/ft2_4FGL_J1300.4+1416_daily_bin492.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94275/ft1_4FGL_J1300.4+1416_daily_bin492.fits outfile=/scratch/kocevski/94275/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin492.fits ra=195.12 dec=14.2701 rad=12.0 tmin=366854401.0 tmax=367113601.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.33
user 5.08
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/94275/ft2_4FGL_J1300.4+1416_daily_bin492.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/94275/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin492.fits evtable="EVENTS" outfile="/scratch/kocevski/94275/ft1_filtered_4FGL_J1300.4+1416_daily_bin492.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/94275/ft1_filtered_4FGL_J1300.4+1416_daily_bin492.fits" evtable="EVENTS" scfile=/scratch/kocevski/94275/ft2_4FGL_J1300.4+1416_daily_bin492.fits sctable="SC_DATA" outfile=/scratch/kocevski/94275/ltcube_366854401_367113601_4FGL_J1300.4+1416_daily_bin492.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/94275/ft2_4FGL_J1300.4+1416_daily_bin492.fits
.....................!
real 11.54
user 11.21
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94275/ft1_filtered_4FGL_J1300.4+1416_daily_bin492.fits evtable="EVENTS" scfile=/scratch/kocevski/94275/ft2_4FGL_J1300.4+1416_daily_bin492.fits sctable="SC_DATA" expcube=/scratch/kocevski/94275/ltcube_366854401_367113601_4FGL_J1300.4+1416_daily_bin492.fits outfile=/scratch/kocevski/94275/expmap_366854401_367113601_4FGL_J1300.4+1416_daily_bin492.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/94275/ltcube_366854401_367113601_4FGL_J1300.4+1416_daily_bin492.fits
.....................!
real 190.51
user 185.34
sys 4.80

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/94275/ft1_filtered_4FGL_J1300.4+1416_daily_bin492.fits scfile=/scratch/kocevski/94275/ft2_4FGL_J1300.4+1416_daily_bin492.fits outfile=/scratch/kocevski/94275/cmap_366854401_367113601_4FGL_J1300.4+1416_daily_bin492.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94275/ft1_filtered_4FGL_J1300.4+1416_daily_bin492.fits scfile=/scratch/kocevski/94275/ft2_4FGL_J1300.4+1416_daily_bin492.fits outfile=/scratch/kocevski/94275/cmap_HighResolution_366854401_367113601_4FGL_J1300.4+1416_daily_bin492.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9080       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6481       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.737       1.0000         .10000E-03   10000.    
     7 'norm      '    3.6306       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.479       1.0000         .10000E-03   10000.    
    12 'norm      '    .37636E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    25.613       1.0000         .10000E-03   10000.    
    14 'norm      '    25.065       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.1218       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3681       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .60356       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=   6249.159     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     1767 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2842        .90712E-02** at limit **
   2  Prefactor     .10014E-03    45.715        .90712E-02** at limit **
   3  norm          1.9079        .40738        .51045E-02   -.75732E-03
   4  Prefactor     .10001E-03    43.760        .90712E-02** at limit **
   5  Prefactor     4.6486        7.3591        .46669E-02    .11696E-03
   6  Prefactor     19.734        28.952        .22539E-02    .11321E-02
   7  norm          3.6305        1.6171        .53008E-02    .18114E-04
   8  Prefactor     .10000E-03    12.970        .90712E-02** at limit **
   9  Prefactor     .10000E-03    5.9790        .90712E-02** at limit **
  10  Prefactor     .10000E-03    7.8615        .90712E-02** at limit **
  11  Prefactor     21.477        14.658        .21606E-02    .10000E-03
  12  norm          .10002E-03    1.9467        .58271E-01** at limit **
  13  norm          25.617        23.787        .19788E-02   -.12563E-02
  14  norm          25.063        12.843        .20003E-02    .50914E-03
  15  Prefactor     .10000E-03    2.7862        .90712E-02** at limit **
  16  Prefactor     .10000E-03    7.6421        .90712E-02** at limit **
  17  norm          2.1232        20.678        .70780E-02    .29221E-03
  18  Prefactor     .10002E-03    32.922        .90712E-02** at limit **
  19  Normalizat    1.3682        .18966        .53830E-01    .34211E-03
  20  Prefactor     .60350        .15201        .64239E-01    .30382E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100141
  norm       = 1.90794
  Prefactor  = 0.000100011
  Prefactor  = 4.64859
  Prefactor  = 19.7345
  norm       = 3.63053
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 21.4768
  norm       = 0.000100021
  norm       = 25.6166
  norm       = 25.0632
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.12322
  Prefactor  = 0.000100017
  Normalizat = 1.36819
  Prefactor  = 0.603499
 **********
 **   18 **HESSE 
 **********

 FCN=   6249.159     FROM HESSE     STATUS=OK           285 CALLS     2052 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3534        .23323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10014E-03    46.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9079        .40846        .22546E-04   -1.5432    
   4  Prefactor     .10001E-03    43.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6486        7.3242        .18667E-03   -1.5277    
   6  Prefactor     19.734        28.919        .90155E-04   -1.4819    
   7  norm          3.6305        1.6164        .64719E-04   -1.5327    
   8  Prefactor     .10000E-03    12.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.9649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.477        14.720        .86424E-04   -1.4781    
  12  norm          .10002E-03    12.051        .21321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          25.617        23.712        .79153E-04   -1.4695    
  14  norm          25.063        12.372        .80012E-04   -1.4706    
  15  Prefactor     .10000E-03    2.7926        .12886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.6429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1232        19.160        .28312E-03   -1.5417    
  18  Prefactor     .10002E-03    32.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3682        .22528        .23801E-03   -.81553    
  20  Prefactor     .60350        .17933        .28425E-03   -1.0744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51347e-08
Minuit parameter uncertainties:
  1  3.06495e-05
  2  0.00510693
  3  0.408464
  4  0.0013796
  5  7.3256
  6  28.9397
  7  1.61641
  8  5.77383e-05
  9  0.000232035
  10  0.000173804
  11  14.7223
  12  0.000996537
  13  23.7204
  14  12.3736
  15  1.46419e-05
  16  0.000196258
  17  12.7614
  18  0.00151617
  19  0.22544
  20  0.179505
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.148e+01  1.472e+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:  6.035e-01  1.795e-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.368e+00  2.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.50
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 7.28e-08 +/- 4.99e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.17e-05

TS (Fixed Index): 3.50
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/94275/likelihoodResults_366854401_367113601_4FGL_J1300.4+1416_daily_bin492.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) = 6249.15632314
delta logL = 0.0023167417512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6249.15603014
delta logL = 0.00260974475168

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.704       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6870       1.0000          .0000       10.000    
     3 'Normalizat'    1.3716       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60145       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=   6249.156     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      272 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.708        15.297        .85977E-04    .56462E-04
   2  Index         2.6870        .70352        .93121E-02    .12177E-04
   3  Normalizat    1.3714        .22270        .23778E-03    .24136E-03
   4  Prefactor     .60164        .18044        .28464E-03   -.58314E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7084
  Index      = 2.68696
  Normalizat = 1.37141
  Prefactor  = 0.601636
 **********
 **   18 **HESSE 
 **********

 FCN=   6249.156     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.708        15.176        .34391E-05   -1.4776    
   2  Index         2.6870        .69741        .37248E-03   -.48093    
   3  Normalizat    1.3714        .22291        .47555E-04   -.81459    
   4  Prefactor     .60164        .18054        .11386E-04   -1.0752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73437e-10
Minuit parameter uncertainties:
  1  15.1792
  2  0.700322
  3  0.223066
  4  0.180712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94275': 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) = 6249.15602952
delta logL = 0.00261035826043

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.171e+01  1.518e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.687e+00  7.003e-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:  6.016e-01  1.807e-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.371e+00  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.47
Ra Dec: 195.120 14.270
Photon Index (Free Index): 2.69 +/- 0.70
Photon Flux (Free Index): 7.03e-08 +/- 6.01e-08
Energy Flux (Free Index): 1.71e-05 +/- 1.18e-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/94275/cmap_HighResolution_366854401_367113601_4FGL_J1300.4+1416_daily_bin492.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-02', comment='SUCCESS', photon_flux='7.28e-08', energy_flux2='1.71e-05', photon_flux_error='4.99e-08', dlogl='2.61e-03', energy_flux='1.70e-05', photon_flux2='7.03e-08', job_status='DONE', time_completed='2021-09-06 14:43:35.026225', photon_index_error2='0.70', photon_index2='2.69', ts='3.50', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='1.76e-07', energy_flux_error2='1.18e-05', EG='1.37', time_epoch_completed='1630964615.03', return_code='0', job_id='94275', GAL2='0.60', EG2='1.37', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='6.01e-08', ts2='3.47', photon_index='2.74' WHERE bin_id='492' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:43:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 94275: <4FGL_J1300.4+1416_daily_bin492> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin492> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 14:30:45 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:30: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:30:46 2021
Terminated at Mon Sep  6 14:43:35 2021
Results reported at Mon Sep  6 14:43:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin492 195.12 14.2701 366854401 367113601 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 :                                   576.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            770 sec.

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

