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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1029
RA = 199.401, Dec = 34.4676
tmin = 506044801, tmax = 506304001
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='447657', job_status='RUN', time_executed='2021-09-07 10:24:46.151172', time_epoch_executed='1631035486.15' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447657

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447657/ft1_4FGL_J1317.6+3428_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447657/ft2_4FGL_J1317.6+3428_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447657/ft1_4FGL_J1317.6+3428_daily_bin1029.fits outfile=/scratch/kocevski/447657/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1029.fits ra=199.401 dec=34.4676 rad=12.0 tmin=506044801.0 tmax=506304001.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 4.37
user 4.09
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/447657/ft2_4FGL_J1317.6+3428_daily_bin1029.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/447657/ft2_4FGL_J1317.6+3428_daily_bin1029.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/447657/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1029.fits evtable="EVENTS" outfile="/scratch/kocevski/447657/ft1_filtered_4FGL_J1317.6+3428_daily_bin1029.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.51
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447657/ft1_filtered_4FGL_J1317.6+3428_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/447657/ft2_4FGL_J1317.6+3428_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/447657/ltcube_506044801_506304001_4FGL_J1317.6+3428_daily_bin1029.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/447657/ft2_4FGL_J1317.6+3428_daily_bin1029.fits
.....................!
real 15.66
user 15.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447657/ft1_filtered_4FGL_J1317.6+3428_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/447657/ft2_4FGL_J1317.6+3428_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/447657/ltcube_506044801_506304001_4FGL_J1317.6+3428_daily_bin1029.fits outfile=/scratch/kocevski/447657/expmap_506044801_506304001_4FGL_J1317.6+3428_daily_bin1029.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/447657/ltcube_506044801_506304001_4FGL_J1317.6+3428_daily_bin1029.fits
.....................!
real 192.49
user 186.85
sys 5.18

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 J1317.6+3428 @ 199.401 34.4676

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/447657/ft1_filtered_4FGL_J1317.6+3428_daily_bin1029.fits scfile=/scratch/kocevski/447657/ft2_4FGL_J1317.6+3428_daily_bin1029.fits outfile=/scratch/kocevski/447657/cmap_506044801_506304001_4FGL_J1317.6+3428_daily_bin1029.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=199.401 yref=34.4676 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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447657/ft1_filtered_4FGL_J1317.6+3428_daily_bin1029.fits scfile=/scratch/kocevski/447657/ft2_4FGL_J1317.6+3428_daily_bin1029.fits outfile=/scratch/kocevski/447657/cmap_HighResolution_506044801_506304001_4FGL_J1317.6+3428_daily_bin1029.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=199.401 yref=34.4676 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.61
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/447657/ft1_filtered_4FGL_J1317.6+3428_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/447657/ft2_4FGL_J1317.6+3428_daily_bin1029.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/447657/Model_4FGL_J1317.6+3428_daily_bin1029.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/447657/ft1_filtered_4FGL_J1317.6+3428_daily_bin1029.fits.....................!
real 45.38
user 43.82
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/447657/ft1_filtered_4FGL_J1317.6+3428_daily_bin1029.fits', '/scratch/kocevski/447657/ft2_4FGL_J1317.6+3428_daily_bin1029.fits', expMap='/scratch/kocevski/447657/expmap_506044801_506304001_4FGL_J1317.6+3428_daily_bin1029.fits', expCube='/scratch/kocevski/447657/ltcube_506044801_506304001_4FGL_J1317.6+3428_daily_bin1029.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/447657/Model_4FGL_J1317.6+3428_daily_bin1029.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1317.6+3428'

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.307e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.534e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  7.492e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/447657/ft1_filtered_4FGL_J1317.6+3428_daily_bin1029.fits
Spacecraft file(s): /scratch/kocevski/447657/ft2_4FGL_J1317.6+3428_daily_bin1029.fits
Exposure map: /scratch/kocevski/447657/expmap_506044801_506304001_4FGL_J1317.6+3428_daily_bin1029.fits
Exposure cube: /scratch/kocevski/447657/ltcube_506044801_506304001_4FGL_J1317.6+3428_daily_bin1029.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/447657/Model_4FGL_J1317.6+3428_daily_bin1029.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) = 5163.87483996

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    50.807       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .67811       1.0000         .10000E-03   10000.    
     6 'norm      '    .19575E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.1523       1.0000         .10000E-03   10000.    
     9 'norm      '    7.1626       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.7980       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12620E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    27.632       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.4864       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3385       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11580E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    54.092       1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.317       1.0000         .10000E-03   10000.    
    22 'norm      '    9.4250       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    16.016       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .93870       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .99707       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=   5163.871     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     3338 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6213       -.40268E-08** at limit **
   2  Prefactor     .10000E-03    9.7003        .12126E-06** at limit **
   3  Prefactor     .10000E-03    19.739       -.60644E-06** at limit **
   4  Prefactor     50.823        64.519        .11122E-05    .41830E-04
   5  Prefactor     .66304        13.606        .29075E-05   -.32901E-04
   6  norm          .10000E-03    21.970       -.37708E-05** at limit **
   7  Prefactor     .10000E-03    69.252       -.12346E-05** at limit **
   8  Prefactor     9.1631        17.242        .78964E-06    .38845E-04
   9  norm          7.1625        4.1572       -.56154E-07   -.72554E-04
  10  Prefactor     .10000E-03    6.2747       -.76471E-07** at limit **
  11  norm          8.7991        5.0745       -.44928E-07    .55708E-04
  12  norm          .10000E-03    4.1901        .18423E-08** at limit **
  13  norm          .10000E-03    6.8244        .15125E-05** at limit **
  14  norm          .10000E-03    3.5401       -.11808E-07** at limit **
  15  norm          27.631        18.459       -.12690E-07    .19994E-05
  16  Prefactor     .10000E-03    1.2520       -.81017E-06** at limit **
  17  Prefactor     8.4871        10.814        .56938E-07    .13086E-03
  18  Prefactor     2.3109        251.77       -.57832E-05   -.50223E-05
  19  Prefactor     .10000E-03    41.014        .63845E-06** at limit **
  20  Prefactor     54.080        26.713        .73082E-06    .10613E-03
  21  Prefactor     36.308        61.612       -.11818E-05   -.18610E-04
  22  norm          9.4248        2.8897       -.17635E-07    .13741E-04
  23  Prefactor     .10000E-03    2.3559       -.25077E-06** at limit **
  24  norm          16.014        15.990        .37763E-07    .16069E-04
  25  Prefactor     .10000E-03    37.437        .41938E-07** at limit **
  26  Normalizat    .93877        .18955        .11136E-05   -.33787E-04
  27  Prefactor     .99699        .23019       -.99328E-06    .14122E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.8227
  Prefactor  = 0.663037
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 9.16313
  norm       = 7.16253
  Prefactor  = 0.0001
  norm       = 8.79912
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  norm       = 27.6314
  Prefactor  = 0.0001
  Prefactor  = 8.48706
  Prefactor  = 2.31087
  Prefactor  = 0.0001
  Prefactor  = 54.0798
  Prefactor  = 36.3083
  norm       = 9.42485
  Prefactor  = 0.0001
  norm       = 16.0145
  Prefactor  = 0.0001
  Normalizat = 0.938775
  Prefactor  = 0.996985
 **********
 **   18 **HESSE 
 **********

 FCN=   5163.871     FROM HESSE     STATUS=OK           496 CALLS     3834 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6340        .15089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.029        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     50.823        64.396        .56263E-04   -1.4281    
   5  Prefactor     .66304        13.798        .27320E-02   -1.5545    
   6  norm          .10000E-03    29.764        .20117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    69.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.1631        17.080        .13248E-03   -1.5102    
   9  norm          7.1625        4.1604        .10816E-03   -1.5173    
  10  Prefactor     .10000E-03    6.2852        .17574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.7991        5.0629        .11808E-03   -1.5115    
  12  norm          .10000E-03    4.1915        .14367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    18.403        .16305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.5905        .13180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          27.631        18.459        .76213E-04   -1.4656    
  16  Prefactor     .10000E-03    1.2799        .78552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.4871        10.736        .13761E-03   -1.5125    
  18  Prefactor     2.3109        255.45        .26813E-03   -1.5404    
  19  Prefactor     .10000E-03    42.195        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     54.080        26.977        .54537E-04   -1.4236    
  21  Prefactor     36.308        61.724        .66502E-04   -1.4502    
  22  norm          9.4248        2.8913        .65017E-04   -1.5094    
  23  Prefactor     .10000E-03    4.2783        .21299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          16.014        15.993        .10008E-03   -1.4907    
  25  Prefactor     .10000E-03    37.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .93877        .21084        .22756E-03   -.95111    
  27  Prefactor     .99699        .25839        .28038E-03   -.92830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43727e-08
