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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1467
RA = 349.357, Dec = -45.5623
tmin = 619574401, tmax = 619833601
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='733019', job_status='RUN', time_executed='2021-09-29 10:36:02.527380', time_epoch_executed='1632936962.53' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1467'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733019

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733019/ft1_4FGL_J2317.4-4533_daily_bin1467.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733019/ft2_4FGL_J2317.4-4533_daily_bin1467.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733019/ft1_4FGL_J2317.4-4533_daily_bin1467.fits outfile=/scratch/kocevski/733019/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1467.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=619574401.0 tmax=619833601.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.32
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/733019/ft2_4FGL_J2317.4-4533_daily_bin1467.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/733019/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1467.fits evtable="EVENTS" outfile="/scratch/kocevski/733019/ft1_filtered_4FGL_J2317.4-4533_daily_bin1467.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.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733019/ft1_filtered_4FGL_J2317.4-4533_daily_bin1467.fits" evtable="EVENTS" scfile=/scratch/kocevski/733019/ft2_4FGL_J2317.4-4533_daily_bin1467.fits sctable="SC_DATA" outfile=/scratch/kocevski/733019/ltcube_619574401_619833601_4FGL_J2317.4-4533_daily_bin1467.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/733019/ft2_4FGL_J2317.4-4533_daily_bin1467.fits
.....................!
real 13.05
user 12.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733019/ft1_filtered_4FGL_J2317.4-4533_daily_bin1467.fits evtable="EVENTS" scfile=/scratch/kocevski/733019/ft2_4FGL_J2317.4-4533_daily_bin1467.fits sctable="SC_DATA" expcube=/scratch/kocevski/733019/ltcube_619574401_619833601_4FGL_J2317.4-4533_daily_bin1467.fits outfile=/scratch/kocevski/733019/expmap_619574401_619833601_4FGL_J2317.4-4533_daily_bin1467.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/733019/ltcube_619574401_619833601_4FGL_J2317.4-4533_daily_bin1467.fits
.....................!
real 191.71
user 185.50
sys 5.65

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/733019/ft1_filtered_4FGL_J2317.4-4533_daily_bin1467.fits scfile=/scratch/kocevski/733019/ft2_4FGL_J2317.4-4533_daily_bin1467.fits outfile=/scratch/kocevski/733019/cmap_619574401_619833601_4FGL_J2317.4-4533_daily_bin1467.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=349.357 yref=-45.5623 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733019/ft1_filtered_4FGL_J2317.4-4533_daily_bin1467.fits evtable="EVENTS" scfile=/scratch/kocevski/733019/ft2_4FGL_J2317.4-4533_daily_bin1467.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733019/Model_4FGL_J2317.4-4533_daily_bin1467.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/733019/ft1_filtered_4FGL_J2317.4-4533_daily_bin1467.fits.....................!
real 37.30
user 35.94
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.338       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.330       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6789       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .34951E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    93.051       1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.116       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.658       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16730E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.519       1.0000         .10000E-03   10000.    
    18 'norm      '    16.094       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.0692       1.0000         .10000E-03   10000.    
    21 'norm      '    6.1351       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.6487       1.0000         .10000E-03   10000.    
    23 'Prefactor '    90.638       1.0000         .10000E-03   10000.    
    24 'norm      '    .18463E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    9.4348       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    15.823       1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .36839E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .75479       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.0726       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=   4654.639     FROM MIGRAD    STATUS=CONVERGED    969 CALLS     5086 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.530        .39512E-05** at limit **
   2  Prefactor     .10000E-03    5.9971       -.27166E-08** at limit **
   3  Prefactor     21.282        36.836       -.12998E-04   -.21755E-04
   4  Prefactor     12.330        10.923        .51649E-06    .93520E-05
   5  norm          1.6816        7.9574       -.20257E-05   -.48529E-03
   6  Prefactor     .10001E-03    2.1780       -.41870E-06** at limit **
   7  Prefactor     .10000E-03    28.742        .97116E-06** at limit **
   8  Prefactor     .10000E-03    2.1120       -.35002E-08** at limit **
   9  Prefactor     93.041        62.115       -.68816E-05    .23659E-04
  10  Prefactor     32.117        28.983        .56142E-06    .26331E-04
  11  Prefactor     .10000E-03    19.193       -.88157E-06** at limit **
  12  Prefactor     22.635        14.451       -.17422E-05   -.30698E-04
  13  Prefactor     .10000E-03    218.27       -.22460E-05** at limit **
  14  Prefactor     .10000E-03    2.2810        .69820E-08** at limit **
  15  Prefactor     .10000E-03    58.140        .27906E-04** at limit **
  16  Prefactor     .10000E-03    51.424       -.24843E-04** at limit **
  17  Prefactor     12.517        12.349       -.22041E-06   -.61985E-04
  18  norm          16.097        14.966        .86240E-07    .26787E-04
  19  norm          .10000E-03    3.7067        .11372E-06** at limit **
  20  norm          6.0700        5.7532        .34756E-05    .52157E-04
  21  norm          6.1347        7.5878       -.64678E-06   -.85087E-04
  22  Prefactor     2.6473        7.6524       -.46425E-05   -.53554E-03
  23  Prefactor     90.648        54.641        .38933E-05    .87340E-05
  24  norm          .10000E-03    6.6758       -.78001E-07** at limit **
  25  Prefactor     .10000E-03    20.694       -.18063E-05** at limit **
  26  norm          .10000E-03    .55371        .34157E-06** at limit **
  27  norm          9.4393        7.0053       -.31672E-05   -.14083E-03
  28  Prefactor     .10000E-03    9.5856       -.77243E-06** at limit **
  29  Prefactor     .10000E-03    1.0869        .47992E-07** at limit **
  30  Prefactor     15.825        16.274        .78793E-06   -.23921E-04
  31  norm          .10000E-03    10.093        .54413E-06** at limit **
  32  Prefactor     .10000E-03    2.9917        .25398E-06** at limit **
  33  Prefactor     .10000E-03    1.5135       -.14050E-07** at limit **
  34  Normalizat    .75559        .20742        .24673E-05   -.36780E-04
  35  Prefactor     1.0717        .21912        .91739E-06    .17777E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.2816
  Prefactor  = 12.33
  norm       = 1.68161
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 93.0405
  Prefactor  = 32.1168
  Prefactor  = 0.0001
  Prefactor  = 22.6352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5171
  norm       = 16.0969
  norm       = 0.0001
  norm       = 6.07003
  norm       = 6.13466
  Prefactor  = 2.64731
  Prefactor  = 90.6483
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 9.43927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8251
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 0.755592
  Prefactor  = 1.07165
 **********
 **   18 **HESSE 
 **********

 FCN=   4654.639     FROM HESSE     STATUS=OK           772 CALLS     5858 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.9991        .16318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.282        36.592        .86710E-04   -1.4785    
   4  Prefactor     12.330        10.921        .11408E-03   -1.5006    
   5  norm          1.6816        8.0650        .32515E-03   -1.5449    
   6  Prefactor     .10001E-03    69.596        .19178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.1183        .96806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     93.041        61.985        .41662E-04   -1.3776    
  10  Prefactor     32.117        28.964        .70705E-04   -1.4574    
  11  Prefactor     .10000E-03    19.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.635        14.422        .84150E-04   -1.4756    
  13  Prefactor     .10000E-03    219.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.2848        .10063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    57.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    51.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.517        12.310        .11321E-03   -1.5000    
  18  norm          16.097        14.958        .99837E-04   -1.4905    
  19  norm          .10000E-03    3.7133        .12821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.0700        5.7410        .15252E-03   -1.5215    
  21  norm          6.1347        7.5821        .16208E-03   -1.5213    
  22  Prefactor     2.6473        7.4514        .25049E-03   -1.5383    
  23  Prefactor     90.648        54.507        .42207E-04   -1.3801    
  24  norm          .10000E-03    6.7280        .34098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    20.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .84793        .94507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          9.4393        7.0057        .13047E-03   -1.5093    
  28  Prefactor     .10000E-03    9.6011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.0950        .69409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     15.825        16.242        .10069E-03   -1.4912    
  31  norm          .10000E-03    10.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    13.656        .22357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    1.5269        .81948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .75559        .24074        .25809E-03   -1.0174    
  35  Prefactor     1.0717        .25781        .24228E-03   -.90378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20764e-09
