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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin277
RA = 195.12, Dec = 14.2701
tmin = 311126401, tmax = 311385601
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='92958', job_status='RUN', time_executed='2021-09-06 14:29:36.139948', time_epoch_executed='1630963776.14' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92958

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92958/ft1_4FGL_J1300.4+1416_daily_bin277.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92958/ft2_4FGL_J1300.4+1416_daily_bin277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92958/ft1_4FGL_J1300.4+1416_daily_bin277.fits outfile=/scratch/kocevski/92958/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin277.fits ra=195.12 dec=14.2701 rad=12.0 tmin=311126401.0 tmax=311385601.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.61
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/92958/ft2_4FGL_J1300.4+1416_daily_bin277.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/92958/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin277.fits evtable="EVENTS" outfile="/scratch/kocevski/92958/ft1_filtered_4FGL_J1300.4+1416_daily_bin277.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.53
user 0.38
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92958/ft1_filtered_4FGL_J1300.4+1416_daily_bin277.fits evtable="EVENTS" scfile=/scratch/kocevski/92958/ft2_4FGL_J1300.4+1416_daily_bin277.fits sctable="SC_DATA" expcube=/scratch/kocevski/92958/ltcube_311126401_311385601_4FGL_J1300.4+1416_daily_bin277.fits outfile=/scratch/kocevski/92958/expmap_311126401_311385601_4FGL_J1300.4+1416_daily_bin277.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/92958/ltcube_311126401_311385601_4FGL_J1300.4+1416_daily_bin277.fits
.....................!
real 194.18
user 189.15
sys 4.55

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/92958/ft1_filtered_4FGL_J1300.4+1416_daily_bin277.fits scfile=/scratch/kocevski/92958/ft2_4FGL_J1300.4+1416_daily_bin277.fits outfile=/scratch/kocevski/92958/cmap_311126401_311385601_4FGL_J1300.4+1416_daily_bin277.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92958/ft1_filtered_4FGL_J1300.4+1416_daily_bin277.fits scfile=/scratch/kocevski/92958/ft2_4FGL_J1300.4+1416_daily_bin277.fits outfile=/scratch/kocevski/92958/cmap_HighResolution_311126401_311385601_4FGL_J1300.4+1416_daily_bin277.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.61
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6593       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9218       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .40135E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11673E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13042E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    50.753       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.1061       1.0000         .10000E-03   10000.    
    14 'norm      '    11.175       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8240       1.0000         .10000E-03   10000.    
    17 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.204       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0840       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0426       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=   6787.255     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     1815 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6592        2.9458        .62489E-02    .40101E-03
   2  Prefactor     .10000E-03    9.0975        .90712E-02** at limit **
   3  norm          1.9217        .42846        .55206E-02    .38540E-04
   4  Prefactor     .10000E-03    83.937        .90712E-02** at limit **
   5  Prefactor     .10000E-03    6.6819        .80880E-01** at limit **
   6  Prefactor     .10000E-03    20.092        .90712E-02** at limit **
   7  norm          .10000E-03    .54795        .43974E-01** at limit **
   8  Prefactor     .10000E-03    16.825        .90712E-02** at limit **
   9  Prefactor     .10000E-03    9.4484        .90712E-02** at limit **
  10  Prefactor     .10000E-03    11.984        .90712E-02** at limit **
  11  Prefactor     50.743        17.766        .14073E-02    .35276E-02
  12  norm          .10000E-03    1.3670        .90712E-02** at limit **
  13  norm          8.1072        24.819        .35205E-02    .38146E-03
  14  norm          11.174        8.2190        .29961E-02   -.68320E-03
  15  Prefactor     .10000E-03    15.912        .90712E-02** at limit **
  16  Prefactor     3.8219        25.718        .51599E-02    .12210E-03
  17  norm          .10000E-03    3.3465        .90712E-02** at limit **
  18  Prefactor     13.967        49.972        .26569E-02    .87017E-04
  19  Normalizat    1.0840        .19419        .62421E-01    .54024E-05
  20  Prefactor     1.0426        .16542        .40365E-01   -.37127E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.65918
  Prefactor  = 0.0001
  norm       = 1.92171
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.743
  norm       = 0.0001
  norm       = 8.1072
  norm       = 11.174
  Prefactor  = 0.0001
  Prefactor  = 3.82185
  norm       = 0.0001
  Prefactor  = 13.9665
  Normalizat = 1.08399
  Prefactor  = 1.04261
 **********
 **   18 **HESSE 
 **********

 FCN=   6787.255     FROM HESSE     STATUS=OK           299 CALLS     2114 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6592        2.9351        .14408E-03   -1.5382    
   2  Prefactor     .10000E-03    9.0993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9217        .42919        .24448E-04   -1.5431    
   4  Prefactor     .10000E-03    84.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.244        .41025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4072        .21505E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.7609        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     50.743        17.815        .56293E-04   -1.4282    
  12  norm          .10000E-03    1.3746        .94049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.1072        24.753        .14082E-03   -1.5138    
  14  norm          11.174        8.2058        .11984E-03   -1.5039    
  15  Prefactor     .10000E-03    16.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.8219        25.713        .20640E-03   -1.5317    
  17  norm          .10000E-03    3.3521        .14708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.967        50.012        .53138E-03   -1.4960    
  19  Normalizat    1.0840        .23032        .27609E-03   -.90268    
  20  Prefactor     1.0426        .19678        .24240E-03   -.91322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.70354e-09
