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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin635
RA = 199.401, Dec = 34.4676
tmin = 403920001, tmax = 404179201
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='445886', job_status='RUN', time_executed='2021-09-07 10:19:01.198452', time_epoch_executed='1631035141.2' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/445886

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/445886/ft1_4FGL_J1317.6+3428_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/445886/ft2_4FGL_J1317.6+3428_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/445886/ft1_4FGL_J1317.6+3428_daily_bin635.fits outfile=/scratch/kocevski/445886/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin635.fits ra=199.401 dec=34.4676 rad=12.0 tmin=403920001.0 tmax=404179201.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 8.29
user 7.96
sys 0.29

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/445886/ft1_filtered_4FGL_J1317.6+3428_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/445886/ft2_4FGL_J1317.6+3428_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/445886/ltcube_403920001_404179201_4FGL_J1317.6+3428_daily_bin635.fits outfile=/scratch/kocevski/445886/expmap_403920001_404179201_4FGL_J1317.6+3428_daily_bin635.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/445886/ltcube_403920001_404179201_4FGL_J1317.6+3428_daily_bin635.fits
.....................!
real 157.24
user 152.91
sys 4.02

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/445886/ft1_filtered_4FGL_J1317.6+3428_daily_bin635.fits scfile=/scratch/kocevski/445886/ft2_4FGL_J1317.6+3428_daily_bin635.fits outfile=/scratch/kocevski/445886/cmap_403920001_404179201_4FGL_J1317.6+3428_daily_bin635.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.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/445886/ft1_filtered_4FGL_J1317.6+3428_daily_bin635.fits scfile=/scratch/kocevski/445886/ft2_4FGL_J1317.6+3428_daily_bin635.fits outfile=/scratch/kocevski/445886/cmap_HighResolution_403920001_404179201_4FGL_J1317.6+3428_daily_bin635.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.51
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12292E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .26167       1.0000         .10000E-03   10000.    
     6 'norm      '    .44344       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    36.157       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.152       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11881E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    12.515       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.7858       1.0000         .10000E-03   10000.    
    24 'norm      '    .14853E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4709       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .64939       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=   2911.434     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3267 TOTAL
                     EDM=   .67E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2637       -.19290E-08** at limit **
   2  Prefactor     .10000E-03    9.1153       -.27644E-06** at limit **
   3  Prefactor     .10000E-03    14.037        .97509E-05** at limit **
   4  Prefactor     .10000E-03    267.73        .57282E-04** at limit **
   5  Prefactor     .26082        6.6162       -.47864E-06   -.83268E-04
   6  norm          .39950        5.5800       -.10973E-05    .17049E-03
   7  Prefactor     .10000E-03    28.450       -.70698E-05** at limit **
   8  Prefactor     .10000E-03    18.431       -.11764E-04** at limit **
   9  norm          .10000E-03    11.721       -.52423E-05** at limit **
  10  Prefactor     .10000E-03    21.691        .58968E-05** at limit **
  11  norm          .10000E-03    3.1540        .39424E-07** at limit **
  12  norm          36.150        27.651        .33207E-05    .12207E-04
  13  norm          .10000E-03    2.0782        .15845E-08** at limit **
  14  norm          .10000E-03    2.7661        .80936E-07** at limit **
  15  norm          .10000E-03    15.715       -.22361E-05** at limit **
  16  Prefactor     .10000E-03    2.0368       -.21552E-07** at limit **
  17  Prefactor     .10000E-03    22.080        .80538E-05** at limit **
  18  Prefactor     .10000E-03    52.173       -.26380E-04** at limit **
  19  Prefactor     .10000E-03    10.232        .17758E-05** at limit **
  20  Prefactor     33.147        39.138       -.78731E-06    .20961E-05
  21  Prefactor     .10000E-03    306.70       -.87474E-04** at limit **
  22  norm          12.514        3.7495       -.18552E-07   -.30027E-04
  23  Prefactor     9.7827        8.8918       -.21314E-06   -.77617E-04
  24  norm          .10000E-03    55.982        .28095E-04** at limit **
  25  Prefactor     .10000E-03    27.125        .24339E-05** at limit **
  26  Normalizat    1.4708        .25730        .66633E-06    .64139E-04
  27  Prefactor     .64964        .30125       -.12200E-05   -.30585E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.260819
  norm       = 0.399498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 36.1497
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.1472
  Prefactor  = 0.0001
  norm       = 12.5143
  Prefactor  = 9.78273
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.47084
  Prefactor  = 0.649638
 **********
 **   18 **HESSE 
 **********

 FCN=   2911.434     FROM HESSE     STATUS=OK           478 CALLS     3745 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2682        .13190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.1244        .15912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    268.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .26082        45.004        .26617E-02   -1.5606    
   6  norm          .39950        28.087        .24096E-02   -1.5582    
   7  Prefactor     .10000E-03    28.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.016        .36043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.1623        .93570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          36.150        27.656        .66649E-04   -1.4505    
  13  norm          .10000E-03    2.0942        .75942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.7674        .87645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    15.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.0509        .75183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    52.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.236        .16858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     33.147        39.165        .69594E-04   -1.4556    
  21  Prefactor     .10000E-03    307.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.514        3.7526        .55401E-04   -1.5000    
  23  Prefactor     9.7827        8.9117        .12810E-03   -1.5082    
  24  norm          .10000E-03    56.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    27.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.4708        .29866        .21034E-03   -.78601    
  27  Prefactor     .64964        .35104        .35855E-03   -1.0553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6891e-10
