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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1249
RA = 349.438, Dec = 28.6589
tmin = 563068801, tmax = 563328001
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='740662', job_status='RUN', time_executed='2021-09-29 10:58:06.087865', time_epoch_executed='1632938286.09' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740662

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740662/ft1_4FGL_J2317.7+2839_daily_bin1249.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740662/ft2_4FGL_J2317.7+2839_daily_bin1249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740662/ft1_4FGL_J2317.7+2839_daily_bin1249.fits outfile=/scratch/kocevski/740662/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1249.fits ra=349.438 dec=28.6589 rad=12.0 tmin=563068801.0 tmax=563328001.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.45
user 3.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740662/ft1_filtered_4FGL_J2317.7+2839_daily_bin1249.fits" evtable="EVENTS" scfile=/scratch/kocevski/740662/ft2_4FGL_J2317.7+2839_daily_bin1249.fits sctable="SC_DATA" outfile=/scratch/kocevski/740662/ltcube_563068801_563328001_4FGL_J2317.7+2839_daily_bin1249.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/740662/ft2_4FGL_J2317.7+2839_daily_bin1249.fits
.....................!
real 15.00
user 14.61
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740662/ft1_filtered_4FGL_J2317.7+2839_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/740662/ft2_4FGL_J2317.7+2839_daily_bin1249.fits sctable="SC_DATA" expcube=/scratch/kocevski/740662/ltcube_563068801_563328001_4FGL_J2317.7+2839_daily_bin1249.fits outfile=/scratch/kocevski/740662/expmap_563068801_563328001_4FGL_J2317.7+2839_daily_bin1249.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/740662/ltcube_563068801_563328001_4FGL_J2317.7+2839_daily_bin1249.fits
.....................!
real 190.20
user 185.16
sys 4.60

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/740662/ft1_filtered_4FGL_J2317.7+2839_daily_bin1249.fits scfile=/scratch/kocevski/740662/ft2_4FGL_J2317.7+2839_daily_bin1249.fits outfile=/scratch/kocevski/740662/cmap_563068801_563328001_4FGL_J2317.7+2839_daily_bin1249.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740662/ft1_filtered_4FGL_J2317.7+2839_daily_bin1249.fits scfile=/scratch/kocevski/740662/ft2_4FGL_J2317.7+2839_daily_bin1249.fits outfile=/scratch/kocevski/740662/cmap_HighResolution_563068801_563328001_4FGL_J2317.7+2839_daily_bin1249.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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740662/ft1_filtered_4FGL_J2317.7+2839_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/740662/ft2_4FGL_J2317.7+2839_daily_bin1249.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740662/Model_4FGL_J2317.7+2839_daily_bin1249.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/740662/ft1_filtered_4FGL_J2317.7+2839_daily_bin1249.fits.....................!
real 82.61
user 81.23
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1154       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.5986       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14469E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .72358       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.469       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.149       1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.164       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8265       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.896       1.0000         .10000E-03   10000.    
    18 'Prefactor '    100.19       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5759       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .68640       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=   7185.452     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2032 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1154        .90201       -.38958E-07   -.22078E-02
   2  Prefactor     .10000E-03    41.656        .36155E-04** at limit **
   3  norm          3.5989        1.8240        .37879E-07    .46491E-04
   4  Prefactor     .10000E-03    7.7943        .37799E-06** at limit **
   5  Prefactor     .10000E-03    28.472        .65252E-05** at limit **
   6  Prefactor     .10000E-03    7.9632        .10866E-06** at limit **
   7  Prefactor     .10000E-03    54.178       -.33508E-04** at limit **
   8  norm          .72254        1.2019       -.28130E-07   -.94853E-03
   9  Prefactor     12.474        23.831        .52724E-05   -.89966E-05
  10  Prefactor     17.147        14.427        .72994E-06    .68018E-04
  11  Prefactor     32.161        29.122       -.34001E-05    .69387E-04
  12  Prefactor     .10000E-03    7.8056       -.10543E-05** at limit **
  13  norm          2.8251        3.2881        .15530E-06    .19974E-03
  14  Prefactor     .10000E-03    24.469       -.17966E-04** at limit **
  15  norm          .10000E-03    1.4090        .17339E-06** at limit **
  16  Prefactor     .10000E-03    19.479        .57951E-05** at limit **
  17  Prefactor     12.897        13.058       -.46349E-06    .16982E-04
  18  Prefactor     100.22        61.199        .20159E-04    .14555E-04
  19  Normalizat    1.5751        .22696       -.44289E-05    .17337E-03
  20  Prefactor     .68676        .10500        .67458E-06   -.22101E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11541
  Prefactor  = 0.0001
  norm       = 3.59893
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.722545
  Prefactor  = 12.4744
  Prefactor  = 17.1469
  Prefactor  = 32.1605
  Prefactor  = 0.0001
  norm       = 2.8251
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8971
  Prefactor  = 100.218
  Normalizat = 1.57509
  Prefactor  = 0.686762
 **********
 **   18 **HESSE 
 **********

 FCN=   7185.452     FROM HESSE     STATUS=OK           289 CALLS     2321 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1154        .89909        .69379E-04   -1.5497    
   2  Prefactor     .10000E-03    42.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.5989        1.8247        .79462E-04   -1.5329    
   4  Prefactor     .10000E-03    7.8564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.0376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    54.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .72254        1.1666        .11385E-03   -1.5538    
   9  Prefactor     12.474        23.836        .11344E-03   -1.5001    
  10  Prefactor     17.147        14.426        .96717E-04   -1.4880    
  11  Prefactor     32.161        29.098        .70652E-04   -1.4573    
  12  Prefactor     .10000E-03    8.0126        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8251        3.2804        .16079E-03   -1.5372    
  14  Prefactor     .10000E-03    24.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.4464        .19638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.897        13.059        .11154E-03   -1.4990    
  18  Prefactor     100.22        61.581        .40163E-04   -1.3702    
  19  Normalizat    1.5751        .26529        .29350E-03   -.75690    
  20  Prefactor     .68676        .12284        .20192E-03   -1.0405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14893e-09
