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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1776
RA = 349.357, Dec = -45.5623
tmin = 699667201, tmax = 699926401
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='846309', job_status='RUN', time_executed='2023-03-08 01:27:26.828414', time_epoch_executed='1678267646.83' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846309

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846309/ft1_4FGL_J2317.4-4533_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846309/ft2_4FGL_J2317.4-4533_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846309/ft1_4FGL_J2317.4-4533_daily_bin1776.fits outfile=/scratch/kocevski/846309/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1776.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=699667201.0 tmax=699926401.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.98
user 3.71
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/846309/ft2_4FGL_J2317.4-4533_daily_bin1776.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/846309/ft2_4FGL_J2317.4-4533_daily_bin1776.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/846309/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1776.fits evtable="EVENTS" outfile="/scratch/kocevski/846309/ft1_filtered_4FGL_J2317.4-4533_daily_bin1776.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.32
sys 0.16

Number of photons that the gtmktime cut: 581

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846309/ft1_filtered_4FGL_J2317.4-4533_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/846309/ft2_4FGL_J2317.4-4533_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/846309/ltcube_699667201_699926401_4FGL_J2317.4-4533_daily_bin1776.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/846309/ft2_4FGL_J2317.4-4533_daily_bin1776.fits
.....................!
real 12.43
user 12.03
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846309/ft1_filtered_4FGL_J2317.4-4533_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/846309/ft2_4FGL_J2317.4-4533_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/846309/ltcube_699667201_699926401_4FGL_J2317.4-4533_daily_bin1776.fits outfile=/scratch/kocevski/846309/expmap_699667201_699926401_4FGL_J2317.4-4533_daily_bin1776.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/846309/ltcube_699667201_699926401_4FGL_J2317.4-4533_daily_bin1776.fits
.....................!
real 191.27
user 186.53
sys 4.38

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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J2317.4-4533 @ 349.357 -45.5623

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/846309/ft1_filtered_4FGL_J2317.4-4533_daily_bin1776.fits scfile=/scratch/kocevski/846309/ft2_4FGL_J2317.4-4533_daily_bin1776.fits outfile=/scratch/kocevski/846309/cmap_699667201_699926401_4FGL_J2317.4-4533_daily_bin1776.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.357 yref=-45.5623 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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846309/ft1_filtered_4FGL_J2317.4-4533_daily_bin1776.fits scfile=/scratch/kocevski/846309/ft2_4FGL_J2317.4-4533_daily_bin1776.fits outfile=/scratch/kocevski/846309/cmap_HighResolution_699667201_699926401_4FGL_J2317.4-4533_daily_bin1776.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.357 yref=-45.5623 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/846309/ft1_filtered_4FGL_J2317.4-4533_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/846309/ft2_4FGL_J2317.4-4533_daily_bin1776.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/846309/Model_4FGL_J2317.4-4533_daily_bin1776.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/846309/ft1_filtered_4FGL_J2317.4-4533_daily_bin1776.fits.....................!
real 46.22
user 44.19
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/846309/ft1_filtered_4FGL_J2317.4-4533_daily_bin1776.fits', '/scratch/kocevski/846309/ft2_4FGL_J2317.4-4533_daily_bin1776.fits', expMap='/scratch/kocevski/846309/expmap_699667201_699926401_4FGL_J2317.4-4533_daily_bin1776.fits', expCube='/scratch/kocevski/846309/ltcube_699667201_699926401_4FGL_J2317.4-4533_daily_bin1776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/846309/Model_4FGL_J2317.4-4533_daily_bin1776.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2317.4-4533'

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  2.155e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
392        alpha:  1.793e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
393         beta:  1.780e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
394           Eb:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/846309/ft1_filtered_4FGL_J2317.4-4533_daily_bin1776.fits
Spacecraft file(s): /scratch/kocevski/846309/ft2_4FGL_J2317.4-4533_daily_bin1776.fits
Exposure map: /scratch/kocevski/846309/expmap_699667201_699926401_4FGL_J2317.4-4533_daily_bin1776.fits
Exposure cube: /scratch/kocevski/846309/ltcube_699667201_699926401_4FGL_J2317.4-4533_daily_bin1776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/846309/Model_4FGL_J2317.4-4533_daily_bin1776.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) = 6246.34310363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.613       1.0000          .0000       .10000E+07
     2 'Prefactor '    .96828E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .20607E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.4959       1.0000          .0000       .10000E+07
     5 'norm      '    .18973E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.1837       1.0000          .0000       .10000E+07
     7 'Prefactor '    .26993E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    4.9573       1.0000          .0000       .10000E+07
     9 'Prefactor '    .83698E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.4625       1.0000          .0000       .10000E+07
    11 'Prefactor '    .27265E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.4760       1.0000          .0000       .10000E+07
    13 'Prefactor '    47.485       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.8709       1.0000          .0000       .10000E+07
    15 'norm      '    .11045E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .12346E-06   1.0000          .0000       .10000E+07
    17 'norm      '    .21542E-05   1.0000          .0000       .10000E+07
    18 'norm      '    12.435       1.0000          .0000       .10000E+07
    19 'Prefactor '    4.2365       1.0000          .0000       .10000E+07
    20 'Prefactor '    .34264E-02   1.0000          .0000       .10000E+07
    21 'norm      '    8.5757       1.0000          .0000       .10000E+07
    22 'Prefactor '    12.098       1.0000          .0000       .10000E+07
    23 'norm      '    .75271       1.0000          .0000       .10000E+07
    24 'norm      '    1.1300       1.0000          .0000       .10000E+07
    25 'Prefactor '    14.364       1.0000          .0000       .10000E+07
    26 'Prefactor '    .96517E-06   1.0000          .0000       .10000E+07
    27 'Prefactor '    45.795       1.0000          .0000       .10000E+07
    28 'norm      '    .29353E-05   1.0000          .0000       .10000E+07
    29 'Prefactor '    .31780E-06   1.0000          .0000       .10000E+07
    30 'Prefactor '    1.5430       1.0000          .0000       .10000E+07
    31 'Normalizat'    1.0867       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .78775       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6246.142     FROM MIGRAD    STATUS=CONVERGED    201 CALLS     3187 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.026        53.786        .55801E-07   -.84685E-02
   2  Prefactor     .11102E-09    4.9418       -.42141E-06** at limit **
   3  Prefactor     .10769E-05    3.8184       -.35146E-07** at limit **
   4  Prefactor     2.4924        6.7841        .27042E-07    .35683E-01
   5  norm          .33307E-09    3.3104       -.40331E-07** at limit **
   6  Prefactor     1.1823        1.8653       -.81003E-07   -.24637E-02
   7  Prefactor     .33307E-09    16.028        .17715E-06** at limit **
   8  Prefactor     4.9481        4.6729       -.17010E-06   -.37813E-02
   9  Prefactor     .19984E-07    28.826        .17542E-06** at limit **
  10  Prefactor     2.4173        1.6644        .18892E-07   -.87014E-02
  11  Prefactor     .22204E-09    8.2322        .74291E-08** at limit **
  12  Prefactor     3.5068        6.4201        .96162E-09    .14158E-02
  13  Prefactor     48.423        7.2410       -.13370E-07    .35319E-01
  14  Prefactor     2.8383        2.3919       -.25475E-08    .22597E-01
  15  norm          .16653E-09    3.9956       -.24122E-06** at limit **
  16  norm          .27756E-09    2.9454        .65309E-07** at limit **
  17  norm           .0000        2.0343       -.57776E-07** at limit **
  18  norm          12.422        3.8965        .74228E-08   -.10183    
  19  Prefactor     4.1740        6.0127        .76071E-07   -.95474E-02
  20  Prefactor     .21649E-08    53.049        .22271E-06** at limit **
  21  norm          8.5791        5.0967        .64328E-07    .55403E-02
  22  Prefactor     12.116        2.6319        .79236E-08    .45140E-01
  23  norm          .75718        .91409       -.42151E-07   -.32888E-02
  24  norm          1.1207        4.1561       -.70592E-07   -.37872E-03
  25  Prefactor     14.360        1.3291       -.24352E-08    .17187E-01
  26  Prefactor     .61062E-09    6.3009       -.12593E-07** at limit **
  27  Prefactor     45.312        2.2656        .48438E-08   -.11187    
  28  norm          .55511E-10    6.6997       -.17443E-06** at limit **
  29  Prefactor      .0000        1.6205        .81637E-07** at limit **
  30  Prefactor     1.5536        3.4795       -.16795E-06   -.22495E-02
  31  Normalizat    1.0867        .20678        .11548E-05   -.89122E-04
  32  Prefactor     .78740        .21401       -.17902E-05   -.86303E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.0263
  Prefactor  = 1.11022e-10
  Prefactor  = 1.07692e-06
  Prefactor  = 2.49242
  norm       = 3.33067e-10
  Prefactor  = 1.1823
  Prefactor  = 3.33067e-10
  Prefactor  = 4.94812
  Prefactor  = 1.9984e-08
  Prefactor  = 2.41726
  Prefactor  = 2.22045e-10
  Prefactor  = 3.50681
  Prefactor  = 48.4233
  Prefactor  = 2.83835
  norm       = 1.66533e-10
  norm       = 2.77556e-10
  norm       = 0
  norm       = 12.4224
  Prefactor  = 4.17401
  Prefactor  = 2.16493e-09
  norm       = 8.57906
  Prefactor  = 12.1163
  norm       = 0.757184
  norm       = 1.12075
  Prefactor  = 14.3601
  Prefactor  = 6.10623e-10
  Prefactor  = 45.312
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 1.55361
  Normalizat = 1.08666
  Prefactor  = 0.7874
 **********
 **   18 **HESSE 
 **********

 FCN=   6246.142     FROM HESSE     STATUS=OK           727 CALLS     3914 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.026        54.039        .14648E-03   -1.5569    
   2  Prefactor     .11102E-09    4.9576        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10769E-05    51.896        .16997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4924        7.5730        .64667E-03   -1.5676    
   5  norm          .33307E-09    3.3270        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1823        1.9149        .10491E-02   -1.5686    
   7  Prefactor     .33307E-09    16.065        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.9481        4.7169        .45147E-03   -1.5663    
   9  Prefactor     .19984E-07    28.898        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4173        50.352        .65144E-03   -1.5677    
  11  Prefactor     .22204E-09    8.2420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.5068        6.4908        .54213E-03   -1.5671    
  13  Prefactor     48.423        36.239        .14513E-03   -1.5569    
  14  Prefactor     2.8383        18.700        .59966E-03   -1.5674    
  15  norm          .16653E-09    4.0077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .27756E-09    2.9467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        2.0371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.422        8.4812        .28381E-03   -1.5637    
  19  Prefactor     4.1740        7.7968        .48931E-03   -1.5667    
  20  Prefactor     .21649E-08    55.003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.5791        5.2461        .34206E-03   -1.5649    
  22  Prefactor     12.116        15.059        .28776E-03   -1.5638    
  23  norm          .75718        .96151        .56528E-03   -1.5691    
  24  norm          1.1207        4.2851        .10989E-02   -1.5687    
  25  Prefactor     14.360        13.058        .26402E-03   -1.5632    
  26  Prefactor     .61062E-09    1.5599        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     45.312        22.828        .14778E-03   -1.5573    
  28  norm          .55511E-10    6.7901        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor      .0000        1.6186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.5536        3.5181        .85779E-03   -1.5683    
  31  Normalizat    1.0867        .18215        .38569E-01   -.90181    
  32  Prefactor     .78740        .18343        .43558E-01   -1.0019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20402e-07
