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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin792
RA = 195.12, Dec = 14.2701
tmin = 444614401, tmax = 444873601
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='95863', job_status='RUN', time_executed='2021-09-06 14:36:01.632029', time_epoch_executed='1630964161.63' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='792'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95863

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95863/ft1_4FGL_J1300.4+1416_daily_bin792.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95863/ft2_4FGL_J1300.4+1416_daily_bin792.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95863/ft1_4FGL_J1300.4+1416_daily_bin792.fits outfile=/scratch/kocevski/95863/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin792.fits ra=195.12 dec=14.2701 rad=12.0 tmin=444614401.0 tmax=444873601.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.46
user 3.25
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95863/ft1_filtered_4FGL_J1300.4+1416_daily_bin792.fits" evtable="EVENTS" scfile=/scratch/kocevski/95863/ft2_4FGL_J1300.4+1416_daily_bin792.fits sctable="SC_DATA" outfile=/scratch/kocevski/95863/ltcube_444614401_444873601_4FGL_J1300.4+1416_daily_bin792.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/95863/ft2_4FGL_J1300.4+1416_daily_bin792.fits
.....................!
real 12.04
user 11.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95863/ft1_filtered_4FGL_J1300.4+1416_daily_bin792.fits evtable="EVENTS" scfile=/scratch/kocevski/95863/ft2_4FGL_J1300.4+1416_daily_bin792.fits sctable="SC_DATA" expcube=/scratch/kocevski/95863/ltcube_444614401_444873601_4FGL_J1300.4+1416_daily_bin792.fits outfile=/scratch/kocevski/95863/expmap_444614401_444873601_4FGL_J1300.4+1416_daily_bin792.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/95863/ltcube_444614401_444873601_4FGL_J1300.4+1416_daily_bin792.fits
.....................!
real 191.28
user 185.71
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/95863/ft1_filtered_4FGL_J1300.4+1416_daily_bin792.fits scfile=/scratch/kocevski/95863/ft2_4FGL_J1300.4+1416_daily_bin792.fits outfile=/scratch/kocevski/95863/cmap_444614401_444873601_4FGL_J1300.4+1416_daily_bin792.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95863/ft1_filtered_4FGL_J1300.4+1416_daily_bin792.fits scfile=/scratch/kocevski/95863/ft2_4FGL_J1300.4+1416_daily_bin792.fits outfile=/scratch/kocevski/95863/cmap_HighResolution_444614401_444873601_4FGL_J1300.4+1416_daily_bin792.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=195.12 yref=14.2701 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10120E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1676       1.0000         .10000E-03   10000.    
     4 'Prefactor '    79.917       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.802       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2993       1.0000         .10000E-03   10000.    
     7 'norm      '    .23711       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2084       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.032       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.106       1.0000         .10000E-03   10000.    
    12 'norm      '    .76086       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    17.708       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.672       1.0000         .10000E-03   10000.    
    17 'norm      '    4.5418       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .90507       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0207       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=   7151.382     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     2060 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8861       -.34848E-07** at limit **
   2  Prefactor     .10000E-03    14.818        .53297E-06** at limit **
   3  norm          1.1676        .33592       -.30241E-07    .33621E-03
   4  Prefactor     79.898        109.16       -.19660E-04    .75705E-05
   5  Prefactor     15.803        10.546        .55722E-06    .18893E-03
   6  Prefactor     1.2915        70.677       -.12408E-04   -.12822E-03
   7  norm          .23661        .68623       -.44517E-06   -.19446E-02
   8  Prefactor     .10000E-03    42.302        .38950E-05** at limit **
   9  Prefactor     2.2083        3.7683       -.44406E-06   -.41829E-03
  10  Prefactor     27.035        13.326       -.23696E-06    .31567E-04
  11  Prefactor     13.105        12.307       -.18294E-06   -.73235E-06
  12  norm          .76232        1.7915       -.44734E-06   -.16608E-02
  13  norm          .10000E-03    10.477       -.20648E-06** at limit **
  14  norm          17.708        8.2772       -.11545E-06    .26703E-04
  15  Prefactor     .10000E-03    7.0497       -.18934E-06** at limit **
  16  Prefactor     13.650        24.928       -.23708E-04   -.31440E-05
  17  norm          4.5413        8.5031       -.67748E-06   -.19102E-03
  18  Prefactor     .10000E-03    24.088       -.17151E-05** at limit **
  19  Normalizat    .90516        .17623        .11968E-05    .17494E-03
  20  Prefactor     1.0207        .14866        .17331E-05    .91534E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.1676
  Prefactor  = 79.8985
  Prefactor  = 15.8027
  Prefactor  = 1.29155
  norm       = 0.236608
  Prefactor  = 0.0001
  Prefactor  = 2.20831
  Prefactor  = 27.0348
  Prefactor  = 13.1054
  norm       = 0.762316
  norm       = 0.0001
  norm       = 17.7077
  Prefactor  = 0.0001
  Prefactor  = 13.6498
  norm       = 4.54133
  Prefactor  = 0.0001
  Normalizat = 0.905155
  Prefactor  = 1.02066
 **********
 **   18 **HESSE 
 **********

 FCN=   7151.382     FROM HESSE     STATUS=OK           299 CALLS     2359 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9256        .11335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1676        .33607        .25205E-04   -1.5492    
   4  Prefactor     79.898        108.66        .44925E-04   -1.3918    
   5  Prefactor     15.803        10.364        .10075E-03   -1.4913    
   6  Prefactor     1.2915        71.149        .38776E-03   -1.5481    
   7  norm          .23661        .69898        .11614E-03   -1.5611    
   8  Prefactor     .10000E-03    42.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2083        3.7503        .20868E-03   -1.5411    
  10  Prefactor     27.035        13.340        .77052E-04   -1.4668    
  11  Prefactor     13.105        12.317        .11064E-03   -1.4984    
  12  norm          .76232        1.3722        .17021E-02   -1.5533    
  13  norm          .10000E-03    10.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.708        8.2494        .95176E-04   -1.4866    
  15  Prefactor     .10000E-03    7.1422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.650        24.663        .10832E-03   -1.4969    
  17  norm          4.5413        8.4696        .18890E-03   -1.5282    
  18  Prefactor     .10000E-03    24.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .90516        .20220        .27592E-03   -.96279    
  20  Prefactor     1.0207        .17070        .22860E-03   -.92044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26052e-09
