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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1344
RA = 349.357, Dec = -45.5623
tmin = 587692801, tmax = 587952001
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='731727', job_status='RUN', time_executed='2021-09-29 10:31:36.984316', time_epoch_executed='1632936696.98' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1344'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731727

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731727/ft1_4FGL_J2317.4-4533_daily_bin1344.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731727/ft2_4FGL_J2317.4-4533_daily_bin1344.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731727/ft1_4FGL_J2317.4-4533_daily_bin1344.fits outfile=/scratch/kocevski/731727/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1344.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=587692801.0 tmax=587952001.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.45
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731727/ft1_filtered_4FGL_J2317.4-4533_daily_bin1344.fits" evtable="EVENTS" scfile=/scratch/kocevski/731727/ft2_4FGL_J2317.4-4533_daily_bin1344.fits sctable="SC_DATA" outfile=/scratch/kocevski/731727/ltcube_587692801_587952001_4FGL_J2317.4-4533_daily_bin1344.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/731727/ft2_4FGL_J2317.4-4533_daily_bin1344.fits
.....................!
real 11.99
user 11.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731727/ft1_filtered_4FGL_J2317.4-4533_daily_bin1344.fits evtable="EVENTS" scfile=/scratch/kocevski/731727/ft2_4FGL_J2317.4-4533_daily_bin1344.fits sctable="SC_DATA" expcube=/scratch/kocevski/731727/ltcube_587692801_587952001_4FGL_J2317.4-4533_daily_bin1344.fits outfile=/scratch/kocevski/731727/expmap_587692801_587952001_4FGL_J2317.4-4533_daily_bin1344.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/731727/ltcube_587692801_587952001_4FGL_J2317.4-4533_daily_bin1344.fits
.....................!
real 191.08
user 185.49
sys 4.99

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/731727/ft1_filtered_4FGL_J2317.4-4533_daily_bin1344.fits scfile=/scratch/kocevski/731727/ft2_4FGL_J2317.4-4533_daily_bin1344.fits outfile=/scratch/kocevski/731727/cmap_587692801_587952001_4FGL_J2317.4-4533_daily_bin1344.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.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731727/ft1_filtered_4FGL_J2317.4-4533_daily_bin1344.fits evtable="EVENTS" scfile=/scratch/kocevski/731727/ft2_4FGL_J2317.4-4533_daily_bin1344.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731727/Model_4FGL_J2317.4-4533_daily_bin1344.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/731727/ft1_filtered_4FGL_J2317.4-4533_daily_bin1344.fits.....................!
real 37.65
user 36.31
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0686       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6690       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6402       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.590       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.601       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4562       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .30342E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    98.994       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11045E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.7872       1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.236       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .96667       1.0000         .10000E-03   10000.    
    27 'norm      '    3.1386       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.3081       1.0000         .10000E-03   10000.    
    31 'norm      '    .10222E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.8790       1.0000         .10000E-03   10000.    
    33 'Prefactor '    8.9949       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.1024       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .87969       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=   4929.787     FROM MIGRAD    STATUS=CONVERGED    971 CALLS     5069 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.980        .56926E-06** at limit **
   2  Prefactor     .10001E-03    29.059       -.23512E-05** at limit **
   3  Prefactor     .10000E-03    16.962       -.10016E-05** at limit **
   4  Prefactor     .10000E-03    6.5132       -.61150E-07** at limit **
   5  norm          .10000E-03    2.5534        .44297E-08** at limit **
   6  Prefactor     9.0677        6.3285        .37628E-06   -.68338E-04
   7  Prefactor     .10000E-03    22.863        .82070E-06** at limit **
   8  Prefactor     3.6685        5.8581        .48343E-06    .36558E-04
   9  Prefactor     .10000E-03    18.623        .15227E-06** at limit **
  10  Prefactor     4.6411        17.813        .99607E-06   -.41395E-05
  11  Prefactor     15.619        32.655        .74186E-06    .68570E-04
  12  Prefactor     10.594        12.240        .23510E-06    .30734E-04
  13  Prefactor     .10001E-03    42.474        .22279E-05** at limit **
  14  Prefactor     8.4569        6.9135        .11034E-06   -.17237E-04
  15  Prefactor     .10518E-03    35.461       -.38806E-05** at limit **
  16  Prefactor     99.007        80.182        .14887E-05    .84134E-04
  17  Prefactor     .10000E-03    10.814        .45628E-06** at limit **
  18  norm          .10001E-03    31.150       -.27673E-05** at limit **
  19  norm          .10000E-03    21.856        .54556E-06** at limit **
  20  norm          .10000E-03    2.3360        .45375E-07** at limit **
  21  norm          .10000E-03    3.3079        .48580E-07** at limit **
  22  Prefactor     8.7916        8.7228        .24837E-05    .25905E-04
  23  Prefactor     22.234        33.485       -.11198E-06    .10467E-04
  24  norm          .10000E-03    1.4167        .51228E-07** at limit **
  25  Prefactor     .10000E-03    7.7522       -.34869E-06** at limit **
  26  norm          .96689        1.4366       -.63423E-07   -.15795E-03
  27  norm          3.1391        5.8749        .83343E-06    .93728E-04
  28  Prefactor     .10000E-03    9.7907       -.29384E-06** at limit **
  29  Prefactor     .10000E-03    1.9336       -.64648E-07** at limit **
  30  Prefactor     3.3102        23.104       -.46856E-06   -.30864E-05
  31  norm          .10108E-03    30.116       -.44176E-05** at limit **
  32  Prefactor     1.8743        5.7742        .16172E-05    .75609E-03
  33  Prefactor     8.9951        6.2640        .20466E-05   -.45407E-04
  34  Normalizat    1.1023        .21869       -.25738E-05    .25073E-03
  35  Prefactor     .87986        .21690       -.24489E-06    .14842E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100008
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.06771
  Prefactor  = 0.000100002
  Prefactor  = 3.66849
  Prefactor  = 0.0001
  Prefactor  = 4.64107
  Prefactor  = 15.6195
  Prefactor  = 10.5938
  Prefactor  = 0.000100012
  Prefactor  = 8.45689
  Prefactor  = 0.000105176
  Prefactor  = 99.007
  Prefactor  = 0.0001
  norm       = 0.000100008
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.79155
  Prefactor  = 22.2336
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.966888
  norm       = 3.13909
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.31022
  norm       = 0.000101083
  Prefactor  = 1.87428
  Prefactor  = 8.99512
  Normalizat = 1.10232
  Prefactor  = 0.879861
 **********
 **   18 **HESSE 
 **********

 FCN=   4929.787     FROM HESSE     STATUS=OK           780 CALLS     5849 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    29.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5427        .17500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.5540        .10957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.0677        6.3390        .13309E-03   -1.5106    
   7  Prefactor     .10000E-03    22.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.6685        5.8267        .20048E-03   -1.5325    
   9  Prefactor     .10000E-03    18.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.6411        17.796        .18684E-03   -1.5277    
  11  Prefactor     15.619        32.515        .10144E-03   -1.4917    
  12  Prefactor     10.594        12.196        .12305E-03   -1.5057    
  13  Prefactor     .10001E-03    43.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.4569        6.9123        .13785E-03   -1.5126    
  15  Prefactor     .10518E-03    37.158        .13335       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     99.007        80.224        .40404E-04   -1.3715    
  17  Prefactor     .10000E-03    10.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    32.397        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    22.558        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.3426        .10457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.3152        .12472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.7916        8.5712        .67609E-03   -1.5115    
  23  Prefactor     22.234        33.233        .84942E-04   -1.4765    
  24  norm          .10000E-03    1.4175        .81485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.7796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .96689        1.3125        .87592E-03   -1.5511    
  27  norm          3.1391        5.8198        .20587E-03   -1.5354    
  28  Prefactor     .10000E-03    9.8280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.9588        .95083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.3102        22.756        .22258E-03   -1.5344    
  31  norm          .10108E-03    207.42        .61491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.8743        5.0444        .24235E-03   -1.5434    
  33  Prefactor     8.9951        6.2679        .66819E-03   -1.5108    
  34  Normalizat    1.1023        .25309        .23297E-03   -.89677    
  35  Prefactor     .87986        .25215        .27637E-03   -.96848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.03043e-09
