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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin59
RA = 195.418, Dec = 33.6097
tmin = 254620801, tmax = 254880001
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='99739', job_status='RUN', time_executed='2021-09-06 14:48:29.477760', time_epoch_executed='1630964909.48' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='59'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99739

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99739/ft1_4FGL_J1301.6+3336_daily_bin59.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99739/ft2_4FGL_J1301.6+3336_daily_bin59.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99739/ft1_4FGL_J1301.6+3336_daily_bin59.fits outfile=/scratch/kocevski/99739/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin59.fits ra=195.418 dec=33.6097 rad=12.0 tmin=254620801.0 tmax=254880001.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.50
user 1.13
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/99739/ft2_4FGL_J1301.6+3336_daily_bin59.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/99739/ft2_4FGL_J1301.6+3336_daily_bin59.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/99739/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin59.fits evtable="EVENTS" outfile="/scratch/kocevski/99739/ft1_filtered_4FGL_J1301.6+3336_daily_bin59.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99739/ft1_filtered_4FGL_J1301.6+3336_daily_bin59.fits" evtable="EVENTS" scfile=/scratch/kocevski/99739/ft2_4FGL_J1301.6+3336_daily_bin59.fits sctable="SC_DATA" outfile=/scratch/kocevski/99739/ltcube_254620801_254880001_4FGL_J1301.6+3336_daily_bin59.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/99739/ft2_4FGL_J1301.6+3336_daily_bin59.fits
.....................!
real 11.54
user 11.16
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99739/ft1_filtered_4FGL_J1301.6+3336_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/99739/ft2_4FGL_J1301.6+3336_daily_bin59.fits sctable="SC_DATA" expcube=/scratch/kocevski/99739/ltcube_254620801_254880001_4FGL_J1301.6+3336_daily_bin59.fits outfile=/scratch/kocevski/99739/expmap_254620801_254880001_4FGL_J1301.6+3336_daily_bin59.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/99739/ltcube_254620801_254880001_4FGL_J1301.6+3336_daily_bin59.fits
.....................!
real 190.83
user 185.25
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 179 point sources and 0 extended sources

