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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1020
RA = 349.357, Dec = -45.5623
tmin = 503712001, tmax = 503971201
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='730462', job_status='RUN', time_executed='2021-09-29 10:28:20.535054', time_epoch_executed='1632936500.54' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/730462

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/730462/ft1_4FGL_J2317.4-4533_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/730462/ft2_4FGL_J2317.4-4533_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/730462/ft1_4FGL_J2317.4-4533_daily_bin1020.fits outfile=/scratch/kocevski/730462/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1020.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=503712001.0 tmax=503971201.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 5.67
user 5.38
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/730462/ft1_filtered_4FGL_J2317.4-4533_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/730462/ft2_4FGL_J2317.4-4533_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/730462/ltcube_503712001_503971201_4FGL_J2317.4-4533_daily_bin1020.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/730462/ft2_4FGL_J2317.4-4533_daily_bin1020.fits
.....................!
real 12.00
user 11.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/730462/ft1_filtered_4FGL_J2317.4-4533_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/730462/ft2_4FGL_J2317.4-4533_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/730462/ltcube_503712001_503971201_4FGL_J2317.4-4533_daily_bin1020.fits outfile=/scratch/kocevski/730462/expmap_503712001_503971201_4FGL_J2317.4-4533_daily_bin1020.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/730462/ltcube_503712001_503971201_4FGL_J2317.4-4533_daily_bin1020.fits
.....................!
real 192.23
user 187.54
sys 4.34

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/730462/ft1_filtered_4FGL_J2317.4-4533_daily_bin1020.fits scfile=/scratch/kocevski/730462/ft2_4FGL_J2317.4-4533_daily_bin1020.fits outfile=/scratch/kocevski/730462/cmap_503712001_503971201_4FGL_J2317.4-4533_daily_bin1020.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/730462/ft1_filtered_4FGL_J2317.4-4533_daily_bin1020.fits scfile=/scratch/kocevski/730462/ft2_4FGL_J2317.4-4533_daily_bin1020.fits outfile=/scratch/kocevski/730462/cmap_HighResolution_503712001_503971201_4FGL_J2317.4-4533_daily_bin1020.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.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/730462/ft1_filtered_4FGL_J2317.4-4533_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/730462/ft2_4FGL_J2317.4-4533_daily_bin1020.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/730462/Model_4FGL_J2317.4-4533_daily_bin1020.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/730462/ft1_filtered_4FGL_J2317.4-4533_daily_bin1020.fits.....................!
real 29.14
user 27.93
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/730462/ft1_filtered_4FGL_J2317.4-4533_daily_bin1020.fits', '/scratch/kocevski/730462/ft2_4FGL_J2317.4-4533_daily_bin1020.fits', expMap='/scratch/kocevski/730462/expmap_503712001_503971201_4FGL_J2317.4-4533_daily_bin1020.fits', expCube='/scratch/kocevski/730462/ltcube_503712001_503971201_4FGL_J2317.4-4533_daily_bin1020.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/730462/Model_4FGL_J2317.4-4533_daily_bin1020.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/730462/ft1_filtered_4FGL_J2317.4-4533_daily_bin1020.fits
Spacecraft file(s): /scratch/kocevski/730462/ft2_4FGL_J2317.4-4533_daily_bin1020.fits
Exposure map: /scratch/kocevski/730462/expmap_503712001_503971201_4FGL_J2317.4-4533_daily_bin1020.fits
Exposure cube: /scratch/kocevski/730462/ltcube_503712001_503971201_4FGL_J2317.4-4533_daily_bin1020.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/730462/Model_4FGL_J2317.4-4533_daily_bin1020.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) = 2875.45184182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6907       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11123E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.413       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4879       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.737       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .56926E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    89.729       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    13.153       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13386E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.021       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.4689       1.0000         .10000E-03   10000.    
    27 'norm      '    3.8965       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    10.047       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    13.134       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .94384       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .49280       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=   2875.431     FROM MIGRAD    STATUS=CONVERGED    933 CALLS     4983 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.643        .33202E-06** at limit **
   2  Prefactor     .10000E-03    21.892       -.36476E-06** at limit **
   3  Prefactor     .10000E-03    20.730        .14669E-06** at limit **
   4  Prefactor     .10000E-03    19.221        .31658E-06** at limit **
   5  norm          .10000E-03    10.573        .55943E-06** at limit **
   6  Prefactor     6.6899        7.3169        .77346E-06   -.41838E-04
   7  Prefactor     .10000E-03    46.605       -.23512E-07** at limit **
   8  Prefactor     11.416        9.8018        .69167E-07   -.42860E-04
   9  Prefactor     7.4901        38.994        .25066E-05   -.12755E-05
  10  Prefactor     .10000E-03    8.7070       -.77382E-06** at limit **
  11  Prefactor     28.753        43.567       -.16361E-04   -.36940E-04
  12  Prefactor     .10005E-03    20.946        .70874E-05** at limit **
  13  Prefactor     89.992        152.65        .96715E-05   -.16594E-04
  14  Prefactor     .10000E-03    10.842        .24416E-06** at limit **
  15  Prefactor     .10000E-03    20.633        .35758E-06** at limit **
  16  Prefactor     .10000E-03    17.856        .19797E-07** at limit **
  17  Prefactor     .10000E-03    20.163        .49541E-06** at limit **
  18  norm          .10000E-03    7.7130        .72704E-06** at limit **
  19  norm          .10000E-03    6.4225       -.20408E-07** at limit **
  20  norm          .10000E-03    2.8715       -.18870E-07** at limit **
  21  norm          13.148        10.404        .51575E-06   -.15704E-04
  22  Prefactor     .10000E-03    7.2750       -.39064E-06** at limit **
  23  Prefactor     .10000E-03    96.255       -.12773E-05** at limit **
  24  norm          10.014        8.4441        .23392E-06   -.14008E-04
  25  Prefactor     .10000E-03    63.912        .78459E-05** at limit **
  26  norm          1.4699        2.0510        .36386E-06   -.27055E-03
  27  norm          3.8983        8.3181        .54941E-06   -.20668E-04
  28  Prefactor     .10000E-03    14.975       -.13100E-05** at limit **
  29  Prefactor     10.045        7.5086        .75747E-07    .77847E-05
  30  Prefactor     .10000E-03    40.753       -.35880E-05** at limit **
  31  norm          .10000E-03    18.566        .25260E-06** at limit **
  32  Prefactor     .10000E-03    2.6881       -.41118E-07** at limit **
  33  Prefactor     13.133        8.6587        .30053E-06   -.49230E-04
  34  Normalizat    .94405        .22735       -.69137E-06   -.18422E-03
  35  Prefactor     .49267        .22539       -.39700E-05   -.67436E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.68986
  Prefactor  = 0.0001
  Prefactor  = 11.4159
  Prefactor  = 7.49007
  Prefactor  = 0.0001
  Prefactor  = 28.7526
  Prefactor  = 0.000100047
  Prefactor  = 89.9923
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 13.148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.0143
  Prefactor  = 0.0001
  norm       = 1.4699
  norm       = 3.89834
  Prefactor  = 0.0001
  Prefactor  = 10.0452
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.133
  Normalizat = 0.944046
  Prefactor  = 0.492673
 **********
 **   18 **HESSE 
 **********

 FCN=   2875.431     FROM HESSE     STATUS=OK           760 CALLS     5743 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    10.643        .17029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6899        7.3204        .13538E-03   -1.5191    
   7  Prefactor     .10000E-03    46.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.416        9.8017        .11858E-03   -1.5032    
   9  Prefactor     7.4901        39.090        .14656E-03   -1.5161    
  10  Prefactor     .10000E-03    8.7100        .15450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.753        43.908        .74737E-04   -1.4635    
  12  Prefactor     .10005E-03    116.35        .43640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     89.992        153.44        .21209E-03   -1.3808    
  14  Prefactor     .10000E-03    11.172        .34457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.7241        .14548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.4287        .13268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.8740        .88650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          13.148        10.407        .11045E-03   -1.4983    
  22  Prefactor     .10000E-03    7.3107        .14108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    96.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.014        8.3827        .11301E-03   -1.5075    
  25  Prefactor     .10000E-03    64.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.4699        2.0152        .85217E-04   -1.5465    
  27  norm          3.8983        8.2307        .18250E-03   -1.5313    
  28  Prefactor     .10000E-03    14.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     10.045        7.5078        .12056E-03   -1.5074    
  30  Prefactor     .10000E-03    40.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    18.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    2.6893        .85855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     13.133        8.6707        .11053E-03   -1.4983    
  34  Normalizat    .94405        .27160        .20980E-03   -.94929    
  35  Prefactor     .49267        .26221        .28576E-03   -1.1231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24493e-10
