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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1077
RA = 349.357, Dec = -45.5623
tmin = 518486401, tmax = 518745601
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='731296', job_status='RUN', time_executed='2021-09-29 10:32:40.656009', time_epoch_executed='1632936760.66' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1077'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731296

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731296/ft1_4FGL_J2317.4-4533_daily_bin1077.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731296/ft2_4FGL_J2317.4-4533_daily_bin1077.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731296/ft1_4FGL_J2317.4-4533_daily_bin1077.fits outfile=/scratch/kocevski/731296/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1077.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=518486401.0 tmax=518745601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.81
user 6.52
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/731296/ft2_4FGL_J2317.4-4533_daily_bin1077.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/731296/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1077.fits evtable="EVENTS" outfile="/scratch/kocevski/731296/ft1_filtered_4FGL_J2317.4-4533_daily_bin1077.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.53
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731296/ft1_filtered_4FGL_J2317.4-4533_daily_bin1077.fits" evtable="EVENTS" scfile=/scratch/kocevski/731296/ft2_4FGL_J2317.4-4533_daily_bin1077.fits sctable="SC_DATA" outfile=/scratch/kocevski/731296/ltcube_518486401_518745601_4FGL_J2317.4-4533_daily_bin1077.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/731296/ft2_4FGL_J2317.4-4533_daily_bin1077.fits
.....................!
real 11.63
user 11.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731296/ft1_filtered_4FGL_J2317.4-4533_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/731296/ft2_4FGL_J2317.4-4533_daily_bin1077.fits sctable="SC_DATA" expcube=/scratch/kocevski/731296/ltcube_518486401_518745601_4FGL_J2317.4-4533_daily_bin1077.fits outfile=/scratch/kocevski/731296/expmap_518486401_518745601_4FGL_J2317.4-4533_daily_bin1077.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/731296/ltcube_518486401_518745601_4FGL_J2317.4-4533_daily_bin1077.fits
.....................!
real 190.43
user 185.89
sys 4.14

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/731296/ft1_filtered_4FGL_J2317.4-4533_daily_bin1077.fits scfile=/scratch/kocevski/731296/ft2_4FGL_J2317.4-4533_daily_bin1077.fits outfile=/scratch/kocevski/731296/cmap_518486401_518745601_4FGL_J2317.4-4533_daily_bin1077.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.53
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731296/ft1_filtered_4FGL_J2317.4-4533_daily_bin1077.fits scfile=/scratch/kocevski/731296/ft2_4FGL_J2317.4-4533_daily_bin1077.fits outfile=/scratch/kocevski/731296/cmap_HighResolution_518486401_518745601_4FGL_J2317.4-4533_daily_bin1077.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731296/ft1_filtered_4FGL_J2317.4-4533_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/731296/ft2_4FGL_J2317.4-4533_daily_bin1077.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731296/Model_4FGL_J2317.4-4533_daily_bin1077.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/731296/ft1_filtered_4FGL_J2317.4-4533_daily_bin1077.fits.....................!
real 28.91
user 27.30
sys 1.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/731296/ft1_filtered_4FGL_J2317.4-4533_daily_bin1077.fits', '/scratch/kocevski/731296/ft2_4FGL_J2317.4-4533_daily_bin1077.fits', expMap='/scratch/kocevski/731296/expmap_518486401_518745601_4FGL_J2317.4-4533_daily_bin1077.fits', expCube='/scratch/kocevski/731296/ltcube_518486401_518745601_4FGL_J2317.4-4533_daily_bin1077.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/731296/Model_4FGL_J2317.4-4533_daily_bin1077.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  1.000e-04  1.000e+04 ( 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  0.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/731296/ft1_filtered_4FGL_J2317.4-4533_daily_bin1077.fits
Spacecraft file(s): /scratch/kocevski/731296/ft2_4FGL_J2317.4-4533_daily_bin1077.fits
Exposure map: /scratch/kocevski/731296/expmap_518486401_518745601_4FGL_J2317.4-4533_daily_bin1077.fits
Exposure cube: /scratch/kocevski/731296/ltcube_518486401_518745601_4FGL_J2317.4-4533_daily_bin1077.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/731296/Model_4FGL_J2317.4-4533_daily_bin1077.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) = 2896.27975829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.473       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8816       1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.890       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6374       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.582       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24085E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.857       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8204       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    14.634       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4633       1.0000         .10000E-03   10000.    
    23 'Prefactor '    91.034       1.0000         .10000E-03   10000.    
    24 'norm      '    .10494E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.9783       1.0000         .10000E-03   10000.    
    27 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    46.099       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .72376       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.1880       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2896.241     FROM MIGRAD    STATUS=CONVERGED    985 CALLS     5087 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.568        63.130        .16252E-05    .26337E-03
   2  Prefactor     3.8796        44.566        .15142E-05   -.12070E-05
   3  Prefactor     43.906        54.816        .90082E-06    .29236E-04
   4  Prefactor     .10000E-03    7.7728        .10458E-07** at limit **
   5  norm          .10000E-03    4.8830       -.12388E-08** at limit **
   6  Prefactor     1.6342        10.673        .21421E-05   -.45358E-04
   7  Prefactor     .10000E-03    57.782       -.11099E-06** at limit **
   8  Prefactor     28.585        13.782       -.31836E-07   -.63930E-04
   9  Prefactor     .10000E-03    18.804       -.13410E-06** at limit **
  10  Prefactor     .10000E-03    273.82       -.10469E-05** at limit **
  11  Prefactor     11.868        43.309        .12207E-05    .61526E-05
  12  Prefactor     .10000E-03    7.5635        .37108E-07** at limit **
  13  Prefactor     .10000E-03    80.394       -.93376E-06** at limit **
  14  Prefactor     4.8160        11.177        .53060E-06   -.40314E-04
  15  Prefactor     .10000E-03    16.308       -.54994E-07** at limit **
  16  Prefactor     .10000E-03    25.191        .27301E-06** at limit **
  17  Prefactor     .10000E-03    28.958       -.83562E-06** at limit **
  18  norm          .10000E-03    53.170       -.12788E-06** at limit **
  19  norm          .10000E-03    4.4152       -.71173E-07** at limit **
  20  norm          .10000E-03    3.1948        .18720E-06** at limit **
  21  norm          14.637        16.568        .23783E-06   -.41463E-04
  22  Prefactor     5.4648        9.1672        .44725E-05   -.12608E-03
  23  Prefactor     91.091        66.317        .28362E-06   -.47577E-04
  24  norm          .10000E-03    15.703        .51058E-05** at limit **
  25  Prefactor     .10001E-03    101.06       -.51468E-05** at limit **
  26  norm          2.9788        1.8639       -.15668E-06    .41844E-04
  27  norm          .10000E-03    8.8722        .18135E-05** at limit **
  28  Prefactor     46.103        33.878        .41717E-06    .77303E-05
  29  Prefactor     .10000E-03    2.0495       -.27125E-07** at limit **
  30  Prefactor     .10000E-03    36.555       -.17017E-06** at limit **
  31  norm          .10000E-03    13.533       -.20899E-07** at limit **
  32  Prefactor     .10000E-03    9.7521       -.81927E-07** at limit **
  33  Prefactor     .10000E-03    2.0079        .23921E-07** at limit **
  34  Normalizat    .72375        .29623       -.56060E-05   -.10872E-04
  35  Prefactor     1.1879        .28225        .29932E-05   -.20576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.5681
  Prefactor  = 3.87962
  Prefactor  = 43.9062
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.63423
  Prefactor  = 0.0001
  Prefactor  = 28.5846
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 11.8676
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 4.81601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 14.6372
  Prefactor  = 5.46483
  Prefactor  = 91.0907
  norm       = 0.0001
  Prefactor  = 0.000100014
  norm       = 2.97879
  norm       = 0.0001
  Prefactor  = 46.1033
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.723754
  Prefactor  = 1.18795
 **********
 **   18 **HESSE 
 **********

 FCN=   2896.241     FROM HESSE     STATUS=OK           756 CALLS     5843 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.568        63.824        .22959E-03   -1.3956    
   2  Prefactor     3.8796        44.430        .20480E-03   -1.5314    
   3  Prefactor     43.906        54.834        .60514E-04   -1.4382    
   4  Prefactor     .10000E-03    7.7788        .14654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.8841        .11615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6342        10.384        .30890E-03   -1.5452    
   7  Prefactor     .10000E-03    57.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.585        13.718        .74938E-04   -1.4638    
   9  Prefactor     .10000E-03    18.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    285.13        .36571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.868        43.231        .11634E-03   -1.5019    
  12  Prefactor     .10000E-03    7.5707        .14445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    80.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.8160        11.150        .18323E-03   -1.5269    
  15  Prefactor     .10000E-03    16.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    54.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.4171        .11045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.1953        .93937E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          14.637        16.563        .10470E-03   -1.4943    
  22  Prefactor     5.4648        9.2359        .85954E-03   -1.5240    
  23  Prefactor     91.091        65.889        .42116E-04   -1.3796    
  24  norm          .10000E-03    15.808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    107.46        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.9788        1.8608        .54432E-04   -1.5363    
  27  norm          .10000E-03    8.9813        .15590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     46.103        33.891        .59053E-04   -1.4349    
  29  Prefactor     .10000E-03    2.0560        .75209E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    36.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    13.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    10.077        .32765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    2.0100        .74441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .72375        .34694        .28403E-03   -1.0296    
  35  Prefactor     1.1879        .33649        .24430E-03   -.86703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06281e-09
