/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 152 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 = 7420
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1300.4+1416_daily_bin95
RA = 195.12, Dec = 14.2701
tmin = 263952001, tmax = 264211201
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='92713', job_status='RUN', time_executed='2021-09-06 14:28:39.548747', time_epoch_executed='1630963719.55' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92713

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92713/ft1_4FGL_J1300.4+1416_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92713/ft2_4FGL_J1300.4+1416_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92713/ft1_4FGL_J1300.4+1416_daily_bin95.fits outfile=/scratch/kocevski/92713/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin95.fits ra=195.12 dec=14.2701 rad=12.0 tmin=263952001.0 tmax=264211201.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 1.74
user 1.52
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92713/ft1_filtered_4FGL_J1300.4+1416_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/92713/ft2_4FGL_J1300.4+1416_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/92713/ltcube_263952001_264211201_4FGL_J1300.4+1416_daily_bin95.fits outfile=/scratch/kocevski/92713/expmap_263952001_264211201_4FGL_J1300.4+1416_daily_bin95.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/92713/ltcube_263952001_264211201_4FGL_J1300.4+1416_daily_bin95.fits
.....................!
real 192.61
user 185.61
sys 4.90

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/92713/ft1_filtered_4FGL_J1300.4+1416_daily_bin95.fits scfile=/scratch/kocevski/92713/ft2_4FGL_J1300.4+1416_daily_bin95.fits outfile=/scratch/kocevski/92713/cmap_263952001_264211201_4FGL_J1300.4+1416_daily_bin95.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=195.12 yref=14.2701 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92713/ft1_filtered_4FGL_J1300.4+1416_daily_bin95.fits scfile=/scratch/kocevski/92713/ft2_4FGL_J1300.4+1416_daily_bin95.fits outfile=/scratch/kocevski/92713/cmap_HighResolution_263952001_264211201_4FGL_J1300.4+1416_daily_bin95.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/92713/ft1_filtered_4FGL_J1300.4+1416_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/92713/ft2_4FGL_J1300.4+1416_daily_bin95.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/92713/Model_4FGL_J1300.4+1416_daily_bin95.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/92713/ft1_filtered_4FGL_J1300.4+1416_daily_bin95.fits.....................!
real 58.06
user 56.66
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .75333       1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.698       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.229       1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.934       1.0000         .10000E-03   10000.    
     7 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.542       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5661       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .25516E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21757E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    12.054       1.0000         .10000E-03   10000.    
    13 'norm      '    9.7068       1.0000         .10000E-03   10000.    
    14 'norm      '    3.2881       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.323       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.4240       1.0000         .10000E-03   10000.    
    17 'norm      '    2.7618       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .40605       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1313       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96687       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=   7002.938     FROM MIGRAD    STATUS=CONVERGED    752 CALLS     2417 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2543        .23980E-03** at limit **
   2  Prefactor     .10000E-03    25.652        .18142E-02** at limit **
   3  norm          .75324        .27847        .25952E-04    .10339E-02
   4  Prefactor     38.683        119.73        .64431E-04    .21103E-04
   5  Prefactor     10.223        8.6459        .12528E-03    .81672E-05
   6  Prefactor     27.977        22.502        .75800E-04   -.16120E-03
   7  norm          .10000E-03    2.6799        .15227E-02** at limit **
   8  Prefactor     20.534        44.452        .88372E-04   -.12082E-03
   9  Prefactor     2.5666        2.7008        .13728E-03   -.96395E-04
  10  Prefactor     .10003E-03    26.772        .42193E-02** at limit **
  11  Prefactor     .10015E-03    58.632        .38219E-02** at limit **
  12  norm          12.054        4.1232        .96600E-04   -.40720E-04
  13  norm          9.7063        11.271        .12862E-03    .26959E-04
  14  norm          3.2888        5.1596        .20969E-03    .39101E-03
  15  Prefactor     14.325        10.781        .10583E-03    .73906E-04
  16  Prefactor     4.4295        22.832        .19146E-03    .20664E-04
  17  norm          2.7622        6.3689        .24492E-03    .22327E-03
  18  Prefactor     .37759        34.652        .14642        .16748E-03
  19  Normalizat    1.1317        .21139        .25683E-03    .39423E-03
  20  Prefactor     .96648        .18411        .24193E-03    .50571E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.753236
  Prefactor  = 38.683
  Prefactor  = 10.2233
  Prefactor  = 27.9771
  norm       = 0.0001
  Prefactor  = 20.5339
  Prefactor  = 2.56665
  Prefactor  = 0.000100027
  Prefactor  = 0.000100154
  norm       = 12.0539
  norm       = 9.70635
  norm       = 3.28882
  Prefactor  = 14.3252
  Prefactor  = 4.42947
  norm       = 2.76224
  Prefactor  = 0.377586
  Normalizat = 1.13167
  Prefactor  = 0.966477
 **********
 **   18 **HESSE 
 **********

 FCN=   7002.938     FROM HESSE     STATUS=OK           281 CALLS     2698 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2544        .47959E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.655        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .75324        .27847        .10381E-05   -1.5534    
   4  Prefactor     38.683        119.73        .12886E-04   -1.4463    
   5  Prefactor     10.223        8.6455        .50112E-05   -1.5068    
   6  Prefactor     27.977        22.501        .15160E-04   -1.4650    
   7  norm          .10000E-03    2.7102        .30453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.534        44.380        .17674E-04   -1.4801    
   9  Prefactor     2.5666        2.7008        .54912E-05   -1.5388    
  10  Prefactor     .10003E-03    26.945        .84385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10015E-03    59.946        .76438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.054        4.1232        .38640E-05   -1.5013    
  13  norm          9.7063        11.271        .51448E-05   -1.5085    
  14  norm          3.2888        5.1575        .83876E-05   -1.5345    
  15  Prefactor     14.325        10.781        .42333E-05   -1.4951    
  16  Prefactor     4.4295        22.830        .76584E-05   -1.5287    
  17  norm          2.7622        6.3662        .97969E-05   -1.5376    
  18  Prefactor     .37759        34.115        .14822       -1.5585    
  19  Normalizat    1.1317        .21151        .51365E-04   -.88741    
  20  Prefactor     .96648        .18426        .48386E-04   -.93855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59949e-09
