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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1483
RA = 199.401, Dec = 34.4676
tmin = 623721601, tmax = 623980801
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='449340', job_status='RUN', time_executed='2021-09-07 10:30:34.788992', time_epoch_executed='1631035834.79' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1483'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449340

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449340/ft1_4FGL_J1317.6+3428_daily_bin1483.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449340/ft2_4FGL_J1317.6+3428_daily_bin1483.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449340/ft1_4FGL_J1317.6+3428_daily_bin1483.fits outfile=/scratch/kocevski/449340/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1483.fits ra=199.401 dec=34.4676 rad=12.0 tmin=623721601.0 tmax=623980801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.24
user 4.95
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/449340/ft1_filtered_4FGL_J1317.6+3428_daily_bin1483.fits" evtable="EVENTS" scfile=/scratch/kocevski/449340/ft2_4FGL_J1317.6+3428_daily_bin1483.fits sctable="SC_DATA" outfile=/scratch/kocevski/449340/ltcube_623721601_623980801_4FGL_J1317.6+3428_daily_bin1483.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/449340/ft2_4FGL_J1317.6+3428_daily_bin1483.fits
.....................!
real 15.76
user 15.37
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449340/ft1_filtered_4FGL_J1317.6+3428_daily_bin1483.fits evtable="EVENTS" scfile=/scratch/kocevski/449340/ft2_4FGL_J1317.6+3428_daily_bin1483.fits sctable="SC_DATA" expcube=/scratch/kocevski/449340/ltcube_623721601_623980801_4FGL_J1317.6+3428_daily_bin1483.fits outfile=/scratch/kocevski/449340/expmap_623721601_623980801_4FGL_J1317.6+3428_daily_bin1483.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/449340/ltcube_623721601_623980801_4FGL_J1317.6+3428_daily_bin1483.fits
.....................!
real 191.90
user 186.68
sys 4.25

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/449340/ft1_filtered_4FGL_J1317.6+3428_daily_bin1483.fits scfile=/scratch/kocevski/449340/ft2_4FGL_J1317.6+3428_daily_bin1483.fits outfile=/scratch/kocevski/449340/cmap_623721601_623980801_4FGL_J1317.6+3428_daily_bin1483.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.59
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449340/ft1_filtered_4FGL_J1317.6+3428_daily_bin1483.fits scfile=/scratch/kocevski/449340/ft2_4FGL_J1317.6+3428_daily_bin1483.fits outfile=/scratch/kocevski/449340/cmap_HighResolution_623721601_623980801_4FGL_J1317.6+3428_daily_bin1483.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.339       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.454       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.3382       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10414E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7619       1.0000         .10000E-03   10000.    
    14 'norm      '    .14606E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12329E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.594       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.1522       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 '    36.289       1.0000         .10000E-03   10000.    
    22 'norm      '    1.5535       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.6371       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .42275       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=   5016.325     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3321 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9580        .44687E-06** at limit **
   2  Prefactor     .10000E-03    10.372       -.63778E-07** at limit **
   3  Prefactor     13.340        14.525        .73664E-07   -.17682E-04
   4  Prefactor     21.427        73.398       -.72105E-05   -.66056E-04
   5  Prefactor     .10000E-03    1.7280        .59513E-09** at limit **
   6  norm          3.3390        4.2085        .39200E-07   -.20675E-03
   7  Prefactor     .10000E-03    15.697       -.50355E-07** at limit **
   8  Prefactor     .10000E-03    18.053        .34975E-06** at limit **
   9  norm          .10000E-03    6.0403       -.29377E-06** at limit **
  10  Prefactor     .10000E-03    4.8371       -.99596E-07** at limit **
  11  norm          .10000E-03    3.9632        .11746E-06** at limit **
  12  norm          .10000E-03    6.3509       -.26015E-06** at limit **
  13  norm          1.7577        3.6575        .15897E-06   -.75236E-03
  14  norm          .10001E-03    6.2053        .45081E-06** at limit **
  15  norm          .10000E-03    11.534       -.37767E-06** at limit **
  16  Prefactor     .10001E-03    3.1856        .19214E-05** at limit **
  17  Prefactor     11.603        19.354       -.20074E-05   -.39621E-03
  18  Prefactor     7.1633        89.922       -.23425E-05   -.72827E-04
  19  Prefactor     .10000E-03    7.3418        .12892E-06** at limit **
  20  Prefactor     .10000E-03    11.994       -.44785E-06** at limit **
  21  Prefactor     36.287        64.184       -.18544E-06   -.38632E-04
  22  norm          1.5538        1.8705        .15923E-06   -.10957E-03
  23  Prefactor     .10001E-03    3.4114       -.21059E-07** at limit **
  24  norm          .10000E-03    5.4229        .36268E-06** at limit **
  25  Prefactor     .10000E-03    7.4308        .10816E-06** at limit **
  26  Normalizat    1.6369        .20636       -.16522E-05   -.42376E-03
  27  Prefactor     .42293        .23613        .21541E-05   -.18237E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3403
  Prefactor  = 21.4266
  Prefactor  = 0.0001
  norm       = 3.33896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  norm       = 1.75772
  norm       = 0.000100009
  norm       = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 11.6028
  Prefactor  = 7.16335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.2874
  norm       = 1.55382
  Prefactor  = 0.000100014
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.63694
  Prefactor  = 0.422934
 **********
 **   18 **HESSE 
 **********

 FCN=   5016.325     FROM HESSE     STATUS=OK           484 CALLS     3805 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.340        14.522        .10967E-03   -1.4977    
   4  Prefactor     21.427        73.618        .86476E-04   -1.4782    
   5  Prefactor     .10000E-03    1.7293        .90921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.3390        4.1842        .15480E-03   -1.5342    
   7  Prefactor     .10000E-03    15.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.2878        .33929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.8407        .15211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    9.8177        .26857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.3648        .17432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7577        3.1139        .15693E-03   -1.5443    
  14  norm          .10001E-03    18.452        .29290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    7.3291        .20457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.603        19.766        .11765E-03   -1.5027    
  18  Prefactor     7.1633        89.696        .14999E-03   -1.5173    
  19  Prefactor     .10000E-03    7.3547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     36.287        64.652        .66528E-04   -1.4502    
  22  norm          1.5538        1.8507        .10172E-03   -1.5459    
  23  Prefactor     .10001E-03    22.305        .24671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.4340        .16115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.4362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.6369        .22611        .19057E-03   -.74000    
  27  Prefactor     .42293        .25605        .41206E-03   -1.1565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68964e-09
