/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 30 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 = 7571
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1040
RA = 199.401, Dec = 34.4676
tmin = 508896001, tmax = 509155201
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='447674', job_status='RUN', time_executed='2021-09-07 10:22:56.116772', time_epoch_executed='1631035376.12' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1040'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447674

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447674/ft1_4FGL_J1317.6+3428_daily_bin1040.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447674/ft2_4FGL_J1317.6+3428_daily_bin1040.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447674/ft1_4FGL_J1317.6+3428_daily_bin1040.fits outfile=/scratch/kocevski/447674/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1040.fits ra=199.401 dec=34.4676 rad=12.0 tmin=508896001.0 tmax=509155201.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.04
user 3.54
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447674/ft1_filtered_4FGL_J1317.6+3428_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/447674/ft2_4FGL_J1317.6+3428_daily_bin1040.fits sctable="SC_DATA" expcube=/scratch/kocevski/447674/ltcube_508896001_509155201_4FGL_J1317.6+3428_daily_bin1040.fits outfile=/scratch/kocevski/447674/expmap_508896001_509155201_4FGL_J1317.6+3428_daily_bin1040.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/447674/ltcube_508896001_509155201_4FGL_J1317.6+3428_daily_bin1040.fits
.....................!
real 193.08
user 186.63
sys 5.83

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/447674/ft1_filtered_4FGL_J1317.6+3428_daily_bin1040.fits scfile=/scratch/kocevski/447674/ft2_4FGL_J1317.6+3428_daily_bin1040.fits outfile=/scratch/kocevski/447674/cmap_508896001_509155201_4FGL_J1317.6+3428_daily_bin1040.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.55
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7038       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.293       1.0000         .10000E-03   10000.    
     4 'Prefactor '    50.361       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10492E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10388E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11098E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.941       1.0000         .10000E-03   10000.    
     9 'norm      '    6.4437       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0907       1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.7485       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .67199       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10482       1.0000         .10000E-03   10000.    
    20 'Prefactor '    53.358       1.0000         .10000E-03   10000.    
    21 'Prefactor '    109.55       1.0000         .10000E-03   10000.    
    22 'norm      '    3.8838       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.291       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3436       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .72806       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=   5912.493     FROM MIGRAD    STATUS=CONVERGED    692 CALLS     3340 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4440       -.95148E-07** at limit **
   2  Prefactor     2.6999        9.9955        .39910E-06   -.86344E-04
   3  Prefactor     12.286        19.585       -.34464E-06   -.12408E-03
   4  Prefactor     50.287        61.215       -.32865E-06   -.15119E-04
   5  Prefactor     .10000E-03    3.2918       -.21290E-06** at limit **
   6  norm          .10000E-03    3.1780       -.52386E-07** at limit **
   7  Prefactor     .10000E-03    22.392        .16049E-07** at limit **
   8  Prefactor     32.896        27.437       -.53763E-06    .25631E-04
   9  norm          6.4421        4.2666        .12143E-07   -.37691E-04
  10  Prefactor     .10000E-03    8.4514       -.48605E-07** at limit **
  11  norm          .10000E-03    4.4929       -.17525E-08** at limit **
  12  norm          .10000E-03    5.8590        .22454E-07** at limit **
  13  norm          1.0925        3.3394        .23871E-05    .11506E-03
  14  norm          .10000E-03    6.4054       -.22731E-05** at limit **
  15  norm          .10000E-03    7.0922       -.17735E-07** at limit **
  16  Prefactor     7.7480        4.6412       -.11508E-06   -.17985E-03
  17  Prefactor     .67012        9.6663        .84288E-06   -.56184E-03
  18  Prefactor     .10000E-03    32.078        .21866E-07** at limit **
  19  Prefactor     .10686E-03    15.783       -.55300E-06** at limit **
  20  Prefactor     53.423        28.010       -.33063E-07   -.11155E-03
  21  Prefactor     109.49        73.166       -.31124E-06   -.77570E-04
  22  norm          3.8831        2.0231        .65127E-08   -.14509E-04
  23  Prefactor     .10000E-03    2.3476        .21582E-07** at limit **
  24  norm          .10000E-03    6.6027        .11255E-06** at limit **
  25  Prefactor     11.291        11.443       -.16650E-07    .22368E-06
  26  Normalizat    1.3444        .18886        .22987E-06   -.12083E-03
  27  Prefactor     .72765        .21606       -.47902E-06    .44883E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.69993
  Prefactor  = 12.2855
  Prefactor  = 50.2865
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.8963
  norm       = 6.4421
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.0925
  norm       = 0.000100004
  norm       = 0.0001
  Prefactor  = 7.748
  Prefactor  = 0.670117
  Prefactor  = 0.0001
  Prefactor  = 0.000106856
  Prefactor  = 53.4229
  Prefactor  = 109.492
  norm       = 3.88314
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.2908
  Normalizat = 1.34439
  Prefactor  = 0.727646
 **********
 **   18 **HESSE 
 **********

 FCN=   5912.493     FROM HESSE     STATUS=OK           496 CALLS     3836 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6999        9.9680        .24773E-03   -1.5379    
   3  Prefactor     12.286        19.614        .11425E-03   -1.5007    
   4  Prefactor     50.287        61.218        .56511E-04   -1.4289    
   5  Prefactor     .10000E-03    3.2972        .13596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.2486        .13370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     32.896        27.398        .69816E-04   -1.4560    
   9  norm          6.4421        4.2654        .12507E-03   -1.5200    
  10  Prefactor     .10000E-03    8.4711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.5684        .15898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.8638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0925        3.5481        .23879E-03   -1.5499    
  14  norm          .10000E-03    25.505        .33224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.0956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.7480        4.5494        .11285E-03   -1.5151    
  17  Prefactor     .67012        51.975        .41523E-02   -1.5544    
  18  Prefactor     .10000E-03    32.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10686E-03    18.540        .84932E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     53.423        28.095        .54909E-04   -1.4245    
  21  Prefactor     109.49        73.430        .19214E-03   -1.3611    
  22  norm          3.8831        2.0230        .76300E-04   -1.5314    
  23  Prefactor     .10000E-03    2.3686        .11500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.6224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     11.291        11.445        .11923E-03   -1.5036    
  26  Normalizat    1.3444        .22546        .22265E-03   -.82251    
  27  Prefactor     .72765        .25581        .34292E-03   -1.0245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.19268e-09