Minuit parameter uncertainties:
  1  1.18549e-05
  2  1.23732e-05
  3  36.6307
  4  10.9224
  5  7.36678
  6  0.00160766
  7  1.60316e-05
  8  3.13187e-06
  9  62.0279
  10  28.9762
  11  3.82073e-05
  12  14.4241
  13  0.000243164
  14  2.41359e-06
  15  0.000142307
  16  7.04641e-05
  17  12.3121
  18  14.9611
  19  2.15884e-05
  20  5.74149
  21  7.58325
  22  7.45398
  23  54.5374
  24  6.72059e-05
  25  0.000328312
  26  3.04268e-05
  27  7.00633
  28  1.17727e-05
  29  3.61412e-06
  30  16.2461
  31  2.40793e-06
  32  0.000404614
  33  6.51828e-07
  34  0.241082
  35  0.258112
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.610e+01  1.496e+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:  1.072e+00  2.581e-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:  7.556e-01  2.411e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.17
Ra Dec: 349.357 -45.562
Photon Index (Fixed Index): 1.79 +/- 0.00
Photon Flux (Fixed Index): 1.77e-08 +/- 1.65e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 1.84e-05

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) = 4654.38132297
delta logL = 0.257208321781

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4654.28154095
delta logL = 0.356990336045

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6954       1.0000         .10000E-03   10000.    
     2 'alpha     '    .91704       1.0000          .0000       5.0000    
     3 'Normalizat'    .75675       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0814       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=   4654.282     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      207 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7047        9.3390        .33983E-02   -.13706E-02
   2  alpha         .91639        .68004        .48856       -.19269E-04
   3  Normalizat    .75657        .19535        .43043E-01    .15040E-04
   4  Prefactor     1.0815        .21616        .38342E-01    .54182E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.70466
  alpha      = 0.916391
  Normalizat = 0.756572
  Prefactor  = 1.08149
 **********
 **   18 **HESSE 
 **********

 FCN=   4654.282     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7047        12.774        .67967E-03   -1.5118    
   2  alpha         .91639        .88597        .22272E-01   -.68600    
   3  Normalizat    .75657        .22856        .25801E-03   -1.0170    
   4  Prefactor     1.0815        .25316        .24138E-03   -.90060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26923e-11
