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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin831
RA = 195.12, Dec = 14.2701
tmin = 454723201, tmax = 454982401
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='97270', job_status='RUN', time_executed='2021-09-06 14:43:13.727712', time_epoch_executed='1630964593.73' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='831'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97270

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97270/ft1_4FGL_J1300.4+1416_daily_bin831.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97270/ft2_4FGL_J1300.4+1416_daily_bin831.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97270/ft1_4FGL_J1300.4+1416_daily_bin831.fits outfile=/scratch/kocevski/97270/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin831.fits ra=195.12 dec=14.2701 rad=12.0 tmin=454723201.0 tmax=454982401.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.58
user 3.31
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/97270/ft1_filtered_4FGL_J1300.4+1416_daily_bin831.fits" evtable="EVENTS" scfile=/scratch/kocevski/97270/ft2_4FGL_J1300.4+1416_daily_bin831.fits sctable="SC_DATA" outfile=/scratch/kocevski/97270/ltcube_454723201_454982401_4FGL_J1300.4+1416_daily_bin831.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/97270/ft2_4FGL_J1300.4+1416_daily_bin831.fits
.....................!
real 18.96
user 18.47
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97270/ft1_filtered_4FGL_J1300.4+1416_daily_bin831.fits evtable="EVENTS" scfile=/scratch/kocevski/97270/ft2_4FGL_J1300.4+1416_daily_bin831.fits sctable="SC_DATA" expcube=/scratch/kocevski/97270/ltcube_454723201_454982401_4FGL_J1300.4+1416_daily_bin831.fits outfile=/scratch/kocevski/97270/expmap_454723201_454982401_4FGL_J1300.4+1416_daily_bin831.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/97270/ltcube_454723201_454982401_4FGL_J1300.4+1416_daily_bin831.fits
.....................!
real 195.34
user 188.94
sys 5.99

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/97270/ft1_filtered_4FGL_J1300.4+1416_daily_bin831.fits scfile=/scratch/kocevski/97270/ft2_4FGL_J1300.4+1416_daily_bin831.fits outfile=/scratch/kocevski/97270/cmap_454723201_454982401_4FGL_J1300.4+1416_daily_bin831.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.61
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/97270/ft1_filtered_4FGL_J1300.4+1416_daily_bin831.fits scfile=/scratch/kocevski/97270/ft2_4FGL_J1300.4+1416_daily_bin831.fits outfile=/scratch/kocevski/97270/cmap_HighResolution_454723201_454982401_4FGL_J1300.4+1416_daily_bin831.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.58
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0791       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .33260       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.934       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2400       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.423       1.0000         .10000E-03   10000.    
     7 'norm      '    7.0994       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.301       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.293       1.0000         .10000E-03   10000.    
    12 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.431       1.0000         .10000E-03   10000.    
    14 'norm      '    3.6901       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.201       1.0000         .10000E-03   10000.    
    17 'norm      '    11.810       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.381       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .58188       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2770       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=   6129.464     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2116 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0798        3.4942       -.65072E-06   -.67178E-03
   2  Prefactor     .10000E-03    9.4281       -.15212E-06** at limit **
   3  norm          .33263        .24717       -.56463E-07   -.44222E-03
   4  Prefactor     19.933        76.212       -.23834E-05   -.28390E-06
   5  Prefactor     7.2419        7.1630        .19345E-05    .87525E-04
   6  Prefactor     33.410        28.706       -.60676E-05    .11105E-04
   7  norm          7.0994        2.2641       -.15636E-06   -.95837E-05
   8  Prefactor     .10000E-03    109.28       -.24491E-05** at limit **
   9  Prefactor     13.300        8.9814       -.61096E-06    .47095E-04
  10  Prefactor     .10000E-03    27.707        .79974E-07** at limit **
  11  Prefactor     27.300        16.242       -.57059E-05    .20452E-04
  12  norm          .10000E-03    2.2396       -.31990E-06** at limit **
  13  norm          11.431        12.634       -.24865E-06    .24165E-04
  14  norm          3.6885        6.6522       -.11658E-05   -.34934E-03
  15  Prefactor     .10000E-03    2.8689       -.40600E-07** at limit **
  16  Prefactor     35.197        40.815       -.45690E-05    .10704E-04
  17  norm          11.811        8.9223        .27260E-05    .10044E-04
  18  Prefactor     26.363        44.749       -.23528E-04    .39245E-05
  19  Normalizat    .58186        .20383        .31253E-05    .71254E-04
  20  Prefactor     1.2770        .17481        .17460E-05   -.70672E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.07979
  Prefactor  = 0.0001
  norm       = 0.332633
  Prefactor  = 19.9329
  Prefactor  = 7.24193
  Prefactor  = 33.4101
  norm       = 7.09942
  Prefactor  = 0.0001
  Prefactor  = 13.3005
  Prefactor  = 0.000100002
  Prefactor  = 27.3002
  norm       = 0.0001
  norm       = 11.4312
  norm       = 3.68847
  Prefactor  = 0.0001
  Prefactor  = 35.1966
  norm       = 11.8108
  Prefactor  = 26.363
  Normalizat = 0.581859
  Prefactor  = 1.27704
 **********
 **   18 **HESSE 
 **********

 FCN=   6129.464     FROM HESSE     STATUS=OK           303 CALLS     2419 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0798        3.4891        .18191E-03   -1.5420    
   2  Prefactor     .10000E-03    9.4306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .33263        .24150        .31948E-04   -1.5593    
   4  Prefactor     19.933        76.241        .89709E-04   -1.4815    
   5  Prefactor     7.2419        7.1663        .14907E-03   -1.5170    
   6  Prefactor     33.410        28.675        .69313E-04   -1.4551    
   7  norm          7.0994        2.2629        .63674E-04   -1.5175    
   8  Prefactor     .10000E-03    110.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.300        8.9631        .10983E-03   -1.4978    
  10  Prefactor     .10000E-03    28.604        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.300        16.287        .76684E-04   -1.4662    
  12  norm          .10000E-03    4.2322        .22635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.431        12.625        .11849E-03   -1.5032    
  14  norm          3.6885        6.6406        .21025E-03   -1.5324    
  15  Prefactor     .10000E-03    2.8724        .12950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.197        40.886        .67545E-04   -1.4521    
  17  norm          11.811        8.9187        .11657E-03   -1.5020    
  18  Prefactor     26.363        44.744        .77994E-04   -1.4681    
  19  Normalizat    .58186        .23432        .34231E-03   -1.0876    
  20  Prefactor     1.2770        .20395        .21465E-03   -.83992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.17196e-10