Minuit parameter uncertainties:
  1  2.62994e-05
  2  9.9741
  3  19.624
  4  61.2943
  5  2.7143e-05
  6  1.49877e-06
  7  1.79714e-05
  8  27.4089
  9  4.26565
  10  8.20513e-06
  11  4.23722e-06
  12  2.52156e-06
  13  3.54882
  14  0.000600545
  15  7.70353e-06
  16  4.5496
  17  11.8131
  18  8.87214e-06
  19  0.0225552
  20  28.1019
  21  73.4907
  22  2.02304
  23  3.8232e-06
  24  2.96906e-05
  25  11.4475
  26  0.225628
  27  0.256228
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  7.748e+00  4.550e+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.276e-01  2.562e-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.344e+00  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.48
Ra Dec: 199.401 34.468
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 8.32e-08 +/- 4.88e-08
Energy Flux (Fixed Index): 2.33e-05 +/- 1.37e-05

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) = 5912.31009214
delta logL = 0.182495113482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5912.30944181
delta logL = 0.183145441764

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1227       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2333       1.0000          .0000       10.000    
     3 'Normalizat'    1.3667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70794       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=   5912.309     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      269 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1431        132.73        .33174E-02    .12344E-03
   2  Index         2.2353        6.0279        .18142        .49389E-04
   3  Normalizat    1.3665        .14733        .50027E-01    .16560E-04
   4  Prefactor     .70793        .15031        .78414E-01    .27110E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.14306
  Index      = 2.23528
  Normalizat = 1.3665
  Prefactor  = 0.707926
 **********
 **   18 **HESSE 
 **********

 FCN=   5912.309     FROM HESSE     STATUS=OK            31 CALLS      300 TOTAL
                     EDM=   .85E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1431        5.3692        .12621E-03   -1.5103    
   2  Index         2.2353        .47216        .68089E-02   -.58589    
   3  Normalizat    1.3665        .21958        .22117E-03   -.81602    
   4  Prefactor     .70793        .25468        .34718E-03   -1.0322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.51686e-12
Minuit parameter uncertainties:
  1  5.36945
  2  0.473177
  3  0.219731
  4  0.255101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447674': 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) = 5912.3094198
delta logL = 0.183167459212

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  9.143e+00  5.369e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.235e+00  4.732e-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.079e-01  2.551e-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.367e+00  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.85
Ra Dec: 199.401 34.468
Photon Index (Free Index): 2.24 +/- 0.47
Photon Flux (Free Index): 6.68e-08 +/- 4.69e-08
Energy Flux (Free Index): 2.81e-05 +/- 1.97e-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/447674/cmap_HighResolution_508896001_509155201_4FGL_J1317.6+3428_daily_bin1040.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.32e-08', energy_flux2='2.81e-05', photon_flux_error='4.88e-08', dlogl='1.83e-01', energy_flux='2.33e-05', photon_flux2='6.68e-08', job_status='DONE', time_completed='2021-09-07 10:34:00.801016', photon_index_error2='0.47', photon_index2='2.24', ts='7.48', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.97e-05', EG='1.34', time_epoch_completed='1631036040.8', return_code='0', job_id='447674', GAL2='0.71', EG2='1.37', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='4.69e-08', ts2='7.85', photon_index='2.53' WHERE bin_id='1040' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:34:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 447674: <4FGL_J1317.6+3428_daily_bin1040> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin1040> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 10:21:15 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:22:12 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:22:12 2021
Terminated at Tue Sep  7 10:34:01 2021
Results reported at Tue Sep  7 10:34:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1040 199.401 34.4676 508896001 509155201 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 :                                   662.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             352.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            766 sec.

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