Minuit parameter uncertainties:
  1  2.71824e-07
  2  1.02436e-06
  3  1.88653e-06
  4  0.000216765
  5  6.85601
  6  6.70194
  7  2.36995e-05
  8  1.53357e-05
  9  5.24367e-05
  10  5.67526e-06
  11  3.7957e-07
  12  27.6661
  13  1.79983e-06
  14  5.82703e-07
  15  3.03199e-06
  16  8.53066e-07
  17  2.28643e-05
  18  3.8879e-06
  19  3.77044e-06
  20  39.1954
  21  0.000511186
  22  3.75263
  23  8.91291
  24  0.000427785
  25  1.6501e-05
  26  0.29902
  27  0.352242
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  8.531e-07  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.496e-01  3.522e-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.471e+00  2.990e-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: 9.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/445886/likelihoodResults_403920001_404179201_4FGL_J1317.6+3428_daily_bin635.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) = 2911.4358131
delta logL = -0.00222152723745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2911.43359147
delta logL = 1.06397237687e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5169       1.0000          .0000       10.000    
     3 'Normalizat'    1.4708       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64968       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2911.434     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      253 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.513        .76191E-02** at limit **
   2  Index         2.0637        6.1887        .50000        .23485E-06
   3  Normalizat    1.4708        .15346E-01    .21034E-03   -.86062E-03
   4  Prefactor     .64964        .18220E-01    .35855E-03   -.50156E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06372
  Normalizat = 1.47083
  Prefactor  = 0.649637
 **********
 **   18 **HESSE 
 **********

 FCN=   2911.434     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    126.42        .82847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0637        6.2225        .50000       -.62766    
   3  Normalizat    1.4708        .47787E-01    .42069E-04   -.78601    
   4  Prefactor     .64964        .56737E-01    .71710E-04   -1.0553    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.40052e-09
Minuit parameter uncertainties:
  1  2.4673e-06
  2  594.621
  3  0.0477885
  4  0.0567418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/445886': 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) = 2911.43358738
delta logL = 4.19689831688e-06

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.467e-06  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.064e+00  5.946e+02  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.496e-01  5.674e-02  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.471e+00  4.779e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 199.401 34.468

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/445886/cmap_HighResolution_403920001_404179201_4FGL_J1317.6+3428_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.54e-03', job_status='DONE', photon_flux_upper_limit='9.67e-08', time_completed='2021-09-07 10:26:49.564217', job_id='445886', GAL2='0.65', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1631035609.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='4.20e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='635' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:26:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 445886: <4FGL_J1317.6+3428_daily_bin635> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin635> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep  7 10:15:23 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:15:46 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:15:46 2021
Terminated at Tue Sep  7 10:26:49 2021
Results reported at Tue Sep  7 10:26:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin635 199.401 34.4676 403920001 404179201 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 :                                   466.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            686 sec.

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

