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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin56
RA = 195.418, Dec = 33.6097
tmin = 253843201, tmax = 254102401
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='99736', job_status='RUN', time_executed='2021-09-06 14:48:04.559088', time_epoch_executed='1630964884.56' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99736

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99736/ft1_4FGL_J1301.6+3336_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99736/ft2_4FGL_J1301.6+3336_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99736/ft1_4FGL_J1301.6+3336_daily_bin56.fits outfile=/scratch/kocevski/99736/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin56.fits ra=195.418 dec=33.6097 rad=12.0 tmin=253843201.0 tmax=254102401.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.49
user 1.27
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99736/ft1_filtered_4FGL_J1301.6+3336_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/99736/ft2_4FGL_J1301.6+3336_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/99736/ltcube_253843201_254102401_4FGL_J1301.6+3336_daily_bin56.fits outfile=/scratch/kocevski/99736/expmap_253843201_254102401_4FGL_J1301.6+3336_daily_bin56.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/99736/ltcube_253843201_254102401_4FGL_J1301.6+3336_daily_bin56.fits
.....................!
real 190.97
user 185.66
sys 4.79

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/99736/ft1_filtered_4FGL_J1301.6+3336_daily_bin56.fits scfile=/scratch/kocevski/99736/ft2_4FGL_J1301.6+3336_daily_bin56.fits outfile=/scratch/kocevski/99736/cmap_253843201_254102401_4FGL_J1301.6+3336_daily_bin56.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99736/ft1_filtered_4FGL_J1301.6+3336_daily_bin56.fits scfile=/scratch/kocevski/99736/ft2_4FGL_J1301.6+3336_daily_bin56.fits outfile=/scratch/kocevski/99736/cmap_HighResolution_253843201_254102401_4FGL_J1301.6+3336_daily_bin56.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.54
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.516       1.0000         .10000E-03   10000.    
     2 'norm      '    6.7959       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1688       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3252       1.0000         .10000E-03   10000.    
     6 'norm      '    1.5364       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.700       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.2346       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .29497       1.0000         .10000E-03   10000.    
    12 'norm      '    .10459E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    47.743       1.0000         .10000E-03   10000.    
    15 'norm      '    7.7848       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.566       1.0000         .10000E-03   10000.    
    17 'norm      '    .10224E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.228       1.0000         .10000E-03   10000.    
    19 'norm      '    2.8281       1.0000         .10000E-03   10000.    
    20 'norm      '    15.201       1.0000         .10000E-03   10000.    
    21 'norm      '    28.539       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.510       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.327       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    44.173       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .34791E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .98383       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0665       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=   5337.279     FROM MIGRAD    STATUS=CONVERGED    806 CALLS     3996 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.513        34.781        .24422E-06    .94898E-06
   2  norm          6.7947        3.5147       -.37628E-07   -.27011E-08
   3  Prefactor     .10000E-03    2.4452        .17566E-07** at limit **
   4  Prefactor     1.1717        2.0216        .15844E-06    .15563E-04
   5  Prefactor     7.3246        3.0501       -.27917E-07   -.65736E-04
   6  norm          1.5368        4.7753        .11893E-05   -.20408E-05
   7  Prefactor     22.699        13.170       -.72153E-07   -.28490E-04
   8  Prefactor     .10000E-03    8.0843        .36258E-09** at limit **
   9  Prefactor     .10000E-03    34.602        .48494E-06** at limit **
  10  Prefactor     7.2354        7.3302        .10850E-06    .22003E-04
  11  Prefactor     .31778        5.2299        .88345E-06   -.27268E-03
  12  norm          .10000E-03    1.8011        .45679E-06** at limit **
  13  Prefactor     .10000E-03    33.501       -.26432E-06** at limit **
  14  Prefactor     47.722        32.562        .42761E-06    .33244E-04
  15  norm          7.7851        4.6644        .22696E-07   -.21518E-04
  16  Prefactor     10.552        21.228       -.85496E-06   -.90264E-04
  17  norm          .10000E-03    4.6938       -.21918E-06** at limit **
  18  norm          14.232        21.517        .12458E-06    .34659E-05
  19  norm          2.8304        8.1823        .22596E-05    .99076E-05
  20  norm          15.199        14.214       -.13880E-05   -.33275E-04
  21  norm          28.541        22.601        .10869E-07   -.12714E-05
  22  Prefactor     .10000E-03    2.1703       -.33055E-06** at limit **
  23  Prefactor     23.518        21.526       -.47738E-06   -.54422E-04
  24  Prefactor     15.168        92.557       -.27125E-05   -.22644E-04
  25  Prefactor     .10000E-03    7.6197       -.28473E-07** at limit **
  26  Prefactor     .10000E-03    17.098        .21882E-08** at limit **
  27  Prefactor     44.134        61.069        .11074E-05    .13708E-04
  28  Prefactor     .10000E-03    2.7675        .10964E-06** at limit **
  29  Normalizat    .98409        .20080       -.14040E-05   -.58330E-04
  30  Prefactor     1.0662        .24523        .10294E-05   -.12035E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.5126
  norm       = 6.79474
  Prefactor  = 0.0001
  Prefactor  = 1.1717
  Prefactor  = 7.3246
  norm       = 1.53677
  Prefactor  = 22.6988
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.23537
  Prefactor  = 0.317777
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.7219
  norm       = 7.78508
  Prefactor  = 10.5517
  norm       = 0.0001
  norm       = 14.2317
  norm       = 2.83041
  norm       = 15.1994
  norm       = 28.5409
  Prefactor  = 0.0001
  Prefactor  = 23.5178
  Prefactor  = 15.1678
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.1344
  Prefactor  = 0.0001
  Normalizat = 0.984086
  Prefactor  = 1.06615
 **********
 **   18 **HESSE 
 **********

 FCN=   5337.279     FROM HESSE     STATUS=OK           600 CALLS     4596 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.513        34.795        .72531E-04   -1.4603    
   2  norm          6.7947        3.5261        .88313E-04   -1.5187    
   3  Prefactor     .10000E-03    2.4503        .11156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1717        1.9789        .12308E-03   -1.5491    
   5  Prefactor     7.3246        3.0444        .77953E-04   -1.5167    
   6  norm          1.5368        4.7758        .26948E-03   -1.5460    
   7  Prefactor     22.699        13.158        .84071E-04   -1.4755    
   8  Prefactor     .10000E-03    8.0863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    34.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.2354        7.3359        .14913E-03   -1.5170    
  11  Prefactor     .31778        13.437        .29771E-02   -1.5595    
  12  norm          .10000E-03    1.7962        .95416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     47.722        32.789        .58032E-04   -1.4325    
  15  norm          7.7851        4.6607        .11670E-03   -1.5150    
  16  Prefactor     10.552        20.898        .12326E-03   -1.5058    
  17  norm          .10000E-03    4.7428        .15388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.232        21.585        .10619E-03   -1.4953    
  19  norm          2.8304        8.1757        .20097E-03   -1.5371    
  20  norm          15.199        14.179        .10273E-03   -1.4928    
  21  norm          28.541        22.605        .74994E-04   -1.4639    
  22  Prefactor     .10000E-03    2.1778        .10444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.518        21.409        .82612E-04   -1.4738    
  24  Prefactor     15.168        93.480        .10231E-03   -1.4929    
  25  Prefactor     .10000E-03    7.6315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    17.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     44.134        61.255        .60321E-04   -1.4378    
  28  Prefactor     .10000E-03    17.241        .23173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .98409        .23760        .24853E-03   -.93565    
  30  Prefactor     1.0662        .29302        .30143E-03   -.90556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00082e-10
