/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 8 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 = 7534
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2317.7+2839_daily_bin227
RA = 349.438, Dec = 28.6589
tmin = 298166401, tmax = 298425601
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='734638', job_status='RUN', time_executed='2021-09-29 10:40:48.390218', time_epoch_executed='1632937248.39' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='227'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734638

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734638/ft1_4FGL_J2317.7+2839_daily_bin227.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734638/ft2_4FGL_J2317.7+2839_daily_bin227.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734638/ft1_4FGL_J2317.7+2839_daily_bin227.fits outfile=/scratch/kocevski/734638/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin227.fits ra=349.438 dec=28.6589 rad=12.0 tmin=298166401.0 tmax=298425601.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.54
user 3.34
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734638/ft1_filtered_4FGL_J2317.7+2839_daily_bin227.fits" evtable="EVENTS" scfile=/scratch/kocevski/734638/ft2_4FGL_J2317.7+2839_daily_bin227.fits sctable="SC_DATA" outfile=/scratch/kocevski/734638/ltcube_298166401_298425601_4FGL_J2317.7+2839_daily_bin227.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/734638/ft2_4FGL_J2317.7+2839_daily_bin227.fits
.....................!
real 11.86
user 11.55
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734638/ft1_filtered_4FGL_J2317.7+2839_daily_bin227.fits evtable="EVENTS" scfile=/scratch/kocevski/734638/ft2_4FGL_J2317.7+2839_daily_bin227.fits sctable="SC_DATA" expcube=/scratch/kocevski/734638/ltcube_298166401_298425601_4FGL_J2317.7+2839_daily_bin227.fits outfile=/scratch/kocevski/734638/expmap_298166401_298425601_4FGL_J2317.7+2839_daily_bin227.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/734638/ltcube_298166401_298425601_4FGL_J2317.7+2839_daily_bin227.fits
.....................!
real 190.23
user 185.21
sys 4.71

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/734638/ft1_filtered_4FGL_J2317.7+2839_daily_bin227.fits scfile=/scratch/kocevski/734638/ft2_4FGL_J2317.7+2839_daily_bin227.fits outfile=/scratch/kocevski/734638/cmap_298166401_298425601_4FGL_J2317.7+2839_daily_bin227.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=349.438 yref=28.6589 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734638/ft1_filtered_4FGL_J2317.7+2839_daily_bin227.fits scfile=/scratch/kocevski/734638/ft2_4FGL_J2317.7+2839_daily_bin227.fits outfile=/scratch/kocevski/734638/cmap_HighResolution_298166401_298425601_4FGL_J2317.7+2839_daily_bin227.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/734638/ft1_filtered_4FGL_J2317.7+2839_daily_bin227.fits evtable="EVENTS" scfile=/scratch/kocevski/734638/ft2_4FGL_J2317.7+2839_daily_bin227.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/734638/Model_4FGL_J2317.7+2839_daily_bin227.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/734638/ft1_filtered_4FGL_J2317.7+2839_daily_bin227.fits.....................!
real 88.58
user 87.23
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9902       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.0503       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32273       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9492       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.589       1.0000         .10000E-03   10000.    
     8 'norm      '    6.4967       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0258       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.305       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.7534       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9796       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .97342       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95424       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=   8434.184     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     1749 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9902        1.4065       -.31936E-08    .73238E-05
   2  Prefactor     .10000E-03    4.7136       -.74464E-07** at limit **
   3  norm          2.0495        1.4422        .64048E-08    .11799E-03
   4  Prefactor     .35271        5.3823       -.52327E-06    .96059E-04
   5  Prefactor     .10000E-03    7.2032       -.28428E-05** at limit **
   6  Prefactor     3.9488        5.6886        .73651E-06   -.95345E-03
   7  Prefactor     22.589        16.810        .58896E-07    .90044E-05
   8  norm          6.4969        1.8367        .44358E-07    .59622E-04
   9  Prefactor     .10000E-03    21.517        .19906E-05** at limit **
  10  Prefactor     6.0254        10.087        .51521E-06   -.52505E-03
  11  Prefactor     15.310        18.160        .18936E-05    .56216E-04
  12  Prefactor     .10000E-03    2.2762        .17745E-08** at limit **
  13  norm          3.7566        4.6020       -.15772E-05   -.28452E-03
  14  Prefactor     .10000E-03    35.585       -.86070E-06** at limit **
  15  norm          1.9796        1.8086       -.16671E-07    .28047E-04
  16  Prefactor     .10000E-03    6.1515        .72577E-06** at limit **
  17  Prefactor     .10000E-03    7.7913        .24662E-05** at limit **
  18  Prefactor     .10000E-03    16.294       -.15966E-05** at limit **
  19  Normalizat    .97345        .18933       -.13449E-06    .28924E-04
  20  Prefactor     .95423        .99509E-01    .36852E-07    .30403E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.99022
  Prefactor  = 0.0001
  norm       = 2.0495
  Prefactor  = 0.352706
  Prefactor  = 0.0001
  Prefactor  = 3.94879
  Prefactor  = 22.5887
  norm       = 6.49692
  Prefactor  = 0.0001
  Prefactor  = 6.02538
  Prefactor  = 15.31
  Prefactor  = 0.0001
  norm       = 3.75664
  Prefactor  = 0.000100001
  norm       = 1.97961
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.973455
  Prefactor  = 0.954229
 **********
 **   18 **HESSE 
 **********

 FCN=   8434.184     FROM HESSE     STATUS=OK           297 CALLS     2046 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9902        1.4070        .55720E-04   -1.5261    
   2  Prefactor     .10000E-03    4.7155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.0495        1.4525        .89500E-04   -1.5422    
   4  Prefactor     .35271        30.828        .40668E-02   -1.5589    
   5  Prefactor     .10000E-03    7.2476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.9488        8.3041        .10149E-02   -1.5311    
   7  Prefactor     22.589        16.813        .84278E-04   -1.4757    
   8  norm          6.4969        1.8361        .62807E-04   -1.5198    
   9  Prefactor     .10000E-03    21.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.0254        11.336        .81784E-03   -1.5217    
  11  Prefactor     15.310        18.179        .10238E-03   -1.4925    
  12  Prefactor     .10000E-03    2.2898        .13529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.7566        4.6417        .20840E-03   -1.5320    
  14  Prefactor     .10000E-03    36.195        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9796        1.8179        .11444E-03   -1.5427    
  16  Prefactor     .10000E-03    6.1715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.8322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .97345        .21862        .33955E-03   -.93925    
  20  Prefactor     .95423        .11599        .18051E-03   -.94271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75686e-09
