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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1470
RA = 199.401, Dec = 34.4676
tmin = 620352001, tmax = 620611201
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='449321', job_status='RUN', time_executed='2021-09-07 10:30:40.366369', time_epoch_executed='1631035840.37' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449321

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449321/ft1_4FGL_J1317.6+3428_daily_bin1470.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449321/ft2_4FGL_J1317.6+3428_daily_bin1470.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449321/ft1_4FGL_J1317.6+3428_daily_bin1470.fits outfile=/scratch/kocevski/449321/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1470.fits ra=199.401 dec=34.4676 rad=12.0 tmin=620352001.0 tmax=620611201.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.96
user 4.69
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449321/ft1_filtered_4FGL_J1317.6+3428_daily_bin1470.fits evtable="EVENTS" scfile=/scratch/kocevski/449321/ft2_4FGL_J1317.6+3428_daily_bin1470.fits sctable="SC_DATA" expcube=/scratch/kocevski/449321/ltcube_620352001_620611201_4FGL_J1317.6+3428_daily_bin1470.fits outfile=/scratch/kocevski/449321/expmap_620352001_620611201_4FGL_J1317.6+3428_daily_bin1470.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/449321/ltcube_620352001_620611201_4FGL_J1317.6+3428_daily_bin1470.fits
.....................!
real 192.60
user 186.56
sys 5.46

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/449321/ft1_filtered_4FGL_J1317.6+3428_daily_bin1470.fits scfile=/scratch/kocevski/449321/ft2_4FGL_J1317.6+3428_daily_bin1470.fits outfile=/scratch/kocevski/449321/cmap_620352001_620611201_4FGL_J1317.6+3428_daily_bin1470.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/449321/ft1_filtered_4FGL_J1317.6+3428_daily_bin1470.fits scfile=/scratch/kocevski/449321/ft2_4FGL_J1317.6+3428_daily_bin1470.fits outfile=/scratch/kocevski/449321/cmap_HighResolution_620352001_620611201_4FGL_J1317.6+3428_daily_bin1470.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.58
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1429       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0339       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    85.574       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3821       1.0000         .10000E-03   10000.    
     6 'norm      '    1.7744       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8711       1.0000         .10000E-03   10000.    
     9 'norm      '    4.0946       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8280       1.0000         .10000E-03   10000.    
    11 'norm      '    7.0150       1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.5854       1.0000         .10000E-03   10000.    
    14 'norm      '    4.4060       1.0000         .10000E-03   10000.    
    15 'norm      '    11.753       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .39911E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .23943E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.623       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9192       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1102       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .73894       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=   5120.917     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     2821 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1432        7.4829        .39261E-07   -.55495E-06
   2  Prefactor     1.0267        11.040       -.18523E-05   -.75869E-04
   3  Prefactor     .10000E-03    11.667        .52879E-06** at limit **
   4  Prefactor     85.573        63.382       -.76678E-06   -.24672E-04
   5  Prefactor     1.3819        4.1420        .38144E-05   -.29826E-03
   6  norm          1.7767        2.5641       -.38292E-07   -.26656E-03
   7  Prefactor     .10000E-03    44.425        .65692E-05** at limit **
   8  Prefactor     9.8743        17.533        .12512E-06   -.14566E-03
   9  norm          4.0944        4.2558       -.32706E-06   -.33420E-03
  10  Prefactor     6.8318        12.793       -.10415E-06   -.15102E-03
  11  norm          7.0162        4.8885        .48675E-06   -.14708E-03
  12  norm          .10000E-03    5.6938       -.37838E-05** at limit **
  13  norm          6.5863        5.8662       -.93302E-06   -.17332E-02
  14  norm          4.4097        7.9198       -.58990E-06   -.80431E-03
  15  norm          11.753        11.766        .71448E-06    .57989E-03
  16  Prefactor     .10000E-03    2.6594       -.55279E-06** at limit **
  17  Prefactor     .40808E-01    13.986        .43841E-05   -.73258E-03
  18  Prefactor     .10000E-03    18.770       -.16186E-05** at limit **
  19  Prefactor     .10000E-03    34.944        .34054E-05** at limit **
  20  Prefactor     18.609        19.403       -.31589E-05   -.21466E-03
  21  Prefactor     .10000E-03    49.725       -.90695E-05** at limit **
  22  norm          1.9193        1.4377        .10295E-06   -.85211E-04
  23  Prefactor     .10000E-03    1.4722        .11582E-06** at limit **
  24  norm          .10000E-03    5.8488        .55139E-05** at limit **
  25  Prefactor     .10000E-03    6.1949       -.25313E-05** at limit **
  26  Normalizat    1.1101        .16702        .52810E-06   -.46797E-03
  27  Prefactor     .73908        .20267       -.44278E-06   -.19437E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.14321
  Prefactor  = 1.02666
  Prefactor  = 0.0001
  Prefactor  = 85.5732
  Prefactor  = 1.38187
  norm       = 1.77671
  Prefactor  = 0.000100001
  Prefactor  = 9.87427
  norm       = 4.09444
  Prefactor  = 6.83175
  norm       = 7.0162
  norm       = 0.0001
  norm       = 6.58629
  norm       = 4.40971
  norm       = 11.7531
  Prefactor  = 0.0001
  Prefactor  = 0.0408082
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 18.6092
  Prefactor  = 0.000100002
  norm       = 1.91929
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.11009
  Prefactor  = 0.739083
 **********
 **   18 **HESSE 
 **********

 FCN=   5120.917     FROM HESSE     STATUS=OK           496 CALLS     3317 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1432        7.4827        .15009E-03   -1.5173    
   2  Prefactor     1.0267        37.326        .45495E-02   -1.5505    
   3  Prefactor     .10000E-03    11.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     85.573        63.338        .43427E-04   -1.3855    
   5  Prefactor     1.3819        3.9376        .23231E-03   -1.5473    
   6  norm          1.7767        2.5404        .13288E-03   -1.5441    
   7  Prefactor     .10000E-03    44.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.8743        17.505        .12754E-03   -1.5079    
   9  norm          4.0944        4.2611        .14495E-03   -1.5303    
  10  Prefactor     6.8318        12.739        .15355E-03   -1.5185    
  11  norm          7.0162        4.8837        .12405E-03   -1.5178    
  12  norm          .10000E-03    5.7088        .16672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.5863        6.1606        .10746E-03   -1.5195    
  14  norm          4.4097        8.3153        .19087E-03   -1.5288    
  15  norm          11.753        11.889        .58426E-03   -1.5022    
  16  Prefactor     .10000E-03    2.7124        .22581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .40808E-01    22.151        .67159E-01   -1.5668    
  18  Prefactor     .10000E-03    18.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    35.881        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.609        19.459        .92811E-04   -1.4845    
  21  Prefactor     .10000E-03    49.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9193        1.4298        .71996E-04   -1.5431    
  23  Prefactor     .10000E-03    1.4854        .84770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.8496        .16883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.1961        .17396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1101        .19580        .20079E-03   -.89428    
  27  Prefactor     .73908        .23592        .30001E-03   -1.0201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82123e-08
