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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1543
RA = 349.438, Dec = 28.6589
tmin = 639273601, tmax = 639532801
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='742173', job_status='RUN', time_executed='2021-09-29 11:04:05.735446', time_epoch_executed='1632938645.74' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/742173

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/742173/ft1_4FGL_J2317.7+2839_daily_bin1543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/742173/ft2_4FGL_J2317.7+2839_daily_bin1543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/742173/ft1_4FGL_J2317.7+2839_daily_bin1543.fits outfile=/scratch/kocevski/742173/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1543.fits ra=349.438 dec=28.6589 rad=12.0 tmin=639273601.0 tmax=639532801.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 5.26
user 4.98
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/742173/ft2_4FGL_J2317.7+2839_daily_bin1543.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/742173/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1543.fits evtable="EVENTS" outfile="/scratch/kocevski/742173/ft1_filtered_4FGL_J2317.7+2839_daily_bin1543.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/742173/ft1_filtered_4FGL_J2317.7+2839_daily_bin1543.fits" evtable="EVENTS" scfile=/scratch/kocevski/742173/ft2_4FGL_J2317.7+2839_daily_bin1543.fits sctable="SC_DATA" outfile=/scratch/kocevski/742173/ltcube_639273601_639532801_4FGL_J2317.7+2839_daily_bin1543.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/742173/ft2_4FGL_J2317.7+2839_daily_bin1543.fits
.....................!
real 11.72
user 11.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/742173/ft1_filtered_4FGL_J2317.7+2839_daily_bin1543.fits evtable="EVENTS" scfile=/scratch/kocevski/742173/ft2_4FGL_J2317.7+2839_daily_bin1543.fits sctable="SC_DATA" expcube=/scratch/kocevski/742173/ltcube_639273601_639532801_4FGL_J2317.7+2839_daily_bin1543.fits outfile=/scratch/kocevski/742173/expmap_639273601_639532801_4FGL_J2317.7+2839_daily_bin1543.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/742173/ltcube_639273601_639532801_4FGL_J2317.7+2839_daily_bin1543.fits
.....................!
real 191.58
user 185.99
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/742173/ft1_filtered_4FGL_J2317.7+2839_daily_bin1543.fits scfile=/scratch/kocevski/742173/ft2_4FGL_J2317.7+2839_daily_bin1543.fits outfile=/scratch/kocevski/742173/cmap_639273601_639532801_4FGL_J2317.7+2839_daily_bin1543.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/742173/ft1_filtered_4FGL_J2317.7+2839_daily_bin1543.fits scfile=/scratch/kocevski/742173/ft2_4FGL_J2317.7+2839_daily_bin1543.fits outfile=/scratch/kocevski/742173/cmap_HighResolution_639273601_639532801_4FGL_J2317.7+2839_daily_bin1543.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .30960       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5079       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.738       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16407E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.228       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11082E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .26339       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.042       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .70438       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1670       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=   7739.814     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2073 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .35435       -.21095E-07** at limit **
   2  Prefactor     .10000E-03    20.873        .12097E-04** at limit **
   3  norm          .30732        1.6669       -.11038E-05   -.76870E-03
   4  Prefactor     9.5062        16.375        .11545E-05    .21648E-03
   5  Prefactor     19.739        19.832       -.24358E-06   -.59509E-04
   6  Prefactor     .10000E-03    9.7470       -.57791E-05** at limit **
   7  Prefactor     .10000E-03    35.389        .21156E-04** at limit **
   8  norm          .10000E-03    .50859       -.12216E-07** at limit **
   9  Prefactor     .10000E-03    89.863       -.30565E-04** at limit **
  10  Prefactor     .10035E-03    9.5549        .10331E-05** at limit **
  11  Prefactor     32.224        26.979       -.10192E-05    .29063E-03
  12  Prefactor     .10000E-03    10.841       -.43476E-05** at limit **
  13  norm          .24702        3.7185       -.86948E-06   -.64982E-05
  14  Prefactor     .10000E-03    25.971       -.26619E-04** at limit **
  15  norm          .10000E-03    1.2927       -.32559E-07** at limit **
  16  Prefactor     .10000E-03    10.081        .84265E-05** at limit **
  17  Prefactor     .10000E-03    12.676        .11618E-05** at limit **
  18  Prefactor     42.039        42.226       -.38042E-05    .57834E-04
  19  Normalizat    .70408        .22844        .17501E-05    .32254E-03
  20  Prefactor     1.1672        .11487        .31962E-07    .70814E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.307325
  Prefactor  = 9.5062
  Prefactor  = 19.7388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100348
  Prefactor  = 32.2235
  Prefactor  = 0.0001
  norm       = 0.247022
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.0385
  Normalizat = 0.704079
  Prefactor  = 1.16719
 **********
 **   18 **HESSE 
 **********

 FCN=   7739.814     FROM HESSE     STATUS=OK           289 CALLS     2362 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .36261        .51106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .30732        2.9598        .19254E-02   -1.5597    
   4  Prefactor     9.5062        15.892        .12997E-03   -1.5091    
   5  Prefactor     19.739        19.849        .45076E-03   -1.4819    
   6  Prefactor     .10000E-03    9.8676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    35.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .51931        .61210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    91.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10035E-03    82.939        .52156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.224        26.908        .70582E-04   -1.4572    
  12  Prefactor     .10000E-03    11.354        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .24702        15.946        .32408E-02   -1.5609    
  14  Prefactor     .10000E-03    25.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.3069        .97650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     42.039        42.236        .61825E-04   -1.4410    
  19  Normalizat    .70408        .25433        .41913E-03   -1.0373    
  20  Prefactor     1.1672        .12953        .16926E-03   -.87347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.73265e-08