Setting source of interest to:
4FGL J1301.6+3336 @ 195.418 33.6097

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/99739/ft1_filtered_4FGL_J1301.6+3336_daily_bin59.fits scfile=/scratch/kocevski/99739/ft2_4FGL_J1301.6+3336_daily_bin59.fits outfile=/scratch/kocevski/99739/cmap_254620801_254880001_4FGL_J1301.6+3336_daily_bin59.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.418 yref=33.6097 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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99739/ft1_filtered_4FGL_J1301.6+3336_daily_bin59.fits scfile=/scratch/kocevski/99739/ft2_4FGL_J1301.6+3336_daily_bin59.fits outfile=/scratch/kocevski/99739/cmap_HighResolution_254620801_254880001_4FGL_J1301.6+3336_daily_bin59.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.418 yref=33.6097 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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/99739/ft1_filtered_4FGL_J1301.6+3336_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/99739/ft2_4FGL_J1301.6+3336_daily_bin59.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/99739/Model_4FGL_J1301.6+3336_daily_bin59.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/99739/ft1_filtered_4FGL_J1301.6+3336_daily_bin59.fits.....................!
real 44.33
user 42.95
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/99739/ft1_filtered_4FGL_J1301.6+3336_daily_bin59.fits', '/scratch/kocevski/99739/ft2_4FGL_J1301.6+3336_daily_bin59.fits', expMap='/scratch/kocevski/99739/expmap_254620801_254880001_4FGL_J1301.6+3336_daily_bin59.fits', expCube='/scratch/kocevski/99739/ltcube_254620801_254880001_4FGL_J1301.6+3336_daily_bin59.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/99739/Model_4FGL_J1301.6+3336_daily_bin59.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1301.6+3336'

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  4.837e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.593e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  8.366e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/99739/ft1_filtered_4FGL_J1301.6+3336_daily_bin59.fits
Spacecraft file(s): /scratch/kocevski/99739/ft2_4FGL_J1301.6+3336_daily_bin59.fits
Exposure map: /scratch/kocevski/99739/expmap_254620801_254880001_4FGL_J1301.6+3336_daily_bin59.fits
Exposure cube: /scratch/kocevski/99739/ltcube_254620801_254880001_4FGL_J1301.6+3336_daily_bin59.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/99739/Model_4FGL_J1301.6+3336_daily_bin59.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) = 5218.49951798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    3.8896       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0030       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9735       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.1784       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.506       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.9150       1.0000         .10000E-03   10000.    
    13 'Prefactor '    54.133       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3955       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7124       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.121       1.0000         .10000E-03   10000.    
    17 'norm      '    .77463       1.0000         .10000E-03   10000.    
    18 'norm      '    8.1483       1.0000         .10000E-03   10000.    
    19 'norm      '    11.872       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    38.870       1.0000         .10000E-03   10000.    
    27 'Prefactor '    31.242       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .93742       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .87430       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5218.499     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3840 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.1130         .0000    ** at limit **
   2  norm          3.8896        3.3902         .0000        .16080E-03
   3  Prefactor     6.0031        6.1998         .0000        .16647E-03
   4  Prefactor     5.9735        3.4345         .0000        .33157E-04
   5  Prefactor     .10000E-03    .94933         .0000    ** at limit **
   6  norm          5.1786        5.0966         .0000        .32866E-03
   7  Prefactor     10.506        9.1780         .0000        .42497E-04
   8  Prefactor     .10002E-03    5.4827         .0000    ** at limit **
   9  Prefactor     .10000E-03    50.577         .0000    ** at limit **
  10  Prefactor     .10000E-03    1.8670         .0000    ** at limit **
  11  Prefactor     .10001E-03    3.9602         .0000    ** at limit **
  12  norm          9.9138        5.3287         .0000       -.10028E-03
  13  Prefactor     54.134        63.376         .0000       -.63534E-03
  14  Prefactor     9.3955        16.404         .0000        .61099E-03
  15  norm          2.7123        2.5584         .0000       -.68609E-04
  16  Prefactor     15.123        12.466         .0000        .32643E-03
  17  norm          .77485        4.1631         .0000        .26972E-01
  18  norm          8.1483        8.7906         .0000       -.94138E-03
  19  norm          11.872        4.1936         .0000       -.10104E-02
  20  norm          .10003E-03    4.6141         .0000    ** at limit **
  21  norm          .10002E-03    10.512         .0000    ** at limit **
  22  Prefactor     .10000E-03    .79341         .0000    ** at limit **
  23  Prefactor     .10000E-03    3.4165         .0000    ** at limit **
  24  Prefactor     .10001E-03    15.371         .0000    ** at limit **
  25  Prefactor     .10003E-03    7.7810         .0000    ** at limit **
  26  Prefactor     38.869        24.439         .0000        .46918E-03
  27  Prefactor     31.241        60.426         .0000        .92729E-03
  28  Prefactor     .10000E-03    1.9186         .0000    ** at limit **
  29  Normalizat    .93733        .17232         .0000        .13097E-04
  30  Prefactor     .87438        .20990         .0000        .10588E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 3.88964
  Prefactor  = 6.0031
  Prefactor  = 5.9735
  Prefactor  = 0.0001
  norm       = 5.17858
  Prefactor  = 10.5058
  Prefactor  = 0.000100024
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 9.91385
  Prefactor  = 54.134
  Prefactor  = 9.39548
  norm       = 2.71233
  Prefactor  = 15.1229
  norm       = 0.774853
  norm       = 8.14826
  norm       = 11.8724
  norm       = 0.000100031
  norm       = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.000100032
  Prefactor  = 38.8691
  Prefactor  = 31.2407
  Prefactor  = 0.0001
  Normalizat = 0.93733
  Prefactor  = 0.874381
 **********
 **   18 **HESSE 
 **********

 FCN=   5218.499     FROM HESSE     STATUS=OK           580 CALLS     4420 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8896        3.4060        .10856E-03   -1.5313    
   3  Prefactor     6.0031        6.1961        .16388E-03   -1.5218    
   4  Prefactor     5.9735        3.4552        .88337E-04   -1.5219    
   5  Prefactor     .10000E-03    .96034        .68643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.1786        5.0915        .15567E-03   -1.5253    
   7  Prefactor     10.506        9.1721        .12361E-03   -1.5060    
   8  Prefactor     .10002E-03    5.4834        .16521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    50.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8683        .96398E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    4.0709        .28053E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.9138        5.3285        .11531E-03   -1.5078    
  13  Prefactor     54.134        63.499        .54516E-04   -1.4235    
  14  Prefactor     9.3955        16.381        .65372E-03   -1.5095    
  15  norm          2.7123        2.5663        .10899E-03   -1.5379    
  16  Prefactor     15.123        12.402        .10300E-03   -1.4930    
  17  norm          .77485        4.0843        .13954E-02   -1.5532    
  18  norm          8.1483        8.7913        .70226E-03   -1.5137    
  19  norm          11.872        4.1812        .83956E-04   -1.5019    
  20  norm          .10003E-03    4.6305        .15101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10002E-03    10.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .79691        .62810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.4210        .13040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    15.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10003E-03    7.7976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     38.869        24.465        .64289E-04   -1.4460    
  27  Prefactor     31.241        60.622        .71685E-04   -1.4590    
  28  Prefactor     .10000E-03    1.9475        .97684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .93733        .20374        .22861E-03   -.95161    
  30  Prefactor     .87438        .24674        .29301E-03   -.97042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44546e-08
