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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin742
RA = 195.418, Dec = 33.6097
tmin = 431654401, tmax = 431913601
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='103282', job_status='RUN', time_executed='2021-09-06 14:56:30.359210', time_epoch_executed='1630965390.36' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='742'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/103282

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/103282/ft1_4FGL_J1301.6+3336_daily_bin742.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/103282/ft2_4FGL_J1301.6+3336_daily_bin742.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/103282/ft1_4FGL_J1301.6+3336_daily_bin742.fits outfile=/scratch/kocevski/103282/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin742.fits ra=195.418 dec=33.6097 rad=12.0 tmin=431654401.0 tmax=431913601.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 5.98
user 5.69
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/103282/ft1_filtered_4FGL_J1301.6+3336_daily_bin742.fits evtable="EVENTS" scfile=/scratch/kocevski/103282/ft2_4FGL_J1301.6+3336_daily_bin742.fits sctable="SC_DATA" expcube=/scratch/kocevski/103282/ltcube_431654401_431913601_4FGL_J1301.6+3336_daily_bin742.fits outfile=/scratch/kocevski/103282/expmap_431654401_431913601_4FGL_J1301.6+3336_daily_bin742.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/103282/ltcube_431654401_431913601_4FGL_J1301.6+3336_daily_bin742.fits
.....................!
real 190.62
user 185.70
sys 3.93

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/103282/ft1_filtered_4FGL_J1301.6+3336_daily_bin742.fits scfile=/scratch/kocevski/103282/ft2_4FGL_J1301.6+3336_daily_bin742.fits outfile=/scratch/kocevski/103282/cmap_431654401_431913601_4FGL_J1301.6+3336_daily_bin742.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.972       1.0000         .10000E-03   10000.    
     2 'norm      '    18.060       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5221       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11498E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24494       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4090       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.9650       1.0000         .10000E-03   10000.    
    19 'norm      '    5.3044       1.0000         .10000E-03   10000.    
    20 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    11.136       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.3715       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.772       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12063E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4463       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .62773       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=   4503.578     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     3888 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.909        56.664       -.74573E-04    .11312E-04
   2  norm          18.061        5.8684        .15873E-05    .15552E-03
   3  Prefactor     .10000E-03    5.4359        .20100E-05** at limit **
   4  Prefactor     .10000E-03    1.4358       -.66911E-07** at limit **
   5  Prefactor     4.5223        3.5483       -.42819E-06    .45783E-04
   6  norm          .10000E-03    4.1238       -.49081E-06** at limit **
   7  Prefactor     .10000E-03    17.640       -.20320E-05** at limit **
   8  Prefactor     .10001E-03    79.273        .23682E-04** at limit **
   9  Prefactor     .10000E-03    106.24       -.38930E-04** at limit **
  10  Prefactor     .21313        8.6223       -.11079E-05   -.95746E-04
  11  Prefactor     .10000E-03    2.4893       -.94337E-07** at limit **
  12  norm          .10000E-03    4.2392        .32438E-06** at limit **
  13  Prefactor     .10000E-03    19.317        .62533E-05** at limit **
  14  Prefactor     .10000E-03    29.186        .40936E-05** at limit **
  15  norm          4.4097        4.3625       -.13073E-05   -.13410E-04
  16  Prefactor     .10000E-03    13.277        .81844E-05** at limit **
  17  norm          .10000E-03    1.9439       -.97052E-07** at limit **
  18  norm          9.9653        13.376       -.88282E-06   -.26419E-03
  19  norm          5.3013        4.7559       -.17129E-06    .23080E-03
  20  norm          .10000E-03    5.3794       -.13271E-05** at limit **
  21  norm          11.139        19.506       -.70516E-06    .58951E-05
  22  Prefactor     1.3720        3.5565       -.13165E-05   -.55594E-03
  23  Prefactor     .10000E-03    14.561       -.47431E-05** at limit **
  24  Prefactor     .10000E-03    42.126       -.16794E-04** at limit **
  25  Prefactor     .10000E-03    9.9571       -.68251E-06** at limit **
  26  Prefactor     16.771        24.462       -.17956E-05    .85105E-04
  27  Prefactor     .10000E-03    81.818        .24849E-04** at limit **
  28  Prefactor     .10005E-03    3.1286       -.20070E-05** at limit **
  29  Normalizat    1.4467        .22268        .66122E-05    .19259E-04
  30  Prefactor     .62716        .25950       -.25531E-05    .30504E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.9088
  norm       = 18.0611
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.52226
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.213135
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.40968
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.96528
  norm       = 5.30131
  norm       = 0.0001
  norm       = 11.1391
  Prefactor  = 1.37197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.771
  Prefactor  = 0.0001
  Prefactor  = 0.000100046
  Normalizat = 1.44673
  Prefactor  = 0.627164
 **********
 **   18 **HESSE 
 **********

 FCN=   4503.578     FROM HESSE     STATUS=OK           584 CALLS     4472 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.909        56.812        .69784E-04   -1.4560    
   2  norm          18.061        5.8593        .85478E-04   -1.4858    
   3  Prefactor     .10000E-03    5.4800        .15289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.4425        .78390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.5223        3.5405        .10362E-03   -1.5283    
   6  norm          .10000E-03    4.2161        .13305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    82.022        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    106.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .21313        71.602        .37829E-02   -1.5616    
  11  Prefactor     .10000E-03    2.4931        .10340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.3006        .13483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4097        4.3495        .13387E-03   -1.5288    
  16  Prefactor     .10000E-03    13.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.9476        .91369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.9653        13.377        .63468E-03   -1.5077    
  19  norm          5.3013        4.7052        .12751E-03   -1.5247    
  20  norm          .10000E-03    5.3909        .15139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          11.139        19.510        .12005E-03   -1.5040    
  22  Prefactor     1.3720        3.5007        .18798E-03   -1.5474    
  23  Prefactor     .10000E-03    14.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    42.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.9762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     16.771        24.465        .97798E-04   -1.4889    
  27  Prefactor     .10000E-03    81.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10005E-03    14.755        .22834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.4467        .26415        .21484E-03   -.79287    
  30  Prefactor     .62716        .30648        .36925E-03   -1.0645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35891e-09
