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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1381
RA = 349.438, Dec = 28.6589
tmin = 597283201, tmax = 597542401
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='741899', job_status='RUN', time_executed='2021-09-29 11:00:37.112463', time_epoch_executed='1632938437.11' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741899

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741899/ft1_4FGL_J2317.7+2839_daily_bin1381.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741899/ft2_4FGL_J2317.7+2839_daily_bin1381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741899/ft1_4FGL_J2317.7+2839_daily_bin1381.fits outfile=/scratch/kocevski/741899/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1381.fits ra=349.438 dec=28.6589 rad=12.0 tmin=597283201.0 tmax=597542401.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.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/741899/ft1_filtered_4FGL_J2317.7+2839_daily_bin1381.fits" evtable="EVENTS" scfile=/scratch/kocevski/741899/ft2_4FGL_J2317.7+2839_daily_bin1381.fits sctable="SC_DATA" outfile=/scratch/kocevski/741899/ltcube_597283201_597542401_4FGL_J2317.7+2839_daily_bin1381.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/741899/ft2_4FGL_J2317.7+2839_daily_bin1381.fits
.....................!
real 12.33
user 11.98
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741899/ft1_filtered_4FGL_J2317.7+2839_daily_bin1381.fits evtable="EVENTS" scfile=/scratch/kocevski/741899/ft2_4FGL_J2317.7+2839_daily_bin1381.fits sctable="SC_DATA" expcube=/scratch/kocevski/741899/ltcube_597283201_597542401_4FGL_J2317.7+2839_daily_bin1381.fits outfile=/scratch/kocevski/741899/expmap_597283201_597542401_4FGL_J2317.7+2839_daily_bin1381.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/741899/ltcube_597283201_597542401_4FGL_J2317.7+2839_daily_bin1381.fits
.....................!
real 191.80
user 186.05
sys 5.37

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/741899/ft1_filtered_4FGL_J2317.7+2839_daily_bin1381.fits scfile=/scratch/kocevski/741899/ft2_4FGL_J2317.7+2839_daily_bin1381.fits outfile=/scratch/kocevski/741899/cmap_597283201_597542401_4FGL_J2317.7+2839_daily_bin1381.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/741899/ft1_filtered_4FGL_J2317.7+2839_daily_bin1381.fits scfile=/scratch/kocevski/741899/ft2_4FGL_J2317.7+2839_daily_bin1381.fits outfile=/scratch/kocevski/741899/cmap_HighResolution_597283201_597542401_4FGL_J2317.7+2839_daily_bin1381.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/741899/ft1_filtered_4FGL_J2317.7+2839_daily_bin1381.fits evtable="EVENTS" scfile=/scratch/kocevski/741899/ft2_4FGL_J2317.7+2839_daily_bin1381.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/741899/Model_4FGL_J2317.7+2839_daily_bin1381.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/741899/ft1_filtered_4FGL_J2317.7+2839_daily_bin1381.fits.....................!
real 97.07
user 95.66
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5987       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11042E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.611       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.220       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10189E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .64599       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10820E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1036       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.793       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11465E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .24081E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3316       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    75.099       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .76344       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1313       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=   8511.959     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     2094 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6008        1.3396       -.48816E-07    .11191E-05
   2  Prefactor     .10000E-03    27.284       -.11765E-05** at limit **
   3  norm          .10000E-03    .86502       -.11416E-07** at limit **
   4  Prefactor     13.614        10.488        .23218E-06    .19800E-04
   5  Prefactor     13.218        13.150        .33127E-07   -.29163E-07
   6  Prefactor     .10004E-03    5.3397       -.70519E-06** at limit **
   7  Prefactor     .10000E-03    11.544        .38885E-05** at limit **
   8  norm          .64600        1.2041       -.51308E-06   -.19976E-02
   9  Prefactor     .10000E-03    12.709       -.27947E-05** at limit **
  10  Prefactor     6.1097        13.123       -.35522E-06   -.76848E-04
  11  Prefactor     13.815        18.972        .77211E-05    .13384E-04
  12  Prefactor     .10004E-03    3.4925        .94599E-07** at limit **
  13  norm          .10000E-03    2.0744       -.83822E-07** at limit **
  14  Prefactor     .10000E-03    9.5713       -.16132E-05** at limit **
  15  norm          3.3302        2.3623       -.34684E-08   -.22693E-05
  16  Prefactor     .10000E-03    5.6221       -.45205E-06** at limit **
  17  Prefactor     .10000E-03    6.7774        .40302E-06** at limit **
  18  Prefactor     75.090        43.066       -.79258E-05    .77773E-05
  19  Normalizat    .76327        .21543        .19703E-05    .39989E-04
  20  Prefactor     1.1314        .10800       -.27276E-06    .28638E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.60083
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.6138
  Prefactor  = 13.2183
  Prefactor  = 0.000100043
  Prefactor  = 0.0001
  norm       = 0.646003
  Prefactor  = 0.0001
  Prefactor  = 6.10973
  Prefactor  = 13.8147
  Prefactor  = 0.00010004
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.33018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.0895
  Normalizat = 0.763274
  Prefactor  = 1.1314
 **********
 **   18 **HESSE 
 **********

 FCN=   8511.959     FROM HESSE     STATUS=OK           295 CALLS     2389 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6008        1.3375        .62390E-04   -1.5328    
   2  Prefactor     .10000E-03    27.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.4222        .16491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.614        10.325        .10857E-03   -1.4970    
   5  Prefactor     13.218        13.154        .11017E-03   -1.4981    
   6  Prefactor     .10004E-03    55.602        .41028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .64600        1.2000        .13329E-03   -1.5547    
   9  Prefactor     .10000E-03    12.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.1097        13.072        .16251E-03   -1.5214    
  11  Prefactor     13.815        18.805        .10785E-03   -1.4964    
  12  Prefactor     .10004E-03    38.680        .32855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.2294        .25722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.6289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3302        2.3599        .11500E-03   -1.5343    
  16  Prefactor     .10000E-03    5.6257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.7850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     75.090        42.913        .46333E-04   -1.3973    
  19  Normalizat    .76327        .23701        .39503E-03   -1.0145    
  20  Prefactor     1.1314        .12160        .17214E-03   -.88469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78282e-09