Minuit parameter uncertainties:
  1  2.93523
  2  1.64328e-06
  3  0.429195
  4  0.000485782
  5  0.000409005
  6  3.41508e-05
  7  4.38962e-05
  8  0.000146726
  9  3.30222e-06
  10  7.49728e-06
  11  17.8168
  12  1.24985e-07
  13  24.7848
  14  8.20665
  15  8.43042e-05
  16  19.8384
  17  4.41429e-09
  18  50.1623
  19  0.230532
  20  0.196921
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  5.074e+01  1.782e+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.043e+00  1.969e-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.084e+00  2.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.25
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 1.72e-07 +/- 6.04e-08
Energy Flux (Fixed Index): 4.03e-05 +/- 1.41e-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) = 6787.2110429
delta logL = 0.0442273285826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6787.20648498
delta logL = 0.0487852493779

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.067       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6203       1.0000          .0000       10.000    
     3 'Normalizat'    1.0965       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0345       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=   6787.206     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      271 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.066        19.857        .55058E-04    .29267E-03
   2  Index         2.6205        .37177        .57980E-02    .45426E-04
   3  Normalizat    1.0966        .22908        .27473E-03    .13738E-04
   4  Prefactor     1.0344        .19502        .24321E-03    .29216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.066
  Index      = 2.62045
  Normalizat = 1.09663
  Prefactor  = 1.03442
 **********
 **   18 **HESSE 
 **********

 FCN=   6787.206     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.066        19.705        .11012E-04   -1.4250    
   2  Index         2.6205        .36875        .23192E-03   -.49600    
   3  Normalizat    1.0966        .22933        .10989E-04   -.89860    
   4  Prefactor     1.0344        .19520        .97282E-05   -.91591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78102e-11
Minuit parameter uncertainties:
  1  19.7072
  2  0.369184
  3  0.229538
  4  0.195332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92958': 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) = 6787.20648471
delta logL = 0.0487855134425

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  5.307e+01  1.971e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.620e+00  3.692e-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.034e+00  1.953e-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.097e+00  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.21
Ra Dec: 195.120 14.270
Photon Index (Free Index): 2.62 +/- 0.37
Photon Flux (Free Index): 1.62e-07 +/- 6.64e-08
Energy Flux (Free Index): 4.17e-05 +/- 1.56e-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/92958/cmap_HighResolution_311126401_311385601_4FGL_J1300.4+1416_daily_bin277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.72e-07', energy_flux2='4.17e-05', photon_flux_error='6.04e-08', dlogl='4.88e-02', energy_flux='4.03e-05', photon_flux2='1.62e-07', job_status='DONE', time_completed='2021-09-06 14:39:11.824182', photon_index_error2='0.37', photon_index2='2.62', ts='15.25', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.56e-05', EG='1.08', time_epoch_completed='1630964351.82', return_code='0', job_id='92958', GAL2='1.03', EG2='1.10', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='6.64e-08', ts2='15.21', photon_index='2.74' WHERE bin_id='277' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:39:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 92958: <4FGL_J1300.4+1416_daily_bin277> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin277> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 14:26:01 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:26:03 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:26:03 2021
Terminated at Mon Sep  6 14:39:12 2021
Results reported at Mon Sep  6 14:39:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin277 195.12 14.2701 311126401 311385601 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 :                                   571.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            791 sec.

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

