aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 206 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 = 7477
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1669
RA = 349.438, Dec = 28.6589
tmin = 671932801, tmax = 672192001
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='692284', job_status='RUN', time_executed='2022-04-21 00:39:22.928070', time_epoch_executed='1650526762.93' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1669'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692284

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692284/ft1_4FGL_J2317.7+2839_daily_bin1669.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692284/ft2_4FGL_J2317.7+2839_daily_bin1669.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692284/ft1_4FGL_J2317.7+2839_daily_bin1669.fits outfile=/scratch/kocevski/692284/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1669.fits ra=349.438 dec=28.6589 rad=12.0 tmin=671932801.0 tmax=672192001.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 4.01
user 3.55
sys 0.19

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

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

Number of photons that the gtmktime cut: 884

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692284/ft1_filtered_4FGL_J2317.7+2839_daily_bin1669.fits" evtable="EVENTS" scfile=/scratch/kocevski/692284/ft2_4FGL_J2317.7+2839_daily_bin1669.fits sctable="SC_DATA" outfile=/scratch/kocevski/692284/ltcube_671932801_672192001_4FGL_J2317.7+2839_daily_bin1669.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/692284/ft2_4FGL_J2317.7+2839_daily_bin1669.fits
.....................!
real 12.09
user 11.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692284/ft1_filtered_4FGL_J2317.7+2839_daily_bin1669.fits evtable="EVENTS" scfile=/scratch/kocevski/692284/ft2_4FGL_J2317.7+2839_daily_bin1669.fits sctable="SC_DATA" expcube=/scratch/kocevski/692284/ltcube_671932801_672192001_4FGL_J2317.7+2839_daily_bin1669.fits outfile=/scratch/kocevski/692284/expmap_671932801_672192001_4FGL_J2317.7+2839_daily_bin1669.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/692284/ltcube_671932801_672192001_4FGL_J2317.7+2839_daily_bin1669.fits
.....................!
real 191.12
user 185.71
sys 5.03

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/692284/ft1_filtered_4FGL_J2317.7+2839_daily_bin1669.fits scfile=/scratch/kocevski/692284/ft2_4FGL_J2317.7+2839_daily_bin1669.fits outfile=/scratch/kocevski/692284/cmap_671932801_672192001_4FGL_J2317.7+2839_daily_bin1669.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/692284/ft1_filtered_4FGL_J2317.7+2839_daily_bin1669.fits evtable="EVENTS" scfile=/scratch/kocevski/692284/ft2_4FGL_J2317.7+2839_daily_bin1669.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/692284/Model_4FGL_J2317.7+2839_daily_bin1669.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/692284/ft1_filtered_4FGL_J2317.7+2839_daily_bin1669.fits.....................!
real 107.24
user 105.79
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5435       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.756       1.0000         .10000E-03   10000.    
     3 'norm      '    2.1450       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.918       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11294E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.2630       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.886       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.236       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.393       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.2531       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    77.421       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96035       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0448       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=   9715.688     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     2111 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5436        1.3056        .27938E-07   -.38307E-03
   2  Prefactor     10.756        21.654       -.18529E-08   -.18982E-04
   3  norm          2.1450        1.4372        .20001E-07    .12488E-03
   4  Prefactor     17.919        10.404       -.42478E-08   -.86875E-05
   5  Prefactor     .10000E-03    50.824        .33899E-06** at limit **
   6  Prefactor     .10000E-03    6.0706       -.10945E-07** at limit **
   7  Prefactor     .10000E-03    11.781        .14726E-06** at limit **
   8  norm          1.2630        1.5881       -.14637E-06   -.14496E-02
   9  Prefactor     21.891        23.553        .36912E-05   -.78626E-05
  10  Prefactor     26.236        14.198        .50452E-06    .35577E-04
  11  Prefactor     11.390        27.763       -.46845E-05   -.18232E-04
  12  Prefactor     .10000E-03    1.7800        .77268E-08** at limit **
  13  norm          .10000E-03    1.5267        .12229E-07** at limit **
  14  Prefactor     .10000E-03    13.602       -.99590E-07** at limit **
  15  norm          1.2530        2.6843       -.10387E-05   -.16071E-02
  16  Prefactor     .10000E-03    8.1354       -.21752E-09** at limit **
  17  Prefactor     .10000E-03    4.4452       -.15642E-07** at limit **
  18  Prefactor     77.430        49.632        .85288E-05   -.73693E-05
  19  Normalizat    .96021        .20941       -.29510E-05    .67432E-04
  20  Prefactor     1.0448        .10135        .63286E-06   -.11062E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.54364
  Prefactor  = 10.7559
  norm       = 2.14497
  Prefactor  = 17.9186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.263
  Prefactor  = 21.8907
  Prefactor  = 26.2358
  Prefactor  = 11.3896
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.25303
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 77.4304
  Normalizat = 0.960214
  Prefactor  = 1.04483
 **********
 **   18 **HESSE 
 **********

 FCN=   9715.688     FROM HESSE     STATUS=OK           291 CALLS     2402 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5436        1.2990        .73446E-04   -1.5389    
   2  Prefactor     10.756        21.607        .12216E-03   -1.5052    
   3  norm          2.1450        1.4385        .93530E-04   -1.5415    
   4  Prefactor     17.919        10.398        .94618E-04   -1.4861    
   5  Prefactor     .10000E-03    52.523        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.1333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2630        1.5851        .13115E-03   -1.5483    
   9  Prefactor     21.891        23.297        .85618E-04   -1.4772    
  10  Prefactor     26.236        14.198        .78210E-04   -1.4683    
  11  Prefactor     11.390        27.734        .11869E-03   -1.5033    
  12  Prefactor     .10000E-03    1.7854        .12841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.5311        .11891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2530        2.8484        .23849E-03   -1.5484    
  16  Prefactor     .10000E-03    8.1530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.4479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     77.430        47.640        .45638E-04   -1.3946    
  19  Normalizat    .96021        .23666        .37556E-03   -.94375    
  20  Prefactor     1.0448        .11648        .18327E-03   -.91250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17018e-09
