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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1067
RA = 199.401, Dec = 34.4676
tmin = 515894401, tmax = 516153601
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='447717', job_status='RUN', time_executed='2021-09-07 10:25:27.430385', time_epoch_executed='1631035527.43' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1067'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447717

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447717/ft1_4FGL_J1317.6+3428_daily_bin1067.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447717/ft2_4FGL_J1317.6+3428_daily_bin1067.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447717/ft1_4FGL_J1317.6+3428_daily_bin1067.fits outfile=/scratch/kocevski/447717/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1067.fits ra=199.401 dec=34.4676 rad=12.0 tmin=515894401.0 tmax=516153601.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.85
user 3.52
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447717/ft1_filtered_4FGL_J1317.6+3428_daily_bin1067.fits evtable="EVENTS" scfile=/scratch/kocevski/447717/ft2_4FGL_J1317.6+3428_daily_bin1067.fits sctable="SC_DATA" expcube=/scratch/kocevski/447717/ltcube_515894401_516153601_4FGL_J1317.6+3428_daily_bin1067.fits outfile=/scratch/kocevski/447717/expmap_515894401_516153601_4FGL_J1317.6+3428_daily_bin1067.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/447717/ltcube_515894401_516153601_4FGL_J1317.6+3428_daily_bin1067.fits
.....................!
real 194.83
user 187.58
sys 4.85

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/447717/ft1_filtered_4FGL_J1317.6+3428_daily_bin1067.fits scfile=/scratch/kocevski/447717/ft2_4FGL_J1317.6+3428_daily_bin1067.fits outfile=/scratch/kocevski/447717/cmap_515894401_516153601_4FGL_J1317.6+3428_daily_bin1067.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.60
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447717/ft1_filtered_4FGL_J1317.6+3428_daily_bin1067.fits scfile=/scratch/kocevski/447717/ft2_4FGL_J1317.6+3428_daily_bin1067.fits outfile=/scratch/kocevski/447717/cmap_HighResolution_515894401_516153601_4FGL_J1317.6+3428_daily_bin1067.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.61
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.356       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.633       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15477E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.3670       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.8525       1.0000         .10000E-03   10000.    
     9 'norm      '    4.7329       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .56224       1.0000         .10000E-03   10000.    
    11 'norm      '    7.4104       1.0000         .10000E-03   10000.    
    12 'norm      '    5.6168       1.0000         .10000E-03   10000.    
    13 'norm      '    1.7051       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.458       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0223       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11081E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1153       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    77.772       1.0000         .10000E-03   10000.    
    22 'norm      '    11.747       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11069E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    13.915       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .78136       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0967       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=   5527.404     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3284 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6690        .97763E-08** at limit **
   2  Prefactor     16.355        12.498        .84939E-08   -.13795E-04
   3  Prefactor     10.634        16.794        .94946E-08   -.26436E-04
   4  Prefactor     .10000E-03    144.32       -.20565E-05** at limit **
   5  Prefactor     .10000E-03    2.9393        .41180E-07** at limit **
   6  norm          6.3622        5.1377       -.28468E-06   -.62839E-04
   7  Prefactor     .10000E-03    52.371       -.73978E-06** at limit **
   8  Prefactor     5.8545        22.839       -.87139E-07   -.30879E-04
   9  norm          4.7330        3.4696        .83900E-07    .69193E-05
  10  Prefactor     .59066        10.598        .12120E-05   -.28497E-03
  11  norm          7.4096        5.4334       -.87684E-07   -.21317E-03
  12  norm          5.6177        12.978        .45540E-05   -.35499E-04
  13  norm          1.7054        2.4209        .11887E-06   -.44901E-04
  14  norm          .10000E-03    3.5615       -.34917E-07** at limit **
  15  norm          10.459        10.437       -.80738E-06    .16614E-04
  16  Prefactor     5.0228        3.2847        .30008E-06   -.21165E-03
  17  Prefactor     .10000E-03    8.4254        .23658E-08** at limit **
  18  Prefactor     .10000E-03    81.832        .18764E-05** at limit **
  19  Prefactor     6.1193        10.905        .33521E-06   -.19222E-05
  20  Prefactor     .10000E-03    22.375        .17088E-06** at limit **
  21  Prefactor     77.771        59.921        .25308E-06   -.12727E-04
  22  norm          11.747        2.8539        .40868E-08   -.36690E-04
  23  Prefactor     .10000E-03    2.4080        .53064E-07** at limit **
  24  norm          13.917        15.670        .17972E-06   -.10360E-04
  25  Prefactor     .10000E-03    5.0647        .51075E-09** at limit **
  26  Normalizat    .78109        .17107       -.49728E-06   -.12432E-03
  27  Prefactor     1.0970        .21022       -.36015E-06   -.86179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.3552
  Prefactor  = 10.6344
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 6.36224
  Prefactor  = 0.000100001
  Prefactor  = 5.85454
  norm       = 4.73301
  Prefactor  = 0.590662
  norm       = 7.40959
  norm       = 5.61767
  norm       = 1.70543
  norm       = 0.0001
  norm       = 10.4585
  Prefactor  = 5.02283
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 6.11926
  Prefactor  = 0.0001
  Prefactor  = 77.7712
  norm       = 11.7472
  Prefactor  = 0.0001
  norm       = 13.9174
  Prefactor  = 0.0001
  Normalizat = 0.78109
  Prefactor  = 1.09696
 **********
 **   18 **HESSE 
 **********

 FCN=   5527.404     FROM HESSE     STATUS=OK           494 CALLS     3778 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6856        .15689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.355        12.501        .99034E-04   -1.4899    
   3  Prefactor     10.634        16.779        .12287E-03   -1.5056    
   4  Prefactor     .10000E-03    145.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9496        .12434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.3622        5.1005        .13355E-03   -1.5203    
   7  Prefactor     .10000E-03    52.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.8545        22.584        .16601E-03   -1.5224    
   9  norm          4.7330        3.4673        .11481E-03   -1.5273    
  10  Prefactor     .59066        85.702        .42399E-02   -1.5554    
  11  norm          7.4096        5.5232        .13589E-03   -1.5163    
  12  norm          5.6177        13.011        .84752E-03   -1.5234    
  13  norm          1.7054        2.3738        .12991E-03   -1.5447    
  14  norm          .10000E-03    3.5867        .13611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.459        10.440        .61948E-03   -1.5061    
  16  Prefactor     5.0228        3.2709        .10154E-03   -1.5260    
  17  Prefactor     .10000E-03    8.4884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    82.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.1193        10.898        .16235E-03   -1.5213    
  20  Prefactor     .10000E-03    22.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     77.771        60.037        .45536E-04   -1.3942    
  22  norm          11.747        2.8560        .59830E-04   -1.5022    
  23  Prefactor     .10000E-03    2.5184        .22515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          13.917        15.670        .10737E-03   -1.4962    
  25  Prefactor     .10000E-03    5.0650        .16341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .78109        .20696        .24118E-03   -1.0077    
  27  Prefactor     1.0970        .25435        .26440E-03   -.89564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06459e-09
