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


Performing analysis on: 4FGL_J1302.8+5748_daily_bin1
RA = 195.721, Dec = 57.8146
tmin = 239587201, tmax = 239846401
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='108564', job_status='RUN', time_executed='2021-09-06 15:12:26.253914', time_epoch_executed='1630966346.25' WHERE source_name='4FGL J1302.8+5748' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/108564

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/108564/ft1_4FGL_J1302.8+5748_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/108564/ft2_4FGL_J1302.8+5748_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/108564/ft1_4FGL_J1302.8+5748_daily_bin1.fits outfile=/scratch/kocevski/108564/ft1_filteredMKT_4FGL_J1302.8+5748_daily_bin1.fits ra=195.721 dec=57.8146 rad=12.0 tmin=239587201.0 tmax=239846401.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.68
user 1.14
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/108564/ft2_4FGL_J1302.8+5748_daily_bin1.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/108564/ft2_4FGL_J1302.8+5748_daily_bin1.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/108564/ft1_filteredMKT_4FGL_J1302.8+5748_daily_bin1.fits evtable="EVENTS" outfile="/scratch/kocevski/108564/ft1_filtered_4FGL_J1302.8+5748_daily_bin1.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.31
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/108564/ft1_filtered_4FGL_J1302.8+5748_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/108564/ft2_4FGL_J1302.8+5748_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/108564/ltcube_239587201_239846401_4FGL_J1302.8+5748_daily_bin1.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/108564/ft2_4FGL_J1302.8+5748_daily_bin1.fits
.....................!
real 12.73
user 12.33
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/108564/ft1_filtered_4FGL_J1302.8+5748_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/108564/ft2_4FGL_J1302.8+5748_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/108564/ltcube_239587201_239846401_4FGL_J1302.8+5748_daily_bin1.fits outfile=/scratch/kocevski/108564/expmap_239587201_239846401_4FGL_J1302.8+5748_daily_bin1.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/108564/ltcube_239587201_239846401_4FGL_J1302.8+5748_daily_bin1.fits
.....................!
real 192.33
user 186.54
sys 5.15

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 218 point sources and 0 extended sources

