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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1533
RA = 349.357, Dec = -45.5623
tmin = 636681601, tmax = 636940801
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='733120', job_status='RUN', time_executed='2021-09-29 10:35:57.615810', time_epoch_executed='1632936957.62' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1533'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733120

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733120/ft1_4FGL_J2317.4-4533_daily_bin1533.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733120/ft2_4FGL_J2317.4-4533_daily_bin1533.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733120/ft1_4FGL_J2317.4-4533_daily_bin1533.fits outfile=/scratch/kocevski/733120/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1533.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=636681601.0 tmax=636940801.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.21
user 4.91
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/733120/ft2_4FGL_J2317.4-4533_daily_bin1533.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/733120/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1533.fits evtable="EVENTS" outfile="/scratch/kocevski/733120/ft1_filtered_4FGL_J2317.4-4533_daily_bin1533.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733120/ft1_filtered_4FGL_J2317.4-4533_daily_bin1533.fits" evtable="EVENTS" scfile=/scratch/kocevski/733120/ft2_4FGL_J2317.4-4533_daily_bin1533.fits sctable="SC_DATA" outfile=/scratch/kocevski/733120/ltcube_636681601_636940801_4FGL_J2317.4-4533_daily_bin1533.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/733120/ft2_4FGL_J2317.4-4533_daily_bin1533.fits
.....................!
real 11.76
user 11.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733120/ft1_filtered_4FGL_J2317.4-4533_daily_bin1533.fits evtable="EVENTS" scfile=/scratch/kocevski/733120/ft2_4FGL_J2317.4-4533_daily_bin1533.fits sctable="SC_DATA" expcube=/scratch/kocevski/733120/ltcube_636681601_636940801_4FGL_J2317.4-4533_daily_bin1533.fits outfile=/scratch/kocevski/733120/expmap_636681601_636940801_4FGL_J2317.4-4533_daily_bin1533.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/733120/ltcube_636681601_636940801_4FGL_J2317.4-4533_daily_bin1533.fits
.....................!
real 190.81
user 185.30
sys 5.07

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/733120/ft1_filtered_4FGL_J2317.4-4533_daily_bin1533.fits scfile=/scratch/kocevski/733120/ft2_4FGL_J2317.4-4533_daily_bin1533.fits outfile=/scratch/kocevski/733120/cmap_636681601_636940801_4FGL_J2317.4-4533_daily_bin1533.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.87
user 0.37
sys 0.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733120/ft1_filtered_4FGL_J2317.4-4533_daily_bin1533.fits scfile=/scratch/kocevski/733120/ft2_4FGL_J2317.4-4533_daily_bin1533.fits outfile=/scratch/kocevski/733120/cmap_HighResolution_636681601_636940801_4FGL_J2317.4-4533_daily_bin1533.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.59
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733120/ft1_filtered_4FGL_J2317.4-4533_daily_bin1533.fits evtable="EVENTS" scfile=/scratch/kocevski/733120/ft2_4FGL_J2317.4-4533_daily_bin1533.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733120/Model_4FGL_J2317.4-4533_daily_bin1533.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/733120/ft1_filtered_4FGL_J2317.4-4533_daily_bin1533.fits.....................!
real 36.04
user 34.71
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.2535       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .70696E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.841       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0225       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.364       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.617       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12378E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.115       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.307       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.899       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.4682       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    12.792       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    10.428       1.0000         .10000E-03   10000.    
    28 'Prefactor '    22.693       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    1.1427       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.1839       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .96775       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=   4308.096     FROM MIGRAD    STATUS=CONVERGED   1000 CALLS     5117 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.503       -.76828E-07** at limit **
   2  Prefactor     .10000E-03    13.475       -.97044E-07** at limit **
   3  Prefactor     .10000E-03    11.811       -.77729E-07** at limit **
   4  Prefactor     .10000E-03    10.431       -.10184E-06** at limit **
   5  norm          4.2542        7.7079        .21520E-06   -.28805E-04
   6  Prefactor     .10001E-03    3.1295       -.53351E-06** at limit **
   7  Prefactor     30.856        44.364        .77332E-06    .13743E-04
   8  Prefactor     1.0191        7.4441        .18055E-05   -.14085E-03
   9  Prefactor     33.363        39.417        .24352E-06    .20351E-05
  10  Prefactor     .10000E-03    13.242       -.12542E-06** at limit **
  11  Prefactor     13.547        33.040       -.35252E-05   -.93698E-04
  12  Prefactor     .10000E-03    12.361        .54775E-05** at limit **
  13  Prefactor     11.310        153.80       -.18404E-05    .80029E-05
  14  Prefactor     .10000E-03    8.2007       -.25829E-06** at limit **
  15  Prefactor     12.314        43.202       -.18298E-05   -.27049E-04
  16  Prefactor     .10000E-03    25.888       -.40622E-07** at limit **
  17  Prefactor     28.889        22.867        .17770E-07    .30587E-04
  18  norm          .10000E-03    4.9778       -.30659E-07** at limit **
  19  norm          2.4642        8.8657        .12717E-05    .48467E-04
  20  norm          .10000E-03    2.3913       -.20085E-07** at limit **
  21  norm          12.789        13.110        .16332E-06    .22562E-04
  22  Prefactor     .10000E-03    4.9380       -.24755E-06** at limit **
  23  Prefactor     .10000E-03    37.620       -.16745E-06** at limit **
  24  norm          .10000E-03    3.8087       -.70944E-06** at limit **
  25  Prefactor     .10000E-03    4.3550       -.37780E-07** at limit **
  26  norm          .10000E-03    1.1005       -.18599E-06** at limit **
  27  norm          10.426        6.5296        .12983E-06    .18716E-03
  28  Prefactor     22.687        21.268        .14176E-06    .61847E-05
  29  Prefactor     .10000E-03    1.0960       -.41736E-07** at limit **
  30  Prefactor     .10000E-03    55.950       -.10443E-05** at limit **
  31  norm          .10000E-03    8.8800       -.42220E-07** at limit **
  32  Prefactor     .10000E-03    2.7471       -.62387E-07** at limit **
  33  Prefactor     1.1421        3.3396        .60725E-06    .22336E-04
  34  Normalizat    1.1844        .22747       -.37487E-06   -.10324E-05
  35  Prefactor     .96732        .23756       -.16879E-06   -.54888E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.25424
  Prefactor  = 0.000100008
  Prefactor  = 30.8559
  Prefactor  = 1.01909
  Prefactor  = 33.3633
  Prefactor  = 0.0001
  Prefactor  = 13.5468
  Prefactor  = 0.0001
  Prefactor  = 11.3105
  Prefactor  = 0.0001
  Prefactor  = 12.3144
  Prefactor  = 0.0001
  Prefactor  = 28.8892
  norm       = 0.0001
  norm       = 2.46419
  norm       = 0.0001
  norm       = 12.7891
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.4261
  Prefactor  = 22.6868
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.14212
  Normalizat = 1.1844
  Prefactor  = 0.967323
 **********
 **   18 **HESSE 
 **********

 FCN=   4308.096     FROM HESSE     STATUS=OK           774 CALLS     5891 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.2542        7.7009        .19537E-03   -1.5295    
   6  Prefactor     .10001E-03    14.609        .21475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.856        44.130        .72148E-04   -1.4596    
   8  Prefactor     1.0191        12.284        .30575E-02   -1.5506    
   9  Prefactor     33.363        39.428        .69374E-04   -1.4552    
  10  Prefactor     .10000E-03    13.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.547        33.418        .10854E-03   -1.4972    
  12  Prefactor     .10000E-03    12.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.310        149.99        .12017E-03   -1.5035    
  14  Prefactor     .10000E-03    8.2826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.314        42.994        .11418E-03   -1.5006    
  16  Prefactor     .10000E-03    25.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.889        22.482        .74527E-04   -1.4632    
  18  norm          .10000E-03    4.9792        .14303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.4642        8.6058        .26028E-03   -1.5394    
  20  norm          .10000E-03    2.3932        .99111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          12.789        13.096        .11200E-03   -1.4993    
  22  Prefactor     .10000E-03    4.9870        .14204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    37.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    8.3517        .24082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.3582        .13377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.3580        .12599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          10.426        6.4279        .12408E-03   -1.5062    
  28  Prefactor     22.687        21.295        .84084E-04   -1.4755    
  29  Prefactor     .10000E-03    1.1014        .67090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    57.617        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    8.8818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    2.7696        .10620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     1.1421        3.2734        .19758E-03   -1.5494    
  34  Normalizat    1.1844        .27499        .23494E-03   -.87086    
  35  Prefactor     .96732        .28800        .27356E-03   -.93827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82814e-08
