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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin95
RA = 199.401, Dec = 34.4676
tmin = 263952001, tmax = 264211201
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='442985', job_status='RUN', time_executed='2021-09-07 10:08:22.923394', time_epoch_executed='1631034502.92' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/442985

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/442985/ft1_4FGL_J1317.6+3428_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/442985/ft2_4FGL_J1317.6+3428_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/442985/ft1_4FGL_J1317.6+3428_daily_bin95.fits outfile=/scratch/kocevski/442985/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin95.fits ra=199.401 dec=34.4676 rad=12.0 tmin=263952001.0 tmax=264211201.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.45
user 1.26
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/442985/ft1_filtered_4FGL_J1317.6+3428_daily_bin95.fits" evtable="EVENTS" scfile=/scratch/kocevski/442985/ft2_4FGL_J1317.6+3428_daily_bin95.fits sctable="SC_DATA" outfile=/scratch/kocevski/442985/ltcube_263952001_264211201_4FGL_J1317.6+3428_daily_bin95.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/442985/ft2_4FGL_J1317.6+3428_daily_bin95.fits
.....................!
real 14.14
user 13.72
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/442985/ft1_filtered_4FGL_J1317.6+3428_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/442985/ft2_4FGL_J1317.6+3428_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/442985/ltcube_263952001_264211201_4FGL_J1317.6+3428_daily_bin95.fits outfile=/scratch/kocevski/442985/expmap_263952001_264211201_4FGL_J1317.6+3428_daily_bin95.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/442985/ltcube_263952001_264211201_4FGL_J1317.6+3428_daily_bin95.fits
.....................!
real 156.80
user 151.74
sys 4.34

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/442985/ft1_filtered_4FGL_J1317.6+3428_daily_bin95.fits scfile=/scratch/kocevski/442985/ft2_4FGL_J1317.6+3428_daily_bin95.fits outfile=/scratch/kocevski/442985/cmap_263952001_264211201_4FGL_J1317.6+3428_daily_bin95.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.50
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/442985/ft1_filtered_4FGL_J1317.6+3428_daily_bin95.fits scfile=/scratch/kocevski/442985/ft2_4FGL_J1317.6+3428_daily_bin95.fits outfile=/scratch/kocevski/442985/cmap_HighResolution_263952001_264211201_4FGL_J1317.6+3428_daily_bin95.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.48
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.413       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.866       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.847       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8465       1.0000         .10000E-03   10000.    
     6 'norm      '    4.6360       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11833E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16720E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    13.340       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    22.204       1.0000         .10000E-03   10000.    
    12 'norm      '    22.163       1.0000         .10000E-03   10000.    
    13 'norm      '    .65547       1.0000         .10000E-03   10000.    
    14 'norm      '    16.762       1.0000         .10000E-03   10000.    
    15 'norm      '    10.172       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .38869       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.0094       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .54111       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.1431       1.0000         .10000E-03   10000.    
    24 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0101       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .90988       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=   6193.674     FROM MIGRAD    STATUS=CONVERGED    661 CALLS     3299 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.412        10.645        .71504E-08    .14704E-04
   2  Prefactor     25.866        12.185       -.36246E-09    .25055E-04
   3  Prefactor     .10000E-03    22.844       -.53410E-06** at limit **
   4  Prefactor     57.876        60.964        .33016E-06    .19756E-03
   5  Prefactor     4.8456        5.5739        .21812E-06    .18859E-03
   6  norm          4.6342        5.0134        .50616E-06    .73188E-03
   7  Prefactor     .10001E-03    164.02       -.29810E-05** at limit **
   8  Prefactor     .10000E-03    147.15        .24129E-05** at limit **
   9  norm          13.340        4.4231        .38913E-08    .13554E-03
  10  Prefactor     .10000E-03    34.477       -.82376E-06** at limit **
  11  norm          22.204        8.0936        .38421E-06    .45467E-03
  12  norm          22.163        14.688       -.18626E-06    .42344E-05
  13  norm          .61856        12.411        .39753E-05   -.12823E-03
  14  norm          16.796        10.649       -.70527E-06    .47693E-03
  15  norm          10.172        11.554       -.71878E-09    .57142E-05
  16  Prefactor     .38767        4.0387       -.23646E-06   -.30277E-03
  17  Prefactor     9.0139        11.172        .29116E-06    .11866E-03
  18  Prefactor     .10000E-03    33.552       -.31682E-06** at limit **
  19  Prefactor     .10000E-03    6.4013       -.79215E-07** at limit **
  20  Prefactor     .10000E-03    22.256       -.12546E-06** at limit **
  21  Prefactor     .10000E-03    22.358        .30155E-07** at limit **
  22  norm          .54124        1.6242        .69124E-07   -.18938E-03
  23  Prefactor     6.1430        3.9481        .20669E-06   -.30604E-03
  24  norm          .10000E-03    16.556       -.27993E-06** at limit **
  25  Prefactor     .10000E-03    5.7436       -.21608E-07** at limit **
  26  Normalizat    1.0102        .16512        .54014E-07    .31598E-03
  27  Prefactor     .90978        .20261        .11406E-06    .20049E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4122
  Prefactor  = 25.866
  Prefactor  = 0.000100001
  Prefactor  = 57.8761
  Prefactor  = 4.84563
  norm       = 4.63425
  Prefactor  = 0.000100011
  Prefactor  = 0.000100001
  norm       = 13.3395
  Prefactor  = 0.0001
  norm       = 22.204
  norm       = 22.1632
  norm       = 0.618564
  norm       = 16.7956
  norm       = 10.1724
  Prefactor  = 0.38767
  Prefactor  = 9.01386
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.541238
  Prefactor  = 6.14297
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01017
  Prefactor  = 0.909781
 **********
 **   18 **HESSE 
 **********

 FCN=   6193.674     FROM HESSE     STATUS=OK           490 CALLS     3789 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.412        10.647        .10937E-03   -1.4975    
   2  Prefactor     25.866        12.187        .78765E-04   -1.4690    
   3  Prefactor     .10000E-03    23.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     57.876        61.329        .26373E-03   -1.4185    
   5  Prefactor     4.8456        5.5613        .18273E-03   -1.5268    
   6  norm          4.6342        4.8976        .16576E-03   -1.5277    
   7  Prefactor     .10001E-03    169.35        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    143.69        .61931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.340        4.4241        .92661E-04   -1.4977    
  10  Prefactor     .10000E-03    35.692        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          22.204        8.1551        .85004E-04   -1.4765    
  12  norm          22.163        14.683        .85082E-04   -1.4766    
  13  norm          .61856        14.242        .21998E-02   -1.5551    
  14  norm          16.796        10.957        .97826E-04   -1.4888    
  15  norm          10.172        11.554        .12563E-03   -1.5070    
  16  Prefactor     .38767        4.1906        .28510E-03   -1.5583    
  17  Prefactor     9.0139        11.150        .13353E-03   -1.5107    
  18  Prefactor     .10000E-03    33.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.4198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .54124        1.6148        .16510E-03   -1.5561    
  23  Prefactor     6.1430        3.9191        .59514E-03   -1.5212    
  24  norm          .10000E-03    16.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.7465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0102        .19828        .22700E-03   -.92691    
  27  Prefactor     .90978        .24317        .29760E-03   -.95800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46224e-08