Minuit parameter uncertainties:
  1  0.899104
  2  0.000175307
  3  1.82472
  4  2.14502e-05
  5  1.64272e-05
  6  2.01762e-05
  7  0.000497343
  8  1.16665
  9  23.8538
  10  14.4287
  11  29.1112
  12  4.87359e-05
  13  3.2806
  14  0.000150022
  15  9.82057e-07
  16  3.65621e-05
  17  13.0618
  18  61.6206
  19  0.265528
  20  0.122884
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  3.216e+01  2.911e+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:  6.868e-01  1.229e-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.575e+00  2.655e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.81
Ra Dec: 349.438 28.659
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.12e-08 +/- 3.72e-08
Energy Flux (Fixed Index): 2.82e-05 +/- 2.56e-05

TS (Fixed Index): 1.81
Ra Dec: 349.438 28.659
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740662/likelihoodResults_563068801_563328001_4FGL_J2317.7+2839_daily_bin1249.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) = 7184.78331534
delta logL = 0.668865469711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7184.76719057
delta logL = 0.68499023869

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7013       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7461       1.0000          .0000       10.000    
     3 'Normalizat'    1.5156       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70254       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=   7184.767     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      293 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6959        154.61        .13589E-03    .57058E-04
   2  Index         2.7464        2.8646        .33308E-02    .65318E-04
   3  Normalizat    1.5155        .31827        .29797E-03    .14463E-03
   4  Prefactor     .70257        .14470        .19978E-03   -.30619E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.69586
  Index      = 2.74639
  Normalizat = 1.51551
  Prefactor  = 0.702566
 **********
 **   18 **HESSE 
 **********

 FCN=   7184.767     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6959        17.118        .54355E-05   -1.5118    
   2  Index         2.7464        .72027        .13323E-03   -.46757    
   3  Normalizat    1.5155        .26194        .59594E-04   -.77343    
   4  Prefactor     .70257        .12324        .39955E-04   -1.0343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84558e-10
Minuit parameter uncertainties:
  1  17.1279
  2  0.723438
  3  0.262171
  4  0.12329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740662': 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) = 7184.76719039
delta logL = 0.684990418958

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  8.696e+00  1.713e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.746e+00  7.234e-01  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:  7.026e-01  1.233e-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.516e+00  2.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.36
Ra Dec: 349.438 28.659
Photon Index (Free Index): 2.75 +/- 0.72
Photon Flux (Free Index): 9.13e-08 +/- 6.66e-08
Energy Flux (Free Index): 2.12e-05 +/- 1.47e-05

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/740662/cmap_HighResolution_563068801_563328001_4FGL_J2317.7+2839_daily_bin1249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.15e-03', comment='SUCCESS', photon_flux='4.12e-08', energy_flux2='2.12e-05', photon_flux_error='3.72e-08', dlogl='6.85e-01', energy_flux='2.82e-05', photon_flux2='9.13e-08', job_status='DONE', time_completed='2021-09-29 11:09:31.727423', photon_index_error2='0.72', photon_index2='2.75', ts='1.81', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.47e-05', EG='1.58', time_epoch_completed='1632938971.73', return_code='0', job_id='740662', GAL2='0.70', EG2='1.52', return_code2='0', energy_flux_error='2.56e-05', photon_flux_error2='6.66e-08', ts2='3.36', photon_index='2.00' WHERE bin_id='1249' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:09:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 740662: <4FGL_J2317.7+2839_daily_bin1249> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1249 349.438 28.6589 563068801 563328001 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 :                                   655.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            820 sec.

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

