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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1454
RA = 349.357, Dec = -45.5623
tmin = 616204801, tmax = 616464001
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='733000', job_status='RUN', time_executed='2021-09-29 10:37:02.951234', time_epoch_executed='1632937022.95' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733000

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733000/ft1_4FGL_J2317.4-4533_daily_bin1454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733000/ft2_4FGL_J2317.4-4533_daily_bin1454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733000/ft1_4FGL_J2317.4-4533_daily_bin1454.fits outfile=/scratch/kocevski/733000/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1454.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=616204801.0 tmax=616464001.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.96
user 3.75
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733000/ft1_filtered_4FGL_J2317.4-4533_daily_bin1454.fits" evtable="EVENTS" scfile=/scratch/kocevski/733000/ft2_4FGL_J2317.4-4533_daily_bin1454.fits sctable="SC_DATA" outfile=/scratch/kocevski/733000/ltcube_616204801_616464001_4FGL_J2317.4-4533_daily_bin1454.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/733000/ft2_4FGL_J2317.4-4533_daily_bin1454.fits
.....................!
real 12.30
user 11.90
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733000/ft1_filtered_4FGL_J2317.4-4533_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/733000/ft2_4FGL_J2317.4-4533_daily_bin1454.fits sctable="SC_DATA" expcube=/scratch/kocevski/733000/ltcube_616204801_616464001_4FGL_J2317.4-4533_daily_bin1454.fits outfile=/scratch/kocevski/733000/expmap_616204801_616464001_4FGL_J2317.4-4533_daily_bin1454.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/733000/ltcube_616204801_616464001_4FGL_J2317.4-4533_daily_bin1454.fits
.....................!
real 189.96
user 184.49
sys 5.02

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/733000/ft1_filtered_4FGL_J2317.4-4533_daily_bin1454.fits scfile=/scratch/kocevski/733000/ft2_4FGL_J2317.4-4533_daily_bin1454.fits outfile=/scratch/kocevski/733000/cmap_616204801_616464001_4FGL_J2317.4-4533_daily_bin1454.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.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733000/ft1_filtered_4FGL_J2317.4-4533_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/733000/ft2_4FGL_J2317.4-4533_daily_bin1454.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733000/Model_4FGL_J2317.4-4533_daily_bin1454.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/733000/ft1_filtered_4FGL_J2317.4-4533_daily_bin1454.fits.....................!
real 32.52
user 31.15
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.930       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1324       1.0000         .10000E-03   10000.    
     5 'norm      '    14.025       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3875       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4193       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .70447E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.496       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    61.928       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.0972       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.7311       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.4852       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .59716       1.0000         .10000E-03   10000.    
    27 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    26.604       1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .77637       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .92972       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=   3894.899     FROM MIGRAD    STATUS=CONVERGED    948 CALLS     5014 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.168        .80498E-05** at limit **
   2  Prefactor     45.938        28.746        .20181E-05    .82971E-04
   3  Prefactor     .10000E-03    12.012       -.95586E-06** at limit **
   4  Prefactor     7.1353        10.460       -.21197E-06   -.27837E-04
   5  norm          14.026        11.958        .40900E-07    .79355E-05
   6  Prefactor     5.3861        4.6492        .31944E-07    .47568E-04
   7  Prefactor     .10000E-03    28.566       -.29826E-05** at limit **
   8  Prefactor     3.4194        4.2082        .12490E-05   -.18225E-02
   9  Prefactor     .10000E-03    29.009       -.38151E-05** at limit **
  10  Prefactor     .10000E-03    125.38       -.12880E-04** at limit **
  11  Prefactor     .10000E-03    29.325       -.46665E-05** at limit **
  12  Prefactor     24.498        15.750       -.21224E-06    .43042E-04
  13  Prefactor     .10000E-03    80.649       -.21037E-05** at limit **
  14  Prefactor     .10000E-03    4.3765       -.63261E-07** at limit **
  15  Prefactor     61.936        55.156        .44669E-05    .81882E-04
  16  Prefactor     .10000E-03    36.881       -.28464E-05** at limit **
  17  Prefactor     .10000E-03    3.9801        .93578E-07** at limit **
  18  norm          9.0983        14.132        .28079E-06   -.18682E-03
  19  norm          .10000E-03    3.6247       -.22278E-06** at limit **
  20  norm          .10000E-03    2.4874       -.59993E-08** at limit **
  21  norm          .10000E-03    3.0181       -.15678E-07** at limit **
  22  Prefactor     5.7354        7.2181       -.86238E-07   -.14068E-03
  23  Prefactor     .10000E-03    43.667        .10253E-04** at limit **
  24  norm          6.4846        5.7141        .10998E-06   -.24797E-03
  25  Prefactor     .10000E-03    11.199        .20620E-05** at limit **
  26  norm          .59705        .93375        .43645E-08   -.19199E-03
  27  norm          .10000E-03    3.5025        .96212E-07** at limit **
  28  Prefactor     .10000E-03    8.0905       -.23844E-06** at limit **
  29  Prefactor     .10000E-03    1.4522        .75177E-08** at limit **
  30  Prefactor     26.613        22.757        .52487E-06    .12433E-04
  31  norm          .10000E-03    12.643       -.15866E-05** at limit **
  32  Prefactor     .10000E-03    5.6748        .10182E-06** at limit **
  33  Prefactor     .10000E-03    1.7606       -.37049E-07** at limit **
  34  Normalizat    .77617        .19741       -.57015E-06    .15765E-04
  35  Prefactor     .92972        .21733       -.59156E-06    .35434E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 45.9384
  Prefactor  = 0.0001
  Prefactor  = 7.13529
  norm       = 14.0263
  Prefactor  = 5.3861
  Prefactor  = 0.0001
  Prefactor  = 3.41936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.4982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.9359
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.09829
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.73543
  Prefactor  = 0.000100002
  norm       = 6.48461
  Prefactor  = 0.0001
  norm       = 0.597048
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.6125
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.776175
  Prefactor  = 0.929716
 **********
 **   18 **HESSE 
 **********

 FCN=   3894.899     FROM HESSE     STATUS=OK           764 CALLS     5778 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     45.938        28.717        .59162E-04   -1.4351    
   3  Prefactor     .10000E-03    12.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.1353        10.466        .15020E-03   -1.5174    
   5  norm          14.026        11.965        .10695E-03   -1.4959    
   6  Prefactor     5.3861        4.6508        .11961E-03   -1.5244    
   7  Prefactor     .10000E-03    28.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.4194        7.7285        .10938E-02   -1.5338    
   9  Prefactor     .10000E-03    29.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    128.97        .41952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.498        15.762        .80936E-04   -1.4718    
  13  Prefactor     .10000E-03    80.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.3927        .12749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     61.936        55.888        .50989E-04   -1.4132    
  16  Prefactor     .10000E-03    36.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.9810        .12160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.0983        14.231        .66441E-03   -1.5105    
  19  norm          .10000E-03    3.6283        .11600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.4887        .96100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.0260        .10588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.7354        7.1206        .16778E-03   -1.5229    
  23  Prefactor     .10000E-03    44.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.4846        5.7095        .12999E-03   -1.5199    
  25  Prefactor     .10000E-03    11.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .59705        .86732        .70286E-03   -1.5553    
  27  norm          .10000E-03    3.5597        .11369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.0963        .17339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.4590        .73371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     26.613        22.703        .77668E-04   -1.4676    
  31  norm          .10000E-03    12.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    5.8890        .29012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    1.7799        .80813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .77617        .23537        .23444E-03   -1.0096    
  35  Prefactor     .92972        .25862        .24062E-03   -.95110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.25217e-09
