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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1030
RA = 199.401, Dec = 34.4676
tmin = 506304001, tmax = 506563201
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='447658', job_status='RUN', time_executed='2021-09-07 10:24:52.874450', time_epoch_executed='1631035492.87' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1030'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447658

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447658/ft1_4FGL_J1317.6+3428_daily_bin1030.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447658/ft2_4FGL_J1317.6+3428_daily_bin1030.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447658/ft1_4FGL_J1317.6+3428_daily_bin1030.fits outfile=/scratch/kocevski/447658/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1030.fits ra=199.401 dec=34.4676 rad=12.0 tmin=506304001.0 tmax=506563201.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.60
user 3.33
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447658/ft1_filtered_4FGL_J1317.6+3428_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/447658/ft2_4FGL_J1317.6+3428_daily_bin1030.fits sctable="SC_DATA" expcube=/scratch/kocevski/447658/ltcube_506304001_506563201_4FGL_J1317.6+3428_daily_bin1030.fits outfile=/scratch/kocevski/447658/expmap_506304001_506563201_4FGL_J1317.6+3428_daily_bin1030.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/447658/ltcube_506304001_506563201_4FGL_J1317.6+3428_daily_bin1030.fits
.....................!
real 190.34
user 185.45
sys 4.40

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/447658/ft1_filtered_4FGL_J1317.6+3428_daily_bin1030.fits scfile=/scratch/kocevski/447658/ft2_4FGL_J1317.6+3428_daily_bin1030.fits outfile=/scratch/kocevski/447658/cmap_506304001_506563201_4FGL_J1317.6+3428_daily_bin1030.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/447658/ft1_filtered_4FGL_J1317.6+3428_daily_bin1030.fits scfile=/scratch/kocevski/447658/ft2_4FGL_J1317.6+3428_daily_bin1030.fits outfile=/scratch/kocevski/447658/cmap_HighResolution_506304001_506563201_4FGL_J1317.6+3428_daily_bin1030.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5142       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.1313       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14611E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.5457       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.3193       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1017       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.843       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6199       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.8128       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.5893       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.0257       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .79677       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=   5089.261     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3225 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5141        5.4074       -.64823E-08    .10626E-04
   2  Prefactor     7.1309        9.1722       -.11813E-06   -.44253E-04
   3  Prefactor     .10000E-03    9.1643        .64135E-05** at limit **
   4  Prefactor     .10000E-03    15.202       -.50818E-05** at limit **
   5  Prefactor     .10000E-03    4.9036       -.82015E-06** at limit **
   6  norm          2.5457        2.5310       -.14409E-07   -.77359E-04
   7  Prefactor     .10000E-03    30.740       -.13464E-04** at limit **
   8  Prefactor     .10000E-03    5.4573        .33287E-06** at limit **
   9  norm          6.3184        4.1532       -.21653E-05   -.11780E-03
  10  Prefactor     .10000E-03    24.495        .10713E-04** at limit **
  11  norm          .10000E-03    1.9285        .32612E-07** at limit **
  12  norm          .10000E-03    7.6844       -.20835E-05** at limit **
  13  norm          .10000E-03    .92818        .18802E-07** at limit **
  14  norm          .10000E-03    1.2978        .29393E-08** at limit **
  15  norm          .10000E-03    28.102       -.33145E-06** at limit **
  16  Prefactor     1.1021        2.8438        .16984E-06   -.71509E-03
  17  Prefactor     .10000E-03    12.540       -.16183E-05** at limit **
  18  Prefactor     32.838        46.036       -.76176E-05   -.32001E-05
  19  Prefactor     .10000E-03    7.6647       -.21873E-05** at limit **
  20  Prefactor     5.6189        16.376       -.11266E-05   -.37044E-04
  21  Prefactor     .10000E-03    20.379        .78535E-05** at limit **
  22  norm          8.8126        2.9428        .12928E-06   -.43387E-04
  23  Prefactor     4.5890        3.7769        .16884E-05   -.10835E-03
  24  norm          .10000E-03    12.673       -.21414E-05** at limit **
  25  Prefactor     .10000E-03    8.1767        .12707E-05** at limit **
  26  Normalizat    1.0257        .16190        .23658E-06    .75631E-06
  27  Prefactor     .79680        .19778        .21631E-06    .11096E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.51412
  Prefactor  = 7.13092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.54571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.31844
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.10208
  Prefactor  = 0.0001
  Prefactor  = 32.8379
  Prefactor  = 0.0001
  Prefactor  = 5.61887
  Prefactor  = 0.0001
  norm       = 8.81262
  Prefactor  = 4.58899
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02574
  Prefactor  = 0.796796
 **********
 **   18 **HESSE 
 **********

 FCN=   5089.261     FROM HESSE     STATUS=OK           484 CALLS     3709 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5141        5.4055        .17703E-03   -1.5283    
   2  Prefactor     7.1309        9.1677        .15021E-03   -1.5174    
   3  Prefactor     .10000E-03    9.1734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.372        .30338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.5457        2.5243        .11003E-03   -1.5389    
   7  Prefactor     .10000E-03    30.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.4611        .16276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.3184        4.1659        .11420E-03   -1.5205    
  10  Prefactor     .10000E-03    24.965        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.9372        .96708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.7021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .93430        .67081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.2982        .79367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    28.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1021        2.7745        .17470E-03   -1.5498    
  17  Prefactor     .10000E-03    12.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     32.838        45.313        .69920E-04   -1.4561    
  19  Prefactor     .10000E-03    7.6866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.6189        16.386        .16946E-03   -1.5234    
  21  Prefactor     .10000E-03    20.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.8126        2.9464        .67670E-04   -1.5114    
  23  Prefactor     4.5890        3.7645        .12024E-03   -1.5279    
  24  norm          .10000E-03    12.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.1840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0257        .19159        .20369E-03   -.92173    
  27  Prefactor     .79680        .23382        .28517E-03   -.99847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08357e-10
