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


Performing analysis on: 4FGL_J1301.6+3336_daily_bin901
RA = 195.418, Dec = 33.6097
tmin = 472867201, tmax = 473126401
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='104716', job_status='RUN', time_executed='2021-09-06 15:00:59.212327', time_epoch_executed='1630965659.21' WHERE source_name='4FGL J1301.6+3336' and cadence='daily' and bin_id='901'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104716

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104716/ft1_4FGL_J1301.6+3336_daily_bin901.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104716/ft2_4FGL_J1301.6+3336_daily_bin901.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104716/ft1_4FGL_J1301.6+3336_daily_bin901.fits outfile=/scratch/kocevski/104716/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin901.fits ra=195.418 dec=33.6097 rad=12.0 tmin=472867201.0 tmax=473126401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.87
user 3.64
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/104716/ft2_4FGL_J1301.6+3336_daily_bin901.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/104716/ft1_filteredMKT_4FGL_J1301.6+3336_daily_bin901.fits evtable="EVENTS" outfile="/scratch/kocevski/104716/ft1_filtered_4FGL_J1301.6+3336_daily_bin901.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/104716/ft1_filtered_4FGL_J1301.6+3336_daily_bin901.fits" evtable="EVENTS" scfile=/scratch/kocevski/104716/ft2_4FGL_J1301.6+3336_daily_bin901.fits sctable="SC_DATA" outfile=/scratch/kocevski/104716/ltcube_472867201_473126401_4FGL_J1301.6+3336_daily_bin901.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/104716/ft2_4FGL_J1301.6+3336_daily_bin901.fits
.....................!
real 11.72
user 11.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104716/ft1_filtered_4FGL_J1301.6+3336_daily_bin901.fits evtable="EVENTS" scfile=/scratch/kocevski/104716/ft2_4FGL_J1301.6+3336_daily_bin901.fits sctable="SC_DATA" expcube=/scratch/kocevski/104716/ltcube_472867201_473126401_4FGL_J1301.6+3336_daily_bin901.fits outfile=/scratch/kocevski/104716/expmap_472867201_473126401_4FGL_J1301.6+3336_daily_bin901.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/104716/ltcube_472867201_473126401_4FGL_J1301.6+3336_daily_bin901.fits
.....................!
real 191.37
user 185.72
sys 5.17

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/104716/ft1_filtered_4FGL_J1301.6+3336_daily_bin901.fits scfile=/scratch/kocevski/104716/ft2_4FGL_J1301.6+3336_daily_bin901.fits outfile=/scratch/kocevski/104716/cmap_472867201_473126401_4FGL_J1301.6+3336_daily_bin901.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.63
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104716/ft1_filtered_4FGL_J1301.6+3336_daily_bin901.fits scfile=/scratch/kocevski/104716/ft2_4FGL_J1301.6+3336_daily_bin901.fits outfile=/scratch/kocevski/104716/cmap_HighResolution_472867201_473126401_4FGL_J1301.6+3336_daily_bin901.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.70
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.152       1.0000         .10000E-03   10000.    
     2 'norm      '    4.2201       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2085       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8236       1.0000         .10000E-03   10000.    
     6 'norm      '    10.890       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.2625       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1812       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.4315       1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.207       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.4285       1.0000         .10000E-03   10000.    
    19 'norm      '    4.2415       1.0000         .10000E-03   10000.    
    20 'norm      '    .16080E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.1572       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.7205       1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.208       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0296       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0544       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=   7313.712     FROM MIGRAD    STATUS=CONVERGED    757 CALLS     3347 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.153        32.235        .11212E-06    .22103E-04
   2  norm          4.2202        2.6948       -.51488E-07    .14816E-04
   3  Prefactor     .10000E-03    3.5617       -.35418E-05** at limit **
   4  Prefactor     7.2086        2.8300        .68226E-08    .53131E-04
   5  Prefactor     1.8236        1.6633       -.86594E-07   -.12696E-03
   6  norm          10.890        4.3912       -.15216E-06    .10576E-03
   7  Prefactor     8.2629        9.7137       -.36616E-06   -.66820E-04
   8  Prefactor     .10000E-03    5.4289        .76437E-06** at limit **
   9  Prefactor     .10000E-03    116.87        .21206E-06** at limit **
  10  Prefactor     1.1811        4.6286       -.24790E-05   -.11661E-02
  11  Prefactor     .10000E-03    2.2521       -.53221E-07** at limit **
  12  norm          2.4322        3.1044        .15832E-05   -.49583E-03
  13  Prefactor     44.207        31.408       -.21989E-06    .55640E-05
  14  Prefactor     .10000E-03    6.1773       -.10225E-05** at limit **
  15  norm          .10000E-03    .90242        .13240E-07** at limit **
  16  Prefactor     .10000E-03    3.5580        .33808E-05** at limit **
  17  norm          .10000E-03    1.5833        .42127E-07** at limit **
  18  norm          3.4286        8.0001       -.51132E-06   -.16953E-03
  19  norm          4.2259        3.3147       -.41228E-06   -.69809E-03
  20  norm          .10000E-03    5.3540        .59363E-06** at limit **
  21  norm          .10000E-03    9.3747        .88605E-06** at limit **
  22  Prefactor     .10000E-03    1.8969        .40339E-06** at limit **
  23  Prefactor     9.1519        8.2911        .87818E-06   -.15037E-04
  24  Prefactor     5.6972        61.912       -.41974E-04    .10059E-03
  25  Prefactor     18.211        13.820       -.20212E-05    .12414E-03
  26  Prefactor     .10000E-03    14.265       -.13035E-05** at limit **
  27  Prefactor     .10000E-03    18.382        .11135E-05** at limit **
  28  Prefactor     .10000E-03    1.4724       -.23528E-07** at limit **
  29  Normalizat    1.0296        .15591        .85181E-06    .21421E-04
  30  Prefactor     1.0544        .19089        .70680E-06    .22988E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.1526
  norm       = 4.22018
  Prefactor  = 0.0001
  Prefactor  = 7.20859
  Prefactor  = 1.82364
  norm       = 10.89
  Prefactor  = 8.26286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.18108
  Prefactor  = 0.0001
  norm       = 2.43216
  Prefactor  = 44.2071
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.42859
  norm       = 4.22589
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.15189
  Prefactor  = 5.69722
  Prefactor  = 18.2112
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0296
  Prefactor  = 1.05441
 **********
 **   18 **HESSE 
 **********

 FCN=   7313.712     FROM HESSE     STATUS=OK           588 CALLS     3935 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.153        32.235        .67592E-04   -1.4521    
   2  norm          4.2202        2.6981        .10327E-03   -1.5297    
   3  Prefactor     .10000E-03    3.5631        .15723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.2086        2.8333        .82588E-04   -1.5171    
   5  Prefactor     1.8236        1.6573        .10030E-03   -1.5438    
   6  norm          10.890        4.3899        .11051E-03   -1.5048    
   7  Prefactor     8.2629        9.6976        .13947E-03   -1.5133    
   8  Prefactor     .10000E-03    5.4300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    117.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1811        4.8725        .36757E-03   -1.5491    
  11  Prefactor     .10000E-03    2.2680        .12532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.4322        3.0774        .16328E-03   -1.5396    
  13  Prefactor     44.207        31.408        .60298E-04   -1.4377    
  14  Prefactor     .10000E-03    6.1804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .90584        .79327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.5430        .15713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.5979        .10507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.4286        7.9991        .21845E-03   -1.5338    
  19  norm          4.2259        2.7856        .10990E-03   -1.5297    
  20  norm          .10000E-03    17.878        .31969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    9.4596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.9739        .22947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.1519        8.2721        .13244E-03   -1.5103    
  24  Prefactor     5.6972        60.404        .16794E-03   -1.5231    
  25  Prefactor     18.211        13.820        .93862E-04   -1.4854    
  26  Prefactor     .10000E-03    14.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    18.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.4878        .10131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0296        .18657        .23472E-03   -.92045    
  30  Prefactor     1.0544        .22835        .28689E-03   -.90937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45858e-09
