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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin248
RA = 195.12, Dec = 14.2701
tmin = 303609601, tmax = 303868801
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='92925', job_status='RUN', time_executed='2021-09-06 14:29:55.235740', time_epoch_executed='1630963795.24' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92925

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92925/ft1_4FGL_J1300.4+1416_daily_bin248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92925/ft2_4FGL_J1300.4+1416_daily_bin248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92925/ft1_4FGL_J1300.4+1416_daily_bin248.fits outfile=/scratch/kocevski/92925/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin248.fits ra=195.12 dec=14.2701 rad=12.0 tmin=303609601.0 tmax=303868801.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.47
user 3.17
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92925/ft1_filtered_4FGL_J1300.4+1416_daily_bin248.fits" evtable="EVENTS" scfile=/scratch/kocevski/92925/ft2_4FGL_J1300.4+1416_daily_bin248.fits sctable="SC_DATA" outfile=/scratch/kocevski/92925/ltcube_303609601_303868801_4FGL_J1300.4+1416_daily_bin248.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/92925/ft2_4FGL_J1300.4+1416_daily_bin248.fits
.....................!
real 11.86
user 11.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92925/ft1_filtered_4FGL_J1300.4+1416_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/92925/ft2_4FGL_J1300.4+1416_daily_bin248.fits sctable="SC_DATA" expcube=/scratch/kocevski/92925/ltcube_303609601_303868801_4FGL_J1300.4+1416_daily_bin248.fits outfile=/scratch/kocevski/92925/expmap_303609601_303868801_4FGL_J1300.4+1416_daily_bin248.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/92925/ltcube_303609601_303868801_4FGL_J1300.4+1416_daily_bin248.fits
.....................!
real 190.82
user 185.42
sys 4.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/92925/ft1_filtered_4FGL_J1300.4+1416_daily_bin248.fits scfile=/scratch/kocevski/92925/ft2_4FGL_J1300.4+1416_daily_bin248.fits outfile=/scratch/kocevski/92925/cmap_303609601_303868801_4FGL_J1300.4+1416_daily_bin248.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=195.12 yref=14.2701 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92925/ft1_filtered_4FGL_J1300.4+1416_daily_bin248.fits scfile=/scratch/kocevski/92925/ft2_4FGL_J1300.4+1416_daily_bin248.fits outfile=/scratch/kocevski/92925/cmap_HighResolution_303609601_303868801_4FGL_J1300.4+1416_daily_bin248.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0508       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.3260       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11051E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.9283       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11613E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2944       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.877       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7118       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .54155       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.595       1.0000         .10000E-03   10000.    
    17 'norm      '    38.823       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11056E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3454       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90126       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=   6803.464     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     1760 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0505        4.1558        .38864E-06   -.85686E-03
   2  Prefactor     .10000E-03    11.342        .31229E-05** at limit **
   3  norm          4.3259        .56027       -.16310E-07    .39747E-03
   4  Prefactor     .10000E-03    50.316       -.19368E-04** at limit **
   5  Prefactor     .10000E-03    4.4318       -.36589E-06** at limit **
   6  Prefactor     .10000E-03    23.035       -.21838E-04** at limit **
   7  norm          4.9281        1.8760       -.34314E-07   -.22401E-04
   8  Prefactor     .10000E-03    34.725        .59559E-04** at limit **
   9  Prefactor     .10000E-03    5.2578        .88160E-06** at limit **
  10  Prefactor     5.2832        13.272        .10133E-06   -.31326E-03
  11  Prefactor     11.878        17.411        .15559E-05   -.23506E-04
  12  norm          1.7120        3.1382       -.40014E-06   -.64675E-03
  13  norm          .10000E-03    6.9162       -.12299E-05** at limit **
  14  norm          .50643        6.2028       -.36835E-05    .11867E-02
  15  Prefactor     .10000E-03    3.7408        .44058E-07** at limit **
  16  Prefactor     14.563        20.901       -.18684E-04    .47906E-05
  17  norm          38.846        14.737        .98972E-06    .17019E-02
  18  Prefactor     .10000E-03    50.550       -.22406E-04** at limit **
  19  Normalizat    1.3458        .21411        .22841E-06    .44689E-03
  20  Prefactor     .90112        .17638        .89147E-06    .27464E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.05054
  Prefactor  = 0.0001
  norm       = 4.32586
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.92805
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.28315
  Prefactor  = 11.8781
  norm       = 1.71196
  norm       = 0.0001
  norm       = 0.506429
  Prefactor  = 0.0001
  Prefactor  = 14.5626
  norm       = 38.8459
  Prefactor  = 0.0001
  Normalizat = 1.34576
  Prefactor  = 0.901119
 **********
 **   18 **HESSE 
 **********

 FCN=   6803.464     FROM HESSE     STATUS=OK           291 CALLS     2051 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0505        4.1463        .22827E-03   -1.5422    
   2  Prefactor     .10000E-03    11.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.3259        .56261        .21338E-04   -1.5292    
   4  Prefactor     .10000E-03    50.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.4426        .16958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.9281        1.8763        .67591E-04   -1.5264    
   8  Prefactor     .10000E-03    34.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.3215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2832        13.233        .17468E-03   -1.5248    
  11  Prefactor     11.878        17.460        .11624E-03   -1.5019    
  12  norm          1.7120        3.1235        .19119E-03   -1.5446    
  13  norm          .10000E-03    6.9197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .50643        53.508        .32494E-02   -1.5566    
  15  Prefactor     .10000E-03    3.7466        .15580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.563        20.918        .10484E-03   -1.4945    
  17  norm          38.846        15.606        .64328E-04   -1.4461    
  18  Prefactor     .10000E-03    50.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3458        .25803        .27306E-03   -.82211    
  20  Prefactor     .90112        .21052        .28109E-03   -.96102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52163e-08
