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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1412
RA = 349.357, Dec = -45.5623
tmin = 605318401, tmax = 605577601
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='732935', job_status='RUN', time_executed='2021-09-29 10:36:01.468803', time_epoch_executed='1632936961.47' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/732935

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/732935/ft1_4FGL_J2317.4-4533_daily_bin1412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/732935/ft2_4FGL_J2317.4-4533_daily_bin1412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/732935/ft1_4FGL_J2317.4-4533_daily_bin1412.fits outfile=/scratch/kocevski/732935/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1412.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=605318401.0 tmax=605577601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.50
user 5.27
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/732935/ft1_filtered_4FGL_J2317.4-4533_daily_bin1412.fits" evtable="EVENTS" scfile=/scratch/kocevski/732935/ft2_4FGL_J2317.4-4533_daily_bin1412.fits sctable="SC_DATA" outfile=/scratch/kocevski/732935/ltcube_605318401_605577601_4FGL_J2317.4-4533_daily_bin1412.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/732935/ft2_4FGL_J2317.4-4533_daily_bin1412.fits
.....................!
real 11.76
user 11.38
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/732935/ft1_filtered_4FGL_J2317.4-4533_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/732935/ft2_4FGL_J2317.4-4533_daily_bin1412.fits sctable="SC_DATA" expcube=/scratch/kocevski/732935/ltcube_605318401_605577601_4FGL_J2317.4-4533_daily_bin1412.fits outfile=/scratch/kocevski/732935/expmap_605318401_605577601_4FGL_J2317.4-4533_daily_bin1412.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/732935/ltcube_605318401_605577601_4FGL_J2317.4-4533_daily_bin1412.fits
.....................!
real 191.44
user 185.15
sys 5.95

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/732935/ft1_filtered_4FGL_J2317.4-4533_daily_bin1412.fits scfile=/scratch/kocevski/732935/ft2_4FGL_J2317.4-4533_daily_bin1412.fits outfile=/scratch/kocevski/732935/cmap_605318401_605577601_4FGL_J2317.4-4533_daily_bin1412.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/732935/ft1_filtered_4FGL_J2317.4-4533_daily_bin1412.fits scfile=/scratch/kocevski/732935/ft2_4FGL_J2317.4-4533_daily_bin1412.fits outfile=/scratch/kocevski/732935/cmap_HighResolution_605318401_605577601_4FGL_J2317.4-4533_daily_bin1412.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/732935/ft1_filtered_4FGL_J2317.4-4533_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/732935/ft2_4FGL_J2317.4-4533_daily_bin1412.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/732935/Model_4FGL_J2317.4-4533_daily_bin1412.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/732935/ft1_filtered_4FGL_J2317.4-4533_daily_bin1412.fits.....................!
real 34.48
user 33.15
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81534E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10802E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.085       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8240       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11890E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    55.862       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .33455E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1578       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0730       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12402E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.786       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.0507       1.0000         .10000E-03   10000.    
    24 'norm      '    4.9704       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.024       1.0000         .10000E-03   10000.    
    26 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    2.8099       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .91064       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.2690       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=   4159.605     FROM MIGRAD    STATUS=CONVERGED    987 CALLS     5773 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    981.79        .36077E-04** at limit **
   2  Prefactor     .10000E-03    5.2549       -.62921E-07** at limit **
   3  Prefactor     .10000E-03    10.483       -.16522E-06** at limit **
   4  Prefactor     .10000E-03    5.1723       -.90067E-07** at limit **
   5  norm          .10001E-03    7.5118       -.92434E-06** at limit **
   6  Prefactor     .10000E-03    4.6659       -.19119E-06** at limit **
   7  Prefactor     37.962        66.430        .39154E-05    .88708E-06
   8  Prefactor     9.8126        9.5214       -.60446E-06   -.64037E-05
   9  Prefactor     .10000E-03    17.727       -.92215E-07** at limit **
  10  Prefactor     .10000E-03    48.630       -.16898E-05** at limit **
  11  Prefactor     55.922        38.853        .44051E-05    .15208E-04
  12  Prefactor     .10000E-03    5.9158       -.62796E-06** at limit **
  13  Prefactor     .10000E-03    78.505       -.35264E-06** at limit **
  14  Prefactor     7.1642        10.585        .12435E-05    .13359E-04
  15  Prefactor     7.0611        59.834        .11716E-06   -.24994E-05
  16  Prefactor     .10000E-03    55.770        .17602E-05** at limit **
  17  Prefactor     .10000E-03    4.9215        .11878E-06** at limit **
  18  norm          .10000E-03    11.884       -.10982E-06** at limit **
  19  norm          .10000E-03    2.2975       -.20733E-08** at limit **
  20  norm          .10000E-03    3.8962        .20201E-06** at limit **
  21  norm          .10000E-03    5.3849        .29371E-06** at limit **
  22  Prefactor     19.790        10.898        .11551E-07   -.19656E-04
  23  Prefactor     9.0277        246.02       -.15927E-04   -.62135E-05
  24  norm          4.9685        14.722        .51090E-05   -.24528E-04
  25  Prefactor     15.026        24.628        .57403E-06   -.13439E-04
  26  norm          .10000E-03    .43692        .12073E-07** at limit **
  27  norm          .10000E-03    3.5190       -.55445E-08** at limit **
  28  Prefactor     .10000E-03    6.5965        .29098E-07** at limit **
  29  Prefactor     .10000E-03    1.2797        .40829E-07** at limit **
  30  Prefactor     .10000E-03    11.375        .36537E-06** at limit **
  31  norm          .10000E-03    8.5232        .58104E-07** at limit **
  32  Prefactor     .10000E-03    2.1726        .74941E-07** at limit **
  33  Prefactor     2.8107        4.1262        .16413E-06   -.37734E-04
  34  Normalizat    .91043        .24387        .29958E-07   -.11087E-03
  35  Prefactor     1.2693        .25489       -.25834E-05   -.59323E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 37.962
  Prefactor  = 9.81258
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.9219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.16421
  Prefactor  = 7.0611
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.7897
  Prefactor  = 9.02767
  norm       = 4.96848
  Prefactor  = 15.0258
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.81074
  Normalizat = 0.910433
  Prefactor  = 1.2693
 **********
 **   18 **HESSE 
 **********

 FCN=   4159.605     FROM HESSE     STATUS=OK           760 CALLS     6533 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1003.7        .36888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.2551        .14440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.1836        .14325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    23.190        .34061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.8057        .27175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.962        66.492        .64945E-04   -1.4475    
   8  Prefactor     9.8126        9.5050        .12785E-03   -1.5081    
   9  Prefactor     .10000E-03    17.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    49.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     55.922        39.101        .53671E-04   -1.4211    
  12  Prefactor     .10000E-03    5.9452        .15329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    78.538        .21343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.1642        10.554        .74966E-03   -1.5173    
  15  Prefactor     7.0611        59.801        .15084E-03   -1.5176    
  16  Prefactor     .10000E-03    55.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.9242        .13974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    11.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.2977        .95474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.9024        .12433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.3941        .14618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.790        10.895        .90044E-04   -1.4818    
  23  Prefactor     9.0277        251.90        .13322E-03   -1.5107    
  24  norm          4.9685        14.914        .90194E-03   -1.5262    
  25  Prefactor     15.026        24.689        .10333E-03   -1.4933    
  26  norm          .10000E-03    .44399        .41574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    3.5335        .11794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    6.6043        .16179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.2849        .71237E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    11.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    8.5256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    2.1866        .92830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     2.8107        4.1121        .15240E-03   -1.5373    
  34  Normalizat    .91043        .29784        .26970E-03   -.96095    
  35  Prefactor     1.2693        .30771        .25266E-03   -.84224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32288e-10
