/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 155 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2317.7+2839_daily_bin11
RA = 349.438, Dec = 28.6589
tmin = 242179201, tmax = 242438401
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='733239', job_status='RUN', time_executed='2021-09-29 10:38:37.110941', time_epoch_executed='1632937117.11' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='11'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733239

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733239/ft1_4FGL_J2317.7+2839_daily_bin11.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733239/ft2_4FGL_J2317.7+2839_daily_bin11.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733239/ft1_4FGL_J2317.7+2839_daily_bin11.fits outfile=/scratch/kocevski/733239/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin11.fits ra=349.438 dec=28.6589 rad=12.0 tmin=242179201.0 tmax=242438401.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 1.44
user 1.26
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/733239/ft2_4FGL_J2317.7+2839_daily_bin11.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/733239/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin11.fits evtable="EVENTS" outfile="/scratch/kocevski/733239/ft1_filtered_4FGL_J2317.7+2839_daily_bin11.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.54
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733239/ft1_filtered_4FGL_J2317.7+2839_daily_bin11.fits" evtable="EVENTS" scfile=/scratch/kocevski/733239/ft2_4FGL_J2317.7+2839_daily_bin11.fits sctable="SC_DATA" outfile=/scratch/kocevski/733239/ltcube_242179201_242438401_4FGL_J2317.7+2839_daily_bin11.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/733239/ft2_4FGL_J2317.7+2839_daily_bin11.fits
.....................!
real 16.32
user 15.88
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733239/ft1_filtered_4FGL_J2317.7+2839_daily_bin11.fits evtable="EVENTS" scfile=/scratch/kocevski/733239/ft2_4FGL_J2317.7+2839_daily_bin11.fits sctable="SC_DATA" expcube=/scratch/kocevski/733239/ltcube_242179201_242438401_4FGL_J2317.7+2839_daily_bin11.fits outfile=/scratch/kocevski/733239/expmap_242179201_242438401_4FGL_J2317.7+2839_daily_bin11.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/733239/ltcube_242179201_242438401_4FGL_J2317.7+2839_daily_bin11.fits
.....................!
real 193.21
user 187.67
sys 5.22

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/733239/ft1_filtered_4FGL_J2317.7+2839_daily_bin11.fits scfile=/scratch/kocevski/733239/ft2_4FGL_J2317.7+2839_daily_bin11.fits outfile=/scratch/kocevski/733239/cmap_242179201_242438401_4FGL_J2317.7+2839_daily_bin11.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733239/ft1_filtered_4FGL_J2317.7+2839_daily_bin11.fits scfile=/scratch/kocevski/733239/ft2_4FGL_J2317.7+2839_daily_bin11.fits outfile=/scratch/kocevski/733239/cmap_HighResolution_242179201_242438401_4FGL_J2317.7+2839_daily_bin11.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.8226       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10696E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10945E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11222E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15385E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    2.4749       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8692       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0647       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.6899       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10600E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .38732E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8585       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10820E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0471       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96795       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=   7111.154     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     1780 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .39362        .11009E-06** at limit **
   2  Prefactor     .10000E-03    16.157        .11664E-04** at limit **
   3  norm          2.8225        1.8072       -.86648E-08   -.20721E-03
   4  Prefactor     .10000E-03    7.2227        .33244E-06** at limit **
   5  Prefactor     .10000E-03    14.678       -.45387E-05** at limit **
   6  Prefactor     .10000E-03    5.4200        .41379E-06** at limit **
   7  Prefactor     .10232E-03    19.479       -.56001E-05** at limit **
   8  norm          2.4752        1.5221       -.30828E-07    .32267E-04
   9  Prefactor     .10000E-03    5.1503       -.15698E-06** at limit **
  10  Prefactor     6.8759        10.247        .37283E-06    .48615E-04
  11  Prefactor     1.0862        107.81       -.57536E-04    .63253E-04
  12  Prefactor     .10000E-03    1.8893        .53043E-07** at limit **
  13  norm          4.6951        4.4604        .30896E-06    .44066E-03
  14  Prefactor     .10000E-03    32.672       -.44590E-05** at limit **
  15  norm          .10041E-03    1.7336       -.22809E-05** at limit **
  16  Prefactor     4.8535        10.309        .10261E-05    .10822E-03
  17  Prefactor     .10000E-03    4.5960        .17759E-06** at limit **
  18  Prefactor     .10000E-03    20.623       -.12161E-04** at limit **
  19  Normalizat    1.0473        .20142       -.25281E-05   -.65207E-03
  20  Prefactor     .96799        .10644       -.56646E-06   -.11233E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100005
  norm       = 2.82248
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102323
  norm       = 2.47525
  Prefactor  = 0.0001
  Prefactor  = 6.87594
  Prefactor  = 1.08625
  Prefactor  = 0.0001
  norm       = 4.69513
  Prefactor  = 0.000100001
  norm       = 0.000100406
  Prefactor  = 4.85354
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 1.04728
  Prefactor  = 0.967991
 **********
 **   18 **HESSE 
 **********

 FCN=   7111.154     FROM HESSE     STATUS=OK           299 CALLS     2079 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .40743        .10328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.8225        1.8089        .88445E-04   -1.5372    
   4  Prefactor     .10000E-03    7.2588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10232E-03    20.223        .11555       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.4752        1.5154        .77913E-04   -1.5393    
   9  Prefactor     .10000E-03    5.1526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.8759        10.133        .15308E-03   -1.5183    
  11  Prefactor     1.0862        112.16        .71943E-02   -1.5500    
  12  Prefactor     .10000E-03    1.8999        .11318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.6951        4.4414        .16713E-03   -1.5275    
  14  Prefactor     .10000E-03    33.114        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10041E-03    34.813        .20161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.8535        10.308        .18250E-03   -1.5267    
  17  Prefactor     .10000E-03    4.5969        .17657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0473        .23423        .32832E-03   -.91463    
  20  Prefactor     .96799        .12443        .17815E-03   -.93804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35569e-08
