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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin269
RA = 199.401, Dec = 34.4676
tmin = 309052801, tmax = 309312001
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='443248', job_status='RUN', time_executed='2021-09-07 10:08:02.597717', time_epoch_executed='1631034482.6' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443248

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443248/ft1_4FGL_J1317.6+3428_daily_bin269.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443248/ft2_4FGL_J1317.6+3428_daily_bin269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443248/ft1_4FGL_J1317.6+3428_daily_bin269.fits outfile=/scratch/kocevski/443248/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin269.fits ra=199.401 dec=34.4676 rad=12.0 tmin=309052801.0 tmax=309312001.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.40
user 3.20
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443248/ft1_filtered_4FGL_J1317.6+3428_daily_bin269.fits" evtable="EVENTS" scfile=/scratch/kocevski/443248/ft2_4FGL_J1317.6+3428_daily_bin269.fits sctable="SC_DATA" outfile=/scratch/kocevski/443248/ltcube_309052801_309312001_4FGL_J1317.6+3428_daily_bin269.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/443248/ft2_4FGL_J1317.6+3428_daily_bin269.fits
.....................!
real 15.54
user 15.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443248/ft1_filtered_4FGL_J1317.6+3428_daily_bin269.fits evtable="EVENTS" scfile=/scratch/kocevski/443248/ft2_4FGL_J1317.6+3428_daily_bin269.fits sctable="SC_DATA" expcube=/scratch/kocevski/443248/ltcube_309052801_309312001_4FGL_J1317.6+3428_daily_bin269.fits outfile=/scratch/kocevski/443248/expmap_309052801_309312001_4FGL_J1317.6+3428_daily_bin269.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/443248/ltcube_309052801_309312001_4FGL_J1317.6+3428_daily_bin269.fits
.....................!
real 191.21
user 186.43
sys 4.21

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/443248/ft1_filtered_4FGL_J1317.6+3428_daily_bin269.fits scfile=/scratch/kocevski/443248/ft2_4FGL_J1317.6+3428_daily_bin269.fits outfile=/scratch/kocevski/443248/cmap_309052801_309312001_4FGL_J1317.6+3428_daily_bin269.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443248/ft1_filtered_4FGL_J1317.6+3428_daily_bin269.fits scfile=/scratch/kocevski/443248/ft2_4FGL_J1317.6+3428_daily_bin269.fits outfile=/scratch/kocevski/443248/cmap_HighResolution_309052801_309312001_4FGL_J1317.6+3428_daily_bin269.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.58
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5246       1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.609       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    143.84       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9540       1.0000         .10000E-03   10000.    
     6 'norm      '    .10356E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.568       1.0000         .10000E-03   10000.    
     9 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17084E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .87093       1.0000         .10000E-03   10000.    
    14 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3935       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13076E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.793       1.0000         .10000E-03   10000.    
    21 'Prefactor '    42.476       1.0000         .10000E-03   10000.    
    22 'norm      '    1.1251       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.0095       1.0000         .10000E-03   10000.    
    25 'Prefactor '    30.117       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1884       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .82501       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=   5189.390     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3286 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5245        5.6587        .71962E-07    .49794E-04
   2  Prefactor     33.611        14.490        .64330E-08   -.14777E-04
   3  Prefactor     .10000E-03    4.8221       -.84639E-06** at limit **
   4  Prefactor     143.84        78.452       -.49591E-06   -.50090E-04
   5  Prefactor     1.9535        2.9662        .59609E-06    .12798E-02
   6  norm          .10000E-03    3.0853        .16176E-06** at limit **
   7  Prefactor     .10000E-03    39.062        .24731E-05** at limit **
   8  Prefactor     11.569        14.145        .10010E-06    .12021E-05
   9  norm          .10000E-03    4.2701        .79203E-06** at limit **
  10  Prefactor     .10000E-03    18.722        .12073E-05** at limit **
  11  norm          .10000E-03    .98612        .29171E-07** at limit **
  12  norm          .10000E-03    8.5028       -.75698E-06** at limit **
  13  norm          .87152        3.9114        .70202E-06    .12246E-03
  14  norm          .10000E-03    5.3828        .22376E-06** at limit **
  15  norm          .10000E-03    5.9105        .14879E-05** at limit **
  16  Prefactor     1.3937        1.5903        .84423E-07   -.14501E-03
  17  Prefactor     .10005E-03    18.277        .66387E-05** at limit **
  18  Prefactor     .10000E-03    16.659        .16345E-05** at limit **
  19  Prefactor     .10000E-03    5.4649       -.39565E-06** at limit **
  20  Prefactor     24.798        23.830       -.49679E-06   -.93686E-04
  21  Prefactor     42.454        68.718        .60469E-05    .17178E-03
  22  norm          1.1258        1.4399       -.66848E-07   -.26796E-03
  23  Prefactor     .10000E-03    3.8435       -.21169E-06** at limit **
  24  norm          8.0124        16.989       -.34865E-06   -.11429E-04
  25  Prefactor     30.120        26.543       -.38175E-06   -.54825E-04
  26  Normalizat    1.1879        .18482        .31149E-06   -.77357E-04
  27  Prefactor     .82557        .22389       -.77552E-06   -.11908E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.52449
  Prefactor  = 33.6108
  Prefactor  = 0.0001
  Prefactor  = 143.843
  Prefactor  = 1.95352
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 11.5687
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.871525
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 1.39368
  Prefactor  = 0.00010005
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 24.7977
  Prefactor  = 42.4544
  norm       = 1.12581
  Prefactor  = 0.0001
  norm       = 8.01237
  Prefactor  = 30.1198
  Normalizat = 1.18789
  Prefactor  = 0.82557
 **********
 **   18 **HESSE 
 **********

 FCN=   5189.390     FROM HESSE     STATUS=OK           484 CALLS     3770 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5245        5.6482        .21160E-03   -1.5332    
   2  Prefactor     33.611        14.492        .69121E-04   -1.4548    
   3  Prefactor     .10000E-03    4.8487        .15492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     143.84        78.463        .16797E-03   -1.3303    
   5  Prefactor     1.9535        3.1210        .78882E-03   -1.5428    
   6  norm          .10000E-03    3.1305        .12332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    39.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.569        14.049        .11778E-03   -1.5028    
   9  norm          .10000E-03    4.4550        .29052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.532        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .98641        .69862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.5426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .87152        3.7529        .25265E-03   -1.5521    
  14  norm          .10000E-03    5.4574        .32441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.9932        .17221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3937        1.5724        .92874E-04   -1.5472    
  17  Prefactor     .10005E-03    24.732        .33025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.4752        .16449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.798        23.844        .80449E-04   -1.4712    
  21  Prefactor     42.454        70.823        .61509E-04   -1.4404    
  22  norm          1.1258        1.2930        .94836E-03   -1.5496    
  23  Prefactor     .10000E-03    3.9426        .27552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.0124        16.965        .14167E-03   -1.5142    
  25  Prefactor     30.120        26.546        .73008E-04   -1.4610    
  26  Normalizat    1.1879        .21777        .20920E-03   -.86978    
  27  Prefactor     .82557        .26330        .30733E-03   -.98793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63966e-09