Minuit parameter uncertainties:
  1  12.7783
  2  0.920295
  3  0.228854
  4  0.253445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733019': 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) = 4654.28153862
delta logL = 0.35699267464

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  8.705e+00  1.278e+01  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  9.164e-01  9.203e-01  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:  1.081e+00  2.534e-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:  7.566e-01  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.88
Ra Dec: 349.357 -45.562
Photon Index (Free Index): 0.92 +/- 0.92
Photon Flux (Free Index): 5.98e-09 +/- 7.59e-09
Energy Flux (Free Index): 3.99e-05 +/- 5.74e-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/733019/cmap_HighResolution_619574401_619833601_4FGL_J2317.4-4533_daily_bin1467.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.77e-08', energy_flux2='3.99e-05', photon_flux_error='1.65e-08', dlogl='3.57e-01', energy_flux='1.98e-05', photon_flux2='5.98e-09', job_status='DONE', time_completed='2021-09-29 10:48:23.075693', photon_index_error2='0.92', photon_index2='0.92', ts='7.17', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='5.74e-05', EG='0.76', time_epoch_completed='1632937703.08', return_code='0', job_id='733019', GAL2='1.08', EG2='0.76', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='7.59e-09', ts2='7.88', photon_index='1.79' WHERE bin_id='1467' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:48:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 733019: <4FGL_J2317.4-4533_daily_bin1467> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1467> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 29 10:35:31 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:35:33 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:33 2021
Terminated at Wed Sep 29 10:48:23 2021
Results reported at Wed Sep 29 10:48:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1467 349.357 -45.5623 619574401 619833601 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 :                                   716.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            772 sec.

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

