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 13 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1757
RA = 349.438, Dec = 28.6589
tmin = 694742401, tmax = 695001601
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='228117', job_status='RUN', time_executed='2023-01-10 02:43:15.706592', time_epoch_executed='1673347395.71' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228117

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228117/ft1_4FGL_J2317.7+2839_daily_bin1757.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228117/ft2_4FGL_J2317.7+2839_daily_bin1757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228117/ft1_4FGL_J2317.7+2839_daily_bin1757.fits outfile=/scratch/kocevski/228117/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1757.fits ra=349.438 dec=28.6589 rad=12.0 tmin=694742401.0 tmax=695001601.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 2.93
user 2.68
sys 0.22

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

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

Number of photons that the gtmktime cut: 1301

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228117/ft1_filtered_4FGL_J2317.7+2839_daily_bin1757.fits" evtable="EVENTS" scfile=/scratch/kocevski/228117/ft2_4FGL_J2317.7+2839_daily_bin1757.fits sctable="SC_DATA" outfile=/scratch/kocevski/228117/ltcube_694742401_695001601_4FGL_J2317.7+2839_daily_bin1757.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/228117/ft2_4FGL_J2317.7+2839_daily_bin1757.fits
.....................!
real 14.91
user 14.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228117/ft1_filtered_4FGL_J2317.7+2839_daily_bin1757.fits evtable="EVENTS" scfile=/scratch/kocevski/228117/ft2_4FGL_J2317.7+2839_daily_bin1757.fits sctable="SC_DATA" expcube=/scratch/kocevski/228117/ltcube_694742401_695001601_4FGL_J2317.7+2839_daily_bin1757.fits outfile=/scratch/kocevski/228117/expmap_694742401_695001601_4FGL_J2317.7+2839_daily_bin1757.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/228117/ltcube_694742401_695001601_4FGL_J2317.7+2839_daily_bin1757.fits
.....................!
real 192.33
user 186.08
sys 5.27

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/228117/ft1_filtered_4FGL_J2317.7+2839_daily_bin1757.fits scfile=/scratch/kocevski/228117/ft2_4FGL_J2317.7+2839_daily_bin1757.fits outfile=/scratch/kocevski/228117/cmap_694742401_695001601_4FGL_J2317.7+2839_daily_bin1757.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.59
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228117/ft1_filtered_4FGL_J2317.7+2839_daily_bin1757.fits scfile=/scratch/kocevski/228117/ft2_4FGL_J2317.7+2839_daily_bin1757.fits outfile=/scratch/kocevski/228117/cmap_HighResolution_694742401_695001601_4FGL_J2317.7+2839_daily_bin1757.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/228117/ft1_filtered_4FGL_J2317.7+2839_daily_bin1757.fits evtable="EVENTS" scfile=/scratch/kocevski/228117/ft2_4FGL_J2317.7+2839_daily_bin1757.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/228117/Model_4FGL_J2317.7+2839_daily_bin1757.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/228117/ft1_filtered_4FGL_J2317.7+2839_daily_bin1757.fits.....................!
real 146.34
user 144.26
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/228117/ft1_filtered_4FGL_J2317.7+2839_daily_bin1757.fits', '/scratch/kocevski/228117/ft2_4FGL_J2317.7+2839_daily_bin1757.fits', expMap='/scratch/kocevski/228117/expmap_694742401_695001601_4FGL_J2317.7+2839_daily_bin1757.fits', expCube='/scratch/kocevski/228117/ltcube_694742401_695001601_4FGL_J2317.7+2839_daily_bin1757.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/228117/Model_4FGL_J2317.7+2839_daily_bin1757.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  0.000e+00  1.000e+06 ( 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/228117/ft1_filtered_4FGL_J2317.7+2839_daily_bin1757.fits
Spacecraft file(s): /scratch/kocevski/228117/ft2_4FGL_J2317.7+2839_daily_bin1757.fits
Exposure map: /scratch/kocevski/228117/expmap_694742401_695001601_4FGL_J2317.7+2839_daily_bin1757.fits
Exposure cube: /scratch/kocevski/228117/ltcube_694742401_695001601_4FGL_J2317.7+2839_daily_bin1757.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/228117/Model_4FGL_J2317.7+2839_daily_bin1757.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) = 13849.6674317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5476       1.0000          .0000       .10000E+07
     2 'norm      '    1.3951       1.0000          .0000       .10000E+07
     3 'Prefactor '    10.939       1.0000          .0000       .10000E+07
     4 'Prefactor '    .33085E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .81046E-08   1.0000          .0000       .10000E+07
     6 'norm      '    2.1736       1.0000          .0000       .10000E+07
     7 'Prefactor '    26.229       1.0000          .0000       .10000E+07
     8 'Prefactor '    .16820E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    123.07       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20872E-07   1.0000          .0000       .10000E+07
    11 'norm      '    .21150E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .27745E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
    14 'Prefactor '    .62328E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    12.087       1.0000          .0000       .10000E+07
    16 'Normalizat'    .82667       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0881       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13848.63     FROM MIGRAD    STATUS=CONVERGED    118 CALLS      761 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5471        .69267       -.22921E-06    .34267E-02
   2  norm          1.3946        .99808        .68058E-07   -.42543E-02
   3  Prefactor     10.975        8.7762        .33802E-05    .35263E-02
   4  Prefactor     .33307E-09    8.5120        .35978E-06** at limit **
   5  Prefactor     .55511E-10    5.7510       -.25773E-05** at limit **
   6  norm          2.1726        .99062        .29887E-07    .41759E-02
   7  Prefactor     26.078        19.177       -.52970E-05   -.10812    
   8  Prefactor      .0000        2.8034       -.76122E-06** at limit **
   9  Prefactor     123.64        31.930        .41398E-05   -.14080    
  10  Prefactor     .55511E-10    1.1869       -.54881E-06** at limit **
  11  norm           .0000        2.3603       -.75561E-06** at limit **
  12  Prefactor      .0000        3.8284       -.13595E-05** at limit **
  13  norm           .0000        .72801       -.15347E-06** at limit **
  14  Prefactor     .17208E-08    10.334       -.35623E-05** at limit **
  15  Prefactor     11.154        22.815        .79630E-06   -.76975E-02
  16  Normalizat    .82760        .17847        .65967E-04   -.16205E-04
  17  Prefactor     1.0879        .93607E-01   -.19761E-04    .52948E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.54712
  norm       = 1.39457
  Prefactor  = 10.9754
  Prefactor  = 3.33067e-10
  Prefactor  = 5.55112e-11
  norm       = 2.17257
  Prefactor  = 26.0785
  Prefactor  = 0
  Prefactor  = 123.635
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.72085e-09
  Prefactor  = 11.1539
  Normalizat = 0.827603
  Prefactor  = 1.0879
 **********
 **   18 **HESSE 
 **********

 FCN=   13848.63     FROM HESSE     STATUS=OK           255 CALLS     1016 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5471        .69725        .85611E-03   -1.5683    
   2  norm          1.3946        .99689        .91905E-03   -1.5684    
   3  Prefactor     10.975        8.7873        .30267E-03   -1.5642    
   4  Prefactor     .33307E-09    8.4590        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    5.7525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.1726        .99392        .69813E-03   -1.5678    
   7  Prefactor     26.078        26.959        .19530E-03   -1.5606    
   8  Prefactor      .0000        2.8004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     123.64        36.143        .90146E-04   -1.5486    
  10  Prefactor     .55511E-10    1.1873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        2.3163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        3.8253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .72547        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .17208E-08    10.336        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.154        23.032        .28788E-03   -1.5641    
  16  Normalizat    .82760        .16304        .85692E-01   -.99053    
  17  Prefactor     1.0879        .82688E-01    .38056E-01   -.89854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86182e-07