Minuit parameter uncertainties:
  1  5.90122e-06
  2  0.000545913
  3  1.80896
  4  5.19739e-05
  5  9.28721e-05
  6  4.423e-05
  7  0.0137129
  8  1.51546
  9  9.31801e-06
  10  10.136
  11  22.1175
  12  9.46461e-06
  13  4.4417
  14  0.000408499
  15  0.00752477
  16  10.3118
  17  1.12586e-05
  18  0.000465548
  19  0.23446
  20  0.124467
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.086e+00  2.212e+01  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:  9.680e-01  1.245e-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.047e+00  2.345e-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: 7.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733239/likelihoodResults_242179201_242438401_4FGL_J2317.7+2839_daily_bin11.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) = 7111.15382997
delta logL = 4.8476064876e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7111.1531292
delta logL = 0.000749239892684

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0876       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1263       1.0000          .0000       10.000    
     3 'Normalizat'    1.0469       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96796       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=   7111.153     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      239 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1516        13.092        .11490        .28387E-03
   2  Index         2.1218        .15694        .50000        .62432E-05
   3  Normalizat    1.0470        .52966E-02    .74199E-01    .19386E-04
   4  Prefactor     .96790        .27886E-02    .45865E-01    .29354E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.15164
  Index      = 2.12178
  Normalizat = 1.04702
  Prefactor  = 0.967898
 **********
 **   18 **HESSE 
 **********

 FCN=   7111.153     FROM HESSE     STATUS=OK            35 CALLS      274 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1516        117.65        .61166E-02   -1.5493    
   2  Index         2.1218        3.1201        .32443E-02   -.61339    
   3  Normalizat    1.0470        .23291        .32836E-03   -.91472    
   4  Prefactor     .96790        .12356        .17816E-03   -.93807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18814e-08
Minuit parameter uncertainties:
  1  23.3261
  2  3.54941
  3  0.233134
  4  0.123596
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733239': 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) = 7111.15312342
delta logL = 0.000755020902034

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.152e+00  2.333e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.122e+00  3.549e+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:  9.679e-01  1.236e-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.047e+00  2.331e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/733239/cmap_HighResolution_242179201_242438401_4FGL_J2317.7+2839_daily_bin11.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.94e-08', time_completed='2021-09-29 10:49:07.993509', job_id='733239', GAL2='0.97', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632937747.99', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='7.55e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='11' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:49:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 733239: <4FGL_J2317.7+2839_daily_bin11> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin11> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 29 10:35:53 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:35:54 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:35:54 2021
Terminated at Wed Sep 29 10:49:08 2021
Results reported at Wed Sep 29 10:49:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin11 349.438 28.6589 242179201 242438401 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 :                                   628.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            795 sec.

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

