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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin4
RA = 199.401, Dec = 34.4676
tmin = 240364801, tmax = 240624001
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='441856', job_status='RUN', time_executed='2021-09-07 10:05:18.525902', time_epoch_executed='1631034318.53' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/441856

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/441856/ft1_4FGL_J1317.6+3428_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/441856/ft2_4FGL_J1317.6+3428_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/441856/ft1_4FGL_J1317.6+3428_daily_bin4.fits outfile=/scratch/kocevski/441856/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin4.fits ra=199.401 dec=34.4676 rad=12.0 tmin=240364801.0 tmax=240624001.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 1.47
user 1.29
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/441856/ft1_filtered_4FGL_J1317.6+3428_daily_bin4.fits" evtable="EVENTS" scfile=/scratch/kocevski/441856/ft2_4FGL_J1317.6+3428_daily_bin4.fits sctable="SC_DATA" outfile=/scratch/kocevski/441856/ltcube_240364801_240624001_4FGL_J1317.6+3428_daily_bin4.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/441856/ft2_4FGL_J1317.6+3428_daily_bin4.fits
.....................!
real 19.99
user 19.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/441856/ft1_filtered_4FGL_J1317.6+3428_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/441856/ft2_4FGL_J1317.6+3428_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/441856/ltcube_240364801_240624001_4FGL_J1317.6+3428_daily_bin4.fits outfile=/scratch/kocevski/441856/expmap_240364801_240624001_4FGL_J1317.6+3428_daily_bin4.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/441856/ltcube_240364801_240624001_4FGL_J1317.6+3428_daily_bin4.fits
.....................!
real 193.81
user 188.11
sys 5.03

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/441856/ft1_filtered_4FGL_J1317.6+3428_daily_bin4.fits scfile=/scratch/kocevski/441856/ft2_4FGL_J1317.6+3428_daily_bin4.fits outfile=/scratch/kocevski/441856/cmap_240364801_240624001_4FGL_J1317.6+3428_daily_bin4.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.79
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/441856/ft1_filtered_4FGL_J1317.6+3428_daily_bin4.fits scfile=/scratch/kocevski/441856/ft2_4FGL_J1317.6+3428_daily_bin4.fits outfile=/scratch/kocevski/441856/cmap_HighResolution_240364801_240624001_4FGL_J1317.6+3428_daily_bin4.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.96
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    16.924       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.278       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3647       1.0000         .10000E-03   10000.    
     6 'norm      '    .49582       1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.747       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.910       1.0000         .10000E-03   10000.    
     9 'norm      '    1.0919       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.403       1.0000         .10000E-03   10000.    
    13 'norm      '    37.410       1.0000         .10000E-03   10000.    
    14 'norm      '    26.397       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8989       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.7063       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8182       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.7576       1.0000         .10000E-03   10000.    
    22 'norm      '    1.6252       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.1188       1.0000         .10000E-03   10000.    
    24 'norm      '    11.659       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .96090       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0166       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=   5511.670     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3297 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8401        .30787E-07** at limit **
   2  Prefactor     16.924        11.994        .55693E-07   -.45983E-05
   3  Prefactor     16.274        23.068        .96079E-07    .10121E-04
   4  Prefactor     .10000E-03    52.191       -.38093E-06** at limit **
   5  Prefactor     3.3646        5.2057        .39672E-06    .24603E-03
   6  norm          .49122        8.8497        .23215E-05   -.69557E-03
   7  Prefactor     43.733        65.966        .11579E-05    .28794E-04
   8  Prefactor     19.876        39.489        .31102E-05    .68286E-04
   9  norm          1.0915        4.0595        .46701E-06    .90206E-04
  10  Prefactor     .10000E-03    7.1740        .32477E-06** at limit **
  11  norm          .10000E-03    4.3163        .51327E-07** at limit **
  12  norm          10.402        16.467       -.50530E-07   -.54778E-05
  13  norm          37.420        12.999       -.53963E-06   -.22671E-03
  14  norm          26.380        21.121        .80892E-06   -.23081E-04
  15  norm          .10000E-03    8.7765        .14083E-06** at limit **
  16  Prefactor     2.8998        4.7742       -.12185E-06   -.79698E-04
  17  Prefactor     8.7053        15.618        .14779E-06   -.89307E-05
  18  Prefactor     .10000E-03    29.460        .13215E-06** at limit **
  19  Prefactor     3.8190        12.290        .14941E-05    .16636E-03
  20  Prefactor     .10000E-03    7.9944       -.52941E-07** at limit **
  21  Prefactor     8.7074        86.807        .88145E-05    .70415E-04
  22  norm          1.6252        1.7744        .20271E-07   -.33659E-04
  23  Prefactor     4.1190        3.9396       -.58411E-07   -.42748E-04
  24  norm          11.660        10.608       -.50405E-07   -.13634E-04
  25  Prefactor     .10000E-03    6.2581       -.23518E-07** at limit **
  26  Normalizat    .96060        .19138        .13372E-05    .25796E-04
  27  Prefactor     1.0170        .23167       -.24461E-05   -.82296E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.9237
  Prefactor  = 16.2743
  Prefactor  = 0.0001
  Prefactor  = 3.36456
  norm       = 0.491224
  Prefactor  = 43.7329
  Prefactor  = 19.8756
  norm       = 1.09153
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.402
  norm       = 37.4204
  norm       = 26.3796
  norm       = 0.0001
  Prefactor  = 2.89985
  Prefactor  = 8.70531
  Prefactor  = 0.0001
  Prefactor  = 3.81898
  Prefactor  = 0.0001
  Prefactor  = 8.70739
  norm       = 1.62519
  Prefactor  = 4.11901
  norm       = 11.6595
  Prefactor  = 0.0001
  Normalizat = 0.960599
  Prefactor  = 1.01704
 **********
 **   18 **HESSE 
 **********

 FCN=   5511.670     FROM HESSE     STATUS=OK           498 CALLS     3795 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8409        .12219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.924        11.996        .97357E-04   -1.4885    
   3  Prefactor     16.274        23.056        .99272E-04   -1.4901    
   4  Prefactor     .10000E-03    52.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.3646        5.2456        .10100E-02   -1.5341    
   6  norm          .49122        24.528        .26049E-02   -1.5568    
   7  Prefactor     43.733        66.018        .60613E-04   -1.4384    
   8  Prefactor     19.876        42.712        .89763E-04   -1.4816    
   9  norm          1.0915        4.0586        .27383E-03   -1.5499    
  10  Prefactor     .10000E-03    7.1889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.4705        .30090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.402        16.449        .12422E-03   -1.5063    
  13  norm          37.420        13.047        .65527E-04   -1.4484    
  14  norm          26.380        21.347        .77971E-04   -1.4680    
  15  norm          .10000E-03    8.7873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.8998        4.7043        .17510E-03   -1.5367    
  17  Prefactor     8.7053        15.454        .13585E-03   -1.5118    
  18  Prefactor     .10000E-03    29.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.8190        12.546        .10328E-02   -1.5317    
  20  Prefactor     .10000E-03    8.0009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.7074        89.126        .13545E-03   -1.5118    
  22  norm          1.6252        1.7561        .99362E-04   -1.5453    
  23  Prefactor     4.1190        3.9384        .13718E-03   -1.5302    
  24  norm          11.660        10.607        .11732E-03   -1.5025    
  25  Prefactor     .10000E-03    6.2610        .18140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .96060        .22557        .24244E-03   -.94362    
  27  Prefactor     1.0170        .26737        .29383E-03   -.92164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80552e-09