Minuit parameter uncertainties:
  1  1.88144e-06
  2  12.5032
  3  16.7863
  4  0.00154245
  5  3.1828e-06
  6  5.10083
  7  0.000342278
  8  22.6166
  9  3.46743
  10  14.2493
  11  5.5236
  12  13.0172
  13  2.37398
  14  4.19511e-06
  15  10.4418
  16  3.27103
  17  1.23295e-05
  18  0.000964177
  19  10.9013
  20  1.53529e-05
  21  60.0843
  22  2.85598
  23  3.49909e-06
  24  15.6747
  25  7.90641e-07
  26  0.207166
  27  0.25463
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  5.023e+00  3.271e+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.097e+00  2.546e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  7.811e-01  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.33
Ra Dec: 199.401 34.468
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 5.39e-08 +/- 3.51e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 9.83e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5527.35041956
delta logL = 0.0533191556033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5527.34825007
delta logL = 0.0554886473838

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7019       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3236       1.0000          .0000       10.000    
     3 'Normalizat'    .79330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0859       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=   5527.348     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      234 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6986        101.91        .42054E-02    .91388E-04
   2  Index         2.3238        5.9131        .15629        .51368E-04
   3  Normalizat    .79332        .10696        .43523E-01    .13987E-04
   4  Prefactor     1.0858        .10190        .60045E-01    .61342E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.69858
  Index      = 2.32378
  Normalizat = 0.793315
  Prefactor  = 1.08584
 **********
 **   18 **HESSE 
 **********

 FCN=   5527.348     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6986        4.0786        .11165E-03   -1.5230    
   2  Index         2.3238        .62571        .79745E-02   -.56480    
   3  Normalizat    .79332        .20027        .23952E-03   -1.0032    
   4  Prefactor     1.0858        .25294        .26554E-03   -.89920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04516e-09
Minuit parameter uncertainties:
  1  4.07884
  2  0.62802
  3  0.200453
  4  0.253216
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447717': 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) = 5527.34824971
delta logL = 0.0554890081339

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  5.699e+00  4.079e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.324e+00  6.280e-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.086e+00  2.532e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  7.933e-01  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.43
Ra Dec: 199.401 34.468
Photon Index (Free Index): 2.32 +/- 0.63
Photon Flux (Free Index): 4.64e-08 +/- 3.84e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.34e-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/447717/cmap_HighResolution_515894401_516153601_4FGL_J1317.6+3428_daily_bin1067.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.39e-08', energy_flux2='1.69e-05', photon_flux_error='3.51e-08', dlogl='5.55e-02', energy_flux='1.51e-05', photon_flux2='4.64e-08', job_status='DONE', time_completed='2021-09-07 10:36:14.287587', photon_index_error2='0.63', photon_index2='2.32', ts='5.33', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.34e-05', EG='0.78', time_epoch_completed='1631036174.29', return_code='0', job_id='447717', GAL2='1.09', EG2='0.79', return_code2='0', energy_flux_error='9.83e-06', photon_flux_error2='3.84e-08', ts2='5.43', photon_index='2.53' WHERE bin_id='1067' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:36:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 447717: <4FGL_J1317.6+3428_daily_bin1067> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1067 199.401 34.4676 515894401 516153601 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 :                                   641.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            896 sec.

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