Minuit parameter uncertainties:
  1  5.40607
  2  9.16954
  3  1.70426e-06
  4  7.9102e-07
  5  9.52139e-05
  6  2.52443
  7  6.65645e-06
  8  4.89695e-07
  9  4.1661
  10  9.64103e-05
  11  3.33487e-07
  12  1.31555e-06
  13  7.63009e-07
  14  3.34486e-07
  15  0.000123854
  16  2.77483
  17  5.04057e-05
  18  45.3609
  19  2.35898e-09
  20  16.3991
  21  9.87238e-07
  22  2.94644
  23  3.76474
  24  5.88238e-06
  25  1.42157e-06
  26  0.191718
  27  0.234116
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.102e+00  2.775e+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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  7.968e-01  2.341e-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.026e+00  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/447658/likelihoodResults_506304001_506563201_4FGL_J1317.6+3428_daily_bin1030.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): 0
logL (Free Index) = 5089.25692305
delta logL = 0.00427209416739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5089.2560123
delta logL = 0.00518284763075

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2256       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3973       1.0000          .0000       10.000    
     3 'Normalizat'    1.0272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79539       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=   5089.256     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      249 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2235        3.1395        .18187E-03   -.12077E-03
   2  Index         2.3993        1.3136        .15051E-01   -.98272E-05
   3  Normalizat    1.0272        .18776        .20356E-03   -.64004E-04
   4  Prefactor     .79537        .23379        .28539E-03   -.19759E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.22354
  Index      = 2.39929
  Normalizat = 1.02723
  Prefactor  = 0.795366
 **********
 **   18 **HESSE 
 **********

 FCN=   5089.256     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2235        3.0423        .72747E-05   -1.5487    
   2  Index         2.3993        1.2746        .60203E-03   -.54702    
   3  Normalizat    1.0272        .18795        .81423E-05   -.92124    
   4  Prefactor     .79537        .23396        .11416E-04   -.99899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51502e-11
Minuit parameter uncertainties:
  1  3.04266
  2  1.2943
  3  0.188073
  4  0.234251
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447658': 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) = 5089.25601106
delta logL = 0.00518408058815

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.224e+00  3.043e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.399e+00  1.294e+00  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:  7.954e-01  2.343e-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.027e+00  1.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
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/447658/cmap_HighResolution_506304001_506563201_4FGL_J1317.6+3428_daily_bin1030.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.49e-03', job_status='DONE', photon_flux_upper_limit='8.33e-08', time_completed='2021-09-07 10:36:13.571287', job_id='447658', GAL2='0.80', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1631036173.57', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='5.18e-03', ts2='0.21', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1030' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:36:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 447658: <4FGL_J1317.6+3428_daily_bin1030> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin1030> 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) <bullet0158>, 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:14 2021
Results reported at Tue Sep  7 10:36:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1030 199.401 34.4676 506304001 506563201 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 :                                   678.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            900 sec.

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

