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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1305
RA = 349.438, Dec = 28.6589
tmin = 577584001, tmax = 577843201
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='740746', job_status='RUN', time_executed='2021-09-29 10:59:17.938872', time_epoch_executed='1632938357.94' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740746

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740746/ft1_4FGL_J2317.7+2839_daily_bin1305.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740746/ft2_4FGL_J2317.7+2839_daily_bin1305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740746/ft1_4FGL_J2317.7+2839_daily_bin1305.fits outfile=/scratch/kocevski/740746/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1305.fits ra=349.438 dec=28.6589 rad=12.0 tmin=577584001.0 tmax=577843201.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 2.80
user 2.59
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/740746/ft2_4FGL_J2317.7+2839_daily_bin1305.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/740746/ft2_4FGL_J2317.7+2839_daily_bin1305.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/740746/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1305.fits evtable="EVENTS" outfile="/scratch/kocevski/740746/ft1_filtered_4FGL_J2317.7+2839_daily_bin1305.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740746/ft1_filtered_4FGL_J2317.7+2839_daily_bin1305.fits" evtable="EVENTS" scfile=/scratch/kocevski/740746/ft2_4FGL_J2317.7+2839_daily_bin1305.fits sctable="SC_DATA" outfile=/scratch/kocevski/740746/ltcube_577584001_577843201_4FGL_J2317.7+2839_daily_bin1305.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/740746/ft2_4FGL_J2317.7+2839_daily_bin1305.fits
.....................!
real 12.05
user 11.68
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740746/ft1_filtered_4FGL_J2317.7+2839_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/740746/ft2_4FGL_J2317.7+2839_daily_bin1305.fits sctable="SC_DATA" expcube=/scratch/kocevski/740746/ltcube_577584001_577843201_4FGL_J2317.7+2839_daily_bin1305.fits outfile=/scratch/kocevski/740746/expmap_577584001_577843201_4FGL_J2317.7+2839_daily_bin1305.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/740746/ltcube_577584001_577843201_4FGL_J2317.7+2839_daily_bin1305.fits
.....................!
real 190.37
user 184.58
sys 5.48

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 167 point sources and 0 extended sources

Setting source of interest to:
4FGL J2317.7+2839 @ 349.438 28.6589

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/740746/ft1_filtered_4FGL_J2317.7+2839_daily_bin1305.fits scfile=/scratch/kocevski/740746/ft2_4FGL_J2317.7+2839_daily_bin1305.fits outfile=/scratch/kocevski/740746/cmap_577584001_577843201_4FGL_J2317.7+2839_daily_bin1305.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=349.438 yref=28.6589 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740746/ft1_filtered_4FGL_J2317.7+2839_daily_bin1305.fits scfile=/scratch/kocevski/740746/ft2_4FGL_J2317.7+2839_daily_bin1305.fits outfile=/scratch/kocevski/740746/cmap_HighResolution_577584001_577843201_4FGL_J2317.7+2839_daily_bin1305.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=349.438 yref=28.6589 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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740746/ft1_filtered_4FGL_J2317.7+2839_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/740746/ft2_4FGL_J2317.7+2839_daily_bin1305.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740746/Model_4FGL_J2317.7+2839_daily_bin1305.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/740746/ft1_filtered_4FGL_J2317.7+2839_daily_bin1305.fits.....................!
real 56.31
user 54.96
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/740746/ft1_filtered_4FGL_J2317.7+2839_daily_bin1305.fits', '/scratch/kocevski/740746/ft2_4FGL_J2317.7+2839_daily_bin1305.fits', expMap='/scratch/kocevski/740746/expmap_577584001_577843201_4FGL_J2317.7+2839_daily_bin1305.fits', expCube='/scratch/kocevski/740746/ltcube_577584001_577843201_4FGL_J2317.7+2839_daily_bin1305.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/740746/Model_4FGL_J2317.7+2839_daily_bin1305.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2317.7+2839'

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  2.207e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.003e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
414        Scale:  3.565e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/740746/ft1_filtered_4FGL_J2317.7+2839_daily_bin1305.fits
Spacecraft file(s): /scratch/kocevski/740746/ft2_4FGL_J2317.7+2839_daily_bin1305.fits
Exposure map: /scratch/kocevski/740746/expmap_577584001_577843201_4FGL_J2317.7+2839_daily_bin1305.fits
Exposure cube: /scratch/kocevski/740746/ltcube_577584001_577843201_4FGL_J2317.7+2839_daily_bin1305.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/740746/Model_4FGL_J2317.7+2839_daily_bin1305.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) = 4516.61526824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6331       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.612       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    185.16       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.370       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.187       1.0000         .10000E-03   10000.    
     8 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10708E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13903E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10997E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10208E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.709       1.0000         .10000E-03   10000.    
    15 'norm      '    9.3460       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10676E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    104.72       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .45333       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0339       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4516.527     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2053 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6347        2.1069        .26436E-06    .40488E-03
   2  Prefactor     10.643        29.483        .37374E-05    .32128E-04
   3  norm          .10000E-03    .65666       -.53803E-07** at limit **
   4  Prefactor     185.19        29.410        .78119E-06    .71943E-04
   5  Prefactor     .10000E-03    11.285        .42392E-06** at limit **
   6  Prefactor     21.382        15.173        .10651E-05    .54920E-04
   7  Prefactor     17.199        28.518        .11480E-05    .11268E-04
   8  norm          .10000E-03    .76129        .70496E-06** at limit **
   9  Prefactor     .10000E-03    34.149        .23685E-05** at limit **
  10  Prefactor     .10000E-03    27.091        .28729E-05** at limit **
  11  Prefactor     .10000E-03    13.635        .30782E-06** at limit **
  12  Prefactor     .10000E-03    7.0979        .21015E-05** at limit **
  13  norm          .10000E-03    3.1385        .20308E-08** at limit **
  14  Prefactor     41.768        32.969        .28813E-05    .19001E-04
  15  norm          9.3480        4.9402        .14069E-06    .28826E-04
  16  Prefactor     .10000E-03    11.025        .66940E-06** at limit **
  17  Prefactor     .10000E-03    25.859       -.20953E-05** at limit **
  18  Prefactor     104.27        122.84        .46705E-05   -.27383E-04
  19  Normalizat    .45244        .35667       -.20455E-04   -.67114E-04
  20  Prefactor     1.0342        .16744        .44129E-05   -.18645E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.63472
  Prefactor  = 10.6433
  norm       = 0.0001
  Prefactor  = 185.185
  Prefactor  = 0.0001
  Prefactor  = 21.3821
  Prefactor  = 17.1987
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 41.7683
  norm       = 9.34797
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 104.266
  Normalizat = 0.452438
  Prefactor  = 1.03421
 **********
 **   18 **HESSE 
 **********

 FCN=   4516.527     FROM HESSE     STATUS=OK           289 CALLS     2342 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6347        2.1122        .45792E-04   -1.5155    
   2  Prefactor     10.643        29.611        .12299E-03   -1.5055    
   3  norm          .10000E-03    .65778        .53178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     185.19        29.443        .14836E-03   -1.2978    
   5  Prefactor     .10000E-03    11.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.382        15.197        .86645E-04   -1.4783    
   7  Prefactor     17.199        28.603        .96609E-04   -1.4878    
   8  norm          .10000E-03    .78006        .57251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    34.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.2186        .17527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.1405        .11620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.768        32.885        .62070E-04   -1.4414    
  15  norm          9.3480        4.9422        .10575E-03   -1.5096    
  16  Prefactor     .10000E-03    11.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     104.27        122.41        .19648E-03   -1.3662    
  19  Normalizat    .45244        .36395        .53038E-03   -1.1467    
  20  Prefactor     1.0342        .17222        .18038E-03   -.91598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.65201e-11
