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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1397
RA = 349.357, Dec = -45.5623
tmin = 601430401, tmax = 601689601
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='732912', job_status='RUN', time_executed='2021-09-29 10:35:49.010281', time_epoch_executed='1632936949.01' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/732912

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/732912/ft1_4FGL_J2317.4-4533_daily_bin1397.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/732912/ft2_4FGL_J2317.4-4533_daily_bin1397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/732912/ft1_4FGL_J2317.4-4533_daily_bin1397.fits outfile=/scratch/kocevski/732912/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1397.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=601430401.0 tmax=601689601.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.57
user 3.36
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/732912/ft1_filtered_4FGL_J2317.4-4533_daily_bin1397.fits" evtable="EVENTS" scfile=/scratch/kocevski/732912/ft2_4FGL_J2317.4-4533_daily_bin1397.fits sctable="SC_DATA" outfile=/scratch/kocevski/732912/ltcube_601430401_601689601_4FGL_J2317.4-4533_daily_bin1397.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/732912/ft2_4FGL_J2317.4-4533_daily_bin1397.fits
.....................!
real 12.74
user 12.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/732912/ft1_filtered_4FGL_J2317.4-4533_daily_bin1397.fits evtable="EVENTS" scfile=/scratch/kocevski/732912/ft2_4FGL_J2317.4-4533_daily_bin1397.fits sctable="SC_DATA" expcube=/scratch/kocevski/732912/ltcube_601430401_601689601_4FGL_J2317.4-4533_daily_bin1397.fits outfile=/scratch/kocevski/732912/expmap_601430401_601689601_4FGL_J2317.4-4533_daily_bin1397.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/732912/ltcube_601430401_601689601_4FGL_J2317.4-4533_daily_bin1397.fits
.....................!
real 192.64
user 187.40
sys 4.85

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/732912/ft1_filtered_4FGL_J2317.4-4533_daily_bin1397.fits scfile=/scratch/kocevski/732912/ft2_4FGL_J2317.4-4533_daily_bin1397.fits outfile=/scratch/kocevski/732912/cmap_601430401_601689601_4FGL_J2317.4-4533_daily_bin1397.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/732912/ft1_filtered_4FGL_J2317.4-4533_daily_bin1397.fits scfile=/scratch/kocevski/732912/ft2_4FGL_J2317.4-4533_daily_bin1397.fits outfile=/scratch/kocevski/732912/cmap_HighResolution_601430401_601689601_4FGL_J2317.4-4533_daily_bin1397.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=349.357 yref=-45.5623 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/732912/ft1_filtered_4FGL_J2317.4-4533_daily_bin1397.fits evtable="EVENTS" scfile=/scratch/kocevski/732912/ft2_4FGL_J2317.4-4533_daily_bin1397.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/732912/Model_4FGL_J2317.4-4533_daily_bin1397.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/732912/ft1_filtered_4FGL_J2317.4-4533_daily_bin1397.fits.....................!
real 39.98
user 38.62
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4979.55401759

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23161E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12302E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.617       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .79914E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.6740       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28275       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .96160E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3114       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.142       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .48381E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .39313E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .29593E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.939       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .24733E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3757       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2284       1.0000         .10000E-03   10000.    
    18 'norm      '    .13424E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .12311E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.3796       1.0000         .10000E-03   10000.    
    21 'norm      '    19.054       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.6478       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1417       1.0000         .10000E-03   10000.    
    24 'norm      '    1.8004       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.1822       1.0000         .10000E-03   10000.    
    26 'norm      '    1.6066       1.0000         .10000E-03   10000.    
    27 'norm      '    .11263E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.1981       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .92537       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .42296E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .11066E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    5.5397       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.9074       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .26764E-01   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=   4979.549     FROM MIGRAD    STATUS=CONVERGED    249 CALLS     2916 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.351       -.12670E-05** at limit **
   2  Prefactor     .10000E-03    7.4448       -.31703E-05** at limit **
   3  Prefactor     11.670        12.253        .53513E-05   -.96818E-02
   4  Prefactor     .10000E-03    11.532        .29121E-05** at limit **
   5  norm          5.6735        5.6157        .12891E-05   -.95079E-04
   6  Prefactor     .30075        8.2415        .17865E-05    .39692E-04
   7  Prefactor     .10036E-03    36.849        .47911E-05** at limit **
   8  Prefactor     .10000E-03    1.7678       -.55429E-06** at limit **
   9  Prefactor     4.6406        62.137        .34647E-05    .30433E-02
  10  Prefactor     12.138        28.661       -.25940E-05   -.16828E-02
  11  Prefactor     .10000E-03    9.8039       -.25542E-05** at limit **
  12  Prefactor     .10000E-03    7.5983       -.42857E-06** at limit **
  13  Prefactor     .10074E-03    109.40       -.26101E-04** at limit **
  14  Prefactor     10.935        2.5685        .27849E-05    .50070E-02
  15  Prefactor     .10002E-03    28.655        .86613E-05** at limit **
  16  Prefactor     12.414        125.50       -.91091E-05    .40136E-03
  17  Prefactor     3.2655        11.968        .17699E-04    .38746E-02
  18  norm          .18936E-03    100.61       -.37351E-04** at limit **
  19  norm          .10000E-03    2.5281        .29138E-06** at limit **
  20  norm          5.3480        5.1228        .17868E-05    .51761E-04
  21  norm          19.044        3.6100        .18889E-05    .15181E-03
  22  Prefactor     5.6567        5.7414        .24275E-05    .94188E-03
  23  Prefactor     1.1176        296.99        .16579E-03   -.10728E-02
  24  norm          1.8681        3.8992       -.97643E-05    .15392E-03
  25  Prefactor     6.1794        10.069       -.12283E-04   -.49238E-02
  26  norm          1.6077        1.1641        .56236E-06    .29946E-04
  27  norm          .10000E-03    2.2833       -.18303E-05** at limit **
  28  Prefactor     4.1679        14.888        .55246E-05    .36338E-04
  29  Prefactor     .92969        2.4839        .13012E-05    .19366E-05
  30  Prefactor     .10001E-03    18.839        .43503E-05** at limit **
  31  norm          .10000E-03    14.922        .30554E-05** at limit **
  32  Prefactor     .10000E-03    1.7478       -.58837E-07** at limit **
  33  Prefactor     5.5441        4.0892        .90274E-06    .20556E-03
  34  Normalizat    1.9071        .23921       -.12863E-04    .16804E-04
  35  Prefactor     .25828E-01    .48395        .58117E-04   -.32538E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6703
  Prefactor  = 0.0001
  norm       = 5.67348
  Prefactor  = 0.300754
  Prefactor  = 0.000100356
  Prefactor  = 0.0001
  Prefactor  = 4.64065
  Prefactor  = 12.138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100735
  Prefactor  = 10.9348
  Prefactor  = 0.00010002
  Prefactor  = 12.4143
  Prefactor  = 3.26554
  norm       = 0.000189355
  norm       = 0.0001
  norm       = 5.34799
  norm       = 19.0444
  Prefactor  = 5.6567
  Prefactor  = 1.11757
  norm       = 1.86806
  Prefactor  = 6.17936
  norm       = 1.60765
  norm       = 0.0001
  Prefactor  = 4.16793
  Prefactor  = 0.92969
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.5441
  Normalizat = 1.90707
  Prefactor  = 0.0258278
 **********
 **   18 **HESSE 
 **********

 FCN=   4979.549     FROM HESSE     STATUS=NOT POSDEF   860 CALLS     3776 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9077        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.4961        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.670        27.639        .29384E-02   -1.5025    
   4  Prefactor     .10000E-03    9.8081        .10451E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.6735        5.4467        .42159E-02   -1.5232    
   6  Prefactor     .30075        5.1056        .56544E-01   -1.5598    
   7  Prefactor     .10036E-03    33.587        .10394E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5406        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6406        75.007        .39944E-02   -1.5277    
  10  Prefactor     12.138        38.409        .28740E-02   -1.5011    
  11  Prefactor     .10000E-03    8.5241        .10587E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.6599        .10636E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10074E-03    95.912        .99216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.935        7.9129        .30284E-02   -1.5046    
  15  Prefactor     .10002E-03    25.023        .10014E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.414        192.93        .43332E-02   -1.5003    
  17  Prefactor     3.2655        12.119        .56363E-02   -1.5347    
  18  norm          .18936E-03    18.688        .90900E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.2047        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.3480        5.3671        .43316E-02   -1.5245    
  21  norm          19.044        12.324        .22939E-02   -1.4835    
  22  Prefactor     5.6567        5.4165        .42258E-02   -1.5232    
  23  Prefactor     1.1176        295.42        .70407E-02   -1.5497    
  24  norm          1.8681        3.9000        .77888E-02   -1.5435    
  25  Prefactor     6.1794        9.9568        .40365E-02   -1.5211    
  26  norm          1.6077        1.1876        .83573E-02   -1.5454    
  27  norm          .10000E-03    1.9814        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.1679        14.818        .49172E-02   -1.5300    
  29  Prefactor     .92969        2.7728        .12899E-01   -1.5515    
  30  Prefactor     .10001E-03    16.526        .10619E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    13.035        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    1.5197        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     5.5441        4.0159        .42675E-02   -1.5237    
  34  Normalizat    1.9071        1.2307        .41253E-01   -.66901    
  35  Prefactor     .25828E-01    8.5293        .18790       -1.4691    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.64193e-06
