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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin149
RA = 195.12, Dec = 14.2701
tmin = 277948801, tmax = 278208001
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='92793', job_status='RUN', time_executed='2021-09-06 14:28:55.757859', time_epoch_executed='1630963735.76' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92793

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92793/ft1_4FGL_J1300.4+1416_daily_bin149.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92793/ft2_4FGL_J1300.4+1416_daily_bin149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92793/ft1_4FGL_J1300.4+1416_daily_bin149.fits outfile=/scratch/kocevski/92793/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin149.fits ra=195.12 dec=14.2701 rad=12.0 tmin=277948801.0 tmax=278208001.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 4.26
user 3.98
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92793/ft1_filtered_4FGL_J1300.4+1416_daily_bin149.fits" evtable="EVENTS" scfile=/scratch/kocevski/92793/ft2_4FGL_J1300.4+1416_daily_bin149.fits sctable="SC_DATA" outfile=/scratch/kocevski/92793/ltcube_277948801_278208001_4FGL_J1300.4+1416_daily_bin149.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/92793/ft2_4FGL_J1300.4+1416_daily_bin149.fits
.....................!
real 14.05
user 13.52
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92793/ft1_filtered_4FGL_J1300.4+1416_daily_bin149.fits evtable="EVENTS" scfile=/scratch/kocevski/92793/ft2_4FGL_J1300.4+1416_daily_bin149.fits sctable="SC_DATA" expcube=/scratch/kocevski/92793/ltcube_277948801_278208001_4FGL_J1300.4+1416_daily_bin149.fits outfile=/scratch/kocevski/92793/expmap_277948801_278208001_4FGL_J1300.4+1416_daily_bin149.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/92793/ltcube_277948801_278208001_4FGL_J1300.4+1416_daily_bin149.fits
.....................!
real 190.26
user 185.38
sys 4.14

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/92793/ft1_filtered_4FGL_J1300.4+1416_daily_bin149.fits scfile=/scratch/kocevski/92793/ft2_4FGL_J1300.4+1416_daily_bin149.fits outfile=/scratch/kocevski/92793/cmap_277948801_278208001_4FGL_J1300.4+1416_daily_bin149.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92793/ft1_filtered_4FGL_J1300.4+1416_daily_bin149.fits scfile=/scratch/kocevski/92793/ft2_4FGL_J1300.4+1416_daily_bin149.fits outfile=/scratch/kocevski/92793/cmap_HighResolution_277948801_278208001_4FGL_J1300.4+1416_daily_bin149.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    18.001       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2983       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.046       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.660       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.915       1.0000         .10000E-03   10000.    
    12 'norm      '    8.2240       1.0000         .10000E-03   10000.    
    13 'norm      '    6.8230       1.0000         .10000E-03   10000.    
    14 'norm      '    9.6165       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.205       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4677       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4064       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .81093       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=   5971.802     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     2008 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9220        .90712E-02** at limit **
   2  Prefactor     17.998        24.549        .23600E-02    .23970E-03
   3  norm          1.2983        .37103        .54747E-02    .13031E-03
   4  Prefactor     .10000E-03    97.693        .90712E-02** at limit **
   5  Prefactor     13.046        10.813        .27725E-02   -.39656E-04
   6  Prefactor     .10000E-03    26.015        .90712E-02** at limit **
   7  norm          11.660        2.8591        .29330E-02    .29375E-03
   8  Prefactor     .10000E-03    26.439        .90712E-02** at limit **
   9  Prefactor     .10000E-03    3.4538        .90712E-02** at limit **
  10  Prefactor     .10000E-03    11.570        .90712E-02** at limit **
  11  Prefactor     19.918        13.776        .22438E-02    .68525E-03
  12  norm          8.2240        4.3926        .34950E-02    .50727E-03
  13  norm          6.8236        20.735        .38401E-02    .15399E-03
  14  norm          9.6095        8.3785        .32307E-02    .33024E-02
  15  Prefactor     11.208        16.129        .29920E-02    .30774E-03
  16  Prefactor     .10000E-03    11.391        .90712E-02** at limit **
  17  norm          1.4837        23.105        .88710E-02    .10667E-02
  18  Prefactor     .10000E-03    23.420        .90712E-02** at limit **
  19  Normalizat    1.4062        .21448        .59188E-01    .18722E-03
  20  Prefactor     .81099        .17750        .63951E-01    .20285E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.9976
  norm       = 1.29834
  Prefactor  = 0.0001
  Prefactor  = 13.0459
  Prefactor  = 0.000100001
  norm       = 11.6597
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 19.9183
  norm       = 8.22396
  norm       = 6.82364
  norm       = 9.60946
  Prefactor  = 11.2077
  Prefactor  = 0.000100001
  norm       = 1.4837
  Prefactor  = 0.000100001
  Normalizat = 1.40624
  Prefactor  = 0.810995
 **********
 **   18 **HESSE 
 **********

 FCN=   5971.802     FROM HESSE     STATUS=OK           283 CALLS     2291 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9818        .20918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.998        24.548        .94399E-04   -1.4859    
   3  norm          1.2983        .37119        .24253E-04   -1.5480    
   4  Prefactor     .10000E-03    97.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.046        10.809        .11090E-03   -1.4985    
   6  Prefactor     .10000E-03    26.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.660        2.8617        .62407E-04   -1.5025    
   8  Prefactor     .10000E-03    26.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4638        .14024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.918        13.798        .89751E-04   -1.4815    
  12  norm          8.2240        4.3949        .11438E-03   -1.5134    
  13  norm          6.8236        20.718        .15360E-03   -1.5185    
  14  norm          9.6095        8.0846        .12923E-03   -1.5088    
  15  Prefactor     11.208        16.140        .11968E-03   -1.5038    
  16  Prefactor     .10000E-03    11.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4837        21.697        .35484E-03   -1.5464    
  18  Prefactor     .10000E-03    23.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4062        .25715        .26175E-03   -.80448    
  20  Prefactor     .81099        .21148        .28288E-03   -.99324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.0236e-09