Minuit parameter uncertainties:
  1  0.000330278
  2  28.7253
  3  3.31462e-05
  4  10.4683
  5  11.9674
  6  4.65111
  7  0.000119516
  8  7.73071
  9  0.000140146
  10  0.00013795
  11  0.000215308
  12  15.765
  13  0.000163732
  14  3.02774e-06
  15  55.9355
  16  0.000127792
  17  6.36423e-07
  18  14.2359
  19  2.83298e-06
  20  9.37174e-08
  21  1.00051e-06
  22  7.12167
  23  0.00055178
  24  5.70995
  25  5.55182e-05
  26  0.867337
  27  8.59546e-07
  28  4.47953e-06
  29  1.36272e-06
  30  22.7104
  31  4.53997e-05
  32  3.78596e-06
  33  5.42428e-06
  34  0.235674
  35  0.258968
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  9.297e-01  2.590e-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.762e-01  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/733000/likelihoodResults_616204801_616464001_4FGL_J2317.4-4533_daily_bin1454.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) = 3894.89858528
delta logL = 7.21666483514e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3894.89858104
delta logL = 7.64092801546e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0613       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8045       1.0000          .0000       5.0000    
     3 'Normalizat'    .77614       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92967       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=   3894.899     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      216 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0506        740.55        .33286E-02    .12497E-03
   2  alpha         1.8036        3.2720        .43370        .64428E-04
   3  Normalizat    .77613        .73531E-01    .43298E-01   -.40383E-04
   4  Prefactor     .92972        .78221E-01    .45382E-01   -.79976E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.05058
  alpha      = 1.80358
  Normalizat = 0.776128
  Prefactor  = 0.929718
 **********
 **   18 **HESSE 
 **********

 FCN=   3894.899     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0506        14.869        .13315E-03   -1.5106    
   2  alpha         1.8036        .85086        .16431E-01   -.28230    
   3  Normalizat    .77613        .22824        .23445E-03   -1.0096    
   4  Prefactor     .92972        .25715        .24062E-03   -.95110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37393e-10
Minuit parameter uncertainties:
  1  14.8753
  2  0.869753
  3  0.228519
  4  0.257491
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733000': 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) = 3894.8985798
delta logL = 7.7646968748e-05

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  9.051e+00  1.488e+01  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  1.804e+00  8.698e-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:  9.297e-01  2.575e-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.761e-01  2.285e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.59
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/733000/cmap_HighResolution_616204801_616464001_4FGL_J2317.4-4533_daily_bin1454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.08e-05', job_status='DONE', photon_flux_upper_limit='5.44e-08', time_completed='2021-09-29 10:49:33.112997', job_id='733000', GAL2='0.93', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632937773.11', return_code2='0', ts='0.59', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.76e-05', ts2='0.59', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1454' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:49:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 733000: <4FGL_J2317.4-4533_daily_bin1454> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1454 349.357 -45.5623 616204801 616464001 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 :                                   728.48 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            844 sec.

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

