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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin323
RA = 199.401, Dec = 34.4676
tmin = 323049601, tmax = 323308801
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='443334', job_status='RUN', time_executed='2021-09-07 10:08:31.738861', time_epoch_executed='1631034511.74' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443334

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443334/ft1_4FGL_J1317.6+3428_daily_bin323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443334/ft2_4FGL_J1317.6+3428_daily_bin323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443334/ft1_4FGL_J1317.6+3428_daily_bin323.fits outfile=/scratch/kocevski/443334/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin323.fits ra=199.401 dec=34.4676 rad=12.0 tmin=323049601.0 tmax=323308801.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.33
user 3.13
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443334/ft1_filtered_4FGL_J1317.6+3428_daily_bin323.fits" evtable="EVENTS" scfile=/scratch/kocevski/443334/ft2_4FGL_J1317.6+3428_daily_bin323.fits sctable="SC_DATA" outfile=/scratch/kocevski/443334/ltcube_323049601_323308801_4FGL_J1317.6+3428_daily_bin323.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/443334/ft2_4FGL_J1317.6+3428_daily_bin323.fits
.....................!
real 13.96
user 13.54
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443334/ft1_filtered_4FGL_J1317.6+3428_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/443334/ft2_4FGL_J1317.6+3428_daily_bin323.fits sctable="SC_DATA" expcube=/scratch/kocevski/443334/ltcube_323049601_323308801_4FGL_J1317.6+3428_daily_bin323.fits outfile=/scratch/kocevski/443334/expmap_323049601_323308801_4FGL_J1317.6+3428_daily_bin323.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/443334/ltcube_323049601_323308801_4FGL_J1317.6+3428_daily_bin323.fits
.....................!
real 193.24
user 186.69
sys 4.93

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/443334/ft1_filtered_4FGL_J1317.6+3428_daily_bin323.fits scfile=/scratch/kocevski/443334/ft2_4FGL_J1317.6+3428_daily_bin323.fits outfile=/scratch/kocevski/443334/cmap_323049601_323308801_4FGL_J1317.6+3428_daily_bin323.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443334/ft1_filtered_4FGL_J1317.6+3428_daily_bin323.fits scfile=/scratch/kocevski/443334/ft2_4FGL_J1317.6+3428_daily_bin323.fits outfile=/scratch/kocevski/443334/cmap_HighResolution_323049601_323308801_4FGL_J1317.6+3428_daily_bin323.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.354       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5847       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2052       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0179       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.540       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    31.408       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8075       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.833       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9508       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12061E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    69.183       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.983       1.0000         .10000E-03   10000.    
    21 'Prefactor '    59.185       1.0000         .10000E-03   10000.    
    22 'norm      '    1.6882       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.5018       1.0000         .10000E-03   10000.    
    24 'norm      '    .49643E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0296       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .76838       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=   5139.241     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3345 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3204        .67838E-07** at limit **
   2  Prefactor     14.353        9.8885        .22079E-06   -.12246E-04
   3  Prefactor     6.5878        19.387        .20227E-05    .61588E-04
   4  Prefactor     .10000E-03    53.775       -.10137E-04** at limit **
   5  Prefactor     2.1989        7.4295       -.97835E-05   -.23626E-03
   6  norm          .10000E-03    1.7122        .40552E-07** at limit **
   7  Prefactor     .10000E-03    19.088       -.26649E-05** at limit **
   8  Prefactor     2.0156        64.077       -.24547E-05    .11005E-05
   9  norm          .10000E-03    4.6141        .23480E-08** at limit **
  10  Prefactor     21.549        19.433        .25991E-05    .23410E-03
  11  norm          .10000E-03    1.9354        .36972E-07** at limit **
  12  norm          31.407        16.804       -.69882E-08    .95215E-05
  13  norm          1.8094        2.4288        .90827E-07   -.10036E-03
  14  norm          .10000E-03    2.3168       -.66657E-08** at limit **
  15  norm          16.834        20.284        .83262E-06   -.33746E-04
  16  Prefactor     3.9546        3.1708       -.37747E-07   -.25903E-03
  17  Prefactor     .10000E-03    28.097        .20911E-05** at limit **
  18  Prefactor     .10000E-03    13.527        .17073E-05** at limit **
  19  Prefactor     69.182        25.133        .46702E-06   -.43120E-04
  20  Prefactor     27.981        21.816       -.41497E-06    .14861E-04
  21  Prefactor     59.206        73.687        .23356E-04   -.23990E-03
  22  norm          1.6881        1.4983       -.12784E-06   -.24426E-03
  23  Prefactor     7.5013        4.3198       -.51619E-06    .46753E-04
  24  norm          .10046E-03    9.0619        .11562E-05** at limit **
  25  Prefactor     .10000E-03    13.388       -.81668E-06** at limit **
  26  Normalizat    1.0295        .17950       -.18967E-05    .13150E-03
  27  Prefactor     .76864        .21260        .13575E-05   -.79015E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.3534
  Prefactor  = 6.58776
  Prefactor  = 0.000100002
  Prefactor  = 2.19887
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.01559
  norm       = 0.0001
  Prefactor  = 21.5491
  norm       = 0.0001
  norm       = 31.4068
  norm       = 1.80936
  norm       = 0.0001
  norm       = 16.8345
  Prefactor  = 3.95458
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.1824
  Prefactor  = 27.9813
  Prefactor  = 59.2059
  norm       = 1.68809
  Prefactor  = 7.50127
  norm       = 0.00010046
  Prefactor  = 0.0001
  Normalizat = 1.02953
  Prefactor  = 0.76864
 **********
 **   18 **HESSE 
 **********

 FCN=   5139.241     FROM HESSE     STATUS=OK           488 CALLS     3833 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3704        .16148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.353        9.8887        .10572E-03   -1.4950    
   3  Prefactor     6.5878        19.315        .15639E-03   -1.5195    
   4  Prefactor     .10000E-03    53.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1989        7.6017        .27703E-03   -1.5411    
   6  norm          .10000E-03    1.7176        .91517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0156        62.702        .29136E-03   -1.5424    
   9  norm          .10000E-03    4.8251        .30033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.549        19.339        .86303E-04   -1.4779    
  11  norm          .10000E-03    1.9388        .97337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          31.407        16.804        .71495E-04   -1.4587    
  13  norm          1.8094        2.3920        .12216E-03   -1.5439    
  14  norm          .10000E-03    2.3209        .10639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.834        20.267        .97620E-04   -1.4887    
  16  Prefactor     3.9546        3.1514        .10743E-03   -1.5310    
  17  Prefactor     .10000E-03    28.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     69.182        25.161        .48259E-04   -1.4043    
  20  Prefactor     27.981        21.812        .75734E-04   -1.4650    
  21  Prefactor     59.206        72.606        .52150E-04   -1.4168    
  22  norm          1.6881        1.4970        .80021E-04   -1.5448    
  23  Prefactor     7.5013        4.3259        .10844E-03   -1.5160    
  24  norm          .10046E-03    52.286        .41576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0295        .21327        .21535E-03   -.92048    
  27  Prefactor     .76864        .25078        .30453E-03   -1.0089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.91798e-09