Minuit parameter uncertainties:
  1  0.697249
  2  0.996885
  3  8.78728
  4  0.000107694
  5  2.81044e-05
  6  0.993918
  7  26.9588
  8  4.30704e-06
  9  36.1433
  10  1.89036e-05
  11  1.7232e-06
  12  4.00554e-06
  13  1.87225e-06
  14  0.000268113
  15  23.0322
  16  0.163135
  17  0.0826982
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.236e+02  3.614e+01  0.000e+00  1.000e+06 ( 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.088e+00  8.270e-02  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.276e-01  1.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.41
Ra Dec: 349.438 28.659
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.58e-07 +/- 4.62e-08
Energy Flux (Fixed Index): 1.09e-04 +/- 3.17e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13842.9959045
delta logL = 5.63159414515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13842.985597
delta logL = 5.64190168076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.106       1.0000          .0000       .10000E+07
     2 'Index     '    2.7902       1.0000          .0000       10.000    
     3 'Normalizat'    .67976       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1346       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13842.99     FROM MIGRAD    STATUS=FAILED       100 CALLS      312 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.108        34.613        .83234E-05   -.11692E-02
   2  Index         2.7901        .52157        .17775E-02    .22919E-02
   3  Normalizat    .67977        .19099        .41373E-03   -.66882E-04
   4  Prefactor     1.1346        .98668E-01    .17320E-03    .11237E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13842.99     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      390 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.108        34.613        .17968E-04   -1.5612    
   2  Index         2.7901        .52157        .27285E-03   -.45780    
   3  Normalizat    .67977        .19099        .34352E-03   -1.0470    
   4  Prefactor     1.1346        .98668E-01    .12988E-03   -.88368    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13842.99     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      428 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.108        19.756        .33294E-06    .11484E-03
   2  Index         2.7901        .29797        .35551E-03   -.29613E-04
   3  Normalizat    .67977        .18396        .16549E-04   -.10991E-04
   4  Prefactor     1.1346        .95452E-01    .69281E-05    .21004E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.108
  Index      = 2.79014
  Normalizat = 0.679773
  Prefactor  = 1.13461
 **********
 **   18 **HESSE 
 **********

 FCN=   13842.99     FROM HESSE     STATUS=OK            23 CALLS      451 TOTAL
                     EDM=   .69E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.108        18.441        .37221E-06   -1.5612    
   2  Index         2.7901        .27809        .14220E-04   -.45780    
   3  Normalizat    .67977        .18310        .33099E-05   -1.0470    
   4  Prefactor     1.1346        .95033E-01    .13856E-05   -.88368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.91581e-12
Minuit parameter uncertainties:
  1  18.4414
  2  0.278273
  3  0.183263
  4  0.0950474
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228117': 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) = 13842.9855969
delta logL = 5.6419016868

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  2.311e+01  1.844e+01  0.000e+00  1.000e+06 ( 1.000e-14)
413        Index:  2.790e+00  2.783e-01  0.000e+00  1.000e+01 (-1.000e+00)
414        Scale:  3.565e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.135e+00  9.505e-02  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  6.798e-01  1.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 33.78
Ra Dec: 349.438 28.659
Photon Index (Free Index): 2.79 +/- 0.28
Photon Flux (Free Index): 2.77e-07 +/- 6.44e-08
Energy Flux (Free Index): 6.23e-05 +/- 1.56e-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/228117/cmap_HighResolution_694742401_695001601_4FGL_J2317.7+2839_daily_bin1757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-07', energy_flux2='6.23e-05', photon_flux_error='4.62e-08', dlogl='5.64e+00', energy_flux='1.09e-04', photon_flux2='2.77e-07', job_status='DONE', time_completed='2023-01-10 02:54:43.789599', photon_index_error2='0.28', photon_index2='2.79', ts='21.41', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.56e-05', EG='0.83', time_epoch_completed='1673348083.79', return_code='0', job_id='228117', GAL2='1.13', EG2='0.68', return_code2='0', energy_flux_error='3.17e-05', photon_flux_error2='6.44e-08', ts2='33.78', photon_index='2.00' WHERE bin_id='1757' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 10 02:54:43 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 228117: <4FGL_J2317.7+2839_daily_bin1757> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1757> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jan 10 02:40:18 2023
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 10 02:42:53 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 10 02:42:53 2023
Terminated at Tue Jan 10 02:54:44 2023
Results reported at Tue Jan 10 02:54:44 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1757 349.438 28.6589 694742401 695001601 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 :                                   688.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             384.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            866 sec.

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