Minuit parameter uncertainties:
  1  32.2506
  2  2.69817
  3  4.28928e-05
  4  2.83339
  5  1.6573
  6  4.39002
  7  9.69942
  8  1.59893e-05
  9  0.000430167
  10  4.79829
  11  4.05794e-06
  12  3.07761
  13  31.4198
  14  9.36187e-06
  15  4.55262e-08
  16  4.4623e-05
  17  2.02383e-06
  18  8.0016
  19  2.78569
  20  0.000260057
  21  2.67252e-05
  22  4.78577e-05
  23  8.27317
  24  37.1496
  25  13.8222
  26  5.56016e-05
  27  2.71938e-05
  28  1.61066e-06
  29  0.186693
  30  0.228561
Done.

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

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  9.362e-06  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.054e+00  2.286e-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.030e+00  1.867e-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: 4.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/104716/likelihoodResults_472867201_473126401_4FGL_J1301.6+3336_daily_bin901.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) = 7313.71323091
delta logL = -0.000769657863202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7313.71246122
delta logL = 2.97704900731e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5768       1.0000          .0000       10.000    
     3 'Normalizat'    1.0296       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0544       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=   7313.712     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      254 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.377        .18142E-01** at limit **
   2  Index         1.9547        7.8018        .50000        .77330E-07
   3  Normalizat    1.0296        .86192E-02    .23472E-03   -.78271E-04
   4  Prefactor     1.0544        .10690E-01    .28689E-03   -.64316E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.9547
  Normalizat = 1.0296
  Prefactor  = 1.05441
 **********
 **   18 **HESSE 
 **********

 FCN=   7313.712     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    359.88        .23508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9547        7.0576        .50000       -.65487    
   3  Normalizat    1.0296        .27099E-01    .93888E-05   -.92045    
   4  Prefactor     1.0544        .33610E-01    .11476E-04   -.90937    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.33978e-10
Minuit parameter uncertainties:
  1  4.08527e-05
  2  1256.55
  3  0.0270997
  4  0.0336109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104716': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7313.71245947
delta logL = 1.7844758986e-06

Extracting fit parameters...

4FGL J1301.6+3336
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  4.085e-05  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.955e+00  1.257e+03  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.054e+00  3.361e-02  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.030e+00  2.710e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/104716/cmap_HighResolution_472867201_473126401_4FGL_J1301.6+3336_daily_bin901.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.80e-03', job_status='DONE', photon_flux_upper_limit='4.86e-08', time_completed='2021-09-06 15:15:27.600158', job_id='104716', GAL2='1.05', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630966527.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.78e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='901' AND source_name='4FGL J1301.6+3336' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:15:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 104716: <4FGL_J1301.6+3336_daily_bin901> in cluster <slac> Done

Job <4FGL_J1301.6+3336_daily_bin901> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 15:00:43 2021
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:00:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 15:00:44 2021
Terminated at Mon Sep  6 15:15:28 2021
Results reported at Mon Sep  6 15:15:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1301.6+3336_daily_bin901 195.418 33.6097 472867201 473126401 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 :                                   857.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            885 sec.

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