Minuit parameter uncertainties:
  1  54.0395
  2  4.14361e-05
  3  0.0149515
  4  7.57307
  5  6.46437e-05
  6  1.91495
  7  0.000141966
  8  4.71689
  9  0.00151894
  10  22.065
  11  8.61776e-05
  12  6.49081
  13  36.2392
  14  14.5708
  15  4.79268e-05
  16  5.43646e-05
  17  7.88514e-06
  18  8.48118
  19  7.79681
  20  0.000694066
  21  5.24611
  22  15.0589
  23  0.961511
  24  4.28512
  25  13.0576
  26  6.27062e-05
  27  22.8278
  28  3.27757e-05
  29  9.46672e-06
  30  3.5181
  31  0.182251
  32  0.183567
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.665e-10  4.793e-05  0.000e+00  1.000e+06 ( 1.000e-13)
392        alpha:  1.793e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
393         beta:  1.780e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
394           Eb:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  7.874e-01  1.836e-01  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.087e+00  1.823e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 349.357 -45.562
Photon Flux Upper Limit: 2.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/846309/likelihoodResults_699667201_699926401_4FGL_J2317.4-4533_daily_bin1776.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) = 6246.26116251
delta logL = -0.119491716866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6246.14167094
delta logL = -1.51701897266e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26279E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    3.3965       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78735       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6246.142     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      225 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .44409E-09    .68403        .42118E-03** at limit **
   2  alpha         .29350E-01    2.9188        .45129       -.27711E-09
   3  Normalizat    1.0867        .16821        .38567E-01   -.43377E-03
   4  Prefactor     .78741        .18161        .43552E-01   -.17060E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.44089e-10
  alpha      = 0.0293503
  Normalizat = 1.08665
  Prefactor  = 0.787406
 **********
 **   18 **HESSE 
 **********

 FCN=   6246.142     FROM HESSE     STATUS=OK            31 CALLS      256 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .44409E-09    .66774        .63054E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .29350E-01    2.9074        .50000       -1.4174    
   3  Normalizat    1.0867        .19609        .22107E-03   -.90181    
   4  Prefactor     .78741        .21162        .27465E-03   -1.0019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3359e-09