Minuit parameter uncertainties:
  1  2.18468e-05
  2  4.13379e-05
  3  27.6691
  4  3.41587e-05
  5  5.44718
  6  2.47816
  7  0.00692129
  8  1.87056e-06
  9  37.3689
  10  38.4875
  11  1.84399e-05
  12  2.90978e-05
  13  0.0168192
  14  7.91369
  15  0.00142683
  16  98.2576
  17  12.1285
  18  0.0817545
  19  2.97454e-06
  20  5.36759
  21  12.3252
  22  5.41692
  23  36.522
  24  3.90049
  25  9.95944
  26  1.18761
  27  7.45173e-06
  28  14.8311
  29  2.77317
  30  0.000865612
  31  9.455e-05
  32  6.53743e-06
  33  4.01605
  34  1.25193
  35  1.06713
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4979.54869314

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.894e-04  8.175e-02  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:  2.583e-02  1.067e+00  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.907e+00  1.252e+00  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.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/732912/likelihoodResults_601430401_601689601_4FGL_J2317.4-4533_daily_bin1397.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) = 4979.54870952
delta logL = -1.63754002642e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4978.72170615
delta logL = 0.82698698904

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .98608       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8575       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8365       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61865E-01   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=   4978.722     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      308 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98511        13.690        .13027E-01    .71018E-03
   2  alpha         3.8575        4.0171        .26595        .60241E-04
   3  Normalizat    1.8356        .44352E-01    .41781E-01   -.25428E-04
   4  Prefactor     .62832E-01    .39342E-01    .20207        .11408E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.985113
  alpha      = 3.85746
  Normalizat = 1.83557
  Prefactor  = 0.0628325
 **********
 **   18 **HESSE 
 **********

 FCN=   4978.722     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      345 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .98511        35.668        .59176E-03   -1.5509    
   2  alpha         3.8575        4.3686        .10465E-01    .57399    
   3  Normalizat    1.8356        .19275        .18465E-03   -.68739    
   4  Prefactor     .62832E-01    .19295        .80017E-02   -1.4121    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.67785e-08