Minuit parameter uncertainties:
  1  1.33756
  2  1.27635e-05
  3  6.57679e-05
  4  10.3268
  5  13.1571
  6  0.00309691
  7  3.75223e-07
  8  1.20006
  9  3.84271e-05
  10  13.0778
  11  18.8131
  12  0.00250234
  13  6.14613e-06
  14  1.22605e-05
  15  2.35997
  16  3.1764e-06
  17  8.46509e-06
  18  42.9309
  19  0.237335
  20  0.12163
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.381e+01  1.881e+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.131e+00  1.216e-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.633e-01  2.373e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/741899/likelihoodResults_597283201_597542401_4FGL_J2317.7+2839_daily_bin1381.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) = 8511.3857011
delta logL = 0.573717393145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8511.38274211
delta logL = 0.576676388975

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6168       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0279       1.0000          .0000       10.000    
     3 'Normalizat'    .70751       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1460       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8511.383     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      333 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6115        43.476        .63034E-02    .61206E-03
   2  Index         3.0290        2.2636        .80893E-01    .29374E-03
   3  Normalizat    .70704        .70018E-01    .92402E-01    .77475E-04
   4  Prefactor     1.1461        .33129E-01    .36054E-01    .69770E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.61147
  Index      = 3.029
  Normalizat = 0.707037
  Prefactor  = 1.14608
 **********
 **   18 **HESSE 
 **********

 FCN=   8511.383     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      366 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6115        81.677        .11532E-03   -1.5385    
   2  Index         3.0290        3.5609        .44875E-02   -.40520    
   3  Normalizat    .70704        .25491        .40937E-03   -1.0362    
   4  Prefactor     1.1461        .11989        .17113E-03   -.88007    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1579e-06
Minuit parameter uncertainties:
  1  29.2526
  2  4.07401
  3  0.255335
  4  0.119916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741899': 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): 102
logL (Free Index) = 8511.38273867
delta logL = 0.576679822783

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  2.611e+00  2.925e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  3.029e+00  4.074e+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.146e+00  1.199e-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.070e-01  2.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 349.438 28.659
Photon Index (Free Index): 3.03 +/- 4.07
Photon Flux (Free Index): 6.48e-08 +/- 1.03e-07
Energy Flux (Free Index): 1.28e-05 +/- 1.24e-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/741899/cmap_HighResolution_597283201_597542401_4FGL_J2317.7+2839_daily_bin1381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-03', comment='SUCCESS', energy_flux2='1.28e-05', dlogl='5.77e-01', photon_flux2='6.48e-08', job_status='DONE', time_completed='2021-09-29 11:12:59.940154', photon_index_error2='4.07', photon_index2='3.03', ts='0.87', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='8.18e-08', energy_flux_error2='1.24e-05', EG='0.76', time_epoch_completed='1632939179.94', return_code='0', job_id='741899', GAL2='1.15', EG2='0.71', return_code2='102', photon_flux_error2='1.03e-07', ts2='2.17', photon_index='2.00' WHERE bin_id='1381' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:12:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 741899: <4FGL_J2317.7+2839_daily_bin1381> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1381> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 11:00:20 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:00:21 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:21 2021
Terminated at Wed Sep 29 11:13:00 2021
Results reported at Wed Sep 29 11:13:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1381 349.438 28.6589 597283201 597542401 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 :                                   734.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            760 sec.

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