Minuit parameter uncertainties:
  1  5.64907
  2  14.4938
  3  6.21091e-05
  4  78.5204
  5  3.12127
  6  1.10466e-05
  7  0.00051797
  8  14.0532
  9  4.07914e-05
  10  0.00016683
  11  5.699e-07
  12  7.48179e-05
  13  3.61719
  14  1.33274e-05
  15  0.000121821
  16  1.57246
  17  0.0022325
  18  0.000213983
  19  2.77767e-05
  20  23.8527
  21  70.9643
  22  1.29301
  23  9.91237e-06
  24  16.9751
  25  26.556
  26  0.217933
  27  0.263701
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.394e+00  1.572e+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:  8.256e-01  2.637e-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.188e+00  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.13
Ra Dec: 199.401 34.468
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 1.50e-08 +/- 1.69e-08
Energy Flux (Fixed Index): 4.19e-06 +/- 4.72e-06

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

Saving results to:
/scratch/kocevski/443248/likelihoodResults_309052801_309312001_4FGL_J1317.6+3428_daily_bin269.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) = 5189.07549182
delta logL = 0.314423009342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5189.06169786
delta logL = 0.328216966092

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6810       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7281       1.0000          .0000       10.000    
     3 'Normalizat'    1.2006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81430       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=   5189.062     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6821        2.1672        .81225E-02   -.17308E-03
   2  Index         1.7277        .73695        .27634       -.33092E-04
   3  Normalizat    1.2005        .17805        .34878E-01    .93911E-06
   4  Prefactor     .81427        .22285        .69871E-01    .16245E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.68206
  Index      = 1.72771
  Normalizat = 1.20053
  Prefactor  = 0.814273
 **********
 **   18 **HESSE 
 **********

 FCN=   5189.062     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6821        1.9068        .10059E-03   -1.5449    
   2  Index         1.7277        .81134        .11776E-01   -.71346    
   3  Normalizat    1.2005        .20896        .20822E-03   -.86587    
   4  Prefactor     .81427        .26134        .30916E-03   -.99204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40165e-12
Minuit parameter uncertainties:
  1  1.90689
  2  0.817701
  3  0.209103
  4  0.261734
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443248': 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) = 5189.0616974
delta logL = 0.32821742763

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.682e+00  1.907e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  1.728e+00  8.177e-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:  8.143e-01  2.617e-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.201e+00  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.79
Ra Dec: 199.401 34.468
Photon Index (Free Index): 1.73 +/- 0.82
Photon Flux (Free Index): 7.45e-09 +/- 1.02e-08
Energy Flux (Free Index): 1.11e-05 +/- 2.32e-05

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/443248/cmap_HighResolution_309052801_309312001_4FGL_J1317.6+3428_daily_bin269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.27e-03', comment='SUCCESS', photon_flux='1.50e-08', energy_flux2='1.11e-05', photon_flux_error='1.69e-08', dlogl='3.28e-01', energy_flux='4.19e-06', photon_flux2='7.45e-09', job_status='DONE', time_completed='2021-09-07 10:19:33.244299', photon_index_error2='0.82', photon_index2='1.73', ts='2.13', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='6.77e-08', energy_flux_error2='2.32e-05', EG='1.19', time_epoch_completed='1631035173.24', return_code='0', job_id='443248', GAL2='0.81', EG2='1.20', return_code2='0', energy_flux_error='4.72e-06', photon_flux_error2='1.02e-08', ts2='2.79', photon_index='2.53' WHERE bin_id='269' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:19:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 443248: <4FGL_J1317.6+3428_daily_bin269> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin269> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 10:05:42 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:07:44 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:07:44 2021
Terminated at Tue Sep  7 10:19:33 2021
Results reported at Tue Sep  7 10:19:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin269 199.401 34.4676 309052801 309312001 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 :                                   690.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            831 sec.

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

