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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1300
RA = 199.401, Dec = 34.4676
tmin = 576288001, tmax = 576547201
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='449072', job_status='RUN', time_executed='2021-09-07 10:26:36.132560', time_epoch_executed='1631035596.13' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449072

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449072/ft1_4FGL_J1317.6+3428_daily_bin1300.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449072/ft2_4FGL_J1317.6+3428_daily_bin1300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449072/ft1_4FGL_J1317.6+3428_daily_bin1300.fits outfile=/scratch/kocevski/449072/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1300.fits ra=199.401 dec=34.4676 rad=12.0 tmin=576288001.0 tmax=576547201.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.36
user 3.08
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/449072/ft2_4FGL_J1317.6+3428_daily_bin1300.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/449072/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1300.fits evtable="EVENTS" outfile="/scratch/kocevski/449072/ft1_filtered_4FGL_J1317.6+3428_daily_bin1300.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.54
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/449072/ft1_filtered_4FGL_J1317.6+3428_daily_bin1300.fits" evtable="EVENTS" scfile=/scratch/kocevski/449072/ft2_4FGL_J1317.6+3428_daily_bin1300.fits sctable="SC_DATA" outfile=/scratch/kocevski/449072/ltcube_576288001_576547201_4FGL_J1317.6+3428_daily_bin1300.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/449072/ft2_4FGL_J1317.6+3428_daily_bin1300.fits
.....................!
real 12.81
user 12.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449072/ft1_filtered_4FGL_J1317.6+3428_daily_bin1300.fits evtable="EVENTS" scfile=/scratch/kocevski/449072/ft2_4FGL_J1317.6+3428_daily_bin1300.fits sctable="SC_DATA" expcube=/scratch/kocevski/449072/ltcube_576288001_576547201_4FGL_J1317.6+3428_daily_bin1300.fits outfile=/scratch/kocevski/449072/expmap_576288001_576547201_4FGL_J1317.6+3428_daily_bin1300.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/449072/ltcube_576288001_576547201_4FGL_J1317.6+3428_daily_bin1300.fits
.....................!
real 192.78
user 187.45
sys 4.64

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/449072/ft1_filtered_4FGL_J1317.6+3428_daily_bin1300.fits scfile=/scratch/kocevski/449072/ft2_4FGL_J1317.6+3428_daily_bin1300.fits outfile=/scratch/kocevski/449072/cmap_576288001_576547201_4FGL_J1317.6+3428_daily_bin1300.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449072/ft1_filtered_4FGL_J1317.6+3428_daily_bin1300.fits scfile=/scratch/kocevski/449072/ft2_4FGL_J1317.6+3428_daily_bin1300.fits outfile=/scratch/kocevski/449072/cmap_HighResolution_576288001_576547201_4FGL_J1317.6+3428_daily_bin1300.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.37
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/449072/ft1_filtered_4FGL_J1317.6+3428_daily_bin1300.fits', '/scratch/kocevski/449072/ft2_4FGL_J1317.6+3428_daily_bin1300.fits', expMap='/scratch/kocevski/449072/expmap_576288001_576547201_4FGL_J1317.6+3428_daily_bin1300.fits', expCube='/scratch/kocevski/449072/ltcube_576288001_576547201_4FGL_J1317.6+3428_daily_bin1300.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/449072/Model_4FGL_J1317.6+3428_daily_bin1300.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/449072/ft1_filtered_4FGL_J1317.6+3428_daily_bin1300.fits
Spacecraft file(s): /scratch/kocevski/449072/ft2_4FGL_J1317.6+3428_daily_bin1300.fits
Exposure map: /scratch/kocevski/449072/expmap_576288001_576547201_4FGL_J1317.6+3428_daily_bin1300.fits
Exposure cube: /scratch/kocevski/449072/ltcube_576288001_576547201_4FGL_J1317.6+3428_daily_bin1300.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/449072/Model_4FGL_J1317.6+3428_daily_bin1300.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) = 5194.73491733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    7.5039       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10192E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8831       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.360       1.0000         .10000E-03   10000.    
    11 'norm      '    7.6431       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .83264       1.0000         .10000E-03   10000.    
    14 'norm      '    .10187E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2800       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    22.428       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.709       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .83669       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.4034       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=   5194.634     FROM MIGRAD    STATUS=CONVERGED    661 CALLS     2809 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9368        .19728E-06** at limit **
   2  Prefactor     7.5040        9.9415        .49875E-08    .98069E-06
   3  Prefactor     .10000E-03    6.5180       -.98178E-07** at limit **
   4  Prefactor     .10000E-03    32.081       -.41046E-06** at limit **
   5  Prefactor     .10000E-03    2.4826       -.17644E-08** at limit **
   6  norm          .10000E-03    16.619        .15165E-05** at limit **
   7  Prefactor     .10000E-03    17.801       -.36130E-06** at limit **
   8  Prefactor     6.9398        39.473        .19014E-05   -.19543E-04
   9  norm          .10000E-03    4.0186        .12007E-06** at limit **
  10  Prefactor     10.357        13.629        .41866E-08    .53909E-04
  11  norm          7.6407        6.2886        .26222E-07    .17496E-03
  12  norm          .10000E-03    10.258       -.27769E-06** at limit **
  13  norm          .82793        3.1897        .13062E-05   -.28513E-04
  14  norm          .10000E-03    5.1859       -.13517E-05** at limit **
  15  norm          .10000E-03    11.161        .17894E-06** at limit **
  16  Prefactor     .10000E-03    2.2864       -.32546E-06** at limit **
  17  Prefactor     4.2777        8.8341       -.14174E-06    .72747E-04
  18  Prefactor     .10000E-03    26.586        .11983E-05** at limit **
  19  Prefactor     .10000E-03    6.9499        .18421E-06** at limit **
  20  Prefactor     .10000E-03    7.1843       -.82183E-07** at limit **
  21  Prefactor     .10000E-03    76.336       -.11840E-05** at limit **
  22  norm          22.428        3.8911       -.14018E-07    .71512E-04
  23  Prefactor     .10000E-03    2.6077        .92517E-07** at limit **
  24  norm          10.709        15.036       -.16237E-06    .57592E-05
  25  Prefactor     .10000E-03    12.304        .26804E-06** at limit **
  26  Normalizat    .83666        .19862        .10159E-05    .21623E-04
  27  Prefactor     1.4035        .23851       -.50685E-06    .25190E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.50404
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 6.93981
  norm       = 0.0001
  Prefactor  = 10.3571
  norm       = 7.64073
  norm       = 0.0001
  norm       = 0.827929
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.27768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.4275
  Prefactor  = 0.0001
  norm       = 10.709
  Prefactor  = 0.0001
  Normalizat = 0.836664
  Prefactor  = 1.40348
 **********
 **   18 **HESSE 
 **********

 FCN=   5194.634     FROM HESSE     STATUS=OK           484 CALLS     3293 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.5040        9.9394        .14640E-03   -1.5160    
   3  Prefactor     .10000E-03    6.5219        .17975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.4890        .11093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    17.841        .31006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.9398        40.360        .15292E-03   -1.5181    
   9  norm          .10000E-03    4.1416        .28197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.357        13.632        .12449E-03   -1.5064    
  11  norm          7.6407        6.2640        .14505E-03   -1.5155    
  12  norm          .10000E-03    10.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .82793        3.3408        .24411E-03   -1.5526    
  14  norm          .10000E-03    12.269        .29068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.0604        .20922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.2777        8.7630        .19474E-03   -1.5294    
  18  Prefactor     .10000E-03    26.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.9463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.1924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    76.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          22.428        3.8918        .57288E-04   -1.4760    
  23  Prefactor     .10000E-03    2.6382        .11360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.709        15.033        .12243E-03   -1.5053    
  25  Prefactor     .10000E-03    12.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .83666        .22583        .26214E-03   -.98723    
  27  Prefactor     1.4035        .27964        .26659E-03   -.80280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.33146e-10