Minuit parameter uncertainties:
  1  0.000272836
  2  0.000987593
  3  0.000388605
  4  2.70443e-06
  5  3.28758e-08
  6  6.33944
  7  0.000398426
  8  5.82762
  9  4.70763e-05
  10  17.8164
  11  32.5521
  12  12.1993
  13  0.00145666
  14  6.913
  15  0.0277544
  16  80.3119
  17  0.000138336
  18  0.00103574
  19  0.000154865
  20  1.04755e-06
  21  3.56919e-06
  22  8.57237
  23  33.2607
  24  1.35276e-08
  25  4.74054e-05
  26  1.31257
  27  5.82083
  28  9.02046e-05
  29  6.9316e-07
  30  17.3676
  31  0.0300857
  32  5.04557
  33  6.26835
  34  0.253369
  35  0.25248
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  1.036e-03  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:  8.799e-01  2.525e-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.102e+00  2.534e-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.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731727/likelihoodResults_587692801_587952001_4FGL_J2317.4-4533_daily_bin1344.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) = 4929.78730762
delta logL = -0.00014720060517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4929.78716091
delta logL = -4.92033905175e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7491       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87987       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4929.787     FROM MIGRAD    STATUS=FAILED       106 CALLS      288 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10182E-03    9621.1        .45779E-02** at limit **
   2  alpha         1.8890        3.3659        .50000       -.31606E-04
   3  Normalizat    1.1023        .71022E-01    .23297E-03   -.16312E-03
   4  Prefactor     .87986        .76636E-01    .27637E-03   -.12501E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4929.787     FROM SIMPLEX   STATUS=UNCHANGED    153 CALLS      441 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10182E-03    9621.1        .22968E-02** at limit **
   2  alpha         1.8890        3.3659        .32429E-05   -.31606E-04
   3  Normalizat    1.1023        .71022E-01    .16263E-06   -.16312E-03
   4  Prefactor     .87986        .76636E-01    .12160E-06   -.12501E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4929.260     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      526 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81693        24.351        .18312E-02    .15140E-02
   2  alpha         3.6777        4.3243        .34001        .76222E-04
   3  Normalizat    1.0651        .57648E-01    .46595E-04   -.12004E-04
   4  Prefactor     .89722        .58026E-01    .11055E-04   -.61703E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.816933
  alpha      = 3.67771
  Normalizat = 1.06508
  Prefactor  = 0.897224
 **********
 **   18 **HESSE 
 **********

 FCN=   4929.260     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      555 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .81693        53.309        .68681E-04   -1.5527    
   2  alpha         3.6777        3.2254        .13257E-01    .49052    
   3  Normalizat    1.0651        .24318        .93190E-05   -.90881    
   4  Prefactor     .89722        .24808        .22110E-05   -.96238    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.29275e-11