Minuit parameter uncertainties:
  1  4.76879e-06
  2  3.36325e-05
  3  0.33607
  4  108.931
  5  10.3648
  6  19.1955
  7  0.699002
  8  2.8347e-05
  9  3.75069
  10  13.3411
  11  12.3192
  12  1.37229
  13  7.62633e-06
  14  8.2499
  15  1.65121e-05
  16  24.6817
  17  8.47184
  18  1.69089e-06
  19  0.202368
  20  0.170793
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.311e+01  1.232e+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.021e+00  1.708e-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:  9.052e-01  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.64
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 4.45e-08 +/- 4.17e-08
Energy Flux (Fixed Index): 1.04e-05 +/- 9.77e-06

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

Saving results to:
/scratch/kocevski/95863/likelihoodResults_444614401_444873601_4FGL_J1300.4+1416_daily_bin792.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) = 7150.80103245
delta logL = 0.581138808854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7150.77635621
delta logL = 0.605815050383

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2991       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3254       1.0000          .0000       10.000    
     3 'Normalizat'    .83536       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0640       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=   7150.776     FROM MIGRAD    STATUS=FAILED        82 CALLS      279 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2983        108.47        .12192E-03   -.22046E-02
   2  Index         4.3259        7.1135        .73944E-02   -.38479E-03
   3  Normalizat    .83545        .23208        .28611E-03   -.64668E-03
   4  Prefactor     1.0639        .20100        .22449E-03   -.68947E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7150.776     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      369 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2983        108.47        .34203E-03   -.22046E-02
   2  Index         4.3259        7.1135        .23756E-02   -.38479E-03
   3  Normalizat    .83545        .23208        .13240E-03   -.64668E-03
   4  Prefactor     1.0639        .20100        .89536E-04   -.68947E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7150.776     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      398 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2978        10.798        .48767E-05   -.25681E-02
   2  Index         4.3260        1.7777        .29578E-03   -.32291E-03
   3  Normalizat    .83545        .20550        .57222E-04   -.63342E-03
   4  Prefactor     1.0639        .17475        .44898E-04   -.67126E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.29782
  Index      = 4.32596
  Normalizat = 0.835451
  Prefactor  = 1.06389
 **********
 **   18 **HESSE 
 **********

 FCN=   7150.776     FROM HESSE     STATUS=OK            23 CALLS      421 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2978        10.585        .97533E-06   -1.5248    
   2  Index         4.3260        1.7440        .11831E-04   -.13522    
   3  Normalizat    .83545        .20548        .11444E-04   -.98767    
   4  Prefactor     1.0639        .17472        .89797E-05   -.90629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57141e-09
Minuit parameter uncertainties:
  1  10.5891
  2  1.78217
  3  0.205672
  4  0.17481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95863': 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) = 7150.77635573
delta logL = 0.605815532136

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  5.298e+00  1.059e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  4.326e+00  1.782e+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:  1.064e+00  1.748e-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:  8.355e-01  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.06
Ra Dec: 195.120 14.270
Photon Index (Free Index): 4.33 +/- 1.78
Photon Flux (Free Index): 1.00e-07 +/- 7.26e-08
Energy Flux (Free Index): 1.43e-05 +/- 9.80e-06

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/95863/cmap_HighResolution_444614401_444873601_4FGL_J1300.4+1416_daily_bin792.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='4.45e-08', energy_flux2='1.43e-05', photon_flux_error='4.17e-08', dlogl='6.06e-01', energy_flux='1.04e-05', photon_flux2='1.00e-07', job_status='DONE', time_completed='2021-09-06 14:46:56.032305', photon_index_error2='1.78', photon_index2='4.33', ts='1.64', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='9.80e-06', EG='0.91', time_epoch_completed='1630964816.03', return_code='0', job_id='95863', GAL2='1.06', EG2='0.84', return_code2='0', energy_flux_error='9.77e-06', photon_flux_error2='7.26e-08', ts2='3.06', photon_index='2.74' WHERE bin_id='792' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:46:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 95863: <4FGL_J1300.4+1416_daily_bin792> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin792 195.12 14.2701 444614401 444873601 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 :                                   643.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   669 sec.
    Turnaround time :                            670 sec.

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