Setting source of interest to:
4FGL J1302.8+5748 @ 195.721 57.8146

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/108564/ft1_filtered_4FGL_J1302.8+5748_daily_bin1.fits scfile=/scratch/kocevski/108564/ft2_4FGL_J1302.8+5748_daily_bin1.fits outfile=/scratch/kocevski/108564/cmap_239587201_239846401_4FGL_J1302.8+5748_daily_bin1.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.721 yref=57.8146 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/108564/ft1_filtered_4FGL_J1302.8+5748_daily_bin1.fits scfile=/scratch/kocevski/108564/ft2_4FGL_J1302.8+5748_daily_bin1.fits outfile=/scratch/kocevski/108564/cmap_HighResolution_239587201_239846401_4FGL_J1302.8+5748_daily_bin1.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.721 yref=57.8146 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/108564/ft1_filtered_4FGL_J1302.8+5748_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/108564/ft2_4FGL_J1302.8+5748_daily_bin1.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/108564/Model_4FGL_J1302.8+5748_daily_bin1.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/108564/ft1_filtered_4FGL_J1302.8+5748_daily_bin1.fits.....................!
real 39.25
user 37.73
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/108564/ft1_filtered_4FGL_J1302.8+5748_daily_bin1.fits', '/scratch/kocevski/108564/ft2_4FGL_J1302.8+5748_daily_bin1.fits', expMap='/scratch/kocevski/108564/expmap_239587201_239846401_4FGL_J1302.8+5748_daily_bin1.fits', expCube='/scratch/kocevski/108564/ltcube_239587201_239846401_4FGL_J1302.8+5748_daily_bin1.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/108564/Model_4FGL_J1302.8+5748_daily_bin1.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1302.8+5748'

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  1.988e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
372        Index:  2.267e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
373        Scale:  1.345e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/108564/ft1_filtered_4FGL_J1302.8+5748_daily_bin1.fits
Spacecraft file(s): /scratch/kocevski/108564/ft2_4FGL_J1302.8+5748_daily_bin1.fits
Exposure map: /scratch/kocevski/108564/expmap_239587201_239846401_4FGL_J1302.8+5748_daily_bin1.fits
Exposure cube: /scratch/kocevski/108564/ltcube_239587201_239846401_4FGL_J1302.8+5748_daily_bin1.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/108564/Model_4FGL_J1302.8+5748_daily_bin1.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) = 3605.46576606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16107E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10845E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4410       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.557       1.0000         .10000E-03   10000.    
     5 'norm      '    3.4362       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14982E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .22497E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.946       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.0368       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.031       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    79.867       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10632E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.896       1.0000         .10000E-03   10000.    
    21 'norm      '    20.748       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.9113       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10449E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .11011E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .53596       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12437E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10998E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .24507E-02   1.0000         .10000E-03   10000.    
    31 'Prefactor '    6.0163       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .98585       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .68263       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+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=   3605.302     FROM MIGRAD    STATUS=CONVERGED   1719 CALLS     4957 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    30.904        .33799E-02** at limit **
   2  norm          .10000E-03    15.178        .21840E-02** at limit **
   3  Prefactor     5.4290        11.031        .17227E-03   -.64015E-04
   4  Prefactor     21.537        21.978        .86268E-04   -.12256E-04
   5  norm          3.4354        3.1501        .47312E-03    .81735E-04
   6  Prefactor     .10000E-03    7.7287        .16297E-02** at limit **
   7  Prefactor     .10000E-03    173.69        .18142E-02** at limit **
   8  norm          .10001E-03    32.595        .33166E-02** at limit **
   9  Prefactor     12.946        23.411        .11133E-03    .39826E-04
  10  Prefactor     .10000E-03    5.5662        .13723E-02** at limit **
  11  norm          4.0363        2.5466        .73886E-04   -.91552E-05
  12  Prefactor     20.030        21.304        .89490E-04    .48910E-05
  13  norm          .10000E-03    .91143        .55831E-03** at limit **
  14  Prefactor     79.833        63.177        .22470E-03   -.14723E-04
  15  Prefactor     .10000E-03    5.6547        .13894E-02** at limit **
  16  norm          .10000E-03    1.1828        .63750E-03** at limit **
  17  Prefactor     .10000E-03    67.763        .18142E-02** at limit **
  18  Prefactor     .10000E-03    17.386        .18142E-02** at limit **
  19  Prefactor     .10000E-03    26.198        .18142E-02** at limit **
  20  Prefactor     13.892        25.533        .10745E-03    .27510E-05
  21  norm          20.744        7.7882        .87933E-04    .19354E-03
  22  Prefactor     .10000E-03    37.569        .18142E-02** at limit **
  23  Prefactor     5.9143        7.9333        .16517E-03    .84182E-05
  24  Prefactor     .10000E-03    23.108        .18142E-02** at limit **
  25  Prefactor     .10000E-03    7.9752        .16533E-02** at limit **
  26  norm          .10000E-03    37.781        .18142E-02** at limit **
  27  norm          .53561        17.655        .23378E-02    .52095E-04
  28  Prefactor     .10000E-03    38.408        .18142E-02** at limit **
  29  Prefactor     .10000E-03    369.91        .18142E-02** at limit **
  30  Prefactor     .10000E-03    98.596        .16088    ** at limit **
  31  Prefactor     6.0154        5.5377        .11591E-03    .22770E-03
  32  Prefactor     .10000E-03    26.926        .18142E-02** at limit **
  33  Normalizat    .98609        .25155        .21051E-03    .12513E-03
  34  Prefactor     .68240        .26983        .29401E-03    .58157E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 0.000100003
  Prefactor  = 5.42904
  Prefactor  = 21.537
  norm       = 3.43542
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00010001
  Prefactor  = 12.9463
  Prefactor  = 0.0001
  norm       = 4.03628
  Prefactor  = 20.0302
  norm       = 0.0001
  Prefactor  = 79.833
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8918
  norm       = 20.7435
  Prefactor  = 0.0001
  Prefactor  = 5.91433
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.535605
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 6.01536
  Prefactor  = 0.0001
  Normalizat = 0.986093
  Prefactor  = 0.682398
 **********
 **   18 **HESSE 
 **********

 FCN=   3605.302     FROM HESSE     STATUS=OK           714 CALLS     5671 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    31.143        .67598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    15.212        .43679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.4290        11.008        .68906E-05   -1.5242    
   4  Prefactor     21.537        21.975        .34507E-05   -1.4779    
   5  norm          3.4354        3.1483        .18925E-04   -1.5337    
   6  Prefactor     .10000E-03    7.7289        .32595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    173.73        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10001E-03    32.800        .66333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.946        23.342        .44531E-05   -1.4988    
  10  Prefactor     .10000E-03    5.5679        .27446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.0363        2.5464        .29554E-05   -1.5306    
  12  Prefactor     20.030        21.303        .35796E-05   -1.4813    
  13  norm          .10000E-03    .91145        .11166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     79.833        63.170        .89878E-05   -1.3919    
  15  Prefactor     .10000E-03    5.6557        .27788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.1829        .12750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    67.767        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.387        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.201        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.892        25.533        .42979E-05   -1.4962    
  21  norm          20.744        7.7879        .35173E-05   -1.4797    
  22  Prefactor     .10000E-03    37.570        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.9143        7.9298        .33033E-04   -1.5222    
  24  Prefactor     .10000E-03    23.109        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.9754        .33066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    37.781        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .53561        17.362        .93511E-04   -1.5562    
  28  Prefactor     .10000E-03    38.410        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    369.91        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    99.634        .15966       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     6.0154        5.5192        .46363E-05   -1.5217    
  32  Prefactor     .10000E-03    26.927        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .98609        .25128        .42102E-04   -.93498    
  34  Prefactor     .68240        .27000        .11760E-04   -1.0422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00232e-10