Minuit parameter uncertainties:
  1  2.11218
  2  29.6518
  3  2.044e-07
  4  29.4456
  5  7.22216e-06
  6  15.2002
  7  28.6256
  8  2.07541e-06
  9  7.18238e-05
  10  6.90263e-05
  11  2.80681e-06
  12  3.26475e-05
  13  2.50576e-06
  14  32.8991
  15  4.94237
  16  1.2585e-05
  17  3.92785e-05
  18  122.713
  19  0.365882
  20  0.172315
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  2.807e-06  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.003e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
414        Scale:  3.565e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.034e+00  1.723e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  4.524e-01  3.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 349.438 28.659
Photon Flux Upper Limit: 8.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740746/likelihoodResults_577584001_577843201_4FGL_J2317.7+2839_daily_bin1305.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) = 4516.52694783
delta logL = -0.000348250445313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4516.52660053
delta logL = -9.57575139182e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9774       1.0000          .0000       10.000    
     3 'Normalizat'    .45289       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0340       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4516.527     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    194.43        .90712E-02** at limit **
   2  Index         1.9520        8.8672        .50000        .13817E-04
   3  Normalizat    .45244        .27758E-01    .11957        .45340E-04
   4  Prefactor     1.0342        .14032E-01    .40953E-01    .19576E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.95197
  Normalizat = 0.452439
  Prefactor  = 1.03422
 **********
 **   18 **HESSE 
 **********

 FCN=   4516.527     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9520        5.9497        .50000       -.65556    
   3  Normalizat    .45244        .32686        .53020E-03   -1.1467    
   4  Prefactor     1.0342        .16643        .18038E-03   -.91598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6349e-10
Minuit parameter uncertainties:
  1  0.000384366
  2  4.20319
  3  0.328254
  4  0.16651
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740746': 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) = 4516.52659939
delta logL = 1.86309080163e-07

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  3.844e-04  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  1.952e+00  4.203e+00  0.000e+00  1.000e+01 (-1.000e+00)
414        Scale:  3.565e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.034e+00  1.665e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  4.524e-01  3.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 349.438 28.659

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/740746/cmap_HighResolution_577584001_577843201_4FGL_J2317.7+2839_daily_bin1305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.65e-03', job_status='DONE', photon_flux_upper_limit='8.86e-08', time_completed='2021-09-29 11:08:05.797062', job_id='740746', GAL2='1.03', fit_tolerance='1e-08', EG2='0.45', EG='0.45', time_epoch_completed='1632938885.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1305' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:08:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 740746: <4FGL_J2317.7+2839_daily_bin1305> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1305> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 10:56:00 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:56:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 10:56:02 2021
Terminated at Wed Sep 29 11:08:06 2021
Results reported at Wed Sep 29 11:08:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1305 349.438 28.6589 577584001 577843201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2317.7+2839 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   519.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            726 sec.

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

