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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin55
RA = 195.418, Dec = 33.6097
tmin = 253584001, tmax = 253843201
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='99735', job_status='RUN', time_executed='2021-09-06 14:48:46.039662', time_epoch_executed='1630964926.04' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99735

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99735/ft1_4FGL_J1301.6+3336_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99735/ft2_4FGL_J1301.6+3336_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99735/ft1_4FGL_J1301.6+3336_daily_bin55.fits outfile=/scratch/kocevski/99735/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin55.fits ra=195.418 dec=33.6097 rad=12.0 tmin=253584001.0 tmax=253843201.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.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99735/ft1_filtered_4FGL_J1301.6+3336_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/99735/ft2_4FGL_J1301.6+3336_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/99735/ltcube_253584001_253843201_4FGL_J1301.6+3336_daily_bin55.fits outfile=/scratch/kocevski/99735/expmap_253584001_253843201_4FGL_J1301.6+3336_daily_bin55.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/99735/ltcube_253584001_253843201_4FGL_J1301.6+3336_daily_bin55.fits
.....................!
real 193.94
user 187.67
sys 5.80

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/99735/ft1_filtered_4FGL_J1301.6+3336_daily_bin55.fits scfile=/scratch/kocevski/99735/ft2_4FGL_J1301.6+3336_daily_bin55.fits outfile=/scratch/kocevski/99735/cmap_253584001_253843201_4FGL_J1301.6+3336_daily_bin55.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=195.418 yref=33.6097 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99735/ft1_filtered_4FGL_J1301.6+3336_daily_bin55.fits scfile=/scratch/kocevski/99735/ft2_4FGL_J1301.6+3336_daily_bin55.fits outfile=/scratch/kocevski/99735/cmap_HighResolution_253584001_253843201_4FGL_J1301.6+3336_daily_bin55.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.2110       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4071       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3539       1.0000         .10000E-03   10000.    
     6 'norm      '    3.8673       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.397       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.294       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4223       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3315       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    44.795       1.0000         .10000E-03   10000.    
    15 'norm      '    .23551E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.0394       1.0000         .10000E-03   10000.    
    20 'norm      '    .12679E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.3237       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14315E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18416E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    79.236       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.0788       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .88793       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95098       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=   4611.625     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     4519 TOTAL
                     EDM=   .93E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.442       -.38404E-07** at limit **
   2  norm          6.2112        3.1628       -.10296E-07    .10470E-04
   3  Prefactor     .10000E-03    3.1936       -.51651E-07** at limit **
   4  Prefactor     3.4071        2.0932       -.84921E-08    .82345E-06
   5  Prefactor     1.3541        2.2323        .30485E-07   -.25328E-04
   6  norm          3.8677        4.5037        .61153E-08    .26163E-05
   7  Prefactor     22.397        12.501       -.46754E-08    .79944E-05
   8  Prefactor     .10000E-03    14.952        .15043E-06** at limit **
   9  Prefactor     21.287        105.43       -.16377E-05    .35113E-05
  10  Prefactor     .10000E-03    2.8758       -.33194E-07** at limit **
  11  Prefactor     4.4223        4.3034        .89909E-09    .47522E-06
  12  norm          2.3316        4.9733        .30625E-05    .47521E-04
  13  Prefactor     .10000E-03    17.445       -.54112E-06** at limit **
  14  Prefactor     44.810        30.690       -.21089E-05    .28366E-04
  15  norm          .10045E-03    1.9683        .49058E-06** at limit **
  16  Prefactor     .10000E-03    4.7373        .12352E-06** at limit **
  17  norm          .10000E-03    2.5948        .28708E-07** at limit **
  18  norm          .10000E-03    5.2021        .12031E-06** at limit **
  19  norm          4.0368        4.5808        .10567E-06    .28008E-03
  20  norm          .10000E-03    8.4534       -.52153E-06** at limit **
  21  norm          9.3275        16.774        .12181E-07   -.20884E-05
  22  Prefactor     .10000E-03    2.1123        .19964E-06** at limit **
  23  Prefactor     .10001E-03    11.301       -.53284E-06** at limit **
  24  Prefactor     .10000E-03    19.184        .39710E-06** at limit **
  25  Prefactor     .10000E-03    6.7245       -.55965E-07** at limit **
  26  Prefactor     .10000E-03    4.9674       -.24498E-06** at limit **
  27  Prefactor     79.274        83.679       -.39700E-05    .40936E-05
  28  Prefactor     6.0789        4.3754        .18504E-07    .22655E-04
  29  Normalizat    .88819        .18996       -.11114E-05   -.19498E-04
  30  Prefactor     .95061        .22812        .16651E-05    .58735E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.21119
  Prefactor  = 0.0001
  Prefactor  = 3.40712
  Prefactor  = 1.35411
  norm       = 3.86772
  Prefactor  = 22.3965
  Prefactor  = 0.0001
  Prefactor  = 21.2867
  Prefactor  = 0.0001
  Prefactor  = 4.4223
  norm       = 2.33164
  Prefactor  = 0.0001
  Prefactor  = 44.8102
  norm       = 0.000100445
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.03676
  norm       = 0.000100002
  norm       = 9.32752
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 79.2743
  Prefactor  = 6.07888
  Normalizat = 0.888187
  Prefactor  = 0.950609
 **********
 **   18 **HESSE 
 **********

 FCN=   4611.625     FROM HESSE     STATUS=OK           602 CALLS     5121 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.2112        3.1575        .81614E-04   -1.5209    
   3  Prefactor     .10000E-03    3.2080        .11851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4071        2.0944        .73675E-04   -1.5339    
   5  Prefactor     1.3541        2.1950        .12137E-03   -1.5475    
   6  norm          3.8677        4.4926        .14972E-03   -1.5315    
   7  Prefactor     22.397        12.477        .84638E-04   -1.4761    
   8  Prefactor     .10000E-03    14.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.287        106.37        .86799E-04   -1.4785    
  10  Prefactor     .10000E-03    2.8927        .11247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.4223        4.3070        .13508E-03   -1.5287    
  12  norm          2.3316        5.0170        .97482E-03   -1.5403    
  13  Prefactor     .10000E-03    17.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     44.810        30.756        .59903E-04   -1.4368    
  15  norm          .10045E-03    3.5152        .33640E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.7415        .14436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.6274        .10679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.2051        .15127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.0368        3.9000        .12244E-03   -1.5306    
  20  norm          .10000E-03    49.419        .32302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.3275        16.773        .13125E-03   -1.5097    
  22  Prefactor     .10000E-03    3.6899        .18312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    84.482        .41540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.7474        .17199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.9696        .14784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     79.274        83.858        .45117E-04   -1.3925    
  28  Prefactor     6.0789        4.3745        .11642E-03   -1.5215    
  29  Normalizat    .88819        .22175        .22948E-03   -.96876    
  30  Prefactor     .95061        .26726        .27720E-03   -.94394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02981e-10