Minuit parameter uncertainties:
  1  13.2099
  2  7.76825
  3  0.243431
  4  0.24839
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731727': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4929.25982299
delta logL = 0.527337428626

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  8.169e-01  1.321e+01  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  3.678e+00  7.768e+00  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:  8.972e-01  2.484e-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.065e+00  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.07
Ra Dec: 349.357 -45.562
Photon Index (Free Index): 3.68 +/- 7.77
Photon Flux (Free Index): 3.52e-08 +/- 7.97e-08
Energy Flux (Free Index): 6.71e-06 +/- 8.75e-06

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/731727/cmap_HighResolution_587692801_587952001_4FGL_J2317.4-4533_daily_bin1344.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.66e-05', comment='SUCCESS', energy_flux2='6.71e-06', dlogl='5.27e-01', photon_flux2='3.52e-08', job_status='DONE', time_completed='2021-09-29 10:46:10.348076', photon_index_error2='7.77', photon_index2='3.68', ts='-0.00', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='4.17e-08', energy_flux_error2='8.75e-06', EG='1.10', time_epoch_completed='1632937570.35', return_code='0', job_id='731727', GAL2='0.90', EG2='1.07', return_code2='102', photon_flux_error2='7.97e-08', ts2='1.07', photon_index='1.79' WHERE bin_id='1344' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:46:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 731727: <4FGL_J2317.4-4533_daily_bin1344> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1344> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep 29 10:31:05 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:31:06 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:31:06 2021
Terminated at Wed Sep 29 10:46:11 2021
Results reported at Wed Sep 29 10:46:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1344 349.357 -45.5623 587692801 587952001 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 :                                   862.00 sec.
    Max Memory :                                 1036 MB
    Average Memory :                             327.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