Minuit parameter uncertainties:
  1  56.9055
  2  5.85946
  3  0.000140057
  4  9.83594e-07
  5  3.54069
  6  1.60887e-05
  7  4.68328e-05
  8  0.00129567
  9  0.000201069
  10  7.82065
  11  1.01166e-05
  12  2.68468e-05
  13  1.7784e-05
  14  0.000106251
  15  4.34984
  16  8.0882e-05
  17  4.72333e-06
  18  13.3806
  19  4.70553
  20  4.06527e-06
  21  19.5212
  22  3.50118
  23  8.37379e-06
  24  2.14231e-05
  25  1.78412e-05
  26  24.4799
  27  0.000291368
  28  0.00164435
  29  0.264398
  30  0.307299
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.063e-04  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.593e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  8.366e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  6.272e-01  3.073e-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.447e+00  2.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/103282/likelihoodResults_431654401_431913601_4FGL_J1301.6+3336_daily_bin742.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4503.57825204
delta logL = -0.000162437089784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4503.57808973
delta logL = -1.27834027808e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5952       1.0000          .0000       10.000    
     3 'Normalizat'    1.4468       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62714       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=   4503.578     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      205 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    45.164        .90712E-02** at limit **
   2  Index         2.6167        6.2743        .50000       -.67413E-05
   3  Normalizat    1.4467        .21448        .48599E-01    .99495E-04
   4  Prefactor     .62715        .25434        .83369E-01    .63179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Index      = 2.61674
  Normalizat = 1.44674
  Prefactor  = 0.627152
 **********
 **   18 **HESSE 
 **********

 FCN=   4503.578     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    35.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6167        6.3081        .50000       -.49684    
   3  Normalizat    1.4467        .25287        .21484E-03   -.79286    
   4  Prefactor     .62715        .29904        .36925E-03   -1.0645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01831e-10
Minuit parameter uncertainties:
  1  0.00128663
  2  4.7868
  3  0.25309
  4  0.2998
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/103282': 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) = 4503.57808957
delta logL = 3.64407242159e-08

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.287e-03  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.617e+00  4.787e+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:  6.272e-01  2.998e-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.447e+00  2.531e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 195.418 33.610

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/103282/cmap_HighResolution_431654401_431913601_4FGL_J1301.6+3336_daily_bin742.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.77e-03', job_status='DONE', photon_flux_upper_limit='9.93e-08', time_completed='2021-09-06 15:08:11.714702', job_id='103282', GAL2='0.63', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1630966091.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='3.64e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='742' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:08:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 103282: <4FGL_J1301.6+3336_daily_bin742> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin742 195.418 33.6097 431654401 431913601 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 :                                   691.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            724 sec.

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