Minuit parameter uncertainties:
  1  7.48372
  2  12.3885
  3  2.7856e-05
  4  63.3881
  5  3.93837
  6  2.54054
  7  0.000348466
  8  17.5143
  9  4.26139
  10  12.7436
  11  4.88401
  12  7.7084e-05
  13  6.16115
  14  8.3175
  15  11.8917
  16  3.49719e-05
  17  1.89989
  18  7.44779e-05
  19  0.000270599
  20  19.4657
  21  0.000583898
  22  1.42982
  23  1.057e-06
  24  0.000111347
  25  5.54505e-05
  26  0.195924
  27  0.236238
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  3.497e-05  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.391e-01  2.362e-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.110e+00  1.959e-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: 7.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/449321/likelihoodResults_620352001_620611201_4FGL_J1317.6+3428_daily_bin1470.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) = 5120.91826872
delta logL = -0.00175933050195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5120.91650832
delta logL = 1.0627991287e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5832       1.0000          .0000       10.000    
     3 'Normalizat'    1.1099       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73935       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=   5119.930     FROM MIGRAD    STATUS=CONVERGED    120 CALLS      278 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18238E-01    .56665        .16569E-02   -.54716E-02
   2  Index         6.0301        7.3028        .13195        .12059E-03
   3  Normalizat    1.0221        .14696        .37610E-01    .16576E-04
   4  Prefactor     .81050        .14133        .65035E-01    .10652E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0182385
  Index      = 6.03012
  Normalizat = 1.02213
  Prefactor  = 0.810501
 **********
 **   18 **HESSE 
 **********

 FCN=   5119.930     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      311 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18238E-01    .57068        .74502E-05   -1.5735    
   2  Index         6.0301        7.6315        .49018E-02    .20751    
   3  Normalizat    1.0221        .17020        .20765E-03   -.92293    
   4  Prefactor     .81050        .20742        .28770E-03   -.99342    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.51805e-10
Minuit parameter uncertainties:
  1  0.203484
  2  5.95458
  3  0.170294
  4  0.207618
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449321': 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): 102
logL (Free Index) = 5119.93044828
delta logL = 0.98606110298

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.824e-02  2.035e-01  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  6.030e+00  5.955e+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:  8.105e-01  2.076e-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.022e+00  1.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.12
Ra Dec: 199.401 34.468
Photon Index (Free Index): 6.03 +/- 5.95
Photon Flux (Free Index): 6.88e-08 +/- 1.50e-06
Energy Flux (Free Index): 8.56e-06 +/- 1.84e-04

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/449321/cmap_HighResolution_620352001_620611201_4FGL_J1317.6+3428_daily_bin1470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.73e-03', comment='SUCCESS', energy_flux2='8.56e-06', dlogl='9.86e-01', photon_flux2='6.88e-08', job_status='DONE', time_completed='2021-09-07 10:41:54.887375', photon_index_error2='5.95', photon_index2='6.03', ts='-0.00', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='7.35e-08', energy_flux_error2='1.84e-04', EG='1.11', time_epoch_completed='1631036514.89', return_code='0', job_id='449321', GAL2='0.81', EG2='1.02', return_code2='102', photon_flux_error2='1.50e-06', ts2='2.12', photon_index='2.53' WHERE bin_id='1470' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:41:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 449321: <4FGL_J1317.6+3428_daily_bin1470> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin1470> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 10:26:21 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:26:50 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:26:50 2021
Terminated at Tue Sep  7 10:41:55 2021
Results reported at Tue Sep  7 10:41:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1470 199.401 34.4676 620352001 620611201 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 :                                   672.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            934 sec.

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