Minuit parameter uncertainties:
  1  0.000166393
  2  3.40615
  3  6.19675
  4  3.45527
  5  3.47011e-07
  6  5.09196
  7  9.17331
  8  0.000722936
  9  0.000564603
  10  3.74051e-06
  11  0.000362237
  12  5.32878
  13  63.5785
  14  16.3892
  15  2.56644
  16  12.4044
  17  3.55809
  18  8.79272
  19  4.1813
  20  0.000763832
  21  0.00100682
  22  3.66279e-07
  23  5.01225e-05
  24  0.000649096
  25  0.000992928
  26  24.4712
  27  60.7416
  28  2.54678e-06
  29  0.203905
  30  0.247052
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  9.395e+00  1.639e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.593e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  8.366e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  8.744e-01  2.471e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  9.373e-01  2.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.48
Ra Dec: 195.418 33.610
Photon Flux Upper Limit: 8.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/99739/likelihoodResults_254620801_254880001_4FGL_J1301.6+3336_daily_bin59.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) = 5218.48587052
delta logL = 0.0126993976464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5218.4796166
delta logL = 0.0189533167631

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.678       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3781       1.0000          .0000       10.000    
     3 'Normalizat'    .93897       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87281       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+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=   5218.480     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      234 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.682        22.283        .11723E-03   -.90832E-03
   2  Index         2.3778        1.0908        .12106E-01   -.31274E-03
   3  Normalizat    .93897        .19663        .22843E-03    .47678E-03
   4  Prefactor     .87283        .24457        .29323E-03    .36897E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6824
  Index      = 2.37784
  Normalizat = 0.938975
  Prefactor  = 0.872826
 **********
 **   18 **HESSE 
 **********

 FCN=   5218.480     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.682        21.487        .23445E-04   -1.5024    
   2  Index         2.3778        1.0529        .48426E-03   -.55205    
   3  Normalizat    .93897        .19677        .45687E-04   -.95104    
   4  Prefactor     .87283        .24474        .58646E-04   -.97097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.12738e-09
Minuit parameter uncertainties:
  1  21.5017
  2  1.06397
  3  0.196925
  4  0.24505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99739': 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) = 5218.47961656
delta logL = 0.0189533588846

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.168e+01  2.150e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.378e+00  1.064e+00  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  8.366e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  8.728e-01  2.451e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  9.390e-01  1.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.48
Ra Dec: 195.418 33.610

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/99739/cmap_HighResolution_254620801_254880001_4FGL_J1301.6+3336_daily_bin59.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.59e-03', job_status='DONE', photon_flux_upper_limit='8.42e-08', time_completed='2021-09-06 15:00:41.517434', job_id='99739', GAL2='0.87', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630965641.52', return_code2='0', ts='0.48', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.90e-02', ts2='0.52', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='59' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:00:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 99739: <4FGL_J1301.6+3336_daily_bin59> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin59> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 14:46:01 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:46:02 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:46:02 2021
Terminated at Mon Sep  6 15:00:42 2021
Results reported at Mon Sep  6 15:00:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin59 195.418 33.6097 254620801 254880001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1301.6+3336 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   729.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