Minuit parameter uncertainties:
  1  5.50616e-06
  2  9.88983
  3  19.3335
  4  0.000680583
  5  7.60502
  6  8.70133e-06
  7  9.5934e-05
  8  22.5092
  9  8.84694e-06
  10  19.3443
  11  8.39805e-06
  12  16.8066
  13  2.39213
  14  1.52802e-06
  15  20.2751
  16  3.15156
  17  9.82099e-05
  18  5.89861e-05
  19  25.1645
  20  21.8181
  21  72.7152
  22  1.49705
  23  4.32608
  24  0.00982144
  25  1.18004e-05
  26  0.213442
  27  0.251156
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  3.955e+00  3.152e+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.686e-01  2.512e-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.030e+00  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.97
Ra Dec: 199.401 34.468
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 4.25e-08 +/- 3.38e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 9.47e-06

TS (Fixed Index): 2.97
Ra Dec: 199.401 34.468
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443334/likelihoodResults_323049601_323308801_4FGL_J1317.6+3428_daily_bin323.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) = 5139.24105162
delta logL = 4.0905601054e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5139.24103223
delta logL = 6.02966320002e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9737       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5246       1.0000          .0000       10.000    
     3 'Normalizat'    1.0300       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76829       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=   5139.241     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      228 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9750        87.087        .50585E-02    .19388E-03
   2  Index         2.5251        5.9565        .16662        .61189E-04
   3  Normalizat    1.0300        .90760E-01    .42163E-01   -.38923E-04
   4  Prefactor     .76826        .82958E-01    .68841E-01    .17109E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.975
  Index      = 2.52506
  Normalizat = 1.02998
  Prefactor  = 0.76826
 **********
 **   18 **HESSE 
 **********

 FCN=   5139.241     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9750        3.7760        .10790E-03   -1.5309    
   2  Index         2.5251        .86506        .89073E-02   -.51782    
   3  Normalizat    1.0300        .20549        .21531E-03   -.92033    
   4  Prefactor     .76826        .25058        .30460E-03   -1.0091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50947e-09
Minuit parameter uncertainties:
  1  3.77626
  2  0.870879
  3  0.205644
  4  0.250948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443334': 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) = 5139.24103167
delta logL = 6.08550471952e-05

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  3.975e+00  3.776e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.525e+00  8.709e-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:  7.683e-01  2.509e-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.030e+00  2.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.97
Ra Dec: 199.401 34.468
Photon Index (Free Index): 2.53 +/- 0.87
Photon Flux (Free Index): 4.22e-08 +/- 4.31e-08
Energy Flux (Free Index): 1.19e-05 +/- 9.92e-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/443334/cmap_HighResolution_323049601_323308801_4FGL_J1317.6+3428_daily_bin323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.16e-03', comment='SUCCESS', photon_flux='4.25e-08', energy_flux2='1.19e-05', photon_flux_error='3.38e-08', dlogl='6.09e-05', energy_flux='1.19e-05', photon_flux2='4.22e-08', job_status='DONE', time_completed='2021-09-07 10:20:04.873019', photon_index_error2='0.87', photon_index2='2.53', ts='2.97', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='9.92e-06', EG='1.03', time_epoch_completed='1631035204.87', return_code='0', job_id='443334', GAL2='0.77', EG2='1.03', return_code2='0', energy_flux_error='9.47e-06', photon_flux_error2='4.31e-08', ts2='2.97', photon_index='2.53' WHERE bin_id='323' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:20:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 443334: <4FGL_J1317.6+3428_daily_bin323> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin323> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 10:05:49 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:08:17 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:08:17 2021
Terminated at Tue Sep  7 10:20:05 2021
Results reported at Tue Sep  7 10:20:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin323 199.401 34.4676 323049601 323308801 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.37 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             339.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            856 sec.

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

