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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin276
RA = 195.418, Dec = 33.6097
tmin = 310867201, tmax = 311126401
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='101357', job_status='RUN', time_executed='2021-09-06 14:50:59.607653', time_epoch_executed='1630965059.61' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101357

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101357/ft1_4FGL_J1301.6+3336_daily_bin276.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101357/ft2_4FGL_J1301.6+3336_daily_bin276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101357/ft1_4FGL_J1301.6+3336_daily_bin276.fits outfile=/scratch/kocevski/101357/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin276.fits ra=195.418 dec=33.6097 rad=12.0 tmin=310867201.0 tmax=311126401.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.55
user 3.29
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/101357/ft2_4FGL_J1301.6+3336_daily_bin276.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/101357/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin276.fits evtable="EVENTS" outfile="/scratch/kocevski/101357/ft1_filtered_4FGL_J1301.6+3336_daily_bin276.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.58
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101357/ft1_filtered_4FGL_J1301.6+3336_daily_bin276.fits evtable="EVENTS" scfile=/scratch/kocevski/101357/ft2_4FGL_J1301.6+3336_daily_bin276.fits sctable="SC_DATA" expcube=/scratch/kocevski/101357/ltcube_310867201_311126401_4FGL_J1301.6+3336_daily_bin276.fits outfile=/scratch/kocevski/101357/expmap_310867201_311126401_4FGL_J1301.6+3336_daily_bin276.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/101357/ltcube_310867201_311126401_4FGL_J1301.6+3336_daily_bin276.fits
.....................!
real 198.63
user 193.16
sys 4.87

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/101357/ft1_filtered_4FGL_J1301.6+3336_daily_bin276.fits scfile=/scratch/kocevski/101357/ft2_4FGL_J1301.6+3336_daily_bin276.fits outfile=/scratch/kocevski/101357/cmap_310867201_311126401_4FGL_J1301.6+3336_daily_bin276.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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101357/ft1_filtered_4FGL_J1301.6+3336_daily_bin276.fits scfile=/scratch/kocevski/101357/ft2_4FGL_J1301.6+3336_daily_bin276.fits outfile=/scratch/kocevski/101357/cmap_HighResolution_310867201_311126401_4FGL_J1301.6+3336_daily_bin276.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12897E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.9272       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2376       1.0000         .10000E-03   10000.    
     6 'norm      '    .20144E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .39692       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11475E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.741       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .62248E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.355       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.711       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    27.260       1.0000         .10000E-03   10000.    
    19 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    30.051       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.592       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11501E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .16540       1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.472       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.0749       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1547       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94445       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=   5715.911     FROM MIGRAD    STATUS=CONVERGED    837 CALLS     4653 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.916        .31451E-05** at limit **
   2  norm          5.9268        3.0099       -.14423E-07   -.46509E-04
   3  Prefactor     .10000E-03    1.8919        .23479E-07** at limit **
   4  Prefactor     .10000E-03    1.1357        .96211E-08** at limit **
   5  Prefactor     2.2387        2.5548        .46716E-07   -.12233E-03
   6  norm          .10000E-03    3.2580        .78887E-07** at limit **
   7  Prefactor     .38487        9.2528        .26473E-06   -.61004E-04
   8  Prefactor     .10000E-03    6.0609        .36099E-07** at limit **
   9  Prefactor     .10000E-03    54.075       -.20221E-05** at limit **
  10  Prefactor     10.740        10.993        .17888E-06   -.11485E-04
  11  Prefactor     .10000E-03    1.8555        .74381E-07** at limit **
  12  norm          .10025E-03    3.7153        .12658E-05** at limit **
  13  Prefactor     .10000E-03    20.726        .11301E-07** at limit **
  14  Prefactor     20.339        29.903       -.29013E-05   -.19903E-03
  15  norm          .10000E-03    2.5719       -.12490E-06** at limit **
  16  Prefactor     16.712        14.687        .31097E-07   -.10077E-03
  17  norm          .10000E-03    2.1420        .10323E-06** at limit **
  18  norm          27.281        17.978        .10630E-06   -.68522E-05
  19  norm          .10000E-03    4.2265        .21400E-06** at limit **
  20  norm          .10000E-03    3.0829        .56898E-07** at limit **
  21  norm          30.060        28.120       -.13402E-05   -.19225E-05
  22  Prefactor     .10000E-03    2.7878        .38966E-06** at limit **
  23  Prefactor     14.622        22.393       -.37401E-07   -.25935E-03
  24  Prefactor     .10000E-03    36.683       -.15545E-05** at limit **
  25  Prefactor     .10000E-03    7.9420       -.45757E-07** at limit **
  26  Prefactor     .50935E-01    20.295       -.64842E-06    .12944E-03
  27  Prefactor     17.460        73.133       -.18781E-05   -.91754E-05
  28  Prefactor     4.0745        5.3359        .25730E-06   -.53294E-04
  29  Normalizat    1.1551        .18702       -.45460E-06   -.25040E-03
  30  Prefactor     .94414        .21671       -.97635E-07   -.16729E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.92682
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.23866
  norm       = 0.0001
  Prefactor  = 0.384869
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7397
  Prefactor  = 0.0001
  norm       = 0.000100248
  Prefactor  = 0.0001
  Prefactor  = 20.3391
  norm       = 0.000100001
  Prefactor  = 16.7124
  norm       = 0.0001
  norm       = 27.2807
  norm       = 0.0001
  norm       = 0.0001
  norm       = 30.0602
  Prefactor  = 0.000100001
  Prefactor  = 14.6223
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0509348
  Prefactor  = 17.4599
  Prefactor  = 4.07447
  Normalizat = 1.15514
  Prefactor  = 0.94414
 **********
 **   18 **HESSE 
 **********

 FCN=   5715.911     FROM HESSE     STATUS=OK           600 CALLS     5253 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.9268        2.9975        .88702E-04   -1.5221    
   3  Prefactor     .10000E-03    1.8942        .10156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.1485        .78419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2387        2.5345        .11777E-03   -1.5409    
   6  norm          .10000E-03    8.4867        .26356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .38487        63.718        .42345E-02   -1.5584    
   8  Prefactor     .10000E-03    6.0640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    53.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.740        10.955        .12225E-03   -1.5052    
  11  Prefactor     .10000E-03    1.8588        .10058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10025E-03    55.793        .24258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.339        30.122        .88777E-04   -1.4806    
  15  norm          .10000E-03    6.2285        .23296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.712        14.667        .97975E-04   -1.4890    
  17  norm          .10000E-03    2.1528        .10804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          27.281        17.982        .76730E-04   -1.4663    
  19  norm          .10000E-03    4.3640        .30234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.0952        .12959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          30.060        27.865        .73088E-04   -1.4611    
  22  Prefactor     .10000E-03    27.547        .20857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.622        20.013        .10485E-03   -1.4943    
  24  Prefactor     .10000E-03    36.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.9518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .50935E-01    26.641        .96165E-01   -1.5663    
  27  Prefactor     17.460        73.847        .95817E-04   -1.4872    
  28  Prefactor     4.0745        5.3287        .19023E-03   -1.5304    
  29  Normalizat    1.1551        .22952        .23087E-03   -.88000    
  30  Prefactor     .94414        .26257        .30335E-03   -.94615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8901e-08
