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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin362
RA = 195.12, Dec = 14.2701
tmin = 333158401, tmax = 333417601
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='94086', job_status='RUN', time_executed='2021-09-06 14:34:32.617877', time_epoch_executed='1630964072.62' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94086

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94086/ft1_4FGL_J1300.4+1416_daily_bin362.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94086/ft2_4FGL_J1300.4+1416_daily_bin362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94086/ft1_4FGL_J1300.4+1416_daily_bin362.fits outfile=/scratch/kocevski/94086/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin362.fits ra=195.12 dec=14.2701 rad=12.0 tmin=333158401.0 tmax=333417601.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 6.08
user 5.81
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94086/ft1_filtered_4FGL_J1300.4+1416_daily_bin362.fits" evtable="EVENTS" scfile=/scratch/kocevski/94086/ft2_4FGL_J1300.4+1416_daily_bin362.fits sctable="SC_DATA" outfile=/scratch/kocevski/94086/ltcube_333158401_333417601_4FGL_J1300.4+1416_daily_bin362.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/94086/ft2_4FGL_J1300.4+1416_daily_bin362.fits
.....................!
real 12.98
user 12.57
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94086/ft1_filtered_4FGL_J1300.4+1416_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/94086/ft2_4FGL_J1300.4+1416_daily_bin362.fits sctable="SC_DATA" expcube=/scratch/kocevski/94086/ltcube_333158401_333417601_4FGL_J1300.4+1416_daily_bin362.fits outfile=/scratch/kocevski/94086/expmap_333158401_333417601_4FGL_J1300.4+1416_daily_bin362.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/94086/ltcube_333158401_333417601_4FGL_J1300.4+1416_daily_bin362.fits
.....................!
real 192.19
user 186.56
sys 5.23

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/94086/ft1_filtered_4FGL_J1300.4+1416_daily_bin362.fits scfile=/scratch/kocevski/94086/ft2_4FGL_J1300.4+1416_daily_bin362.fits outfile=/scratch/kocevski/94086/cmap_333158401_333417601_4FGL_J1300.4+1416_daily_bin362.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.34
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94086/ft1_filtered_4FGL_J1300.4+1416_daily_bin362.fits scfile=/scratch/kocevski/94086/ft2_4FGL_J1300.4+1416_daily_bin362.fits outfile=/scratch/kocevski/94086/cmap_HighResolution_333158401_333417601_4FGL_J1300.4+1416_daily_bin362.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    30.665       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1060       1.0000         .10000E-03   10000.    
     4 'Prefactor '    135.32       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      '    5.7876       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11603E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.247       1.0000         .10000E-03   10000.    
    12 'norm      '    .81121       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .42147       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.2403       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    23.938       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0165       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0097       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=   5443.702     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     2014 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1023       -.46725E-08** at limit **
   2  Prefactor     30.668        33.665        .29130E-05   -.86907E-05
   3  norm          1.1061        .33774        .75350E-08   -.23060E-03
   4  Prefactor     135.33        159.04        .84746E-05   -.27937E-05
   5  Prefactor     .10000E-03    3.8199       -.88278E-08** at limit **
   6  Prefactor     .10000E-03    11.929        .13316E-05** at limit **
   7  norm          5.7879        2.2922       -.35292E-07   -.18454E-03
   8  Prefactor     .10000E-03    30.074       -.12362E-04** at limit **
   9  Prefactor     .10000E-03    3.3403        .42492E-07** at limit **
  10  Prefactor     .10000E-03    33.908        .16859E-04** at limit **
  11  Prefactor     14.245        13.057       -.50975E-06   -.20458E-03
  12  norm          .81278        2.3978       -.66111E-06   -.10857E-02
  13  norm          .10000E-03    11.468       -.10758E-05** at limit **
  14  norm          .44378        6.1415        .16303E-06   -.53928E-03
  15  Prefactor     9.2427        12.440       -.19638E-06   -.71319E-04
  16  Prefactor     .10000E-03    47.236       -.69093E-05** at limit **
  17  norm          23.913        13.689        .98434E-06   -.57009E-04
  18  Prefactor     .10000E-03    31.385        .18834E-05** at limit **
  19  Normalizat    1.0164        .20787       -.65312E-06   -.17581E-03
  20  Prefactor     1.0097        .17832       -.43383E-07   -.18018E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 30.6676
  norm       = 1.1061
  Prefactor  = 135.329
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.78789
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2454
  norm       = 0.812775
  norm       = 0.0001
  norm       = 0.443778
  Prefactor  = 9.24268
  Prefactor  = 0.0001
  norm       = 23.9131
  Prefactor  = 0.0001
  Normalizat = 1.01637
  Prefactor  = 1.00969
 **********
 **   18 **HESSE 
 **********

 FCN=   5443.702     FROM HESSE     STATUS=OK           295 CALLS     2309 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1092        .75636E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.668        33.614        .72355E-04   -1.4600    
   3  norm          1.1061        .33794        .22780E-04   -1.5498    
   4  Prefactor     135.33        158.75        .17311E-03   -1.3376    
   5  Prefactor     .10000E-03    3.8251        .14083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.7879        2.2924        .67799E-04   -1.5227    
   8  Prefactor     .10000E-03    29.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.3547        .13167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.826        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.245        13.098        .10611E-03   -1.4953    
  12  norm          .81278        2.2757        .19348E-02   -1.5528    
  13  norm          .10000E-03    11.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .44378        46.830        .30339E-02   -1.5575    
  15  Prefactor     9.2427        12.445        .13184E-03   -1.5100    
  16  Prefactor     .10000E-03    48.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          23.913        14.085        .81872E-04   -1.4730    
  18  Prefactor     .10000E-03    31.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0164        .23931        .26990E-03   -.92484    
  20  Prefactor     1.0097        .20580        .23977E-03   -.92407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99664e-09