Minuit parameter uncertainties:
  1  6.66441e-06
  2  1.16247e-05
  3  3.44563e-06
  4  2.92636e-05
  5  3.93333e-06
  6  7.32138
  7  7.36024e-05
  8  9.80311
  9  34.2572
  10  9.65479e-06
  11  43.9577
  12  0.00468228
  13  154.127
  14  7.83211e-05
  15  8.56436e-06
  16  1.6997e-05
  17  2.47299e-05
  18  7.25949e-06
  19  2.25328e-06
  20  1.19676e-06
  21  10.4085
  22  2.01616e-06
  23  0.000105788
  24  8.38373
  25  3.6996e-05
  26  2.01525
  27  8.23311
  28  1.17957e-05
  29  7.50852
  30  3.88967e-05
  31  2.42616e-06
  32  1.34075e-06
  33  8.6715
  34  0.271992
  35  0.262858
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  7.259e-06  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:  4.927e-01  2.629e-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:  9.440e-01  2.720e-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: 4.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/730462/likelihoodResults_503712001_503971201_4FGL_J2317.4-4533_daily_bin1020.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) = 2875.4311599
delta logL = -0.000609031087606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2875.4305509
delta logL = -3.70400812244e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7894       1.0000          .0000       5.0000    
     3 'Normalizat'    .94409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49263       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2875.431     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      231 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1736.9        .14555E-02** at limit **
   2  alpha         1.6620        3.2286        .17392        .12649E-07
   3  Normalizat    .94404        .18344        .20980E-03   -.64359E-03
   4  Prefactor     .49267        .18555        .28577E-03   -.38364E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.66197
  Normalizat = 0.944044
  Prefactor  = 0.492672
 **********
 **   18 **HESSE 
 **********

 FCN=   2875.431     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.7981        .29110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6620        3.1018        .69567E-02   -.34183    
   3  Normalizat    .94404        .25597        .41960E-04   -.94929    
   4  Prefactor     .49267        .25876        .57154E-04   -1.1231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.94955e-10
Minuit parameter uncertainties:
  1  4.07385e-05
  2  374.322
  3  0.256302
  4  0.259385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/730462': 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) = 2875.43055081
delta logL = 6.0250840761e-08

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  4.074e-05  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  1.662e+00  3.743e+02  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:  4.927e-01  2.594e-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:  9.440e-01  2.563e-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/730462/cmap_HighResolution_503712001_503971201_4FGL_J2317.4-4533_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-05', job_status='DONE', photon_flux_upper_limit='4.10e-08', time_completed='2021-09-29 10:38:35.481677', job_id='730462', GAL2='0.49', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632937115.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='6.03e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1020' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:38:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 730462: <4FGL_J2317.4-4533_daily_bin1020> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1020> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 10:25:51 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:25:53 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:25:53 2021
Terminated at Wed Sep 29 10:38:35 2021
Results reported at Wed Sep 29 10:38:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1020 349.357 -45.5623 503712001 503971201 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 :                                   613.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            764 sec.

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

