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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1106
RA = 199.401, Dec = 34.4676
tmin = 526003201, tmax = 526262401
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='447777', job_status='RUN', time_executed='2021-09-07 10:26:19.410592', time_epoch_executed='1631035579.41' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447777

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447777/ft1_4FGL_J1317.6+3428_daily_bin1106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447777/ft2_4FGL_J1317.6+3428_daily_bin1106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447777/ft1_4FGL_J1317.6+3428_daily_bin1106.fits outfile=/scratch/kocevski/447777/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1106.fits ra=199.401 dec=34.4676 rad=12.0 tmin=526003201.0 tmax=526262401.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.83
user 3.51
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447777/ft1_filtered_4FGL_J1317.6+3428_daily_bin1106.fits" evtable="EVENTS" scfile=/scratch/kocevski/447777/ft2_4FGL_J1317.6+3428_daily_bin1106.fits sctable="SC_DATA" outfile=/scratch/kocevski/447777/ltcube_526003201_526262401_4FGL_J1317.6+3428_daily_bin1106.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/447777/ft2_4FGL_J1317.6+3428_daily_bin1106.fits
.....................!
real 15.97
user 15.56
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447777/ft1_filtered_4FGL_J1317.6+3428_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/447777/ft2_4FGL_J1317.6+3428_daily_bin1106.fits sctable="SC_DATA" expcube=/scratch/kocevski/447777/ltcube_526003201_526262401_4FGL_J1317.6+3428_daily_bin1106.fits outfile=/scratch/kocevski/447777/expmap_526003201_526262401_4FGL_J1317.6+3428_daily_bin1106.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/447777/ltcube_526003201_526262401_4FGL_J1317.6+3428_daily_bin1106.fits
.....................!
real 193.02
user 187.14
sys 5.08

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/447777/ft1_filtered_4FGL_J1317.6+3428_daily_bin1106.fits scfile=/scratch/kocevski/447777/ft2_4FGL_J1317.6+3428_daily_bin1106.fits outfile=/scratch/kocevski/447777/cmap_526003201_526262401_4FGL_J1317.6+3428_daily_bin1106.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447777/ft1_filtered_4FGL_J1317.6+3428_daily_bin1106.fits scfile=/scratch/kocevski/447777/ft2_4FGL_J1317.6+3428_daily_bin1106.fits outfile=/scratch/kocevski/447777/cmap_HighResolution_526003201_526262401_4FGL_J1317.6+3428_daily_bin1106.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=199.401 yref=34.4676 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.024       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .95562E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.324       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .20168E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .13186E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.7236       1.0000         .10000E-03   10000.    
    13 'norm      '    .11132E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    60.780       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.4743       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .86231E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4814       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.8564       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0771       1.0000         .10000E-03   10000.    
    24 'norm      '    3.8968       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0948       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .69982       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=   5355.439     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     2871 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.023        10.404        .13833E-06   -.13859E-04
   2  Prefactor     .10000E-03    6.2867        .27440E-06** at limit **
   3  Prefactor     .10000E-03    9.4720        .14445E-05** at limit **
   4  Prefactor     .10000E-03    17.898        .83542E-06** at limit **
   5  Prefactor     .10000E-03    1.8333        .15973E-07** at limit **
   6  norm          .10000E-03    2.2994        .88800E-07** at limit **
   7  Prefactor     10.296        44.175        .53533E-05    .10921E-03
   8  Prefactor     .10000E-03    14.435       -.36471E-06** at limit **
   9  norm          .10000E-03    5.8712       -.33003E-05** at limit **
  10  Prefactor     .10000E-03    7.3748       -.50796E-06** at limit **
  11  norm          .10001E-03    7.8477       -.31159E-05** at limit **
  12  norm          9.7227        10.249       -.11550E-06   -.52971E-04
  13  norm          .10000E-03    1.6440        .57767E-06** at limit **
  14  norm          .10000E-03    2.2824        .57916E-07** at limit **
  15  norm          60.792        31.820       -.76849E-06   -.28096E-03
  16  Prefactor     5.4812        3.3888       -.30110E-06    .82632E-03
  17  Prefactor     .10007E-03    11.586       -.21319E-05** at limit **
  18  Prefactor     .10000E-03    25.259        .47855E-06** at limit **
  19  Prefactor     4.4854        11.888        .13921E-06   -.27677E-05
  20  Prefactor     .10000E-03    12.670       -.62219E-06** at limit **
  21  Prefactor     .10000E-03    28.937       -.12333E-05** at limit **
  22  norm          5.8563        2.1051        .31810E-07   -.73360E-04
  23  Prefactor     2.0772        2.1380        .14730E-07   -.90214E-04
  24  norm          3.8964        10.511        .43794E-06    .66456E-04
  25  Prefactor     .10000E-03    6.4676       -.30549E-07** at limit **
  26  Normalizat    1.0949        .16314        .10992E-06   -.57737E-03
  27  Prefactor     .69976        .19708       -.21472E-05   -.53352E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0229
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.2958
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.000100005
  norm       = 9.72274
  norm       = 0.0001
  norm       = 0.0001
  norm       = 60.7922
  Prefactor  = 5.48122
  Prefactor  = 0.000100066
  Prefactor  = 0.0001
  Prefactor  = 4.48541
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.85626
  Prefactor  = 2.07722
  norm       = 3.89635
  Prefactor  = 0.0001
  Normalizat = 1.09489
  Prefactor  = 0.699763
 **********
 **   18 **HESSE 
 **********

 FCN=   5355.439     FROM HESSE     STATUS=OK           482 CALLS     3353 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.023        10.408        .11099E-03   -1.4986    
   2  Prefactor     .10000E-03    6.3431        .17934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    35.517        .42842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.8363        .96754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.3409        .10837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.296        46.784        .12470E-03   -1.5066    
   8  Prefactor     .10000E-03    14.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.8766        .21358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.3920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10001E-03    17.407        .28767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.7227        10.246        .12851E-03   -1.5084    
  13  norm          .10000E-03    5.3628        .17882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.3010        .10784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          60.792        31.609        .51466E-04   -1.4147    
  16  Prefactor     5.4812        3.4835        .51549E-03   -1.5240    
  17  Prefactor     .10007E-03    60.826        .40062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.4854        11.868        .19020E-03   -1.5284    
  20  Prefactor     .10000E-03    12.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    29.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.8563        2.1065        .61514E-04   -1.5224    
  23  Prefactor     2.0772        2.1445        .10552E-03   -1.5420    
  24  norm          3.8964        10.515        .20439E-03   -1.5313    
  25  Prefactor     .10000E-03    6.4693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0949        .19059        .20054E-03   -.89916    
  27  Prefactor     .69976        .22939        .30118E-03   -1.0354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97851e-09