Minuit parameter uncertainties:
  1  0.003619
  2  9.30306e-07
  3  3.94121e-06
  4  3.93317e-06
  5  0.000760747
  6  1.65994e-06
  7  66.6218
  8  9.50645
  9  1.94068e-06
  10  4.38913e-05
  11  39.1189
  12  3.49429e-05
  13  0.000123938
  14  10.5568
  15  41.1532
  16  1.91189e-05
  17  7.57642e-07
  18  8.61933e-06
  19  2.70189e-07
  20  1.35037e-06
  21  3.63433e-06
  22  10.896
  23  95.8228
  24  14.9247
  25  24.7061
  26  6.57177e-07
  27  1.03174e-05
  28  3.72913e-06
  29  2.1218e-06
  30  7.13048e-06
  31  2.79858e-06
  32  3.80272e-06
  33  4.11252
  34  0.29838
  35  0.308148
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  8.619e-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.269e+00  3.081e-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:  9.104e-01  2.984e-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.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/732935/likelihoodResults_605318401_605577601_4FGL_J2317.4-4533_daily_bin1412.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) = 4159.60565337
delta logL = -0.000397579246055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4159.60525578
delta logL = 1.24109647004e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4159.605     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      242 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1944.7        .18142E-02** at limit **
   2  alpha         2.0412        3.1569        .17354        .17033E-08
   3  Normalizat    .91044        .96281E-01    .26970E-03    .58467E-04
   4  Prefactor     1.2693        .10497        .25266E-03   -.49945E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.04115
  Normalizat = 0.910437
  Prefactor  = 1.2693
 **********
 **   18 **HESSE 
 **********

 FCN=   4159.605     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.556        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0412        3.3117        .69416E-02   -.18459    
   3  Normalizat    .91044        .27633        .10788E-04   -.96094    
   4  Prefactor     1.2693        .30128        .10106E-04   -.84225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.86787e-11
Minuit parameter uncertainties:
  1  2.44382e-06
  2  387.993
  3  0.276766
  4  0.301694
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/732935': 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) = 4159.60525559
delta logL = 1.98029738385e-07

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  2.444e-06  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  2.041e+00  3.880e+02  0.000e+00  5.000e+00 ( 1.000e+00)
393         beta:  1.780e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
394           Eb:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  1.269e+00  3.017e-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:  9.104e-01  2.768e-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/732935/cmap_HighResolution_605318401_605577601_4FGL_J2317.4-4533_daily_bin1412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-05', job_status='DONE', photon_flux_upper_limit='4.37e-08', time_completed='2021-09-29 10:49:58.050344', job_id='732935', GAL2='1.27', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632937798.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='1.98e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1412' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:49:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 732935: <4FGL_J2317.4-4533_daily_bin1412> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1412 349.357 -45.5623 605318401 605577601 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 :                                   802.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            874 sec.

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