Minuit parameter uncertainties:
  1  1.17975e-05
  2  24.5614
  3  0.371193
  4  0.000419668
  5  10.811
  6  0.000258378
  7  2.86169
  8  0.000719815
  9  1.38894e-07
  10  0.000269376
  11  13.8001
  12  4.39512
  13  20.7402
  14  8.08555
  15  16.1467
  16  0.000183603
  17  11.3521
  18  0.000329695
  19  0.257391
  20  0.21169
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.992e+01  1.380e+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:  8.110e-01  2.117e-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.406e+00  2.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.00
Ra Dec: 195.120 14.270
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 6.76e-08 +/- 4.68e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.09e-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) = 5971.64161445
delta logL = 0.160644815041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5971.62209535
delta logL = 0.180163910699

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.743       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3668       1.0000          .0000       10.000    
     3 'Normalizat'    1.4228       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79936       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=   5971.622     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      213 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.745        14.117        .27107E-05   -.14257E-02
   2  Index         2.3668        .47276       -.86934E-05   -.43739E-03
   3  Normalizat    1.4228        .20822        .26616E-06    .11930E-03
   4  Prefactor     .79935        .17674       -.49762E-06    .90714E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.7447
  Index      = 2.3668
  Normalizat = 1.4228
  Prefactor  = 0.799347
 **********
 **   18 **HESSE 
 **********

 FCN=   5971.622     FROM HESSE     STATUS=OK            29 CALLS      242 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.745        15.621        .83991E-04   -1.4754    
   2  Index         2.3668        .57256        .84994E-02   -.55464    
   3  Normalizat    1.4228        .24905        .26043E-03   -.79971    
   4  Prefactor     .79935        .21067        .28462E-03   -.99752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33231e-09
Minuit parameter uncertainties:
  1  15.6241
  2  0.574307
  3  0.249265
  4  0.210879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92793': 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) = 5971.62209534
delta logL = 0.180163917527

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  2.274e+01  1.562e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.367e+00  5.743e-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:  7.993e-01  2.109e-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.423e+00  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.34
Ra Dec: 195.120 14.270
Photon Index (Free Index): 2.37 +/- 0.57
Photon Flux (Free Index): 5.64e-08 +/- 4.40e-08
Energy Flux (Free Index): 1.93e-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/92793/cmap_HighResolution_277948801_278208001_4FGL_J1300.4+1416_daily_bin149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.76e-08', energy_flux2='1.93e-05', photon_flux_error='4.68e-08', dlogl='1.80e-01', energy_flux='1.58e-05', photon_flux2='5.64e-08', job_status='DONE', time_completed='2021-09-06 14:38:02.206638', photon_index_error2='0.57', photon_index2='2.37', ts='4.00', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.56e-05', EG='1.41', time_epoch_completed='1630964282.21', return_code='0', job_id='92793', GAL2='0.80', EG2='1.42', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='4.40e-08', ts2='4.34', photon_index='2.74' WHERE bin_id='149' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:38:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 92793: <4FGL_J1300.4+1416_daily_bin149> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin149> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 14:25:46 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:25:48 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:25:48 2021
Terminated at Mon Sep  6 14:38:02 2021
Results reported at Mon Sep  6 14:38:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin149 195.12 14.2701 277948801 278208001 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 :                                   537.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            736 sec.

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