Minuit parameter uncertainties:
  1  0.000385271
  2  0.000428563
  3  11.0121
  4  21.9833
  5  3.1485
  6  5.38778e-06
  7  0.000195483
  8  0.00111781
  9  23.3586
  10  4.17911e-06
  11  2.54649
  12  21.3111
  13  1.52961e-07
  14  63.2235
  15  2.07894e-06
  16  2.79591e-07
  17  2.13593e-05
  18  6.60288e-06
  19  8.49541e-06
  20  25.5535
  21  7.7883
  22  1.62651e-05
  23  7.93118
  24  1.61145e-05
  25  1.97199e-05
  26  2.6282e-05
  27  6.10034
  28  7.89686e-05
  29  0.000113001
  30  0.0013844
  31  5.5197
  32  1.74515e-05
  33  0.251584
  34  0.27052
Done.

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

Extracting fit parameters...

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  1.000e-04  2.079e-06  1.000e-04  1.000e+04 ( 1.000e-13)
372        Index:  2.267e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
373        Scale:  1.345e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  6.824e-01  2.705e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  9.861e-01  2.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 195.721 57.815
Photon Flux Upper Limit: 6.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/108564/likelihoodResults_239587201_239846401_4FGL_J1302.8+5748_daily_bin1.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) = 3605.30279864
delta logL = -0.000840889699703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3605.30195867
delta logL = -9.19175818126e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11253E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2338       1.0000          .0000       10.000    
     3 'Normalizat'    .98625       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68222       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+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=   3605.302     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      238 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10224E-03    4.9552        .14509E-01** at limit **
   2  Index         2.1631        5.7758        .50000        .38149E-04
   3  Normalizat    .98609        .42060E-02    .21051E-03   -.93294E-04
   4  Prefactor     .68240        .49875E-02    .29401E-03    .11107E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102238
  Index      = 2.16313
  Normalizat = 0.986089
  Prefactor  = 0.682404
 **********
 **   18 **HESSE 
 **********

 FCN=   3605.302     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10224E-03    54.625        .14770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1631        5.6776        .50000       -.60331    
   3  Normalizat    .98609        .13962E-01    .42102E-04   -.93498    
   4  Prefactor     .68240        .16556E-01    .11760E-04   -1.0422    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.63332e-09
Minuit parameter uncertainties:
  1  0.0221318
  2  190.301
  3  0.0139619
  4  0.0165561
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/108564': 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) = 3605.30195683
delta logL = 9.24202595343e-07

Extracting fit parameters...

4FGL J1302.8+5748
   Spectrum: PowerLaw
371    Prefactor:  1.022e-04  2.213e-02  1.000e-04  1.000e+04 ( 1.000e-13)
372        Index:  2.163e+00  1.903e+02  0.000e+00  1.000e+01 (-1.000e+00)
373        Scale:  1.345e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  6.824e-01  1.656e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  9.861e-01  1.396e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 195.721 57.815

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/108564/cmap_HighResolution_239587201_239846401_4FGL_J1302.8+5748_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-03', job_status='DONE', photon_flux_upper_limit='6.14e-08', time_completed='2021-09-06 15:25:29.560548', job_id='108564', GAL2='0.68', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630967129.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='9.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1' AND source_name='4FGL J1302.8+5748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 15:25:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 108564: <4FGL_J1302.8+5748_daily_bin1> in cluster <slac> Done

Job <4FGL_J1302.8+5748_daily_bin1> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 15:10:50 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 15:10:53 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:10:53 2021
Terminated at Mon Sep  6 15:25:30 2021
Results reported at Mon Sep  6 15:25:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1302.8+5748_daily_bin1 195.721 57.8146 239587201 239846401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1302.8+5748 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   782.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            880 sec.

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

