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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1261
RA = 349.438, Dec = 28.6589
tmin = 566179201, tmax = 566438401
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='740680', job_status='RUN', time_executed='2021-09-29 10:56:03.037949', time_epoch_executed='1632938163.04' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1261'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740680

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740680/ft1_4FGL_J2317.7+2839_daily_bin1261.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740680/ft2_4FGL_J2317.7+2839_daily_bin1261.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740680/ft1_4FGL_J2317.7+2839_daily_bin1261.fits outfile=/scratch/kocevski/740680/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1261.fits ra=349.438 dec=28.6589 rad=12.0 tmin=566179201.0 tmax=566438401.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.48
user 3.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/740680/ft2_4FGL_J2317.7+2839_daily_bin1261.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/740680/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1261.fits evtable="EVENTS" outfile="/scratch/kocevski/740680/ft1_filtered_4FGL_J2317.7+2839_daily_bin1261.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740680/ft1_filtered_4FGL_J2317.7+2839_daily_bin1261.fits" evtable="EVENTS" scfile=/scratch/kocevski/740680/ft2_4FGL_J2317.7+2839_daily_bin1261.fits sctable="SC_DATA" outfile=/scratch/kocevski/740680/ltcube_566179201_566438401_4FGL_J2317.7+2839_daily_bin1261.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/740680/ft2_4FGL_J2317.7+2839_daily_bin1261.fits
.....................!
real 12.54
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740680/ft1_filtered_4FGL_J2317.7+2839_daily_bin1261.fits evtable="EVENTS" scfile=/scratch/kocevski/740680/ft2_4FGL_J2317.7+2839_daily_bin1261.fits sctable="SC_DATA" expcube=/scratch/kocevski/740680/ltcube_566179201_566438401_4FGL_J2317.7+2839_daily_bin1261.fits outfile=/scratch/kocevski/740680/expmap_566179201_566438401_4FGL_J2317.7+2839_daily_bin1261.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/740680/ltcube_566179201_566438401_4FGL_J2317.7+2839_daily_bin1261.fits
.....................!
real 190.27
user 185.06
sys 4.86

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/740680/ft1_filtered_4FGL_J2317.7+2839_daily_bin1261.fits scfile=/scratch/kocevski/740680/ft2_4FGL_J2317.7+2839_daily_bin1261.fits outfile=/scratch/kocevski/740680/cmap_566179201_566438401_4FGL_J2317.7+2839_daily_bin1261.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740680/ft1_filtered_4FGL_J2317.7+2839_daily_bin1261.fits scfile=/scratch/kocevski/740680/ft2_4FGL_J2317.7+2839_daily_bin1261.fits outfile=/scratch/kocevski/740680/cmap_HighResolution_566179201_566438401_4FGL_J2317.7+2839_daily_bin1261.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740680/ft1_filtered_4FGL_J2317.7+2839_daily_bin1261.fits evtable="EVENTS" scfile=/scratch/kocevski/740680/ft2_4FGL_J2317.7+2839_daily_bin1261.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740680/Model_4FGL_J2317.7+2839_daily_bin1261.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/740680/ft1_filtered_4FGL_J2317.7+2839_daily_bin1261.fits.....................!
real 110.10
user 108.29
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/740680/ft1_filtered_4FGL_J2317.7+2839_daily_bin1261.fits', '/scratch/kocevski/740680/ft2_4FGL_J2317.7+2839_daily_bin1261.fits', expMap='/scratch/kocevski/740680/expmap_566179201_566438401_4FGL_J2317.7+2839_daily_bin1261.fits', expCube='/scratch/kocevski/740680/ltcube_566179201_566438401_4FGL_J2317.7+2839_daily_bin1261.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/740680/Model_4FGL_J2317.7+2839_daily_bin1261.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/740680/ft1_filtered_4FGL_J2317.7+2839_daily_bin1261.fits
Spacecraft file(s): /scratch/kocevski/740680/ft2_4FGL_J2317.7+2839_daily_bin1261.fits
Exposure map: /scratch/kocevski/740680/expmap_566179201_566438401_4FGL_J2317.7+2839_daily_bin1261.fits
Exposure cube: /scratch/kocevski/740680/ltcube_566179201_566438401_4FGL_J2317.7+2839_daily_bin1261.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/740680/Model_4FGL_J2317.7+2839_daily_bin1261.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) = 10347.5620615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30522       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7488       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7579       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.435       1.0000         .10000E-03   10000.    
     8 'norm      '    4.1524       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16718E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2355       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4718       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9798       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.7454       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0926       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0337       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=   10346.60     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     1752 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30541        .63986        .17872E-06    .31721E-04
   2  Prefactor     .10000E-03    9.4992        .37764E-06** at limit **
   3  norm          .10000E-03    .59224        .55952E-07** at limit **
   4  Prefactor     2.7488        9.5854        .46421E-05   -.49131E-04
   5  Prefactor     .10000E-03    7.3891       -.21683E-07** at limit **
   6  Prefactor     9.7579        8.6128       -.25005E-07   -.80686E-05
   7  Prefactor     16.437        15.329        .35435E-07   -.26525E-05
   8  norm          4.1525        1.4258        .31438E-07   -.57309E-04
   9  Prefactor     .10000E-03    38.856       -.18964E-06** at limit **
  10  Prefactor     9.2362        11.164        .95795E-06   -.24543E-04
  11  Prefactor     .10000E-03    12.416        .12085E-06** at limit **
  12  Prefactor     .10000E-03    9.3989       -.18962E-05** at limit **
  13  norm          .10000E-03    1.9856        .75238E-07** at limit **
  14  Prefactor     .10000E-03    4.8247        .59656E-07** at limit **
  15  norm          1.4721        1.5162        .42160E-08    .68794E-05
  16  Prefactor     1.9520        91.073        .89409E-05   -.15450E-04
  17  Prefactor     7.7450        11.147        .11787E-06   -.45912E-05
  18  Prefactor     .10000E-03    28.431        .53934E-06** at limit **
  19  Normalizat    1.0928        .19755       -.53056E-06   -.90338E-04
  20  Prefactor     1.0336        .97158E-01   -.33602E-06   -.18031E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.305407
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.74876
  Prefactor  = 0.0001
  Prefactor  = 9.75787
  Prefactor  = 16.437
  norm       = 4.15252
  Prefactor  = 0.0001
  Prefactor  = 9.23625
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.47207
  Prefactor  = 1.95196
  Prefactor  = 7.74498
  Prefactor  = 0.0001
  Normalizat = 1.09278
  Prefactor  = 1.03358
 **********
 **   18 **HESSE 
 **********

 FCN=   10346.60     FROM HESSE     STATUS=OK           291 CALLS     2043 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30541        .64103        .11333E-03   -1.5597    
   2  Prefactor     .10000E-03    9.5682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .59488        .76467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.7488        9.5988        .12277E-02   -1.5376    
   5  Prefactor     .10000E-03    7.4348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.7579        8.6145        .12828E-03   -1.5083    
   7  Prefactor     16.437        15.343        .98794E-04   -1.4897    
   8  norm          4.1525        1.4242        .67714E-04   -1.5300    
   9  Prefactor     .10000E-03    39.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.2362        11.138        .65939E-03   -1.5100    
  11  Prefactor     .10000E-03    12.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.9154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.0155        .13994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.8395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4721        1.5041        .12231E-03   -1.5465    
  16  Prefactor     1.9520        91.738        .29458E-03   -1.5429    
  17  Prefactor     7.7450        11.145        .14408E-03   -1.5151    
  18  Prefactor     .10000E-03    28.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0928        .23083        .36154E-03   -.89984    
  20  Prefactor     1.0336        .11430        .18170E-03   -.91618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10924e-10
