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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1431
RA = 349.357, Dec = -45.5623
tmin = 610243201, tmax = 610502401
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='732964', job_status='RUN', time_executed='2021-09-29 10:36:10.546725', time_epoch_executed='1632936970.55' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/732964

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/732964/ft1_4FGL_J2317.4-4533_daily_bin1431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/732964/ft2_4FGL_J2317.4-4533_daily_bin1431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/732964/ft1_4FGL_J2317.4-4533_daily_bin1431.fits outfile=/scratch/kocevski/732964/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1431.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=610243201.0 tmax=610502401.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.92
user 3.70
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/732964/ft1_filtered_4FGL_J2317.4-4533_daily_bin1431.fits" evtable="EVENTS" scfile=/scratch/kocevski/732964/ft2_4FGL_J2317.4-4533_daily_bin1431.fits sctable="SC_DATA" outfile=/scratch/kocevski/732964/ltcube_610243201_610502401_4FGL_J2317.4-4533_daily_bin1431.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/732964/ft2_4FGL_J2317.4-4533_daily_bin1431.fits
.....................!
real 12.13
user 11.78
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/732964/ft1_filtered_4FGL_J2317.4-4533_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/732964/ft2_4FGL_J2317.4-4533_daily_bin1431.fits sctable="SC_DATA" expcube=/scratch/kocevski/732964/ltcube_610243201_610502401_4FGL_J2317.4-4533_daily_bin1431.fits outfile=/scratch/kocevski/732964/expmap_610243201_610502401_4FGL_J2317.4-4533_daily_bin1431.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/732964/ltcube_610243201_610502401_4FGL_J2317.4-4533_daily_bin1431.fits
.....................!
real 191.24
user 185.71
sys 5.21

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/732964/ft1_filtered_4FGL_J2317.4-4533_daily_bin1431.fits scfile=/scratch/kocevski/732964/ft2_4FGL_J2317.4-4533_daily_bin1431.fits outfile=/scratch/kocevski/732964/cmap_610243201_610502401_4FGL_J2317.4-4533_daily_bin1431.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/732964/ft1_filtered_4FGL_J2317.4-4533_daily_bin1431.fits scfile=/scratch/kocevski/732964/ft2_4FGL_J2317.4-4533_daily_bin1431.fits outfile=/scratch/kocevski/732964/cmap_HighResolution_610243201_610502401_4FGL_J2317.4-4533_daily_bin1431.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.56
user 0.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/732964/ft1_filtered_4FGL_J2317.4-4533_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/732964/ft2_4FGL_J2317.4-4533_daily_bin1431.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/732964/Model_4FGL_J2317.4-4533_daily_bin1431.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/732964/ft1_filtered_4FGL_J2317.4-4533_daily_bin1431.fits.....................!
real 40.34
user 39.06
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    6.3966       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.828       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11033E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.6346       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3162       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.280       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.765       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12462       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    75.347       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.5270       1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.0886       1.0000         .10000E-03   10000.    
    21 'norm      '    16.495       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.125       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.0227       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.7698       1.0000         .10000E-03   10000.    
    26 'norm      '    1.2468       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.3838       1.0000         .10000E-03   10000.    
    30 'Prefactor '    14.967       1.0000         .10000E-03   10000.    
    31 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.1093       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .93708       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5181.491     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     4206 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    8.2310        .31798E-05** at limit **
   2  Prefactor     6.3966        1.2386        .68313E-06   -.26937E-03
   3  Prefactor     19.813        1.5409       -.48954E-08    .14250E-03
   4  Prefactor     .10006E-03    10.203        .45363E-05** at limit **
   5  norm          3.6342        5.0623       -.71143E-05   -.28085E-02
   6  Prefactor     .10000E-03    2.0420       -.31066E-07** at limit **
   7  Prefactor     .10204E-03    53.223        .39026E-05** at limit **
   8  Prefactor     4.3165        7.3311       -.65177E-05   -.28440E-02
   9  Prefactor     20.281        1.0082        .60964E-07   -.12556E-03
  10  Prefactor     .10000E-03    5.4555       -.17693E-05** at limit **
  11  Prefactor     28.800        11.856        .40261E-05   -.12608E-01
  12  Prefactor     .10480E-03    402.40        .13180E-04** at limit **
  13  Prefactor     .10020E-03    23.389       -.10221E-05** at limit **
  14  Prefactor     .10000E-03    4.2189       -.17949E-06** at limit **
  15  Prefactor     .10015E-03    16.077       -.59229E-05** at limit **
  16  Prefactor     75.347        1.0423       -.66005E-07    .55761E-03
  17  Prefactor     .10000E-03    7.3412        .10590E-06** at limit **
  18  norm          4.5257        1.0770       -.34500E-07    .17169E-03
  19  norm          .10000E-03    3.8513       -.11169E-06** at limit **
  20  norm          4.0885        3.9966       -.11832E-06    .55549E-04
  21  norm          16.494        1.0688        .15611E-06    .17804E-03
  22  Prefactor     17.127        1.0536        .57718E-07    .56003E-03
  23  Prefactor     4.0208        1.2037        .58945E-06   -.11310E-03
  24  norm          .10000E-03    1.1371       -.95851E-07** at limit **
  25  Prefactor     4.7683        1.2124        .62629E-06   -.14157E-04
  26  norm          1.2468        1.1018       -.34098E-07    .30095E-03
  27  norm          .10000E-03    1.2057       -.52507E-07** at limit **
  28  Prefactor     .10000E-03    13.282        .67060E-06** at limit **
  29  Prefactor     1.3856        3.4577       -.29190E-06    .12316E-05
  30  Prefactor     14.957        1.4219        .51470E-06   -.64831E-03
  31  norm          .10002E-03    20.191       -.26749E-05** at limit **
  32  Prefactor     .10000E-03    2.1597        .28060E-07** at limit **
  33  Prefactor     .10000E-03    4.8238        .53290E-07** at limit **
  34  Normalizat    1.1091        .23419       -.13218E-05   -.15178E-03
  35  Prefactor     .93738        .25015        .27412E-05   -.92727E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100042
  Prefactor  = 6.39657
  Prefactor  = 19.813
  Prefactor  = 0.00010006
  norm       = 3.63418
  Prefactor  = 0.0001
  Prefactor  = 0.000102041
  Prefactor  = 4.31651
  Prefactor  = 20.2805
  Prefactor  = 0.0001
  Prefactor  = 28.7996
  Prefactor  = 0.0001048
  Prefactor  = 0.000100196
  Prefactor  = 0.0001
  Prefactor  = 0.000100151
  Prefactor  = 75.347
  Prefactor  = 0.0001
  norm       = 4.52566
  norm       = 0.0001
  norm       = 4.08845
  norm       = 16.4943
  Prefactor  = 17.1273
  Prefactor  = 4.02085
  norm       = 0.0001
  Prefactor  = 4.76827
  norm       = 1.24685
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 1.38557
  Prefactor  = 14.9567
  norm       = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10911
  Prefactor  = 0.93738
 **********
 **   18 **HESSE 
 **********

 FCN=   5181.491     FROM HESSE     STATUS=OK           844 CALLS     5050 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    20.606        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.3966        20.993        .39674E-02   -1.5202    
   3  Prefactor     19.813        36.464        .22487E-02   -1.4817    
   4  Prefactor     .10006E-03    20.414        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.6342        5.0805        .52977E-02   -1.5327    
   6  Prefactor     .10000E-03    2.0207        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10204E-03    56.497        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.3165        7.4930        .48475E-02   -1.5292    
   9  Prefactor     20.281        20.984        .22235E-02   -1.4807    
  10  Prefactor     .10000E-03    19.934        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.800        36.028        .18675E-02   -1.4634    
  12  Prefactor     .10480E-03    7.5004        .96280E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10020E-03    42.951        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.2012        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10015E-03    19.203        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     75.347        61.213        .11564E-02   -1.3970    
  17  Prefactor     .10000E-03    7.3479        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.5257        13.062        .47304E-02   -1.5282    
  19  norm          .10000E-03    3.8461        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.0885        4.2661        .49846E-02   -1.5304    
  21  norm          16.494        10.494        .24654E-02   -1.4895    
  22  Prefactor     17.127        11.625        .24196E-02   -1.4880    
  23  Prefactor     4.0208        21.893        .50265E-02   -1.5307    
  24  norm          .10000E-03    1.1342        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.7683        19.203        .46056E-02   -1.5271    
  26  norm          1.2468        1.1479        .10023E-01   -1.5485    
  27  norm          .10000E-03    1.2031        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    13.227        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.3856        4.3468        .92453E-02   -1.5473    
  30  Prefactor     14.957        30.228        .25883E-02   -1.4934    
  31  norm          .10002E-03    43.567        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    2.1438        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    4.7130        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.1091        .20853        .37633E-01   -.89460    
  35  Prefactor     .93738        .21582        .45476E-01   -.94847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.57159e-07
