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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin718
RA = 199.401, Dec = 34.4676
tmin = 425433601, tmax = 425692801
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='446002', job_status='RUN', time_executed='2021-09-07 10:16:36.016648', time_epoch_executed='1631034996.02' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446002

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

Retrieving the FT1 file...

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

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

Retrieving 38 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446002/ft1_4FGL_J1317.6+3428_daily_bin718.fits


Retrieving the FT1 file...

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

Retrieving 38 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446002/ft2_4FGL_J1317.6+3428_daily_bin718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446002/ft1_4FGL_J1317.6+3428_daily_bin718.fits outfile=/scratch/kocevski/446002/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin718.fits ra=199.401 dec=34.4676 rad=12.0 tmin=425433601.0 tmax=425692801.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.13
user 2.86
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446002/ft1_filtered_4FGL_J1317.6+3428_daily_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/446002/ft2_4FGL_J1317.6+3428_daily_bin718.fits sctable="SC_DATA" expcube=/scratch/kocevski/446002/ltcube_425433601_425692801_4FGL_J1317.6+3428_daily_bin718.fits outfile=/scratch/kocevski/446002/expmap_425433601_425692801_4FGL_J1317.6+3428_daily_bin718.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/446002/ltcube_425433601_425692801_4FGL_J1317.6+3428_daily_bin718.fits
.....................!
real 191.43
user 186.43
sys 4.43

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/446002/ft1_filtered_4FGL_J1317.6+3428_daily_bin718.fits scfile=/scratch/kocevski/446002/ft2_4FGL_J1317.6+3428_daily_bin718.fits outfile=/scratch/kocevski/446002/cmap_425433601_425692801_4FGL_J1317.6+3428_daily_bin718.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446002/ft1_filtered_4FGL_J1317.6+3428_daily_bin718.fits scfile=/scratch/kocevski/446002/ft2_4FGL_J1317.6+3428_daily_bin718.fits outfile=/scratch/kocevski/446002/cmap_HighResolution_425433601_425692801_4FGL_J1317.6+3428_daily_bin718.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9152       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    95.348       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1228       1.0000         .10000E-03   10000.    
     6 'norm      '    1.1982       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.6425       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7273       1.0000         .10000E-03   10000.    
    11 'norm      '    8.6099       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.888       1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    29.234       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7839       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.475       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    69.778       1.0000         .10000E-03   10000.    
    22 'norm      '    8.1448       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.8575       1.0000         .10000E-03   10000.    
    24 'norm      '    13.179       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1865       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .56556       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=   4460.779     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3246 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9152        12.044        .27723E-06    .66652E-06
   2  Prefactor     .10000E-03    8.9040       -.46622E-06** at limit **
   3  Prefactor     .10000E-03    27.437       -.75748E-06** at limit **
   4  Prefactor     95.422        82.819        .41269E-06    .35272E-04
   5  Prefactor     5.1230        7.0009        .37996E-06    .81105E-04
   6  norm          1.1985        3.9789        .16345E-05    .34998E-03
   7  Prefactor     .10000E-03    42.741       -.11531E-05** at limit **
   8  Prefactor     .10000E-03    22.519       -.57457E-06** at limit **
   9  norm          7.6437        4.6793        .18348E-06    .18982E-04
  10  Prefactor     6.7294        13.409        .44730E-06   -.23797E-06
  11  norm          8.6101        5.6739       -.14673E-07   -.63533E-04
  12  norm          .10000E-03    8.9822       -.41804E-06** at limit **
  13  norm          12.889        5.5563        .83666E-07   -.22994E-03
  14  norm          .10000E-03    5.1812       -.14014E-06** at limit **
  15  norm          29.231        24.502       -.36667E-06   -.15183E-04
  16  Prefactor     .10000E-03    2.4003        .18071E-06** at limit **
  17  Prefactor     3.7910        16.939        .30570E-05    .41834E-05
  18  Prefactor     .10000E-03    35.325        .81014E-06** at limit **
  19  Prefactor     25.480        22.425        .73351E-06   -.47328E-04
  20  Prefactor     .10000E-03    12.809       -.38779E-06** at limit **
  21  Prefactor     69.971        97.283        .70454E-05    .97970E-04
  22  norm          8.1452        2.6674        .81338E-07    .48476E-05
  23  Prefactor     6.8594        5.8757        .57433E-06    .12034E-04
  24  norm          13.179        12.775        .80725E-07    .15216E-04
  25  Prefactor     .10000E-03    11.642        .24407E-07** at limit **
  26  Normalizat    1.1859        .25371       -.13336E-04    .69092E-04
  27  Prefactor     .56616        .28822        .19782E-04   -.24477E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.91522
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 95.4224
  Prefactor  = 5.12297
  norm       = 1.19853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.64373
  Prefactor  = 6.72943
  norm       = 8.61009
  norm       = 0.0001
  norm       = 12.8893
  norm       = 0.0001
  norm       = 29.2315
  Prefactor  = 0.0001
  Prefactor  = 3.79099
  Prefactor  = 0.0001
  Prefactor  = 25.4796
  Prefactor  = 0.0001
  Prefactor  = 69.9707
  norm       = 8.14515
  Prefactor  = 6.85943
  norm       = 13.1787
  Prefactor  = 0.0001
  Normalizat = 1.1859
  Prefactor  = 0.566163
 **********
 **   18 **HESSE 
 **********

 FCN=   4460.779     FROM HESSE     STATUS=OK           490 CALLS     3736 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9152        12.039        .12726E-03   -1.5078    
   2  Prefactor     .10000E-03    9.0002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     95.422        82.615        .20581E-03   -1.3751    
   5  Prefactor     5.1230        6.9773        .17763E-03   -1.5255    
   6  norm          1.1985        3.9445        .23111E-03   -1.5489    
   7  Prefactor     .10000E-03    42.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.6437        4.6791        .10935E-03   -1.5155    
  10  Prefactor     6.7294        13.364        .15470E-03   -1.5189    
  11  norm          8.6101        5.6691        .12402E-03   -1.5121    
  12  norm          .10000E-03    8.9993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.889        5.5213        .95267E-04   -1.4990    
  14  norm          .10000E-03    5.1946        .14810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          29.231        24.496        .74100E-04   -1.4626    
  16  Prefactor     .10000E-03    2.4251        .10071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.7910        16.677        .20753E-03   -1.5319    
  18  Prefactor     .10000E-03    35.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.480        22.391        .79367E-04   -1.4698    
  20  Prefactor     .10000E-03    12.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     69.971        97.729        .24027E-03   -1.4033    
  22  norm          8.1452        2.6669        .60359E-04   -1.5137    
  23  Prefactor     6.8594        5.8672        .14068E-03   -1.5184    
  24  norm          13.179        12.772        .11034E-03   -1.4982    
  25  Prefactor     .10000E-03    11.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1859        .25345        .21298E-03   -.87040    
  27  Prefactor     .56616        .28748        .35908E-03   -1.0903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01927e-10
