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


Performing analysis on: 4FGL_J1300.4+1416_daily_bin560
RA = 195.12, Dec = 14.2701
tmin = 384480001, tmax = 384739201
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='94370', job_status='RUN', time_executed='2021-09-06 14:34:52.909186', time_epoch_executed='1630964092.91' WHERE source_name='4FGL J1300.4+1416' and cadence='daily' and bin_id='560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94370

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94370/ft1_4FGL_J1300.4+1416_daily_bin560.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94370/ft2_4FGL_J1300.4+1416_daily_bin560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94370/ft1_4FGL_J1300.4+1416_daily_bin560.fits outfile=/scratch/kocevski/94370/ft1_filteredMKT_4FGL_J1300.4+1416_daily_bin560.fits ra=195.12 dec=14.2701 rad=12.0 tmin=384480001.0 tmax=384739201.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.90
user 3.68
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94370/ft1_filtered_4FGL_J1300.4+1416_daily_bin560.fits" evtable="EVENTS" scfile=/scratch/kocevski/94370/ft2_4FGL_J1300.4+1416_daily_bin560.fits sctable="SC_DATA" outfile=/scratch/kocevski/94370/ltcube_384480001_384739201_4FGL_J1300.4+1416_daily_bin560.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/94370/ft2_4FGL_J1300.4+1416_daily_bin560.fits
.....................!
real 12.25
user 11.91
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94370/ft1_filtered_4FGL_J1300.4+1416_daily_bin560.fits evtable="EVENTS" scfile=/scratch/kocevski/94370/ft2_4FGL_J1300.4+1416_daily_bin560.fits sctable="SC_DATA" expcube=/scratch/kocevski/94370/ltcube_384480001_384739201_4FGL_J1300.4+1416_daily_bin560.fits outfile=/scratch/kocevski/94370/expmap_384480001_384739201_4FGL_J1300.4+1416_daily_bin560.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/94370/ltcube_384480001_384739201_4FGL_J1300.4+1416_daily_bin560.fits
.....................!
real 189.88
user 185.75
sys 3.73

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/94370/ft1_filtered_4FGL_J1300.4+1416_daily_bin560.fits scfile=/scratch/kocevski/94370/ft2_4FGL_J1300.4+1416_daily_bin560.fits outfile=/scratch/kocevski/94370/cmap_384480001_384739201_4FGL_J1300.4+1416_daily_bin560.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94370/ft1_filtered_4FGL_J1300.4+1416_daily_bin560.fits scfile=/scratch/kocevski/94370/ft2_4FGL_J1300.4+1416_daily_bin560.fits outfile=/scratch/kocevski/94370/cmap_HighResolution_384480001_384739201_4FGL_J1300.4+1416_daily_bin560.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.785       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    117.61       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4776       1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.862       1.0000         .10000E-03   10000.    
     7 'norm      '    14.084       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .68590       1.0000         .10000E-03   10000.    
    13 'norm      '    11.969       1.0000         .10000E-03   10000.    
    14 'norm      '    7.7110       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    13.125       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.7927       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .64139       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=   7134.935     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2323 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    3.9218        .21119E-05** at limit **
   2  Prefactor     13.808        44.020        .12943E-05    .86649E-04
   3  norm          .10000E-03    .12462       -.66186E-07** at limit **
   4  Prefactor     117.57        194.65       -.55444E-06   -.78370E-05
   5  Prefactor     5.4773        5.6031       -.20508E-05   -.11339E-02
   6  Prefactor     41.865        27.166        .51714E-06    .19374E-04
   7  norm          14.085        2.9501        .12967E-07    .13440E-03
   8  Prefactor     .10000E-03    30.777        .26397E-06** at limit **
   9  Prefactor     .10000E-03    3.9362       -.11657E-06** at limit **
  10  Prefactor     .10000E-03    19.074        .11176E-05** at limit **
  11  Prefactor     .10000E-03    7.1688       -.10667E-06** at limit **
  12  norm          .68716        2.8964        .70717E-06   -.94423E-04
  13  norm          11.970        13.473       -.11646E-06   -.26403E-04
  14  norm          7.7113        6.0108       -.62013E-07   -.40562E-04
  15  Prefactor     .10000E-03    4.7924       -.74822E-07** at limit **
  16  Prefactor     .10000E-03    33.170       -.80231E-06** at limit **
  17  norm          13.125        9.8895       -.28388E-08    .70356E-05
  18  Prefactor     .10000E-03    13.542       -.54785E-06** at limit **
  19  Normalizat    1.7927        .21113        .28412E-06   -.10277E-03
  20  Prefactor     .64132        .17334        .10521E-06   -.35292E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010006
  Prefactor  = 13.808
  norm       = 0.0001
  Prefactor  = 117.568
  Prefactor  = 5.47734
  Prefactor  = 41.8649
  norm       = 14.0847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.687156
  norm       = 11.9696
  norm       = 7.71129
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 13.1255
  Prefactor  = 0.000100001
  Normalizat = 1.79275
  Prefactor  = 0.64132
 **********
 **   18 **HESSE 
 **********

 FCN=   7134.935     FROM HESSE     STATUS=OK           291 CALLS     2614 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    9.8787        .22772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.808        44.201        .10788E-03   -1.4965    
   3  norm          .10000E-03    .27225        .57271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     117.57        194.72        .37104E-04   -1.3535    
   5  Prefactor     5.4773        5.9026        .85840E-03   -1.5240    
   6  Prefactor     41.865        27.226        .61957E-04   -1.4413    
   7  norm          14.085        2.9492        .63600E-04   -1.4957    
   8  Prefactor     .10000E-03    30.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.9665        .16366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.647        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.2186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .68716        5.1581        .26921E-02   -1.5542    
  13  norm          11.970        13.465        .11579E-03   -1.5016    
  14  norm          7.7113        6.0071        .14441E-03   -1.5153    
  15  Prefactor     .10000E-03    4.8095        .18058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    33.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          13.125        9.8811        .11056E-03   -1.4983    
  18  Prefactor     .10000E-03    13.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.7927        .25044        .24779E-03   -.69853    
  20  Prefactor     .64132        .20617        .32346E-03   -1.0587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71442e-08