Minuit parameter uncertainties:
  1  0.0018686
  2  21.0172
  3  36.5045
  4  0.00222222
  5  5.08113
  6  2.38751e-05
  7  0.0214959
  8  7.49466
  9  20.9921
  10  9.84215e-05
  11  36.0548
  12  0.0120018
  13  0.00581059
  14  5.95962e-05
  15  0.00340134
  16  61.2644
  17  8.52138e-05
  18  13.0704
  19  1.20334e-05
  20  4.26644
  21  10.4952
  22  11.6264
  23  18.7752
  24  3.17518e-06
  25  19.1482
  26  1.14792
  27  7.08895e-06
  28  0.000439455
  29  4.34779
  30  30.259
  31  0.00186353
  32  7.54824e-07
  33  6.07121e-05
  34  0.208684
  35  0.216015
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  4.526e+00  1.307e+01  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.374e-01  2.160e-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.109e+00  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/732964/likelihoodResults_610243201_610502401_4FGL_J2317.4-4533_daily_bin1431.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) = 5181.10707596
delta logL = 0.38383218178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5181.09371765
delta logL = 0.397190486697

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4788       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9866       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0854       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94512       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5181.094     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      217 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4846        126.66        .54200E-02    .35668E-03
   2  alpha         2.9880        3.8610        .25956        .53929E-04
   3  Normalizat    1.0858        .68095E-01    .38628E-01   -.16049E-05
   4  Prefactor     .94475        .62804E-01    .45577E-01    .76511E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.48458
  alpha      = 2.98799
  Normalizat = 1.08575
  Prefactor  = 0.944752
 **********
 **   18 **HESSE 
 **********

 FCN=   5181.094     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4846        12.149        .15188E-03   -1.5335    
   2  alpha         2.9880        1.7940        .14984E-01    .19646    
   3  Normalizat    1.0858        .24096        .23773E-03   -.90211    
   4  Prefactor     .94475        .25432        .27073E-03   -.94594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41881e-08
Minuit parameter uncertainties:
  1  12.158
  2  2.01243
  3  0.241206
  4  0.25464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/732964': 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) = 5181.09370955
delta logL = 0.397198594505

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  3.485e+00  1.216e+01  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  2.988e+00  2.012e+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:  9.448e-01  2.546e-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.086e+00  2.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
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/732964/cmap_HighResolution_610243201_610502401_4FGL_J2317.4-4533_daily_bin1431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-05', job_status='DONE', photon_flux_upper_limit='4.55e-08', time_completed='2021-09-29 10:50:19.574211', job_id='732964', GAL2='0.94', fit_tolerance='1e-08', EG2='1.09', EG='1.11', time_epoch_completed='1632937819.57', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='3.97e-01', ts2='0.94', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1431' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:50:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 732964: <4FGL_J2317.4-4533_daily_bin1431> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1431> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 29 10:35:26 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:35:28 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:28 2021
Terminated at Wed Sep 29 10:50:20 2021
Results reported at Wed Sep 29 10:50:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1431 349.357 -45.5623 610243201 610502401 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 :                                   817.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            894 sec.

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