Minuit parameter uncertainties:
  1  10.4093
  2  3.59746e-05
  3  0.000119834
  4  0.000163752
  5  3.57049e-06
  6  1.43435e-05
  7  43.9511
  8  2.14229e-05
  9  0.000287496
  10  4.48671e-05
  11  0.000592554
  12  10.2482
  13  7.37951e-05
  14  6.48569e-06
  15  31.6177
  16  3.48362
  17  0.00401345
  18  0.000132717
  19  11.8743
  20  6.93774e-05
  21  0.000266174
  22  2.10651
  23  2.14455
  24  10.5198
  25  1.59845e-06
  26  0.190713
  27  0.2297
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  5.481e+00  3.484e+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:  6.998e-01  2.297e-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.095e+00  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.81
Ra Dec: 199.401 34.468
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 5.89e-08 +/- 3.74e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.05e-05

TS (Fixed Index): 3.81
Ra Dec: 199.401 34.468
Photon Flux Upper Limit: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447777/likelihoodResults_526003201_526262401_4FGL_J1317.6+3428_daily_bin1106.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): 0
logL (Free Index) = 5355.26240802
delta logL = 0.176461102827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5355.26195782
delta logL = 0.176911298058

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0567       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2446       1.0000          .0000       10.000    
     3 'Normalizat'    1.1072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68647       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=   5355.262     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      262 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0633        119.97        .37753E-02    .17598E-03
   2  Index         2.2454        6.0745        .15902        .46317E-04
   3  Normalizat    1.1070        .90892E-01    .37716E-01    .20742E-04
   4  Prefactor     .68669        .12199        .68617E-01    .33032E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.06329
  Index      = 2.24542
  Normalizat = 1.10695
  Prefactor  = 0.686687
 **********
 **   18 **HESSE 
 **********

 FCN=   5355.262     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0633        4.8500        .11575E-03   -1.5176    
   2  Index         2.2454        .46014        .62438E-02   -.58346    
   3  Normalizat    1.1070        .18717        .19955E-03   -.89529    
   4  Prefactor     .68669        .22854        .30364E-03   -1.0405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03311e-12
Minuit parameter uncertainties:
  1  4.85025
  2  0.461078
  3  0.187278
  4  0.228851
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447777': 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) = 5355.26195337
delta logL = 0.176915755545

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  7.063e+00  4.850e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.245e+00  4.611e-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:  6.867e-01  2.289e-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.107e+00  1.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.14
Ra Dec: 199.401 34.468
Photon Index (Free Index): 2.25 +/- 0.46
Photon Flux (Free Index): 5.22e-08 +/- 3.54e-08
Energy Flux (Free Index): 2.16e-05 +/- 1.76e-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/447777/cmap_HighResolution_526003201_526262401_4FGL_J1317.6+3428_daily_bin1106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='5.89e-08', energy_flux2='2.16e-05', photon_flux_error='3.74e-08', dlogl='1.77e-01', energy_flux='1.65e-05', photon_flux2='5.22e-08', job_status='DONE', time_completed='2021-09-07 10:37:41.049314', photon_index_error2='0.46', photon_index2='2.25', ts='3.81', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.76e-05', EG='1.09', time_epoch_completed='1631036261.05', return_code='0', job_id='447777', GAL2='0.69', EG2='1.11', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='3.54e-08', ts2='4.14', photon_index='2.53' WHERE bin_id='1106' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:37:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 447777: <4FGL_J1317.6+3428_daily_bin1106> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1106 199.401 34.4676 526003201 526262401 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 :                                   680.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            977 sec.

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