Minuit parameter uncertainties:
  1  1.29904
  2  21.6228
  3  1.43851
  4  10.3991
  5  3.08712e-05
  6  5.16109e-07
  7  5.42594e-06
  8  1.58514
  9  23.3063
  10  14.2002
  11  27.7652
  12  1.84475e-06
  13  2.38672e-06
  14  1.84429e-05
  15  2.84872
  16  7.38222e-06
  17  3.20561e-06
  18  47.6631
  19  0.236917
  20  0.11651
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.139e+01  2.777e+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.045e+00  1.165e-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.602e-01  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/692284/likelihoodResults_671932801_672192001_4FGL_J2317.7+2839_daily_bin1669.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) = 9713.49638677
delta logL = 2.19123704247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9713.4403084
delta logL = 2.24731541273

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7642       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4101       1.0000          .0000       10.000    
     3 'Normalizat'    .82451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0764       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=   9713.440     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      264 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7642        11.027        .78849E-02    .30730E-02
   2  Index         3.4102        1.3490        .74166E-01    .58732E-03
   3  Normalizat    .82449        .62605E-01    .90751E-01    .12475E-03
   4  Prefactor     1.0764        .30354E-01    .38560E-01   -.71854E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.76421
  Index      = 3.41016
  Normalizat = 0.824493
  Prefactor  = 1.07642
 **********
 **   18 **HESSE 
 **********

 FCN=   9713.440     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      295 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7642        21.274        .63942E-04   -1.5442    
   2  Index         3.4102        2.2241        .27719E-02   -.32359    
   3  Normalizat    .82449        .23458        .40197E-03   -.99166    
   4  Prefactor     1.0764        .11396        .18062E-03   -.90224    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.49156e-09
Minuit parameter uncertainties:
  1  12.2578
  2  2.31506
  3  0.234865
  4  0.113983
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692284': 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) = 9713.44030839
delta logL = 2.24731541592

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.764e+00  1.226e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  3.410e+00  2.315e+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.076e+00  1.140e-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:  8.245e-01  2.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.37
Ra Dec: 349.438 28.659
Photon Index (Free Index): 3.41 +/- 2.32
Photon Flux (Free Index): 1.44e-07 +/- 9.32e-08
Energy Flux (Free Index): 2.46e-05 +/- 1.47e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/692284/cmap_HighResolution_671932801_672192001_4FGL_J2317.7+2839_daily_bin1669.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.90e-03', comment='SUCCESS', energy_flux2='2.46e-05', dlogl='2.25e+00', photon_flux2='1.44e-07', job_status='DONE', time_completed='2022-04-21 00:52:13.433463', photon_index_error2='2.32', photon_index2='3.41', ts='0.20', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='9.20e-08', energy_flux_error2='1.47e-05', EG='0.96', time_epoch_completed='1650527533.43', return_code='0', job_id='692284', GAL2='1.08', EG2='0.82', return_code2='102', photon_flux_error2='9.32e-08', ts2='5.37', photon_index='2.00' WHERE bin_id='1669' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Apr 21 00:52:13 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 692284: <4FGL_J2317.7+2839_daily_bin1669> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1669> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Apr 21 00:35:42 2022
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Apr 21 00:35:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Apr 21 00:35:44 2022
Terminated at Thu Apr 21 00:52:14 2022
Results reported at Thu Apr 21 00:52:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1669 349.438 28.6589 671932801 672192001 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 :                                   772.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            992 sec.

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