Minuit parameter uncertainties:
  1  0.00153557
  2  44.3065
  3  2.33917e-06
  4  195.792
  5  5.9032
  6  27.2341
  7  2.94919
  8  0.000106497
  9  1.10385e-05
  10  0.000305908
  11  2.2711e-05
  12  3.76549
  13  13.4686
  14  6.00762
  15  6.10186e-06
  16  0.000347531
  17  9.88236
  18  0.000190462
  19  0.250619
  20  0.206415
Done.

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

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.271e-05  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:  6.413e-01  2.064e-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.793e+00  2.506e-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: 7.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/94370/likelihoodResults_384480001_384739201_4FGL_J1300.4+1416_daily_bin560.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) = 7134.93599627
delta logL = -0.00065934621216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7134.93533693
delta logL = -5.25051291334e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7201       1.0000          .0000       10.000    
     3 'Normalizat'    1.7928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64131       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=   7134.935     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      249 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10226E-03    19.945        .18142E-01** at limit **
   2  Index         2.6202        5.2329        .50000        .15608E-04
   3  Normalizat    1.7927        .83577E-02    .24779E-03   -.76822E-04
   4  Prefactor     .64132        .69742E-02    .32346E-03    .50260E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102261
  Index      = 2.62016
  Normalizat = 1.79275
  Prefactor  = 0.64132
 **********
 **   18 **HESSE 
 **********

 FCN=   7134.935     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10226E-03    632.85        .45379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6202        6.8598        .50000       -.49606    
   3  Normalizat    1.7927        .51985E-01    .49558E-04   -.69853    
   4  Prefactor     .64132        .43378E-01    .12938E-04   -1.0587    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.49448e-07
Minuit parameter uncertainties:
  1  0.0764688
  2  1295.2
  3  0.0519863
  4  0.0433805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94370': 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) = 7134.93533656
delta logL = 3.621344149e-07

Extracting fit parameters...

4FGL J1300.4+1416
   Spectrum: PowerLaw
297    Prefactor:  1.023e-04  7.647e-02  1.000e-04  1.000e+04 ( 1.000e-12)
298        Index:  2.620e+00  1.295e+03  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:  6.413e-01  4.338e-02  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.793e+00  5.199e-02  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/94370/cmap_HighResolution_384480001_384739201_4FGL_J1300.4+1416_daily_bin560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', job_status='DONE', photon_flux_upper_limit='7.86e-08', time_completed='2021-09-06 14:45:51.111842', job_id='94370', GAL2='0.64', fit_tolerance='1e-08', EG2='1.79', EG='1.79', time_epoch_completed='1630964751.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='3.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='560' AND source_name='4FGL J1300.4+1416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:45:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 94370: <4FGL_J1300.4+1416_daily_bin560> in cluster <slac> Done

Job <4FGL_J1300.4+1416_daily_bin560> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 14:30:52 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:30:54 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:30:54 2021
Terminated at Mon Sep  6 14:45:51 2021
Results reported at Mon Sep  6 14:45:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1300.4+1416_daily_bin560 195.12 14.2701 384480001 384739201 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 :                                   654.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             227.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            899 sec.

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