Minuit parameter uncertainties:
  1  2.88507e-07
  2  1.73067e-05
  3  9.67585e-05
  4  64.484
  5  6.05057
  6  0.000503822
  7  0.000299507
  8  17.0889
  9  4.16058
  10  1.86828e-06
  11  5.06318
  12  1.63982e-06
  13  0.000358123
  14  6.85169e-06
  15  18.4625
  16  1.05756e-05
  17  10.7387
  18  48.8068
  19  3.42452e-06
  20  26.9831
  21  61.8326
  22  2.89132
  23  7.45485e-06
  24  15.9969
  25  3.25146e-05
  26  0.211027
  27  0.258715
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.058e-05  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.534e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  7.492e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.970e-01  2.587e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  9.388e-01  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 199.401 34.468
Photon Flux Upper Limit: 5.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447657/likelihoodResults_506044801_506304001_4FGL_J1317.6+3428_daily_bin1029.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) = 5163.87481127
delta logL = -0.00369989393039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5163.87111123
delta logL = 1.46295860759e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5148       1.0000          .0000       10.000    
     3 'Normalizat'    .93882       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99699       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=   5163.871     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      243 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6397        .79830E-02** at limit **
   2  Index         2.0512        7.6183        .50000        .25138E-06
   3  Normalizat    .93878        .93053E-02    .22756E-03   -.59903E-03
   4  Prefactor     .99698        .11841E-01    .28038E-03   -.47235E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.05119
  Normalizat = 0.938777
  Prefactor  = 0.99698
 **********
 **   18 **HESSE 
 **********

 FCN=   5163.871     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    77.498        .88001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0512        6.5122        .50000       -.63077    
   3  Normalizat    .93878        .31131E-01    .45512E-04   -.95111    
   4  Prefactor     .99698        .39614E-01    .56076E-04   -.92830    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.70394e-10
Minuit parameter uncertainties:
  1  2.39763e-05
  2  441.502
  3  0.0311316
  4  0.0396155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447657': 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) = 5163.8711039
delta logL = 7.46976547816e-06

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.398e-05  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.051e+00  4.415e+02  0.000e+00  1.000e+01 (-1.000e+00)
321        Scale:  7.492e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.970e-01  3.962e-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:  9.388e-01  3.113e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 199.401 34.468

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/447657/cmap_HighResolution_506044801_506304001_4FGL_J1317.6+3428_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.19e-03', job_status='DONE', photon_flux_upper_limit='5.37e-08', time_completed='2021-09-07 10:36:34.361860', job_id='447657', GAL2='1.00', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1631036194.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='7.47e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1029' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:36:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 447657: <4FGL_J1317.6+3428_daily_bin1029> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin1029> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 10:21:14 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:22:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 10:22:09 2021
Terminated at Tue Sep  7 10:36:35 2021
Results reported at Tue Sep  7 10:36:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1029 199.401 34.4676 506044801 506304001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1317.6+3428 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   707.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            921 sec.

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