Minuit parameter uncertainties:
  1  1.28476e-06
  2  5.73963e-05
  3  1.90729
  4  15.8993
  5  19.8561
  6  1.52146e-05
  7  8.0922e-05
  8  3.87914e-07
  9  0.00059763
  10  0.0107542
  11  26.9178
  12  3.83768e-05
  13  3.96968
  14  0.00019028
  15  2.14318e-06
  16  9.16449e-06
  17  5.25486e-06
  18  42.2659
  19  0.254754
  20  0.129569
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  3.222e+01  2.692e+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:  1.167e+00  1.296e-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:  7.041e-01  2.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.93
Ra Dec: 349.438 28.659
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.12e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 2.83e-05 +/- 2.36e-05

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) = 7739.47057845
delta logL = 0.343535316095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7739.43333664
delta logL = 0.380777130357

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.186       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6622       1.0000          .0000       10.000    
     3 'Normalizat'    .61275       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1884       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=   7739.433     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      288 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.183        36.310        .10278E-03   -.13629E-02
   2  Index         2.6621        1.0711        .36661E-02   -.71065E-03
   3  Normalizat    .61283        .29374        .44708E-03   -.32086E-03
   4  Prefactor     1.1884        .13590        .16781E-03   -.11846E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.1832
  Index      = 2.66213
  Normalizat = 0.612835
  Prefactor  = 1.18839
 **********
 **   18 **HESSE 
 **********

 FCN=   7739.433     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.183        20.450        .20556E-04   -1.4928    
   2  Index         2.6621        .60497        .14665E-03   -.48654    
   3  Normalizat    .61283        .26967        .17883E-04   -1.0744    
   4  Prefactor     1.1884        .13094        .33562E-04   -.86689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59371e-09
Minuit parameter uncertainties:
  1  20.4597
  2  0.606879
  3  0.270251
  4  0.130974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/742173': 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) = 7739.4333364
delta logL = 0.380777372427

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.518e+01  2.046e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.662e+00  6.069e-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:  1.188e+00  1.310e-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:  6.128e-01  2.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.05
Ra Dec: 349.438 28.659
Photon Index (Free Index): 2.66 +/- 0.61
Photon Flux (Free Index): 1.24e-07 +/- 9.93e-08
Energy Flux (Free Index): 3.07e-05 +/- 1.73e-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/742173/cmap_HighResolution_639273601_639532801_4FGL_J2317.7+2839_daily_bin1543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.12e-08', energy_flux2='3.07e-05', photon_flux_error='3.44e-08', dlogl='3.81e-01', energy_flux='2.83e-05', photon_flux2='1.24e-07', job_status='DONE', time_completed='2021-09-29 11:14:32.939088', photon_index_error2='0.61', photon_index2='2.66', ts='5.93', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='0.70', time_epoch_completed='1632939272.94', return_code='0', job_id='742173', GAL2='1.19', EG2='0.61', return_code2='0', energy_flux_error='2.36e-05', photon_flux_error2='9.93e-08', ts2='7.05', photon_index='2.00' WHERE bin_id='1543' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:14:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 742173: <4FGL_J2317.7+2839_daily_bin1543> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1543> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 11:00:46 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:00:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 11:00:48 2021
Terminated at Wed Sep 29 11:14:33 2021
Results reported at Wed Sep 29 11:14:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1543 349.438 28.6589 639273601 639532801 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 :                                   618.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            827 sec.

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