Minuit parameter uncertainties:
  1  12.0418
  2  4.5032e-05
  3  2.56371e-05
  4  82.7144
  5  6.97841
  6  3.94537
  7  0.000232364
  8  0.000127132
  9  4.6793
  10  13.3701
  11  5.66947
  12  3.5662e-05
  13  5.52157
  14  1.76657e-05
  15  24.5047
  16  8.43145e-06
  17  15.9099
  18  0.000183539
  19  22.3984
  20  4.74257e-05
  21  97.9543
  22  2.66694
  23  5.86773
  24  12.7749
  25  1.90116e-05
  26  0.253714
  27  0.288224
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  8.431e-06  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:  5.662e-01  2.882e-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.186e+00  2.537e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/446002/likelihoodResults_425433601_425692801_4FGL_J1317.6+3428_daily_bin718.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): 102
logL (Free Index) = 4460.7807121
delta logL = -0.00195696633364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4460.77875521
delta logL = -7.15572241461e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5195       1.0000          .0000       10.000    
     3 'Normalizat'    1.1860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56610       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=   4460.779     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      237 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    3.9937        .10174E-02** at limit **
   2  Index         2.5036        6.1898        .50000        .59798E-04
   3  Normalizat    1.1859        .23055        .21299E-03    .25655E-03
   4  Prefactor     .56617        .27758        .35906E-03    .21436E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Index      = 2.50355
  Normalizat = 1.18589
  Prefactor  = 0.566168
 **********
 **   18 **HESSE 
 **********

 FCN=   4460.779     FROM HESSE     STATUS=OK            29 CALLS      266 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    2.5134        .20348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5036        6.2498        .50000       -.52278    
   3  Normalizat    1.1859        .23071        .42598E-04   -.87040    
   4  Prefactor     .56617        .27778        .14362E-04   -1.0903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.47103e-09
Minuit parameter uncertainties:
  1  0.000302267
  2  4.3684
  3  0.230909
  4  0.278449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446002': 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) = 4460.77875473
delta logL = 4.05166247219e-07

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  3.023e-04  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.504e+00  4.368e+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:  5.662e-01  2.784e-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.186e+00  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/446002/cmap_HighResolution_425433601_425692801_4FGL_J1317.6+3428_daily_bin718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.78e-03', job_status='DONE', photon_flux_upper_limit='8.70e-08', time_completed='2021-09-07 10:27:36.578821', job_id='446002', GAL2='0.57', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1631035656.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='4.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='718' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:27:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 446002: <4FGL_J1317.6+3428_daily_bin718> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin718> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep  7 10:15:32 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:16:19 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:16:19 2021
Terminated at Tue Sep  7 10:27:37 2021
Results reported at Tue Sep  7 10:27:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin718 199.401 34.4676 425433601 425692801 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 :                                   627.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            725 sec.

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