Minuit parameter uncertainties:
  1  63.881
  2  26.2823
  3  54.8974
  4  3.26245e-06
  5  6.66201e-07
  6  8.2408
  7  6.80658e-05
  8  13.7194
  9  3.92669e-05
  10  0.00199558
  11  43.345
  12  1.10971e-07
  13  0.000829971
  14  11.155
  15  1.679e-05
  16  0.000142413
  17  0.000171144
  18  5.49814e-05
  19  4.73282e-06
  20  2.70648e-06
  21  16.5681
  22  9.23831
  23  65.9424
  24  0.000137335
  25  0.00243887
  26  1.86083
  27  4.81928e-05
  28  33.9052
  29  1.02033e-06
  30  2.55484e-05
  31  2.83748e-06
  32  2.81669e-05
  33  2.01422e-07
  34  0.347996
  35  0.337104
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  5.498e-05  1.000e-04  1.000e+04 ( 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  0.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:  1.188e+00  3.371e-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:  7.238e-01  3.480e-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: 6.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.49e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731296/likelihoodResults_518486401_518745601_4FGL_J2317.4-4533_daily_bin1077.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): 102
logL (Free Index) = 2896.24114513
delta logL = -8.76502808751e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2896.23071762
delta logL = 0.0103398634201

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99225E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9964       1.0000          .0000       5.0000    
     3 'Normalizat'    .71086       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1959       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=   2896.231     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      400 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .97338E-02    3.1990        .47938E-02    .34673E-02
   2  alpha         5.0000        2.6450        .46357    ** at limit **
   3  Normalizat    .71053        .47615E-01    .64750E-01   -.13800E-04
   4  Prefactor     1.1965        .50778E-01    .55081E-01   -.11320E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0097338
  alpha      = 5
  Normalizat = 0.710532
  Prefactor  = 1.19653
 **********
 **   18 **HESSE 
 **********

 FCN=   2896.231     FROM HESSE     STATUS=OK            37 CALLS      437 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .97338E-02    .21159        .26643E-03   -1.5688    
   2  alpha         5.0000        4.2661        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .71053        .32159        .28647E-03   -1.0348    
   4  Prefactor     1.1965        .33694        .24354E-03   -.86438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7696e-08
Minuit parameter uncertainties:
  1  0.0902975
  2  0.000892126
  3  0.322449
  4  0.337551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731296': 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) = 2896.23070743
delta logL = 0.0103500494433

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  9.734e-03  9.030e-02  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  5.000e+00  8.921e-04  0.000e+00  5.000e+00 ( 1.000e+00)
393         beta:  1.780e-01  0.000e+00  0.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:  1.197e+00  3.376e-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:  7.105e-01  3.224e-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/731296/cmap_HighResolution_518486401_518745601_4FGL_J2317.4-4533_daily_bin1077.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.49e-05', job_status='DONE', photon_flux_upper_limit='6.71e-08', time_completed='2021-09-29 10:43:52.024797', job_id='731296', GAL2='1.20', fit_tolerance='1e-08', EG2='0.71', EG='0.72', time_epoch_completed='1632937432.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='1.04e-02', ts2='0.02', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1077' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:43:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 731296: <4FGL_J2317.4-4533_daily_bin1077> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1077> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep 29 10:30:21 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:30:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 10:30:23 2021
Terminated at Wed Sep 29 10:43:52 2021
Results reported at Wed Sep 29 10:43:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1077 349.357 -45.5623 518486401 518745601 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 :                                   640.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            811 sec.

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

