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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin598
RA = 195.418, Dec = 33.6097
tmin = 394329601, tmax = 394588801
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='103095', job_status='RUN', time_executed='2021-09-06 14:56:05.385770', time_epoch_executed='1630965365.39' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/103095

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/103095/ft1_4FGL_J1301.6+3336_daily_bin598.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/103095/ft2_4FGL_J1301.6+3336_daily_bin598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/103095/ft1_4FGL_J1301.6+3336_daily_bin598.fits outfile=/scratch/kocevski/103095/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin598.fits ra=195.418 dec=33.6097 rad=12.0 tmin=394329601.0 tmax=394588801.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 7.44
user 7.05
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/103095/ft2_4FGL_J1301.6+3336_daily_bin598.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/103095/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin598.fits evtable="EVENTS" outfile="/scratch/kocevski/103095/ft1_filtered_4FGL_J1301.6+3336_daily_bin598.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.53
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/103095/ft1_filtered_4FGL_J1301.6+3336_daily_bin598.fits" evtable="EVENTS" scfile=/scratch/kocevski/103095/ft2_4FGL_J1301.6+3336_daily_bin598.fits sctable="SC_DATA" outfile=/scratch/kocevski/103095/ltcube_394329601_394588801_4FGL_J1301.6+3336_daily_bin598.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/103095/ft2_4FGL_J1301.6+3336_daily_bin598.fits
.....................!
real 11.34
user 10.98
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/103095/ft1_filtered_4FGL_J1301.6+3336_daily_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/103095/ft2_4FGL_J1301.6+3336_daily_bin598.fits sctable="SC_DATA" expcube=/scratch/kocevski/103095/ltcube_394329601_394588801_4FGL_J1301.6+3336_daily_bin598.fits outfile=/scratch/kocevski/103095/expmap_394329601_394588801_4FGL_J1301.6+3336_daily_bin598.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/103095/ltcube_394329601_394588801_4FGL_J1301.6+3336_daily_bin598.fits
.....................!
real 191.38
user 185.53
sys 4.97

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/103095/ft1_filtered_4FGL_J1301.6+3336_daily_bin598.fits scfile=/scratch/kocevski/103095/ft2_4FGL_J1301.6+3336_daily_bin598.fits outfile=/scratch/kocevski/103095/cmap_394329601_394588801_4FGL_J1301.6+3336_daily_bin598.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/103095/ft1_filtered_4FGL_J1301.6+3336_daily_bin598.fits scfile=/scratch/kocevski/103095/ft2_4FGL_J1301.6+3336_daily_bin598.fits outfile=/scratch/kocevski/103095/cmap_HighResolution_394329601_394588801_4FGL_J1301.6+3336_daily_bin598.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/103095/ft1_filtered_4FGL_J1301.6+3336_daily_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/103095/ft2_4FGL_J1301.6+3336_daily_bin598.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/103095/Model_4FGL_J1301.6+3336_daily_bin598.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/103095/ft1_filtered_4FGL_J1301.6+3336_daily_bin598.fits.....................!
real 49.30
user 47.96
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.7874       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.882       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1202       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.752       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.472       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.623       1.0000         .10000E-03   10000.    
    15 'norm      '    .84347       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10467E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10259E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    14.138       1.0000         .10000E-03   10000.    
    20 'norm      '    .10176E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .47973       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .55041       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .16461E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1150       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0390       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=   5511.804     FROM MIGRAD    STATUS=CONVERGED   1396 CALLS     3974 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    74.534        .18142E-02** at limit **
   2  norm          8.7895        4.2697        .10060E-03   -.63170E-04
   3  Prefactor     22.885        13.577        .83736E-04    .50641E-04
   4  Prefactor     2.1202        2.1474        .10364E-03    .24023E-04
   5  Prefactor     .10000E-03    2.4877        .22429E-03** at limit **
   6  norm          10.755        6.5763        .12219E-03   -.58337E-04
   7  Prefactor     33.490        15.878        .69262E-04   -.71007E-04
   8  Prefactor     .10000E-03    6.3021        .18142E-02** at limit **
   9  Prefactor     .10000E-03    50.573        .18142E-02** at limit **
  10  Prefactor     .10000E-03    3.6533        .13816E-02** at limit **
  11  Prefactor     .10000E-03    5.6028        .16962E-02** at limit **
  12  norm          .10000E-03    1.6474        .92965E-03** at limit **
  13  Prefactor     .10000E-03    29.329        .18142E-02** at limit **
  14  Prefactor     25.682        31.196        .79138E-04   -.68812E-04
  15  norm          .84515        4.2239        .28784E-03   -.20716E-03
  16  Prefactor     .10000E-03    18.264        .18142E-02** at limit **
  17  norm          .10000E-03    4.7797        .15755E-02** at limit **
  18  norm          .10000E-03    4.7229        .15755E-02** at limit **
  19  norm          14.134        6.0294        .10652E-03   -.55412E-03
  20  norm          .10000E-03    18.922        .36285E-03** at limit **
  21  norm          .10000E-03    6.2242        .18088E-02** at limit **
  22  Prefactor     .10000E-03    1.5075        .88648E-03** at limit **
  23  Prefactor     .10000E-03    7.5145        .18142E-02** at limit **
  24  Prefactor     .10000E-03    24.916        .18142E-02** at limit **
  25  Prefactor     .67521        172.54        .55237E-02   -.29404E-03
  26  Prefactor     .42921        53.738        .10472        .23425E-03
  27  Prefactor     .10000E-03    23.495        .18142E-02** at limit **
  28  Prefactor     .10004E-03    23.182        .32177E-02** at limit **
  29  Normalizat    1.1148        .23759        .25036E-03   -.35245E-03
  30  Prefactor     1.0389        .27186        .30752E-03   -.40439E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.78952
  Prefactor  = 22.8854
  Prefactor  = 2.1202
  Prefactor  = 0.0001
  norm       = 10.7553
  Prefactor  = 33.4896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.6817
  norm       = 0.845152
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 14.1342
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.675213
  Prefactor  = 0.429209
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  Normalizat = 1.11484
  Prefactor  = 1.03885
 **********
 **   18 **HESSE 
 **********

 FCN=   5511.804     FROM HESSE     STATUS=OK           568 CALLS     4542 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    74.541        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.7895        4.2693        .40241E-05   -1.5115    
   3  Prefactor     22.885        13.572        .33495E-05   -1.4751    
   4  Prefactor     2.1202        2.1474        .41455E-05   -1.5417    
   5  Prefactor     .10000E-03    2.4878        .44857E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.755        6.5758        .48876E-05   -1.5052    
   7  Prefactor     33.490        15.876        .13852E-04   -1.4550    
   8  Prefactor     .10000E-03    6.3022        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    50.575        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.6539        .27631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.6072        .33925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.6474        .18593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    29.330        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.682        31.200        .31655E-05   -1.4694    
  15  norm          .84515        4.2213        .11514E-04   -1.5524    
  16  Prefactor     .10000E-03    18.267        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.7813        .31510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.7230        .31510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.134        6.0280        .42609E-05   -1.4956    
  20  norm          .10000E-03    18.923        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.2243        .36175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.5076        .17730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.5152        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.916        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .67521        159.06        .22095E-03   -1.5544    
  26  Prefactor     .42921        43.380        .11339       -1.5577    
  27  Prefactor     .10000E-03    23.495        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10004E-03    23.560        .64354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1148        .23741        .50071E-04   -.89277    
  30  Prefactor     1.0389        .27209        .61503E-04   -.91445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14383e-08