Minuit parameter uncertainties:
  1  11.8623
  2  5.15625
  3  0.192829
  4  0.194923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/732912': 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) = 4978.72169491
delta logL = 0.826998228606

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  9.851e-01  1.186e+01  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  3.857e+00  5.156e+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:  6.283e-02  1.949e-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.836e+00  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.70
Ra Dec: 349.357 -45.562
Photon Index (Free Index): 3.86 +/- 5.16
Photon Flux (Free Index): 6.48e-08 +/- 5.56e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.81e-05

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/732912/cmap_HighResolution_601430401_601689601_4FGL_J2317.4-4533_daily_bin1397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-05', comment='SUCCESS', energy_flux2='1.17e-05', dlogl='8.27e-01', photon_flux2='6.48e-08', job_status='DONE', time_completed='2021-09-29 10:49:02.103131', photon_index_error2='5.16', photon_index2='3.86', ts='-0.00', fit_tolerance='1e-08', GAL='0.03', photon_index_error='0.00', photon_flux_upper_limit='4.32e-08', energy_flux_error2='1.81e-05', EG='1.91', time_epoch_completed='1632937742.1', return_code='102', job_id='732912', GAL2='0.06', EG2='1.84', return_code2='102', photon_flux_error2='5.56e-08', ts2='1.70', photon_index='1.79' WHERE bin_id='1397' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:49:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 732912: <4FGL_J2317.4-4533_daily_bin1397> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1397> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 29 10:35:22 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:35:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 10:35:23 2021
Terminated at Wed Sep 29 10:49:02 2021
Results reported at Wed Sep 29 10:49:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1397 349.357 -45.5623 601430401 601689601 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.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            820 sec.

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