Minuit parameter uncertainties:
  1  34.818
  2  3.5262
  3  5.35473e-07
  4  1.97906
  5  3.04446
  6  4.777
  7  13.1595
  8  3.08311e-07
  9  2.89512e-05
  10  7.33682
  11  4.13308
  12  3.45496e-06
  13  2.34766e-05
  14  32.8017
  15  4.6609
  16  20.9128
  17  6.13985e-06
  18  21.5972
  19  8.17896
  20  14.1826
  21  22.6116
  22  4.25972e-06
  23  21.4164
  24  75.4851
  25  2.38566e-06
  26  9.38457e-06
  27  61.3429
  28  6.52291e-05
  29  0.237858
  30  0.29346
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  4.772e+01  3.280e+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.066e+00  2.935e-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.841e-01  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.49
Ra Dec: 195.418 33.610
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 7.40e-08 +/- 5.08e-08
Energy Flux (Fixed Index): 1.95e-05 +/- 1.34e-05

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

Saving results to:
/scratch/kocevski/99736/likelihoodResults_253843201_254102401_4FGL_J1301.6+3336_daily_bin56.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) = 5336.75784451
delta logL = 0.521616422679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5336.75401478
delta logL = 0.525446156335

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.136       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3529       1.0000          .0000       10.000    
     3 'Normalizat'    .93792       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1084       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=   5336.754     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      305 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.137        39.083        .89259E-04    .84063E-05
   2  Index         3.3533        1.1820        .43934E-02    .25856E-04
   3  Normalizat    .93764        .23529        .25371E-03    .51173E-04
   4  Prefactor     1.1086        .29027        .29638E-03   -.29919E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.1369
  Index      = 3.35332
  Normalizat = 0.937636
  Prefactor  = 1.10856
 **********
 **   18 **HESSE 
 **********

 FCN=   5336.754     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.137        28.406        .35703E-05   -1.4810    
   2  Index         3.3533        .86191        .17574E-03   -.33560    
   3  Normalizat    .93764        .23439        .10148E-04   -.95150    
   4  Prefactor     1.1086        .28911        .11855E-04   -.89194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84762e-11
Minuit parameter uncertainties:
  1  28.4254
  2  0.866773
  3  0.234649
  4  0.289518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99736': 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) = 5336.75401315
delta logL = 0.525447785118

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  2.014e+01  2.843e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  3.353e+00  8.668e-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:  1.109e+00  2.895e-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.376e-01  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.69
Ra Dec: 195.418 33.610
Photon Index (Free Index): 3.35 +/- 0.87
Photon Flux (Free Index): 1.06e-07 +/- 6.34e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.06e-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/99736/cmap_HighResolution_253843201_254102401_4FGL_J1301.6+3336_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', photon_flux='7.40e-08', energy_flux2='1.85e-05', photon_flux_error='5.08e-08', dlogl='5.25e-01', energy_flux='1.95e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-06 15:00:57.291310', photon_index_error2='0.87', photon_index2='3.35', ts='3.49', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.70e-07', energy_flux_error2='1.06e-05', EG='0.98', time_epoch_completed='1630965657.29', return_code='0', job_id='99736', GAL2='1.11', EG2='0.94', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='6.34e-08', ts2='4.69', photon_index='2.59' WHERE bin_id='56' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:00:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 99736: <4FGL_J1301.6+3336_daily_bin56> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin56> 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) <bullet0111>, 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:58 2021
Results reported at Mon Sep  6 15:00:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin56 195.418 33.6097 253843201 254102401 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 :                                   767.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             279.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            897 sec.

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