Minuit parameter uncertainties:
  1  1.40699
  2  1.0729e-06
  3  1.45254
  4  6.59751
  5  4.88522e-05
  6  8.30649
  7  16.8169
  8  1.83616
  9  2.81948e-05
  10  11.3399
  11  18.1859
  12  1.96541e-07
  13  4.64219
  14  0.000313386
  15  1.81792
  16  1.0966e-05
  17  4.44364e-05
  18  3.88007e-05
  19  0.218818
  20  0.116021
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.531e+01  1.819e+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.542e-01  1.160e-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:  9.735e-01  2.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.39
Ra Dec: 349.438 28.659
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.96e-08 +/- 2.33e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.60e-05

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

Saving results to:
/scratch/kocevski/734638/likelihoodResults_298166401_298425601_4FGL_J2317.7+2839_daily_bin227.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) = 8434.10709386
delta logL = 0.0764963879046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8434.10349501
delta logL = 0.0800952339832

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.973       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6502       1.0000          .0000       10.000    
     3 'Normalizat'    .98111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95328       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=   8434.103     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      324 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.973        25.179        .89621E-04   -.45159E-05
   2  Index         1.6502        .86341        .16531E-01    .21752E-03
   3  Normalizat    .98118        .21688        .33835E-03    .32929E-05
   4  Prefactor     .95324        .11498        .18059E-03    .12087E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9735
  Index      = 1.6502
  Normalizat = 0.981176
  Prefactor  = 0.953242
 **********
 **   18 **HESSE 
 **********

 FCN=   8434.103     FROM HESSE     STATUS=OK            25 CALLS      349 TOTAL
                     EDM=   .33E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.973        24.838        .17924E-04   -1.4814    
   2  Index         1.6502        .85245        .33062E-02   -.73415    
   3  Normalizat    .98118        .21700        .13534E-04   -.93664    
   4  Prefactor     .95324        .11509        .72237E-05   -.94305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26723e-13
Minuit parameter uncertainties:
  1  24.8505
  2  0.860123
  3  0.217193
  4  0.115117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734638': 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) = 8434.10349495
delta logL = 0.0800952964037

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.997e+01  2.485e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  1.650e+00  8.601e-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:  9.532e-01  1.151e-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:  9.812e-01  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 349.438 28.659
Photon Index (Free Index): 1.65 +/- 0.86
Photon Flux (Free Index): 1.11e-08 +/- 2.19e-08
Energy Flux (Free Index): 2.12e-05 +/- 3.69e-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/734638/cmap_HighResolution_298166401_298425601_4FGL_J2317.7+2839_daily_bin227.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.17e-03', comment='SUCCESS', photon_flux='1.96e-08', energy_flux2='2.12e-05', photon_flux_error='2.33e-08', dlogl='8.01e-02', energy_flux='1.34e-05', photon_flux2='1.11e-08', job_status='DONE', time_completed='2021-09-29 10:52:27.923191', photon_index_error2='0.86', photon_index2='1.65', ts='1.39', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='8.23e-08', energy_flux_error2='3.69e-05', EG='0.97', time_epoch_completed='1632937947.92', return_code='0', job_id='734638', GAL2='0.95', EG2='0.98', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='2.19e-08', ts2='1.54', photon_index='2.00' WHERE bin_id='227' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:52:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 734638: <4FGL_J2317.7+2839_daily_bin227> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin227> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 10:40:30 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:40:32 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:40:32 2021
Terminated at Wed Sep 29 10:52:28 2021
Results reported at Wed Sep 29 10:52:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin227 349.438 28.6589 298166401 298425601 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 :                                   695.04 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             333.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            718 sec.

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