Minuit parameter uncertainties:
  1  0.641041
  2  9.89395e-06
  3  3.69293e-07
  4  9.60413
  5  5.99706e-06
  6  8.61562
  7  15.3464
  8  1.42423
  9  7.71361e-05
  10  11.1405
  11  7.12715e-06
  12  0.000184945
  13  2.17218e-06
  14  4.023e-06
  15  1.50417
  16  26.8063
  17  11.1479
  18  1.84751e-05
  19  0.23104
  20  0.114322
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  7.127e-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.143e-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:  1.093e+00  2.310e-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: 5.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740680/likelihoodResults_566179201_566438401_4FGL_J2317.7+2839_daily_bin1261.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) = 10346.600057
delta logL = -0.000382667392842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10346.5996739
delta logL = 4.55900590168e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10346.60     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      249 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10151E-03    51.142        .18142E-02** at limit **
   2  Index         1.8723        5.0526        .50000        .25993E-04
   3  Normalizat    1.0928        .88202E-02    .36154E-03   -.17798E-04
   4  Prefactor     1.0336        .43532E-02    .18170E-03   -.23201E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101513
  Index      = 1.87227
  Normalizat = 1.09278
  Prefactor  = 1.03358
 **********
 **   18 **HESSE 
 **********

 FCN=   10346.60     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10151E-03    231.53        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8723        5.0093        .50000       -.67583    
   3  Normalizat    1.0928        .19036E-01    .14462E-04   -.89984    
   4  Prefactor     1.0336        .93953E-02    .36340E-04   -.91618    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.34429e-09
Minuit parameter uncertainties:
  1  0.0375808
  2  171.591
  3  0.0190363
  4  0.00939534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740680': 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) = 10346.5996733
delta logL = 9.96958988253e-07

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.015e-04  3.758e-02  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  1.872e+00  1.716e+02  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  9.395e-03  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:  1.093e+00  1.904e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/740680/cmap_HighResolution_566179201_566438401_4FGL_J2317.7+2839_daily_bin1261.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-03', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2021-09-29 11:08:43.787664', job_id='740680', GAL2='1.03', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1632938923.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='9.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1261' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:08:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 740680: <4FGL_J2317.7+2839_daily_bin1261> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1261> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 10:55:53 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:55:55 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:55:55 2021
Terminated at Wed Sep 29 11:08:44 2021
Results reported at Wed Sep 29 11:08:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1261 349.438 28.6589 566179201 566438401 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 :                                   755.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             382.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            771 sec.

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

