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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin733
RA = 349.438, Dec = 28.6589
tmin = 429321601, tmax = 429580801
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='738867', job_status='RUN', time_executed='2021-09-29 10:50:42.685813', time_epoch_executed='1632937842.69' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738867

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738867/ft1_4FGL_J2317.7+2839_daily_bin733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738867/ft2_4FGL_J2317.7+2839_daily_bin733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738867/ft1_4FGL_J2317.7+2839_daily_bin733.fits outfile=/scratch/kocevski/738867/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin733.fits ra=349.438 dec=28.6589 rad=12.0 tmin=429321601.0 tmax=429580801.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 6.48
user 6.18
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/738867/ft2_4FGL_J2317.7+2839_daily_bin733.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/738867/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin733.fits evtable="EVENTS" outfile="/scratch/kocevski/738867/ft1_filtered_4FGL_J2317.7+2839_daily_bin733.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.52
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738867/ft1_filtered_4FGL_J2317.7+2839_daily_bin733.fits" evtable="EVENTS" scfile=/scratch/kocevski/738867/ft2_4FGL_J2317.7+2839_daily_bin733.fits sctable="SC_DATA" outfile=/scratch/kocevski/738867/ltcube_429321601_429580801_4FGL_J2317.7+2839_daily_bin733.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/738867/ft2_4FGL_J2317.7+2839_daily_bin733.fits
.....................!
real 12.05
user 11.72
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738867/ft1_filtered_4FGL_J2317.7+2839_daily_bin733.fits evtable="EVENTS" scfile=/scratch/kocevski/738867/ft2_4FGL_J2317.7+2839_daily_bin733.fits sctable="SC_DATA" expcube=/scratch/kocevski/738867/ltcube_429321601_429580801_4FGL_J2317.7+2839_daily_bin733.fits outfile=/scratch/kocevski/738867/expmap_429321601_429580801_4FGL_J2317.7+2839_daily_bin733.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/738867/ltcube_429321601_429580801_4FGL_J2317.7+2839_daily_bin733.fits
.....................!
real 191.44
user 186.32
sys 4.75

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/738867/ft1_filtered_4FGL_J2317.7+2839_daily_bin733.fits scfile=/scratch/kocevski/738867/ft2_4FGL_J2317.7+2839_daily_bin733.fits outfile=/scratch/kocevski/738867/cmap_429321601_429580801_4FGL_J2317.7+2839_daily_bin733.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738867/ft1_filtered_4FGL_J2317.7+2839_daily_bin733.fits scfile=/scratch/kocevski/738867/ft2_4FGL_J2317.7+2839_daily_bin733.fits outfile=/scratch/kocevski/738867/cmap_HighResolution_429321601_429580801_4FGL_J2317.7+2839_daily_bin733.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=349.438 yref=28.6589 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8806       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.6966       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7469       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.235       1.0000         .10000E-03   10000.    
     8 'norm      '    5.0610       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11731E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    48.581       1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.479       1.0000         .10000E-03   10000.    
    13 'norm      '    .19956E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13362E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.3403       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    67.716       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .53609       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2738       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=   4347.338     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2536 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8873        2.2649        .63423E-06   -.12044E-03
   2  Prefactor     .10000E-03    12.827        .16972E-06** at limit **
   3  norm          2.6981        3.2636        .13710E-05    .19847E-04
   4  Prefactor     2.7683        30.893       -.18459E-04   -.28840E-04
   5  Prefactor     .10000E-03    21.859       -.15501E-04** at limit **
   6  Prefactor     .10000E-03    6.2215        .22739E-06** at limit **
   7  Prefactor     41.343        49.948        .22933E-04    .46238E-04
   8  norm          5.0289        3.2884       -.22855E-06    .29040E-03
   9  Prefactor     .10000E-03    14.656       -.59943E-06** at limit **
  10  Prefactor     .10000E-03    27.519       -.50682E-05** at limit **
  11  Prefactor     48.359        44.918        .62237E-05    .55971E-04
  12  Prefactor     47.532        19.140       -.96880E-05    .11380E-03
  13  norm          .55565        9.2922       -.16032E-05   -.18779E-03
  14  Prefactor     .10000E-03    56.270        .47931E-05** at limit **
  15  norm          4.3426        3.4596        .85284E-08    .13233E-03
  16  Prefactor     .10000E-03    15.205        .15743E-05** at limit **
  17  Prefactor     .10000E-03    22.513        .17399E-04** at limit **
  18  Prefactor     67.798        86.255        .64060E-04    .57510E-05
  19  Normalizat    .53544        .38808       -.21924E-04    .22480E-04
  20  Prefactor     1.2728        .18420        .14985E-05    .31736E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.88731
  Prefactor  = 0.0001
  norm       = 2.69813
  Prefactor  = 2.76829
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.343
  norm       = 5.02893
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.3586
  Prefactor  = 47.5317
  norm       = 0.555655
  Prefactor  = 0.0001
  norm       = 4.34261
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 67.7985
  Normalizat = 0.535444
  Prefactor  = 1.27275
 **********
 **   18 **HESSE 
 **********

 FCN=   4347.338     FROM HESSE     STATUS=OK           287 CALLS     2823 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8873        2.2440        .10303E-03   -1.5433    
   2  Prefactor     .10000E-03    12.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.6981        3.2399        .11956E-03   -1.5379    
   4  Prefactor     2.7683        30.646        .24563E-03   -1.5375    
   5  Prefactor     .10000E-03    21.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.2245        .16063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.343        50.017        .62425E-04   -1.4421    
   8  norm          5.0289        3.2317        .87110E-04   -1.5259    
   9  Prefactor     .10000E-03    14.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     48.359        44.754        .57532E-04   -1.4316    
  12  Prefactor     47.532        18.958        .58192E-04   -1.4328    
  13  norm          .55565        29.195        .36397E-02   -1.5559    
  14  Prefactor     .10000E-03    56.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.3426        3.4613        .10665E-03   -1.5291    
  16  Prefactor     .10000E-03    15.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     67.798        85.632        .48776E-04   -1.4059    
  19  Normalizat    .53544        .38408        .53110E-03   -1.1080    
  20  Prefactor     1.2728        .18909        .18488E-03   -.84121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.25814e-10