Minuit parameter uncertainties:
  1  4.03352e-06
  2  3.15755
  3  4.8593e-06
  4  2.09445
  5  2.19509
  6  4.49302
  7  12.4781
  8  1.01965e-05
  9  95.4419
  10  3.01072e-06
  11  4.3073
  12  5.01789
  13  2.24106e-06
  14  30.7669
  15  0.00250192
  16  2.18157e-06
  17  2.04751e-06
  18  5.70035e-07
  19  3.90022
  20  0.000677693
  21  16.7812
  22  2.14379e-05
  23  0.00161586
  24  1.05159e-05
  25  5.79069e-06
  26  1.77344e-06
  27  83.9833
  28  4.37478
  29  0.221979
  30  0.267628
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  4.481e+01  3.077e+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.506e-01  2.676e-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:  8.882e-01  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.35
Ra Dec: 195.418 33.610
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 6.95e-08 +/- 4.76e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.26e-05

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) = 4611.5713692
delta logL = 0.0534658136758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4611.56399368
delta logL = 0.0608413289028

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.927       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3901       1.0000          .0000       10.000    
     3 'Normalizat'    .89972       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93962       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=   4611.564     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      292 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.928        41.877        .54620E-04   -.94413E-04
   2  Index         2.3902        .57464        .59094E-02   -.77288E-04
   3  Normalizat    .89959        .21532        .22819E-03    .60333E-04
   4  Prefactor     .93978        .26589        .27852E-03    .58614E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.9277
  Index      = 2.39016
  Normalizat = 0.899588
  Prefactor  = 0.939776
 **********
 **   18 **HESSE 
 **********

 FCN=   4611.564     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.928        40.770        .10924E-04   -1.4238    
   2  Index         2.3902        .55909        .23638E-03   -.54916    
   3  Normalizat    .89959        .21544        .91277E-05   -.96475    
   4  Prefactor     .93978        .26607        .11141E-04   -.94765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02445e-10
Minuit parameter uncertainties:
  1  40.7909
  2  0.560701
  3  0.215646
  4  0.266436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99735': 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) = 4611.56399348
delta logL = 0.0608415291508

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  5.393e+01  4.079e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.390e+00  5.607e-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:  9.398e-01  2.664e-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:  8.996e-01  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.49
Ra Dec: 195.418 33.610
Photon Index (Free Index): 2.39 +/- 0.56
Photon Flux (Free Index): 6.22e-08 +/- 4.54e-08
Energy Flux (Free Index): 2.07e-05 +/- 1.52e-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/99735/cmap_HighResolution_253584001_253843201_4FGL_J1301.6+3336_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.95e-08', energy_flux2='2.07e-05', photon_flux_error='4.76e-08', dlogl='6.08e-02', energy_flux='1.83e-05', photon_flux2='6.22e-08', job_status='DONE', time_completed='2021-09-06 14:59:40.563966', photon_index_error2='0.56', photon_index2='2.39', ts='4.35', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.52e-05', EG='0.89', time_epoch_completed='1630965580.56', return_code='0', job_id='99735', GAL2='0.94', EG2='0.90', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='4.54e-08', ts2='4.49', photon_index='2.59' WHERE bin_id='55' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:59:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 99735: <4FGL_J1301.6+3336_daily_bin55> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin55> 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) <bullet0289>, 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 14:59:41 2021
Results reported at Mon Sep  6 14:59:41 2021

Your job looked like:

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

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