Minuit parameter uncertainties:
  1  4.72996e-07
  2  33.6347
  3  0.337939
  4  159.255
  5  9.02246e-07
  6  8.90109e-07
  7  2.29248
  8  2.3933e-05
  9  3.7246e-06
  10  0.000230223
  11  13.101
  12  2.27594
  13  3.25429e-06
  14  9.1238
  15  12.4488
  16  0.000116595
  17  14.0867
  18  6.41148e-06
  19  0.239567
  20  0.205958
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.425e+01  1.310e+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.010e+00  2.060e-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.016e+00  2.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.70
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 4.83e-08 +/- 4.44e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 1.04e-05

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

Saving results to:
/scratch/kocevski/94086/likelihoodResults_333158401_333417601_4FGL_J1300.4+1416_daily_bin362.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) = 5443.54637162
delta logL = 0.155708176169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5443.52879814
delta logL = 0.173281656676

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.731       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2867       1.0000          .0000       10.000    
     3 'Normalizat'    1.0328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99736       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=   5443.529     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      240 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.725        14.533        .97918E-04    .19610E-03
   2  Index         2.2874        .67978        .94373E-02    .40326E-04
   3  Normalizat    1.0331        .23127        .26805E-03    .72634E-03
   4  Prefactor     .99717        .20477        .24100E-03    .75902E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.7254
  Index      = 2.28739
  Normalizat = 1.03314
  Prefactor  = 0.997168
 **********
 **   18 **HESSE 
 **********

 FCN=   5443.529     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.725        14.541        .39167E-05   -1.4890    
   2  Index         2.2874        .68014        .37749E-03   -.57344    
   3  Normalizat    1.0331        .23146        .53611E-04   -.91928    
   4  Prefactor     .99717        .20491        .48199E-04   -.92824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.70203e-10
Minuit parameter uncertainties:
  1  14.5436
  2  0.68315
  3  0.231682
  4  0.205073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94086': 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) = 5443.52879563
delta logL = 0.173284167181

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.673e+01  1.454e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.287e+00  6.831e-01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.431e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  9.972e-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.033e+00  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.04
Ra Dec: 195.120 14.270
Photon Index (Free Index): 2.29 +/- 0.68
Photon Flux (Free Index): 3.91e-08 +/- 3.95e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.58e-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/94086/cmap_HighResolution_333158401_333417601_4FGL_J1300.4+1416_daily_bin362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', photon_flux='4.83e-08', energy_flux2='1.51e-05', photon_flux_error='4.44e-08', dlogl='1.73e-01', energy_flux='1.13e-05', photon_flux2='3.91e-08', job_status='DONE', time_completed='2021-09-06 14:44:08.345150', photon_index_error2='0.68', photon_index2='2.29', ts='1.70', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.58e-05', EG='1.02', time_epoch_completed='1630964648.35', return_code='0', job_id='94086', GAL2='1.00', EG2='1.03', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='3.95e-08', ts2='2.04', photon_index='2.74' WHERE bin_id='362' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:44:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 94086: <4FGL_J1300.4+1416_daily_bin362> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin362> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 14:30:32 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:30:34 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:34 2021
Terminated at Mon Sep  6 14:44:08 2021
Results reported at Mon Sep  6 14:44:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin362 195.12 14.2701 333158401 333417601 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 :                                   572.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            816 sec.

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

