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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1012
RA = 199.401, Dec = 34.4676
tmin = 501638401, tmax = 501897601
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='448772', job_status='RUN', time_executed='2021-09-07 10:27:55.655047', time_epoch_executed='1631035675.66' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448772

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448772/ft1_4FGL_J1317.6+3428_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448772/ft2_4FGL_J1317.6+3428_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448772/ft1_4FGL_J1317.6+3428_daily_bin1012.fits outfile=/scratch/kocevski/448772/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1012.fits ra=199.401 dec=34.4676 rad=12.0 tmin=501638401.0 tmax=501897601.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 4.33
user 3.31
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448772/ft1_filtered_4FGL_J1317.6+3428_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/448772/ft2_4FGL_J1317.6+3428_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/448772/ltcube_501638401_501897601_4FGL_J1317.6+3428_daily_bin1012.fits outfile=/scratch/kocevski/448772/expmap_501638401_501897601_4FGL_J1317.6+3428_daily_bin1012.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/448772/ltcube_501638401_501897601_4FGL_J1317.6+3428_daily_bin1012.fits
.....................!
real 195.38
user 189.40
sys 5.44

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/448772/ft1_filtered_4FGL_J1317.6+3428_daily_bin1012.fits scfile=/scratch/kocevski/448772/ft2_4FGL_J1317.6+3428_daily_bin1012.fits outfile=/scratch/kocevski/448772/cmap_501638401_501897601_4FGL_J1317.6+3428_daily_bin1012.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0742       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.831       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.215       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7492       1.0000         .10000E-03   10000.    
     6 'norm      '    .13169E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.488       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.904       1.0000         .10000E-03   10000.    
     9 'norm      '    7.4061       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .44156E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    18.006       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4536       1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    36.991       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1223       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.763       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12348E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.235       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.7782       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.3449       1.0000         .10000E-03   10000.    
    24 'norm      '    .93382       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .68152       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3375       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=   5608.203     FROM MIGRAD    STATUS=CONVERGED    638 CALLS     3267 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0756        9.6485        .53963E-06   -.25910E-05
   2  Prefactor     23.830        10.969       -.58069E-08    .17745E-04
   3  Prefactor     .10000E-03    6.5691       -.54858E-07** at limit **
   4  Prefactor     35.113        69.735        .11865E-05   -.18949E-05
   5  Prefactor     2.7506        5.8763        .46506E-06   -.27720E-05
   6  norm          .10000E-03    6.3171       -.59285E-05** at limit **
   7  Prefactor     17.499        35.989        .14952E-06    .20079E-04
   8  Prefactor     19.876        21.263        .15349E-05    .25626E-03
   9  norm          7.4064        4.0573        .67522E-08   -.67045E-05
  10  Prefactor     .10000E-03    17.470       -.78972E-07** at limit **
  11  norm          .41634E-01    3.1727        .31593E-06   -.31760E-03
  12  norm          17.998        14.111        .58245E-08    .28396E-05
  13  norm          1.4515        3.9509        .57446E-06    .13772E-03
  14  norm          .10000E-03    5.3214        .66629E-07** at limit **
  15  norm          37.006        20.774        .42000E-07    .31239E-04
  16  Prefactor     4.1213        2.8723       -.16008E-07    .97327E-05
  17  Prefactor     11.769        13.182       -.10922E-08   -.79144E-06
  18  Prefactor     .10000E-03    50.898        .23614E-06** at limit **
  19  Prefactor     .10000E-03    8.9107        .33892E-06** at limit **
  20  Prefactor     40.245        26.576        .10658E-06    .29131E-04
  21  Prefactor     .10000E-03    15.035        .46305E-07** at limit **
  22  norm          4.7782        2.1662       -.10477E-07   -.18042E-05
  23  Prefactor     7.3467        4.8652        .77652E-07    .19111E-04
  24  norm          .93710        8.8079        .78686E-07   -.14809E-04
  25  Prefactor     .10000E-03    8.4424        .11932E-08** at limit **
  26  Normalizat    .68130        .17182        .17801E-06    .96002E-04
  27  Prefactor     1.3378        .21603       -.43244E-06    .11072E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.07557
  Prefactor  = 23.8304
  Prefactor  = 0.0001
  Prefactor  = 35.1127
  Prefactor  = 2.7506
  norm       = 0.0001
  Prefactor  = 17.4995
  Prefactor  = 19.8757
  norm       = 7.40641
  Prefactor  = 0.0001
  norm       = 0.0416337
  norm       = 17.9982
  norm       = 1.45148
  norm       = 0.0001
  norm       = 37.006
  Prefactor  = 4.1213
  Prefactor  = 11.7694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.245
  Prefactor  = 0.0001
  norm       = 4.77821
  Prefactor  = 7.34673
  norm       = 0.937105
  Prefactor  = 0.0001
  Normalizat = 0.6813
  Prefactor  = 1.33776
 **********
 **   18 **HESSE 
 **********

 FCN=   5608.203     FROM HESSE     STATUS=OK           504 CALLS     3771 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0756        9.6416        .23134E-03   -1.5357    
   2  Prefactor     23.830        10.969        .82055E-04   -1.4731    
   3  Prefactor     .10000E-03    6.5712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.113        69.591        .67532E-04   -1.4522    
   5  Prefactor     2.7506        5.8450        .24552E-03   -1.5376    
   6  norm          .10000E-03    6.3900        .36106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.499        35.980        .95775E-04   -1.4871    
   8  Prefactor     19.876        21.681        .89775E-04   -1.4816    
   9  norm          7.4064        4.0571        .10800E-03   -1.5164    
  10  Prefactor     .10000E-03    17.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .41634E-01    2.9779        .43865E-01   -1.5667    
  12  norm          17.998        14.113        .94387E-04   -1.4859    
  13  norm          1.4515        3.8687        .22012E-03   -1.5467    
  14  norm          .10000E-03    5.3199        .16760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          37.006        20.773        .65895E-04   -1.4491    
  16  Prefactor     4.1213        2.8674        .98185E-04   -1.5302    
  17  Prefactor     11.769        13.122        .11680E-03   -1.5022    
  18  Prefactor     .10000E-03    50.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.9331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     40.245        26.592        .63193E-04   -1.4438    
  21  Prefactor     .10000E-03    15.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.7782        2.1659        .71721E-04   -1.5271    
  23  Prefactor     7.3467        4.8672        .12723E-03   -1.5166    
  24  norm          .93710        23.241        .42896E-02   -1.5514    
  25  Prefactor     .10000E-03    8.4519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .68130        .20387        .26731E-03   -1.0464    
  27  Prefactor     1.3378        .25780        .25665E-03   -.82191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29517e-08