Minuit parameter uncertainties:
  1  10.6485
  2  12.1878
  3  0.000228522
  4  61.3956
  5  5.56192
  6  4.89805
  7  0.00270222
  8  0.00086304
  9  4.42419
  10  0.000129623
  11  8.15553
  12  14.6853
  13  5.93735
  14  10.9587
  15  11.5569
  16  2.54906
  17  11.1521
  18  0.000397296
  19  9.17666e-06
  20  5.91178e-05
  21  0.000110258
  22  1.61496
  23  3.91922
  24  3.44316e-05
  25  7.58218e-07
  26  0.198428
  27  0.243458
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  3.877e-01  2.549e+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:  9.098e-01  2.435e-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.010e+00  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/442985/likelihoodResults_263952001_264211201_4FGL_J1317.6+3428_daily_bin95.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) = 6193.66840672
delta logL = 0.005648715387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6193.66831207
delta logL = 0.00574336550835

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36972       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7977       1.0000          .0000       10.000    
     3 'Normalizat'    1.0082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91118       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6193.668     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      285 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37101        3.3462        .23474E-03    .41554E-04
   2  Index         2.7970        2.4629        .98587E-02    .11533E-04
   3  Normalizat    1.0084        .19399        .22716E-03    .33054E-03
   4  Prefactor     .91107        .24154        .29740E-03    .11434E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.371011
  Index      = 2.79702
  Normalizat = 1.00838
  Prefactor  = 0.911073
 **********
 **   18 **HESSE 
 **********

 FCN=   6193.668     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37101        3.0178        .93895E-05   -1.5586    
   2  Index         2.7970        2.3527        .39435E-03   -.45626    
   3  Normalizat    1.0084        .19424        .45433E-04   -.92750    
   4  Prefactor     .91107        .24180        .11896E-04   -.95755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0096e-10
Minuit parameter uncertainties:
  1  2.11613
  2  2.47647
  3  0.194375
  4  0.242088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/442985': 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) = 6193.66831073
delta logL = 0.00574469716958

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  3.710e-01  2.116e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.797e+00  2.476e+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:  9.111e-01  2.421e-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.008e+00  1.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/442985/cmap_HighResolution_263952001_264211201_4FGL_J1317.6+3428_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-03', job_status='DONE', photon_flux_upper_limit='7.93e-08', time_completed='2021-09-07 10:18:43.070530', job_id='442985', GAL2='0.91', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1631035123.07', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='5.74e-03', ts2='0.04', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='95' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:18:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 442985: <4FGL_J1317.6+3428_daily_bin95> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin95> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 10:05:21 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:05:30 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:05:30 2021
Terminated at Tue Sep  7 10:18:43 2021
Results reported at Tue Sep  7 10:18:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin95 199.401 34.4676 263952001 264211201 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 :                                   619.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            802 sec.

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