Minuit parameter uncertainties:
  1  2.24409
  2  1.04473e-05
  3  3.24015
  4  18.433
  5  1.2816e-05
  6  4.15809e-05
  7  50.0678
  8  3.23179
  9  5.45632e-05
  10  9.49887e-05
  11  44.7851
  12  18.9608
  13  8.05883
  14  0.000286765
  15  3.46145
  16  0.000226269
  17  0.000183524
  18  85.7878
  19  0.386003
  20  0.189196
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  4.836e+01  4.479e+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.273e+00  1.892e-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:  5.354e-01  3.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.88
Ra Dec: 349.438 28.659
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 6.19e-08 +/- 5.73e-08
Energy Flux (Fixed Index): 4.25e-05 +/- 3.93e-05

TS (Fixed Index): 2.88
Ra Dec: 349.438 28.659
Photon Flux Upper Limit: 2.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.51e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/738867/likelihoodResults_429321601_429580801_4FGL_J2317.7+2839_daily_bin733.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) = 4346.98416736
delta logL = 0.354045677878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4346.95997302
delta logL = 0.378240009623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7396       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8999       1.0000          .0000       10.000    
     3 'Normalizat'    .42679       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3061       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=   4346.960     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      293 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7258        193.09        .12970E-03    .32291E-03
   2  Index         2.9010        3.2833        .30142E-02    .18720E-03
   3  Normalizat    .42659        .49535        .59181E-03    .11983E-03
   4  Prefactor     1.3063        .21730        .18275E-03   -.11835E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.72575
  Index      = 2.90095
  Normalizat = 0.426594
  Prefactor  = 1.30626
 **********
 **   18 **HESSE 
 **********

 FCN=   4346.960     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7258        29.396        .51881E-05   -1.5117    
   2  Index         2.9010        1.2953        .12057E-03   -.43324    
   3  Normalizat    .42659        .39065        .23672E-04   -1.1595    
   4  Prefactor     1.3063        .19370        .36550E-04   -.83121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.18426e-09
Minuit parameter uncertainties:
  1  29.4447
  2  1.3136
  3  0.393182
  4  0.193805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738867': 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) = 4346.95997098
delta logL = 0.378242054033

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  8.726e+00  2.944e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.901e+00  1.314e+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:  1.306e+00  1.938e-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:  4.266e-01  3.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.88
Ra Dec: 349.438 28.659
Photon Index (Free Index): 2.90 +/- 1.31
Photon Flux (Free Index): 1.46e-07 +/- 1.47e-07
Energy Flux (Free Index): 3.08e-05 +/- 2.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/738867/cmap_HighResolution_429321601_429580801_4FGL_J2317.7+2839_daily_bin733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-02', comment='SUCCESS', photon_flux='6.19e-08', energy_flux2='3.08e-05', photon_flux_error='5.73e-08', dlogl='3.78e-01', energy_flux='4.25e-05', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-09-29 11:00:00.799977', photon_index_error2='1.31', photon_index2='2.90', ts='2.88', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='2.01e-07', energy_flux_error2='2.20e-05', EG='0.54', time_epoch_completed='1632938400.8', return_code='0', job_id='738867', GAL2='1.31', EG2='0.43', return_code2='0', energy_flux_error='3.93e-05', photon_flux_error2='1.47e-07', ts2='3.88', photon_index='2.00' WHERE bin_id='733' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:00:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 738867: <4FGL_J2317.7+2839_daily_bin733> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin733> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep 29 10:50:24 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:50:26 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:50:26 2021
Terminated at Wed Sep 29 11:00:01 2021
Results reported at Wed Sep 29 11:00:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin733 349.438 28.6589 429321601 429580801 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 :                                   555.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             363.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   575 sec.
    Turnaround time :                            577 sec.

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