Minuit parameter uncertainties:
  1  1.47844e-06
  2  11.9979
  3  23.0682
  4  0.00013153
  5  5.24631
  6  6.94454
  7  66.1282
  8  42.7773
  9  4.05961
  10  2.23368e-05
  11  2.41224e-06
  12  16.4559
  13  13.0481
  14  21.353
  15  1.43042e-05
  16  4.70487
  17  15.4612
  18  1.60844e-05
  19  12.5542
  20  2.98321e-06
  21  55.8229
  22  1.75618
  23  3.93866
  24  10.6091
  25  1.60004e-06
  26  0.225791
  27  0.267718
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
568   Normalization:  9.606e-01  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.58
Ra Dec: 199.401 34.468
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/441856/likelihoodResults_240364801_240624001_4FGL_J1317.6+3428_daily_bin4.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) = 5511.66364811
delta logL = 0.00683274589665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5511.66004658
delta logL = 0.0104342816858

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5020       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6945       1.0000          .0000       10.000    
     3 'Normalizat'    .95675       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0210       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=   5511.660     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4994        98.926        .64589E-02    .52383E-03
   2  Index         2.6944        6.3423        .22906        .42914E-04
   3  Normalizat    .95711        .44830E-01    .45623E-01   -.14365E-03
   4  Prefactor     1.0206        .55368E-01    .66328E-01   -.95323E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.49945
  Index      = 2.69445
  Normalizat = 0.957113
  Prefactor  = 1.02061
 **********
 **   18 **HESSE 
 **********

 FCN=   5511.660     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4994        5.3883        .15957E-03   -1.5392    
   2  Index         2.6944        1.2857        .92375E-02   -.47925    
   3  Normalizat    .95711        .21253        .24280E-03   -.94481    
   4  Prefactor     1.0206        .26278        .29339E-03   -.92046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17303e-09
Minuit parameter uncertainties:
  1  5.38939
  2  1.30437
  3  0.212715
  4  0.263115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/441856': 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) = 5511.66004485
delta logL = 0.0104360042415

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  2.499e+00  5.389e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.694e+00  1.304e+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:  1.021e+00  2.631e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  9.571e-01  2.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.58
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/441856/cmap_HighResolution_240364801_240624001_4FGL_J1317.6+3428_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-07 10:17:14.275128', job_id='441856', GAL2='1.02', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1631035034.28', return_code2='0', ts='0.58', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.04e-02', ts2='0.61', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='4' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:17:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 441856: <4FGL_J1317.6+3428_daily_bin4> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin4> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 10:00:55 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:02:25 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:02:25 2021
Terminated at Tue Sep  7 10:17:15 2021
Results reported at Tue Sep  7 10:17:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin4 199.401 34.4676 240364801 240624001 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 :                                   714.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            980 sec.

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