Minuit parameter uncertainties:
  1  1.18564e-05
  2  6.33889e-06
  3  9.93858e-06
  4  1.20836e-05
  5  7.70267
  6  0.000681538
  7  44.1767
  8  7.07776
  9  39.4586
  10  7.87914e-06
  11  33.4644
  12  3.21492e-06
  13  82.6306
  14  1.21276e-05
  15  43.102
  16  1.55046e-05
  17  22.4889
  18  4.92158e-08
  19  8.61007
  20  1.70522e-06
  21  13.0993
  22  1.21291e-05
  23  4.82257e-05
  24  0.000291069
  25  1.25019e-07
  26  7.21007e-06
  27  6.42828
  28  21.3023
  29  7.02918e-07
  30  5.94517e-05
  31  2.66349e-06
  32  1.66845e-06
  33  3.27389
  34  0.275322
  35  0.288461
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  4.922e-08  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:  9.673e-01  2.885e-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.184e+00  2.753e-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: 3.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733120/likelihoodResults_636681601_636940801_4FGL_J2317.4-4533_daily_bin1533.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) = 4308.09706119
delta logL = -0.00090881986398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4308.09615237
delta logL = 1.80443748832e-09

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.7891       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1844       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96732       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=   4308.096     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      237 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    344.61        .14311E-02** at limit **
   2  alpha         1.6138        2.5943        .17393       -.71902E-09
   3  Normalizat    1.1844        .26498        .23494E-03    .33873E-05
   4  Prefactor     .96732        .28337        .27356E-03    .22192E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.61384
  Normalizat = 1.1844
  Prefactor  = 0.967323
 **********
 **   18 **HESSE 
 **********

 FCN=   4308.096     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.0526        .28623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6138        3.0923        .69570E-02   -.36234    
   3  Normalizat    1.1844        .26534        .93975E-05   -.87086    
   4  Prefactor     .96732        .28375        .10942E-04   -.93827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66452e-12
Minuit parameter uncertainties:
  1  2.85462e-06
  2  327.352
  3  0.265643
  4  0.284188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733120': 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) = 4308.09615223
delta logL = 1.44984369399e-07

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  2.855e-06  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  1.614e+00  3.274e+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:  9.673e-01  2.842e-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.184e+00  2.656e-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/733120/cmap_HighResolution_636681601_636940801_4FGL_J2317.4-4533_daily_bin1533.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.45e-05', job_status='DONE', photon_flux_upper_limit='3.09e-08', time_completed='2021-09-29 10:49:27.106677', job_id='733120', GAL2='0.97', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1632937767.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1533' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:49:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 733120: <4FGL_J2317.4-4533_daily_bin1533> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1533> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 29 10:35:41 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:35:42 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:35:42 2021
Terminated at Wed Sep 29 10:49:27 2021
Results reported at Wed Sep 29 10:49:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1533 349.357 -45.5623 636681601 636940801 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 :                                   784.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            826 sec.

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

