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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1040
RA = 349.357, Dec = -45.5623
tmin = 508896001, tmax = 509155201
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='731234', job_status='RUN', time_executed='2021-09-29 10:30:48.364401', time_epoch_executed='1632936648.36' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1040'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731234

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731234/ft1_4FGL_J2317.4-4533_daily_bin1040.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731234/ft2_4FGL_J2317.4-4533_daily_bin1040.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731234/ft1_4FGL_J2317.4-4533_daily_bin1040.fits outfile=/scratch/kocevski/731234/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1040.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=508896001.0 tmax=509155201.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.70
user 3.47
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731234/ft1_filtered_4FGL_J2317.4-4533_daily_bin1040.fits" evtable="EVENTS" scfile=/scratch/kocevski/731234/ft2_4FGL_J2317.4-4533_daily_bin1040.fits sctable="SC_DATA" outfile=/scratch/kocevski/731234/ltcube_508896001_509155201_4FGL_J2317.4-4533_daily_bin1040.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/731234/ft2_4FGL_J2317.4-4533_daily_bin1040.fits
.....................!
real 12.26
user 11.84
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731234/ft1_filtered_4FGL_J2317.4-4533_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/731234/ft2_4FGL_J2317.4-4533_daily_bin1040.fits sctable="SC_DATA" expcube=/scratch/kocevski/731234/ltcube_508896001_509155201_4FGL_J2317.4-4533_daily_bin1040.fits outfile=/scratch/kocevski/731234/expmap_508896001_509155201_4FGL_J2317.4-4533_daily_bin1040.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/731234/ltcube_508896001_509155201_4FGL_J2317.4-4533_daily_bin1040.fits
.....................!
real 191.29
user 185.75
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/731234/ft1_filtered_4FGL_J2317.4-4533_daily_bin1040.fits scfile=/scratch/kocevski/731234/ft2_4FGL_J2317.4-4533_daily_bin1040.fits outfile=/scratch/kocevski/731234/cmap_508896001_509155201_4FGL_J2317.4-4533_daily_bin1040.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.59
user 0.37
sys 0.18

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731234/ft1_filtered_4FGL_J2317.4-4533_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/731234/ft2_4FGL_J2317.4-4533_daily_bin1040.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731234/Model_4FGL_J2317.4-4533_daily_bin1040.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/731234/ft1_filtered_4FGL_J2317.4-4533_daily_bin1040.fits....................!
real 36.58
user 35.24
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    142.79       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.879       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.002       1.0000         .10000E-03   10000.    
     5 'norm      '    .90001E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6847       1.0000         .10000E-03   10000.    
     9 'Prefactor '    60.255       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12675E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .32227E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.146       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    22.274       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.2113       1.0000         .10000E-03   10000.    
    23 'Prefactor '    87.561       1.0000         .10000E-03   10000.    
    24 'norm      '    .11099E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.7227       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.2369       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.6536       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    17.788       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10788E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.0416       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.0126       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=   4257.481     FROM MIGRAD    STATUS=CONVERGED    944 CALLS     4987 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     142.79        97.258        .25991E-06   -.10335E-07
   2  Prefactor     .10000E-03    10.527        .10406E-05** at limit **
   3  Prefactor     22.878        49.515        .83668E-06    .73815E-06
   4  Prefactor     11.003        13.032        .40671E-07   -.52017E-06
   5  norm          .10028E-03    8.6416        .24116E-05** at limit **
   6  Prefactor     .10000E-03    1.2694       -.37619E-07** at limit **
   7  Prefactor     .10000E-03    13.901        .98224E-07** at limit **
   8  Prefactor     7.6843        6.7763        .35353E-06   -.36154E-04
   9  Prefactor     60.223        49.943        .34018E-05   -.16161E-04
  10  Prefactor     .10000E-03    35.288       -.26602E-06** at limit **
  11  Prefactor     .10000E-03    39.014       -.10989E-05** at limit **
  12  Prefactor     .10000E-03    18.936        .54920E-06** at limit **
  13  Prefactor     .10000E-03    66.115        .12081E-05** at limit **
  14  Prefactor     .10000E-03    4.1477        .39594E-07** at limit **
  15  Prefactor     .10000E-03    15.609       -.55390E-06** at limit **
  16  Prefactor     .10000E-03    141.96        .30016E-05** at limit **
  17  Prefactor     16.147        21.510        .32280E-06    .12122E-04
  18  norm          .10000E-03    7.0915        .11501E-06** at limit **
  19  norm          .10000E-03    4.0081       -.10348E-06** at limit **
  20  norm          .10000E-03    3.5084        .48219E-06** at limit **
  21  norm          22.272        14.740        .21001E-06   -.14725E-04
  22  Prefactor     7.2128        8.2651        .21843E-06    .28212E-04
  23  Prefactor     87.610        61.202       -.49161E-05   -.46193E-04
  24  norm          .10000E-03    9.1276        .31568E-05** at limit **
  25  Prefactor     .10000E-03    14.509       -.16635E-06** at limit **
  26  norm          .10000E-03    .69552       -.35578E-07** at limit **
  27  norm          1.7254        4.6899        .36031E-05   -.74617E-04
  28  Prefactor     4.2384        22.009        .18873E-05   -.16528E-04
  29  Prefactor     1.6554        3.3867        .48130E-07   -.62310E-05
  30  Prefactor     .10000E-03    15.044       -.47056E-06** at limit **
  31  norm          17.783        22.702        .10491E-06    .88020E-07
  32  Prefactor     .10000E-03    4.0190       -.32189E-07** at limit **
  33  Prefactor     .10000E-03    4.2442       -.91869E-07** at limit **
  34  Normalizat    1.0417        .24560       -.19189E-05   -.82334E-04
  35  Prefactor     1.0122        .23713        .16853E-05   -.57563E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 142.787
  Prefactor  = 0.0001
  Prefactor  = 22.8779
  Prefactor  = 11.0029
  norm       = 0.000100281
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.68427
  Prefactor  = 60.2232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1465
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 22.272
  Prefactor  = 7.21284
  Prefactor  = 87.61
  norm       = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.72535
  Prefactor  = 4.23838
  Prefactor  = 1.65538
  Prefactor  = 0.0001
  norm       = 17.7828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04174
  Prefactor  = 1.01217
 **********
 **   18 **HESSE 
 **********

 FCN=   4257.481     FROM HESSE     STATUS=OK           768 CALLS     5755 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     142.79        97.337        .33716E-04   -1.3312    
   2  Prefactor     .10000E-03    10.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.878        49.525        .83741E-04   -1.4751    
   4  Prefactor     11.003        13.031        .12078E-03   -1.5044    
   5  norm          .10028E-03    57.008        .34639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.2731        .71786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.6843        6.7859        .72329E-03   -1.5153    
   9  Prefactor     60.223        49.698        .25844E-03   -1.4154    
  10  Prefactor     .10000E-03    35.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    39.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    66.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.1620        .12976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    142.27        .21359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.147        21.538        .99674E-04   -1.4904    
  18  norm          .10000E-03    7.0953        .16971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.0255        .12754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.5237        .11944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          22.272        14.747        .84870E-04   -1.4764    
  22  Prefactor     7.2128        8.2485        .14937E-03   -1.5171    
  23  Prefactor     87.610        62.306        .21468E-03   -1.3833    
  24  norm          .10000E-03    9.5426        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    14.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .71849        .10587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.7254        4.7667        .11109E-02   -1.5445    
  28  Prefactor     4.2384        22.054        .97879E-03   -1.5296    
  29  Prefactor     1.6554        3.3399        .16265E-03   -1.5451    
  30  Prefactor     .10000E-03    15.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          17.783        22.680        .94963E-04   -1.4864    
  32  Prefactor     .10000E-03    4.0552        .12755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    4.2883        .13117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.0417        .28422        .25242E-03   -.91645    
  35  Prefactor     1.0122        .27367        .26826E-03   -.92325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1853e-09