Minuit parameter uncertainties:
  1  2.22679e-05
  2  2.99754
  3  3.26284e-08
  4  2.4297e-07
  5  2.53467
  6  2.10965e-05
  7  9.91361
  8  1.86867e-07
  9  1.80306e-05
  10  10.957
  11  1.65424e-07
  12  0.0074484
  13  8.02822e-07
  14  30.1446
  15  0.000158477
  16  14.6702
  17  5.1855e-07
  18  17.986
  19  1.02291e-05
  20  1.09397e-06
  21  27.8765
  22  0.00039603
  23  20.0222
  24  1.6343e-05
  25  7.55203e-06
  26  2.32851
  27  71.9674
  28  5.32933
  29  0.229719
  30  0.262927
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  2.034e+01  3.014e+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:  9.441e-01  2.629e-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.155e+00  2.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.57
Ra Dec: 195.418 33.610
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/101357/likelihoodResults_310867201_311126401_4FGL_J1301.6+3336_daily_bin276.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) = 5714.17940864
delta logL = 1.73116171788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5714.15603493
delta logL = 1.75453543067

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23861       1.0000         .10000E-03   10000.    
     2 'Index     '    5.8286       1.0000          .0000       10.000    
     3 'Normalizat'    1.0392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0487       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=   5714.156     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      338 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23671        2.1057        .46106E-02    .12414E-02
   2  Index         5.8327        2.6032        .98753E-01    .14870E-03
   3  Normalizat    1.0397        .53714E-01    .41342E-01    .91585E-05
   4  Prefactor     1.0482        .64757E-01    .65488E-01    .11070E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.236708
  Index      = 5.83266
  Normalizat = 1.03975
  Prefactor  = 1.04821
 **********
 **   18 **HESSE 
 **********

 FCN=   5714.156     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      371 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23671        4.0080        .20777E-04   -1.5611    
   2  Index         5.8327        3.7373        .39808E-02    .16731    
   3  Normalizat    1.0397        .19394        .24107E-03   -.91711    
   4  Prefactor     1.0482        .22881        .28968E-03   -.91139    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.82906e-10
Minuit parameter uncertainties:
  1  1.9478
  2  4.24146
  3  0.194068
  4  0.229026
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101357': 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) = 5714.15603071
delta logL = 1.75453964805

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  2.367e-01  1.948e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  5.833e+00  4.241e+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:  1.048e+00  2.290e-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.040e+00  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.43
Ra Dec: 195.418 33.610
Photon Index (Free Index): 5.83 +/- 4.24
Photon Flux (Free Index): 1.19e-07 +/- 6.92e-08
Energy Flux (Free Index): 1.49e-05 +/- 9.77e-06

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/101357/cmap_HighResolution_310867201_311126401_4FGL_J1301.6+3336_daily_bin276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', comment='SUCCESS', energy_flux2='1.49e-05', dlogl='1.75e+00', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-06 15:05:17.983605', photon_index_error2='4.24', photon_index2='5.83', ts='0.57', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='9.77e-06', EG='1.16', time_epoch_completed='1630965917.98', return_code='0', job_id='101357', GAL2='1.05', EG2='1.04', return_code2='102', photon_flux_error2='6.92e-08', ts2='4.43', photon_index='2.59' WHERE bin_id='276' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:05:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 101357: <4FGL_J1301.6+3336_daily_bin276> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin276> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 14:50:47 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:50:48 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:50:48 2021
Terminated at Mon Sep  6 15:05:18 2021
Results reported at Mon Sep  6 15:05:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin276 195.418 33.6097 310867201 311126401 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 :                                   846.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             364.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            871 sec.

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