Minuit parameter uncertainties:
  1  3.48947
  2  4.7676e-06
  3  0.2415
  4  76.6175
  5  7.16719
  6  28.6863
  7  2.26295
  8  0.000114428
  9  8.96402
  10  0.000496683
  11  16.2897
  12  4.86945e-05
  13  12.6281
  14  6.64192
  15  8.0878e-07
  16  40.9186
  17  8.91969
  18  44.8012
  19  0.23472
  20  0.204075
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.730e+01  1.629e+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.277e+00  2.041e-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:  5.819e-01  2.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.29
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 9.26e-08 +/- 5.52e-08
Energy Flux (Fixed Index): 2.17e-05 +/- 1.29e-05

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) = 6129.05553728
delta logL = 0.408762919784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6129.04985263
delta logL = 0.414447569151

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.078       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3452       1.0000          .0000       10.000    
     3 'Normalizat'    .53841       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3054       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=   6129.050     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      311 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.100        17.916        .44694E-03   -.51993E-04
   2  Index         3.3464        .81371        .65936E-02    .32589E-03
   3  Normalizat    .53835        .23041        .35511E-03   -.24651E-05
   4  Prefactor     1.3051        .20293        .21267E-03   -.16839E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.0995
  Index      = 3.34641
  Normalizat = 0.538352
  Prefactor  = 1.30508
 **********
 **   18 **HESSE 
 **********

 FCN=   6129.050     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.100        16.595        .17877E-04   -1.4811    
   2  Index         3.3464        .75358        .13187E-02   -.33706    
   3  Normalizat    .53835        .23054        .14204E-04   -1.1067    
   4  Prefactor     1.3051        .20289        .85068E-05   -.83156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81872e-12
Minuit parameter uncertainties:
  1  16.599
  2  0.756817
  3  0.230952
  4  0.203017
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97270': 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) = 6129.04983768
delta logL = 0.414462518919

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.010e+01  1.660e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  3.346e+00  7.568e-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.305e+00  2.030e-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:  5.384e-01  2.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.24
Ra Dec: 195.120 14.270
Photon Index (Free Index): 3.35 +/- 0.76
Photon Flux (Free Index): 1.25e-07 +/- 7.06e-08
Energy Flux (Free Index): 2.18e-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/97270/cmap_HighResolution_454723201_454982401_4FGL_J1300.4+1416_daily_bin831.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.26e-08', energy_flux2='2.18e-05', photon_flux_error='5.52e-08', dlogl='4.14e-01', energy_flux='2.17e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-06 14:53:34.306833', photon_index_error2='0.76', photon_index2='3.35', ts='4.29', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='1.18e-05', EG='0.58', time_epoch_completed='1630965214.31', return_code='0', job_id='97270', GAL2='1.31', EG2='0.54', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='7.06e-08', ts2='5.24', photon_index='2.74' WHERE bin_id='831' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:53:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 97270: <4FGL_J1300.4+1416_daily_bin831> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin831> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 14:40:24 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:40:27 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:40:27 2021
Terminated at Mon Sep  6 14:53:35 2021
Results reported at Mon Sep  6 14:53:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin831 195.12 14.2701 454723201 454982401 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 :                                   570.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            791 sec.

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