Minuit parameter uncertainties:
  1  3.5053e-05
  2  0.382055
  3  0.196221
  4  0.211841
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846309': 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) = 6246.14167079
delta logL = -6.33917807136e-10

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  4.441e-10  3.505e-05  0.000e+00  1.000e+06 ( 1.000e-13)
392        alpha:  2.935e-02  3.821e-01  0.000e+00  5.000e+00 ( 1.000e+00)
393         beta:  1.780e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
394           Eb:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  7.874e-01  2.118e-01  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.087e+00  1.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 349.357 -45.562

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/846309/cmap_HighResolution_699667201_699926401_4FGL_J2317.4-4533_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-05', job_status='DONE', photon_flux_upper_limit='2.33e-08', time_completed='2023-03-08 01:40:22.594192', job_id='846309', GAL2='0.79', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1678268422.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='-6.34e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1776' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 01:40:22 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0136>
Subject: Job 846309: <4FGL_J2317.4-4533_daily_bin1776> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1776> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Mar  8 01:25:17 2023
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 01:25:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 01:25:19 2023
Terminated at Wed Mar  8 01:40:23 2023
Results reported at Wed Mar  8 01:40:23 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1776 349.357 -45.5623 699667201 699926401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2317.4-4533 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   769.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            906 sec.

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

