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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1044
RA = 199.401, Dec = 34.4676
tmin = 509932801, tmax = 510192001
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='447681', job_status='RUN', time_executed='2021-09-07 10:25:33.953100', time_epoch_executed='1631035533.95' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447681

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447681/ft1_4FGL_J1317.6+3428_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447681/ft2_4FGL_J1317.6+3428_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447681/ft1_4FGL_J1317.6+3428_daily_bin1044.fits outfile=/scratch/kocevski/447681/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1044.fits ra=199.401 dec=34.4676 rad=12.0 tmin=509932801.0 tmax=510192001.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.57
user 3.35
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447681/ft1_filtered_4FGL_J1317.6+3428_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/447681/ft2_4FGL_J1317.6+3428_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/447681/ltcube_509932801_510192001_4FGL_J1317.6+3428_daily_bin1044.fits outfile=/scratch/kocevski/447681/expmap_509932801_510192001_4FGL_J1317.6+3428_daily_bin1044.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/447681/ltcube_509932801_510192001_4FGL_J1317.6+3428_daily_bin1044.fits
.....................!
real 191.74
user 186.99
sys 4.31

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/447681/ft1_filtered_4FGL_J1317.6+3428_daily_bin1044.fits scfile=/scratch/kocevski/447681/ft2_4FGL_J1317.6+3428_daily_bin1044.fits outfile=/scratch/kocevski/447681/cmap_509932801_510192001_4FGL_J1317.6+3428_daily_bin1044.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447681/ft1_filtered_4FGL_J1317.6+3428_daily_bin1044.fits scfile=/scratch/kocevski/447681/ft2_4FGL_J1317.6+3428_daily_bin1044.fits outfile=/scratch/kocevski/447681/cmap_HighResolution_509932801_510192001_4FGL_J1317.6+3428_daily_bin1044.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.332       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.313       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .41696       1.0000         .10000E-03   10000.    
     6 'norm      '    4.9148       1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.641       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.222       1.0000         .10000E-03   10000.    
     9 'norm      '    7.0748       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6485       1.0000         .10000E-03   10000.    
    12 'norm      '    5.9474       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0486       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2520       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.141       1.0000         .10000E-03   10000.    
    22 'norm      '    8.0088       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .67859       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1854       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=   5529.884     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3205 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3484        .18939E-05** at limit **
   2  Prefactor     13.332        12.334        .12159E-05   -.27972E-04
   3  Prefactor     11.312        11.203        .19530E-06    .13685E-04
   4  Prefactor     .10000E-03    24.614       -.11213E-05** at limit **
   5  Prefactor     .42077        3.2670        .30106E-06   -.21469E-03
   6  norm          4.9149        4.0301        .23932E-06   -.37500E-04
   7  Prefactor     49.636        49.202       -.65698E-05   -.19946E-04
   8  Prefactor     23.224        25.196        .44010E-05   -.45196E-04
   9  norm          7.0748        3.7656        .43091E-06   -.35278E-04
  10  Prefactor     .10000E-03    7.6040       -.22586E-05** at limit **
  11  norm          2.6484        4.8133        .88065E-08   -.52791E-03
  12  norm          5.9459        15.649        .10871E-05   -.45054E-04
  13  norm          .10000E-03    1.2143        .20993E-06** at limit **
  14  norm          .10000E-03    1.5827        .37114E-06** at limit **
  15  norm          .10000E-03    6.8246       -.13732E-05** at limit **
  16  Prefactor     6.0492        3.5355        .45797E-07   -.26117E-03
  17  Prefactor     .10000E-03    4.6413       -.26536E-05** at limit **
  18  Prefactor     6.2521        64.690       -.38266E-07   -.17816E-04
  19  Prefactor     .10000E-03    4.9938       -.57354E-06** at limit **
  20  Prefactor     .10000E-03    4.1832        .41485E-06** at limit **
  21  Prefactor     21.216        74.902        .15476E-03   -.24746E-05
  22  norm          8.0089        2.3289       -.31019E-06   -.35588E-03
  23  Prefactor     .10000E-03    1.3443        .43915E-06** at limit **
  24  norm          .10000E-03    6.6295       -.11543E-05** at limit **
  25  Prefactor     .10000E-03    5.5992        .16940E-05** at limit **
  26  Normalizat    .67829        .16676       -.15248E-04    .33485E-03
  27  Prefactor     1.1857        .20173        .36287E-05   -.51585E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.3319
  Prefactor  = 11.3117
  Prefactor  = 0.0001
  Prefactor  = 0.420775
  norm       = 4.91491
  Prefactor  = 49.6358
  Prefactor  = 23.2243
  norm       = 7.07481
  Prefactor  = 0.0001
  norm       = 2.64843
  norm       = 5.94588
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.04919
  Prefactor  = 0.0001
  Prefactor  = 6.25215
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.216
  norm       = 8.00889
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.678289
  Prefactor  = 1.18573
 **********
 **   18 **HESSE 
 **********

 FCN=   5529.884     FROM HESSE     STATUS=OK           486 CALLS     3691 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.4647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.332        12.334        .10970E-03   -1.4978    
   3  Prefactor     11.312        11.360        .11911E-03   -1.5035    
   4  Prefactor     .10000E-03    24.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .42077        13.323        .25244E-02   -1.5578    
   6  norm          4.9149        4.0246        .12663E-03   -1.5265    
   7  Prefactor     49.636        49.191        .56917E-04   -1.4298    
   8  Prefactor     23.224        25.085        .83123E-04   -1.4744    
   9  norm          7.0748        3.7655        .10225E-03   -1.5176    
  10  Prefactor     .10000E-03    7.6220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6484        4.7681        .20458E-03   -1.5382    
  12  norm          5.9459        15.624        .16466E-03   -1.5220    
  13  norm          .10000E-03    1.2201        .79945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.5836        .91360E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.8399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.0492        3.5240        .95828E-04   -1.5216    
  17  Prefactor     .10000E-03    4.6471        .15639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2521        64.426        .16054E-03   -1.5208    
  19  Prefactor     .10000E-03    5.0047        .16228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.1850        .14855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.216        74.845        .87112E-04   -1.4786    
  22  norm          8.0089        2.3300        .58959E-04   -1.5142    
  23  Prefactor     .10000E-03    1.3571        .84172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.6534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.6002        .17186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .67829        .19683        .24745E-03   -1.0476    
  27  Prefactor     1.1857        .24134        .24675E-03   -.86772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44179e-09