Minuit parameter uncertainties:
  1  2.3815e-05
  2  1.49027e-05
  3  14.5262
  4  73.9321
  5  5.18496e-07
  6  4.18459
  7  2.28795e-06
  8  4.81322e-05
  9  2.20738e-06
  10  4.29156e-06
  11  0.000261403
  12  1.09848e-05
  13  3.11418
  14  0.000795733
  15  1.9077e-05
  16  0.00062574
  17  19.7771
  18  50.79
  19  8.33992e-06
  20  2.23372e-05
  21  64.777
  22  1.85074
  23  0.00112643
  24  1.68436e-05
  25  6.5629e-06
  26  0.22625
  27  0.256747
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  6.257e-04  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:  4.229e-01  2.567e-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.637e+00  2.263e-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: 9.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/449340/likelihoodResults_623721601_623980801_4FGL_J1317.6+3428_daily_bin1483.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) = 5016.32517514
delta logL = -0.00065135798377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5016.32452241
delta logL = 1.36840480991e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11632E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6181       1.0000          .0000       10.000    
     3 'Normalizat'    1.6370       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42296       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=   5014.717     FROM MIGRAD    STATUS=CONVERGED    203 CALLS      381 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .28728E-02    .28344E-03** at limit **
   2  Index         9.0662        7.5201        .17248        .10201E-03
   3  Normalizat    1.5050        .56041E-01    .44460E-01   -.45282E-04
   4  Prefactor     .53368        .65252E-01    .83510E-01    .24993E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.06616
  Normalizat = 1.50502
  Prefactor  = 0.533679
 **********
 **   18 **HESSE 
 **********

 FCN=   5014.717     FROM HESSE     STATUS=OK            33 CALLS      414 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .69097E-03    .71411E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.0662        .33887        .76274E-03    .94968    
   3  Normalizat    1.5050        .22793        .19652E-03   -.77637    
   4  Prefactor     .53368        .26419        .36994E-03   -1.1046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80846e-11
Minuit parameter uncertainties:
  1  9.92154e-10
  2  0.339639
  3  0.228089
  4  0.264801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449340': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5014.71736021
delta logL = 1.60716357365

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  9.922e-10  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  9.066e+00  3.396e-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:  5.337e-01  2.648e-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.505e+00  2.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.46
Ra Dec: 199.401 34.468
Photon Index (Free Index): 9.07 +/- 0.34
Photon Flux (Free Index): 1.08e-07 +/- 6.76e-08
Energy Flux (Free Index): 1.23e-05 +/- 7.65e-06

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/449340/cmap_HighResolution_623721601_623980801_4FGL_J1317.6+3428_daily_bin1483.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.77e-03', comment='SUCCESS', energy_flux2='1.23e-05', dlogl='1.61e+00', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-07 10:42:24.585224', photon_index_error2='0.34', photon_index2='9.07', ts='-0.00', fit_tolerance='1e-08', GAL='0.42', photon_index_error='0.00', photon_flux_upper_limit='9.96e-08', energy_flux_error2='7.65e-06', EG='1.64', time_epoch_completed='1631036544.59', return_code='0', job_id='449340', GAL2='0.53', EG2='1.51', return_code2='0', photon_flux_error2='6.76e-08', ts2='3.46', photon_index='2.53' WHERE bin_id='1483' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:42:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 449340: <4FGL_J1317.6+3428_daily_bin1483> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1483 199.401 34.4676 623721601 623980801 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 :                                   704.12 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             283.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            963 sec.

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