Minuit parameter uncertainties:
  1  2.15663e-06
  2  5.82401e-05
  3  0.278467
  4  120.48
  5  8.6466
  6  22.5081
  7  7.20437e-05
  8  44.4514
  9  2.70093
  10  0.00171863
  11  0.00607358
  12  4.12326
  13  11.2735
  14  5.15816
  15  10.7823
  16  20.1242
  17  6.36775
  18  7.18135
  19  0.211665
  20  0.184378
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.002e-04  6.074e-03  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.665e-01  1.844e-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.132e+00  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 195.120 14.270
Photon Flux Upper Limit: 8.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/92713/likelihoodResults_263952001_264211201_4FGL_J1300.4+1416_daily_bin95.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): 102
logL (Free Index) = 7002.93782314
delta logL = -7.97979810159e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7002.93782304
delta logL = -7.97033108029e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96212E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7379       1.0000          .0000       10.000    
     3 'Normalizat'    1.1316       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96654       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=   7002.938     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      275 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12617E-03    1.0522        .56751E-01** at limit **
   2  Index         3.2507        7.3017        .50000        .28685E-06
   3  Normalizat    1.1317        .16795E-02    .25683E-03    .88709E-04
   4  Prefactor     .96648        .14828E-02    .24193E-03    .66118E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000126172
  Index      = 3.25065
  Normalizat = 1.13167
  Prefactor  = 0.966475
 **********
 **   18 **HESSE 
 **********

 FCN=   7002.938     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      314 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12617E-03    .93241        .59653E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2507        6.5364        .50000       -.35743    
   3  Normalizat    1.1317        .16438E-02    .10273E-04   -.88741    
   4  Prefactor     .96648        .14512E-02    .96771E-05   -.93855    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.33872e-10
Minuit parameter uncertainties:
  1  0.00988008
  2  73.1565
  3  0.00164378
  4  0.00145121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92713': 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) = 7002.9377426
delta logL = 7.43763848732e-07

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.262e-04  9.880e-03  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  3.251e+00  7.316e+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.665e-01  1.451e-03  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.132e+00  1.644e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/92713/cmap_HighResolution_263952001_264211201_4FGL_J1300.4+1416_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.63e-03', job_status='DONE', photon_flux_upper_limit='8.40e-08', time_completed='2021-09-06 14:39:57.643955', job_id='92713', GAL2='0.97', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630964397.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='7.44e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='95' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:39:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 92713: <4FGL_J1300.4+1416_daily_bin95> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin95 195.12 14.2701 263952001 264211201 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 :                                   672.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            860 sec.

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