Minuit parameter uncertainties:
  1  0.000164716
  2  4.26944
  3  13.5742
  4  2.14745
  5  1.23737e-05
  6  6.57624
  7  15.8777
  8  9.19801e-06
  9  0.000141911
  10  3.8904e-06
  11  6.86049e-05
  12  1.54449e-05
  13  5.73004e-05
  14  31.22
  15  3.77783
  16  0.000196753
  17  6.99578e-05
  18  5.31381e-06
  19  6.0283
  20  0.000144911
  21  2.36094e-06
  22  1.46211e-05
  23  2.17328e-05
  24  2.82141e-05
  25  20.7811
  26  8.63544
  27  2.83772e-05
  28  0.00183402
  29  0.237638
  30  0.272455
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  2.568e+01  3.122e+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:  1.039e+00  2.725e-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.115e+00  2.376e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 195.418 33.610
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 3.98e-08 +/- 4.83e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 1.28e-05

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

Saving results to:
/scratch/kocevski/103095/likelihoodResults_394329601_394588801_4FGL_J1301.6+3336_daily_bin598.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) = 5511.35417148
delta logL = 0.449855417371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5511.30277084
delta logL = 0.501256057701

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5146       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9120       1.0000          .0000       10.000    
     3 'Normalizat'    1.0529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0912       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5511.303     FROM MIGRAD    STATUS=FAILED        84 CALLS      291 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5118        190.88        .14066E-03   -.27160E-02
   2  Index         3.9126        6.9555        .56301E-02   -.72119E-03
   3  Normalizat    1.0530        .23908        .25643E-03   -.10084E-02
   4  Prefactor     1.0910        .27816        .30106E-03   -.74353E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5511.303     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      380 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5118        190.88        .20745E-03   -.27160E-02
   2  Index         3.9126        6.9555        .10699E-02   -.72119E-03
   3  Normalizat    1.0530        .23908        .21358E-03   -.10084E-02
   4  Prefactor     1.0910        .27816        .16187E-03   -.74353E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5511.303     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      407 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5109        17.357        .56265E-05   -.29807E-02
   2  Index         3.9127        1.5607        .22520E-03   -.61338E-03
   3  Normalizat    1.0530        .23840        .51286E-04   -.96938E-03
   4  Prefactor     1.0910        .27727        .60211E-04   -.71859E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.51089
  Index      = 3.91265
  Normalizat = 1.05303
  Prefactor  = 1.09102
 **********
 **   18 **HESSE 
 **********

 FCN=   5511.303     FROM HESSE     STATUS=OK            23 CALLS      430 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5109        17.023        .11253E-05   -1.5198    
   2  Index         3.9127        1.5313        .45041E-04   -.21922    
   3  Normalizat    1.0530        .23840        .10257E-04   -.91275    
   4  Prefactor     1.0910        .27727        .12042E-04   -.89754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76317e-09