Minuit parameter uncertainties:
  1  4.14689
  2  2.23754e-06
  3  0.562607
  4  3.37336e-06
  5  4.97689e-07
  6  2.42443e-05
  7  1.87631
  8  7.24343e-05
  9  4.30689e-06
  10  13.2407
  11  17.4678
  12  3.12377
  13  8.34185e-06
  14  10.4197
  15  2.35259e-07
  16  20.9285
  17  15.6081
  18  5.33217e-05
  19  0.258277
  20  0.21071
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.188e+01  1.747e+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:  9.011e-01  2.107e-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.346e+00  2.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/92925/likelihoodResults_303609601_303868801_4FGL_J1300.4+1416_daily_bin248.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) = 6803.44589202
delta logL = 0.0180080150303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6803.36391216
delta logL = 0.0999878739431

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .98633       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1702       1.0000          .0000       10.000    
     3 'Normalizat'    1.3111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93254       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=   6803.364     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      234 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97771        22.431        .13117E-01   -.16512E-03
   2  Index         5.1765        7.2581        .20148        .18177E-04
   3  Normalizat    1.3111        .44949E-01    .62419E-01   -.14510E-03
   4  Prefactor     .93259        .38971E-01    .45418E-01   -.66543E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.977712
  Index      = 5.17648
  Normalizat = 1.31114
  Prefactor  = 0.932592
 **********
 **   18 **HESSE 
 **********

 FCN=   6803.364     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      265 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97771        69.492        .95048E-04   -1.5510    
   2  Index         5.1765        6.6399        .10899E-01    .35304E-01
   3  Normalizat    1.3111        .19564        .27608E-03   -.83234    
   4  Prefactor     .93259        .16335        .27695E-03   -.95011    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.47899e-09
Minuit parameter uncertainties:
  1  16.5046
  2  12.5287
  3  0.19575
  4  0.163433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92925': 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): 102
logL (Free Index) = 6803.36391092
delta logL = 0.099989115246

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  9.777e-01  1.650e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  5.176e+00  1.253e+01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.431e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  9.326e-01  1.634e-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.311e+00  1.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.59
Ra Dec: 195.120 14.270

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/92925/cmap_HighResolution_303609601_303868801_4FGL_J1300.4+1416_daily_bin248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', job_status='DONE', photon_flux_upper_limit='1.60e-07', time_completed='2021-09-06 14:40:13.069626', job_id='92925', GAL2='0.93', fit_tolerance='1e-08', EG2='1.31', EG='1.35', time_epoch_completed='1630964413.07', return_code2='102', ts='0.59', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.00e-01', ts2='0.83', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='248' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:40:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 92925: <4FGL_J1300.4+1416_daily_bin248> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin248> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 14:25:57 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:25:59 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:59 2021
Terminated at Mon Sep  6 14:40:13 2021
Results reported at Mon Sep  6 14:40:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin248 195.12 14.2701 303609601 303868801 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 :                                   608.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             263.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            856 sec.

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

