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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin53
RA = 195.418, Dec = 33.6097
tmin = 253065601, tmax = 253324801
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='99733', job_status='RUN', time_executed='2021-09-06 14:49:10.591049', time_epoch_executed='1630964950.59' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='53'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99733

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99733/ft1_4FGL_J1301.6+3336_daily_bin53.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99733/ft2_4FGL_J1301.6+3336_daily_bin53.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99733/ft1_4FGL_J1301.6+3336_daily_bin53.fits outfile=/scratch/kocevski/99733/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin53.fits ra=195.418 dec=33.6097 rad=12.0 tmin=253065601.0 tmax=253324801.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.43
user 1.25
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99733/ft1_filtered_4FGL_J1301.6+3336_daily_bin53.fits" evtable="EVENTS" scfile=/scratch/kocevski/99733/ft2_4FGL_J1301.6+3336_daily_bin53.fits sctable="SC_DATA" outfile=/scratch/kocevski/99733/ltcube_253065601_253324801_4FGL_J1301.6+3336_daily_bin53.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/99733/ft2_4FGL_J1301.6+3336_daily_bin53.fits
.....................!
real 12.61
user 12.26
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99733/ft1_filtered_4FGL_J1301.6+3336_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/99733/ft2_4FGL_J1301.6+3336_daily_bin53.fits sctable="SC_DATA" expcube=/scratch/kocevski/99733/ltcube_253065601_253324801_4FGL_J1301.6+3336_daily_bin53.fits outfile=/scratch/kocevski/99733/expmap_253065601_253324801_4FGL_J1301.6+3336_daily_bin53.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/99733/ltcube_253065601_253324801_4FGL_J1301.6+3336_daily_bin53.fits
.....................!
real 191.29
user 186.51
sys 4.36

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/99733/ft1_filtered_4FGL_J1301.6+3336_daily_bin53.fits scfile=/scratch/kocevski/99733/ft2_4FGL_J1301.6+3336_daily_bin53.fits outfile=/scratch/kocevski/99733/cmap_253065601_253324801_4FGL_J1301.6+3336_daily_bin53.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.72
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99733/ft1_filtered_4FGL_J1301.6+3336_daily_bin53.fits scfile=/scratch/kocevski/99733/ft2_4FGL_J1301.6+3336_daily_bin53.fits outfile=/scratch/kocevski/99733/cmap_HighResolution_253065601_253324801_4FGL_J1301.6+3336_daily_bin53.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.58
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/99733/ft1_filtered_4FGL_J1301.6+3336_daily_bin53.fits', '/scratch/kocevski/99733/ft2_4FGL_J1301.6+3336_daily_bin53.fits', expMap='/scratch/kocevski/99733/expmap_253065601_253324801_4FGL_J1301.6+3336_daily_bin53.fits', expCube='/scratch/kocevski/99733/ltcube_253065601_253324801_4FGL_J1301.6+3336_daily_bin53.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/99733/Model_4FGL_J1301.6+3336_daily_bin53.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/99733/ft1_filtered_4FGL_J1301.6+3336_daily_bin53.fits
Spacecraft file(s): /scratch/kocevski/99733/ft2_4FGL_J1301.6+3336_daily_bin53.fits
Exposure map: /scratch/kocevski/99733/expmap_253065601_253324801_4FGL_J1301.6+3336_daily_bin53.fits
Exposure cube: /scratch/kocevski/99733/ltcube_253065601_253324801_4FGL_J1301.6+3336_daily_bin53.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/99733/Model_4FGL_J1301.6+3336_daily_bin53.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) = 5626.23853872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.2341       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16258E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2081       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.6391       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5274       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.1621       1.0000         .10000E-03   10000.    
    13 'Prefactor '    49.874       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.684       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.8884       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.6506       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 '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.1840       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0594       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .83854       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.

 FCN=   5626.237     FROM MIGRAD    STATUS=CONVERGED    771 CALLS     3948 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    112.25       -.17445E-05** at limit **
   2  norm          6.2314        3.1532       -.28426E-07   -.13981E-05
   3  Prefactor     .10002E-03    11.449       -.53888E-05** at limit **
   4  Prefactor     .10000E-03    1.6111        .14204E-06** at limit **
   5  Prefactor     5.2073        2.5460        .66385E-07    .81171E-04
   6  norm          .10000E-03    1.3713        .91020E-08** at limit **
   7  Prefactor     8.6385        7.7079       -.79931E-06   -.52428E-03
   8  Prefactor     6.5280        9.9428        .24481E-05    .67005E-03
   9  Prefactor     .10000E-03    38.079       -.23869E-06** at limit **
  10  Prefactor     .10000E-03    3.3822        .12644E-07** at limit **
  11  Prefactor     .10000E-03    2.2901       -.16604E-07** at limit **
  12  norm          9.1619        5.4900       -.20982E-06   -.29827E-03
  13  Prefactor     49.881        50.864        .41359E-06    .69844E-04
  14  Prefactor     .10000E-03    23.937       -.12159E-05** at limit **
  15  norm          11.684        4.5035        .21049E-07    .10766E-04
  16  Prefactor     .10000E-03    5.6591        .11771E-06** at limit **
  17  norm          .10000E-03    2.0745        .38082E-07** at limit **
  18  norm          .10000E-03    6.2678       -.86051E-07** at limit **
  19  norm          5.8893        3.8823       -.17323E-07   -.35010E-04
  20  norm          .10000E-03    4.2203        .51185E-06** at limit **
  21  norm          8.6507        10.143       -.15413E-07   -.82345E-05
  22  Prefactor     .10000E-03    1.4604        .13489E-06** at limit **
  23  Prefactor     .10000E-03    3.3788        .75804E-07** at limit **
  24  Prefactor     .10000E-03    15.827        .95609E-06** at limit **
  25  Prefactor     .10000E-03    19.467        .12528E-05** at limit **
  26  Prefactor     .10000E-03    8.3093        .16626E-06** at limit **
  27  Prefactor     .10001E-03    41.122        .15105E-05** at limit **
  28  Prefactor     5.1842        4.0959        .13804E-06    .15583E-03
  29  Normalizat    1.0593        .16507       -.58378E-06    .10620E-03
  30  Prefactor     .83856        .20328        .41534E-06    .12115E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 6.2314
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 5.20733
  norm       = 0.0001
  Prefactor  = 8.63849
  Prefactor  = 6.52803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.1619
  Prefactor  = 49.8807
  Prefactor  = 0.000100005
  norm       = 11.6838
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.88928
  norm       = 0.0001
  norm       = 8.65066
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 5.18423
  Normalizat = 1.05934
  Prefactor  = 0.838562
 **********
 **   18 **HESSE 
 **********

 FCN=   5626.237     FROM HESSE     STATUS=OK           580 CALLS     4528 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    114.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.2314        3.0395        .87257E-04   -1.5209    
   3  Prefactor     .10002E-03    13.856        .30921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4536        .17667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.2073        2.5326        .78621E-04   -1.5252    
   6  norm          .10000E-03    1.3761        .85775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.6385        7.8232        .68189E-03   -1.5120    
   8  Prefactor     6.5280        10.528        .78540E-03   -1.5197    
   9  Prefactor     .10000E-03    38.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.3992        .13471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.3013        .11084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.1619        5.4997        .12857E-03   -1.5103    
  13  Prefactor     49.881        50.928        .56785E-04   -1.4294    
  14  Prefactor     .10000E-03    24.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.684        4.5028        .95608E-04   -1.5024    
  16  Prefactor     .10000E-03    5.6730        .17430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.0880        .10549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.2802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.8893        3.8677        .11261E-03   -1.5223    
  20  norm          .10000E-03    4.2568        .15030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.6507        10.143        .13629E-03   -1.5120    
  22  Prefactor     .10000E-03    1.4866        .88462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.3827        .13465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    20.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.3283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    41.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     5.1842        4.0966        .13022E-03   -1.5253    
  29  Normalizat    1.0593        .19287        .21692E-03   -.91068    
  30  Prefactor     .83856        .23711        .29856E-03   -.98322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39184e-09