Minuit parameter uncertainties:
  1  17.0361
  2  1.55759
  3  0.238641
  4  0.277639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/103095': 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) = 5511.30277023
delta logL = 0.501256667817

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  6.511e+00  1.704e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  3.913e+00  1.558e+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.091e+00  2.776e-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.053e+00  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.18
Ra Dec: 195.418 33.610
Photon Index (Free Index): 3.91 +/- 1.56
Photon Flux (Free Index): 9.13e-08 +/- 7.77e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.12e-05

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/103095/cmap_HighResolution_394329601_394588801_4FGL_J1301.6+3336_daily_bin598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='3.98e-08', energy_flux2='1.39e-05', photon_flux_error='4.83e-08', dlogl='5.01e-01', energy_flux='1.05e-05', photon_flux2='9.13e-08', job_status='DONE', time_completed='2021-09-06 15:09:30.984872', photon_index_error2='1.56', photon_index2='3.91', ts='1.05', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.12e-05', EG='1.11', time_epoch_completed='1630966170.98', return_code='0', job_id='103095', GAL2='1.09', EG2='1.05', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='7.77e-08', ts2='2.18', photon_index='2.59' WHERE bin_id='598' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:09:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 103095: <4FGL_J1301.6+3336_daily_bin598> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin598> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 14:55:54 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:55:56 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:55:56 2021
Terminated at Mon Sep  6 15:09:31 2021
Results reported at Mon Sep  6 15:09:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin598 195.418 33.6097 394329601 394588801 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.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            817 sec.

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