Minuit parameter uncertainties:
  1  0.000104903
  2  12.3361
  3  11.3622
  4  5.17446e-05
  5  4.73605
  6  4.02484
  7  49.2308
  8  25.0966
  9  3.76559
  10  2.33336e-05
  11  4.76877
  12  15.635
  13  6.89245e-06
  14  2.6437e-06
  15  1.87442e-05
  16  3.52415
  17  6.69482e-06
  18  40.1953
  19  2.96955e-05
  20  1.16498e-05
  21  75.1786
  22  2.33
  23  1.71018e-05
  24  9.09145e-05
  25  5.50159e-06
  26  0.197032
  27  0.241563
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  6.049e+00  3.524e+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.186e+00  2.416e-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.783e-01  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.40
Ra Dec: 199.401 34.468
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 6.50e-08 +/- 3.78e-08
Energy Flux (Fixed Index): 1.82e-05 +/- 1.06e-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) = 5529.72183542
delta logL = 0.161948269942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5529.72155016
delta logL = 0.162233529612

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0300       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2398       1.0000          .0000       10.000    
     3 'Normalizat'    .69651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1707       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=   5529.722     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      267 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0358        97.681        .37826E-02    .10064E-03
   2  Index         2.2407        6.0567        .19010        .40838E-04
   3  Normalizat    .69643        .98306E-01    .42244E-01    .19015E-04
   4  Prefactor     1.1707        .94623E-01    .56112E-01    .46718E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.03581
  Index      = 2.24074
  Normalizat = 0.696433
  Prefactor  = 1.17074
 **********
 **   18 **HESSE 
 **********

 FCN=   5529.722     FROM HESSE     STATUS=OK            33 CALLS      300 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0358        4.2107        .11023E-03   -1.5177    
   2  Index         2.2407        .51177        .66975E-02   -.58458    
   3  Normalizat    .69643        .18791        .24455E-03   -1.0403    
   4  Prefactor     1.1707        .23839        .24811E-03   -.87237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08244e-10
Minuit parameter uncertainties:
  1  4.21086
  2  0.513066
  3  0.188082
  4  0.238613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447681': 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) = 5529.72154671
delta logL = 0.162236983554

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  7.036e+00  4.211e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.241e+00  5.131e-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.171e+00  2.386e-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.964e-01  1.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.70
Ra Dec: 199.401 34.468
Photon Index (Free Index): 2.24 +/- 0.51
Photon Flux (Free Index): 5.17e-08 +/- 3.92e-08
Energy Flux (Free Index): 2.16e-05 +/- 1.53e-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/447681/cmap_HighResolution_509932801_510192001_4FGL_J1317.6+3428_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.50e-08', energy_flux2='2.16e-05', photon_flux_error='3.78e-08', dlogl='1.62e-01', energy_flux='1.82e-05', photon_flux2='5.17e-08', job_status='DONE', time_completed='2021-09-07 10:36:09.907858', photon_index_error2='0.51', photon_index2='2.24', ts='7.40', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='1.53e-05', EG='0.68', time_epoch_completed='1631036169.91', return_code='0', job_id='447681', GAL2='1.17', EG2='0.70', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='3.92e-08', ts2='7.70', photon_index='2.53' WHERE bin_id='1044' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:36:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 447681: <4FGL_J1317.6+3428_daily_bin1044> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1044 199.401 34.4676 509932801 510192001 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 :                                   635.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             272.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            894 sec.

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