Minuit parameter uncertainties:
  1  0.00122387
  2  3.03955
  3  0.00113951
  4  2.15833e-05
  5  2.53265
  6  9.9444e-07
  7  7.82415
  8  10.5306
  9  0.000163527
  10  2.2897e-06
  11  1.72591e-06
  12  5.50001
  13  50.9721
  14  0.000674426
  15  4.50293
  16  2.60699e-05
  17  3.36519e-06
  18  3.09907e-05
  19  3.86783
  20  5.00555e-05
  21  10.1455
  22  8.5981e-06
  23  7.23782e-06
  24  0.000377225
  25  0.000447759
  26  4.29061e-05
  27  0.000960943
  28  4.09687
  29  0.193
  30  0.237403
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  6.744e-04  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.386e-01  2.374e-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:  1.059e+00  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/99733/likelihoodResults_253065601_253324801_4FGL_J1301.6+3336_daily_bin53.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) = 5626.23717632
delta logL = -0.00019377312401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5626.23698115
delta logL = 1.39949679578e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16469E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2334       1.0000          .0000       10.000    
     3 'Normalizat'    1.0593       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83856       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.

 FCN=   5626.234     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      300 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30365        4.4031        .64326E-01    .36482E-03
   2  Index         3.8732        .93474        .50000        .48760E-05
   3  Normalizat    1.0546        .62397E-02    .39971E-01    .28381E-03
   4  Prefactor     .84201        .77721E-02    .67362E-01    .31418E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.303647
  Index      = 3.87324
  Normalizat = 1.0546
  Prefactor  = 0.842009
 **********
 **   18 **HESSE 
 **********

 FCN=   5626.234     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      333 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30365        2182.4        .20018E-02   -1.5598    
   2  Index         3.8732        5.7868        .92088E-02   -.22730    
   3  Normalizat    1.0546        .32914        .21733E-03   -.91223    
   4  Prefactor     .84201        .25247        .29800E-03   -.98198    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.14877e-06
Minuit parameter uncertainties:
  1  53.5619
  2  59.6724
  3  0.329784
  4  0.252817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99733': 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) = 5626.23396084
delta logL = 0.00302170647501

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  3.036e-01  5.356e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  3.873e+00  5.967e+01  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.420e-01  2.528e-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:  1.055e+00  3.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/99733/cmap_HighResolution_253065601_253324801_4FGL_J1301.6+3336_daily_bin53.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.45e-03', job_status='DONE', photon_flux_upper_limit='8.25e-08', time_completed='2021-09-06 15:02:27.821988', job_id='99733', GAL2='0.84', fit_tolerance='1e-08', EG2='1.05', EG='1.06', time_epoch_completed='1630965747.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='3.02e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='53' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:02:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 99733: <4FGL_J1301.6+3336_daily_bin53> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin53> 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) <bullet0101>, 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:02:28 2021
Results reported at Mon Sep  6 15:02:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin53 195.418 33.6097 253065601 253324801 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 :                                   792.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            987 sec.

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