Minuit parameter uncertainties:
  1  1.4828e-05
  2  9.94156
  3  6.25827e-06
  4  2.95207e-05
  5  5.759e-06
  6  0.000366478
  7  1.8243e-05
  8  33.5058
  9  2.23621e-05
  10  13.6365
  11  6.26454
  12  1.63713e-05
  13  3.32637
  14  0.000408731
  15  1.07879e-05
  16  5.89585e-05
  17  8.76567
  18  3.25048e-06
  19  1.43513e-05
  20  1.0559e-05
  21  0.000220123
  22  3.89184
  23  1.5156e-05
  24  15.0378
  25  7.88396e-06
  26  0.226083
  27  0.27994
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  5.896e-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:  1.403e+00  2.799e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  8.367e-01  2.261e-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: 8.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/449072/likelihoodResults_576288001_576547201_4FGL_J1317.6+3428_daily_bin1300.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) = 5194.63566394
delta logL = -0.00117403157401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5194.63449204
delta logL = -2.13315797737e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10946E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5496       1.0000          .0000       10.000    
     3 'Normalizat'    .83643       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4039       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=   5194.634     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      225 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2988        .38835E-01** at limit **
   2  Index         2.5649        5.8000        .50000       -.35166E-04
   3  Normalizat    .83667        .77776E-02    .44084E-01   -.54575E-04
   4  Prefactor     1.4035        .99807E-02    .60285E-01   -.86892E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.56487
  Normalizat = 0.836668
  Prefactor  = 1.40348
 **********
 **   18 **HESSE 
 **********

 FCN=   5194.634     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      258 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    506.50        .20870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5649        8.1599        .50000       -.50868    
   3  Normalizat    .83667        .61825E-01    .26215E-03   -.98723    
   4  Prefactor     1.4035        .79160E-01    .26659E-03   -.80280    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.42e-08
Minuit parameter uncertainties:
  1  0.00172825
  2  48.7694
  3  0.0618297
  4  0.0791672
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449072': 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) = 5194.63448967
delta logL = 2.38384018303e-07

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.728e-03  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.565e+00  4.877e+01  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:  1.403e+00  7.917e-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:  8.367e-01  6.183e-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/449072/cmap_HighResolution_576288001_576547201_4FGL_J1317.6+3428_daily_bin1300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.75e-03', job_status='DONE', photon_flux_upper_limit='8.66e-08', time_completed='2021-09-07 10:37:32.308349', job_id='449072', GAL2='1.40', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1631036252.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='2.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1300' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:37:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 449072: <4FGL_J1317.6+3428_daily_bin1300> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin1300> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 10:25:56 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:26:19 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:26:19 2021
Terminated at Tue Sep  7 10:37:33 2021
Results reported at Tue Sep  7 10:37:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1300 199.401 34.4676 576288001 576547201 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 :                                   654.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   673 sec.
    Turnaround time :                            697 sec.

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