Minuit parameter uncertainties:
  1  9.6465
  2  10.9699
  3  1.02921e-05
  4  69.7525
  5  5.84618
  6  5.11879e-05
  7  36.0246
  8  21.69
  9  4.05726
  10  4.85482e-05
  11  0.703415
  12  14.1151
  13  3.86937
  14  2.53773e-05
  15  20.7766
  16  2.86751
  17  13.1251
  18  3.11298e-05
  19  5.78927e-06
  20  26.6002
  21  5.52855e-06
  22  2.16593
  23  4.86748
  24  9.33725
  25  1.08969e-05
  26  0.2041
  27  0.258047
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  4.121e+00  2.868e+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.338e+00  2.580e-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:  6.813e-01  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.95
Ra Dec: 199.401 34.468
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 4.43e-08 +/- 3.08e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 8.62e-06

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) = 5607.54243929
delta logL = 0.6603693433

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5607.48021811
delta logL = 0.722590517488

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3479       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9059       1.0000          .0000       10.000    
     3 'Normalizat'    .70147       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3217       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=   5607.480     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3551        5.4985        .43446E-02   -.46335E-04
   2  Index         1.9060        .60972        .20262        .41477E-05
   3  Normalizat    .70135        .16682        .42310E-01   -.14646E-04
   4  Prefactor     1.3220        .21711        .58331E-01   -.62939E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.35511
  Index      = 1.906
  Normalizat = 0.701353
  Prefactor  = 1.322
 **********
 **   18 **HESSE 
 **********

 FCN=   5607.480     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3551        3.8085        .11860E-03   -1.5245    
   2  Index         1.9060        .48748        .77372E-02   -.66721    
   3  Normalizat    .70135        .19572        .26355E-03   -1.0384    
   4  Prefactor     1.3220        .25514        .25794E-03   -.82655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.151e-11
Minuit parameter uncertainties:
  1  3.80869
  2  0.488737
  3  0.195911
  4  0.255384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448772': 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) = 5607.48021487
delta logL = 0.72259376458

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  5.355e+00  3.809e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  1.906e+00  4.887e-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:  1.322e+00  2.554e-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:  7.014e-01  1.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.40
Ra Dec: 199.401 34.468
Photon Index (Free Index): 1.91 +/- 0.49
Photon Flux (Free Index): 2.74e-08 +/- 2.45e-08
Energy Flux (Free Index): 2.42e-05 +/- 2.56e-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/448772/cmap_HighResolution_501638401_501897601_4FGL_J1317.6+3428_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.43e-08', energy_flux2='2.42e-05', photon_flux_error='3.08e-08', dlogl='7.23e-01', energy_flux='1.24e-05', photon_flux2='2.74e-08', job_status='DONE', time_completed='2021-09-07 10:38:47.101832', photon_index_error2='0.49', photon_index2='1.91', ts='5.95', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', energy_flux_error2='2.56e-05', EG='0.68', time_epoch_completed='1631036327.1', return_code='0', job_id='448772', GAL2='1.32', EG2='0.70', return_code2='0', energy_flux_error='8.62e-06', photon_flux_error2='2.45e-08', ts2='7.40', photon_index='2.53' WHERE bin_id='1012' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:38:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 448772: <4FGL_J1317.6+3428_daily_bin1012> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin1012> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 10:25:30 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:25:32 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:25:32 2021
Terminated at Tue Sep  7 10:38:47 2021
Results reported at Tue Sep  7 10:38:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1012 199.401 34.4676 501638401 501897601 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 :                                   651.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            797 sec.

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