Minuit parameter uncertainties:
  1  97.447
  2  7.06834e-06
  3  49.6143
  4  13.0339
  5  0.00801055
  6  1.40446e-06
  7  6.85148e-06
  8  6.78655
  9  49.7323
  10  0.000248631
  11  4.27701e-05
  12  6.31879e-05
  13  3.24493e-05
  14  4.17916e-06
  15  2.5997e-07
  16  0.00047806
  17  21.5484
  18  2.72613e-06
  19  1.54888e-06
  20  3.18571e-05
  21  14.7498
  22  8.24978
  23  62.353
  24  0.000420105
  25  1.30763e-05
  26  9.62706e-07
  27  4.76775
  28  19.3471
  29  3.34031
  30  2.85495e-06
  31  22.6907
  32  6.70809e-06
  33  9.02218e-07
  34  0.284632
  35  0.274045
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  2.726e-06  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.012e+00  2.740e-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.042e+00  2.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/731234/likelihoodResults_508896001_509155201_4FGL_J2317.4-4533_daily_bin1040.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) = 4257.48155863
delta logL = -0.000663964865453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4257.48089492
delta logL = -2.50655830314e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8032       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0419       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0120       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=   4257.481     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      188 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.6459        .90712E-02** at limit **
   2  alpha         1.8137        3.3657        .43380       -.70398E-05
   3  Normalizat    1.0417        .22037        .41132E-01    .15079E-04
   4  Prefactor     1.0122        .23230        .43052E-01    .15124E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.81375
  Normalizat = 1.04174
  Prefactor  = 1.01217
 **********
 **   18 **HESSE 
 **********

 FCN=   4257.481     FROM HESSE     STATUS=OK            33 CALLS      221 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.1672        .17044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8137        3.3545        .50000       -.27807    
   3  Normalizat    1.0417        .25389        .25242E-03   -.91645    
   4  Prefactor     1.0122        .26762        .26826E-03   -.92325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97363e-11
Minuit parameter uncertainties:
  1  5.31251e-06
  2  2.4091
  3  0.254183
  4  0.267969
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731234': 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) = 4257.48089461
delta logL = 6.09252310824e-08

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  5.313e-06  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  1.814e+00  2.409e+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:  1.012e+00  2.680e-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.042e+00  2.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 349.357 -45.562

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/731234/cmap_HighResolution_508896001_509155201_4FGL_J2317.4-4533_daily_bin1040.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.56e-05', job_status='DONE', photon_flux_upper_limit='4.08e-08', time_completed='2021-09-29 10:43:27.945839', job_id='731234', GAL2='1.01', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1632937407.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='6.09e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1040' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:43:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 731234: <4FGL_J2317.4-4533_daily_bin1040> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1040> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep 29 10:30:16 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:30:17 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:30:17 2021
Terminated at Wed Sep 29 10:43:28 2021
Results reported at Wed Sep 29 10:43:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1040 349.357 -45.5623 508896001 509155201 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 :                                   755.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            792 sec.

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

