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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1500
RA = 349.357, Dec = -45.5623
tmin = 628128001, tmax = 628387201
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='733069', job_status='RUN', time_executed='2021-09-29 10:36:45.812733', time_epoch_executed='1632937005.81' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733069

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733069/ft1_4FGL_J2317.4-4533_daily_bin1500.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733069/ft2_4FGL_J2317.4-4533_daily_bin1500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733069/ft1_4FGL_J2317.4-4533_daily_bin1500.fits outfile=/scratch/kocevski/733069/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1500.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=628128001.0 tmax=628387201.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.19
user 4.93
sys 0.23

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733069/ft1_filtered_4FGL_J2317.4-4533_daily_bin1500.fits" evtable="EVENTS" scfile=/scratch/kocevski/733069/ft2_4FGL_J2317.4-4533_daily_bin1500.fits sctable="SC_DATA" outfile=/scratch/kocevski/733069/ltcube_628128001_628387201_4FGL_J2317.4-4533_daily_bin1500.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/733069/ft2_4FGL_J2317.4-4533_daily_bin1500.fits
.....................!
real 11.43
user 11.07
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733069/ft1_filtered_4FGL_J2317.4-4533_daily_bin1500.fits evtable="EVENTS" scfile=/scratch/kocevski/733069/ft2_4FGL_J2317.4-4533_daily_bin1500.fits sctable="SC_DATA" expcube=/scratch/kocevski/733069/ltcube_628128001_628387201_4FGL_J2317.4-4533_daily_bin1500.fits outfile=/scratch/kocevski/733069/expmap_628128001_628387201_4FGL_J2317.4-4533_daily_bin1500.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/733069/ltcube_628128001_628387201_4FGL_J2317.4-4533_daily_bin1500.fits
.....................!
real 192.38
user 187.46
sys 4.60

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/733069/ft1_filtered_4FGL_J2317.4-4533_daily_bin1500.fits scfile=/scratch/kocevski/733069/ft2_4FGL_J2317.4-4533_daily_bin1500.fits outfile=/scratch/kocevski/733069/cmap_628128001_628387201_4FGL_J2317.4-4533_daily_bin1500.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733069/ft1_filtered_4FGL_J2317.4-4533_daily_bin1500.fits scfile=/scratch/kocevski/733069/ft2_4FGL_J2317.4-4533_daily_bin1500.fits outfile=/scratch/kocevski/733069/cmap_HighResolution_628128001_628387201_4FGL_J2317.4-4533_daily_bin1500.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.966       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5689       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9562       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2702       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.770       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.824       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.792       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10396E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.948       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.209       1.0000         .10000E-03   10000.    
    20 'norm      '    3.4943       1.0000         .10000E-03   10000.    
    21 'norm      '    24.085       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4778       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.8405       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.8404       1.0000         .10000E-03   10000.    
    26 'norm      '    .10298E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.3473       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.1393       1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.3509       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    3.9232       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.0584       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .86231       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=   3880.700     FROM MIGRAD    STATUS=CONVERGED    954 CALLS     5023 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.950       -.73735E-06** at limit **
   2  Prefactor     40.966        27.687        .37421E-06    .16009E-04
   3  Prefactor     .10000E-03    9.7116       -.23908E-06** at limit **
   4  Prefactor     .10000E-03    5.6221        .78062E-07** at limit **
   5  norm          2.5674        6.1368        .20304E-05   -.14774E-03
   6  Prefactor     1.9528        6.5240        .64305E-05   -.28373E-03
   7  Prefactor     .10000E-03    26.074        .66789E-06** at limit **
   8  Prefactor     7.2737        8.9033       -.86633E-06   -.35264E-03
   9  Prefactor     27.761        42.384        .53336E-06   -.45107E-04
  10  Prefactor     .10000E-03    12.402        .72632E-07** at limit **
  11  Prefactor     .10000E-03    38.449        .76632E-06** at limit **
  12  Prefactor     17.826        15.625       -.17652E-06   -.29626E-03
  13  Prefactor     .10000E-03    48.007       -.51682E-06** at limit **
  14  Prefactor     15.792        11.196       -.22110E-06   -.11832E-03
  15  Prefactor     .10000E-03    14.358       -.51502E-08** at limit **
  16  Prefactor     .10000E-03    83.306        .74890E-06** at limit **
  17  Prefactor     18.936        26.100        .11318E-05    .17462E-03
  18  norm          .10000E-03    8.5149        .33355E-06** at limit **
  19  norm          10.207        9.0422        .37612E-07    .19876E-03
  20  norm          3.4927        5.8176        .10209E-06    .28602E-04
  21  norm          24.084        17.269        .40732E-06   -.43881E-04
  22  Prefactor     5.4794        11.279        .10719E-05    .75435E-04
  23  Prefactor     .10000E-03    22.144       -.29752E-06** at limit **
  24  norm          5.8429        6.2304        .29466E-07    .40849E-04
  25  Prefactor     5.8305        23.566        .28183E-06    .14595E-03
  26  norm          .10000E-03    1.0766       -.67905E-06** at limit **
  27  norm          2.3460        6.0043        .70574E-06    .86313E-04
  28  Prefactor     3.0856        52.581        .37946E-05   -.68864E-05
  29  Prefactor     7.3516        4.6697        .12930E-06    .11672E-03
  30  Prefactor     .10000E-03    8.0074       -.12121E-06** at limit **
  31  norm          .10000E-03    22.760       -.17148E-06** at limit **
  32  Prefactor     3.9286        5.8149       -.14254E-06   -.25614E-03
  33  Prefactor     .10000E-03    1.3066        .18456E-07** at limit **
  34  Normalizat    1.0578        .24998        .82770E-06   -.76962E-04
  35  Prefactor     .86310        .24849       -.44646E-05   -.23940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 40.966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.56744
  Prefactor  = 1.9528
  Prefactor  = 0.0001
  Prefactor  = 7.27369
  Prefactor  = 27.7613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8255
  Prefactor  = 0.0001
  Prefactor  = 15.7921
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9357
  norm       = 0.0001
  norm       = 10.2066
  norm       = 3.49272
  norm       = 24.0837
  Prefactor  = 5.47942
  Prefactor  = 0.0001
  norm       = 5.84286
  Prefactor  = 5.83053
  norm       = 0.0001
  norm       = 2.34597
  Prefactor  = 3.08559
  Prefactor  = 7.35156
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.92861
  Prefactor  = 0.0001
  Normalizat = 1.0578
  Prefactor  = 0.863102
 **********
 **   18 **HESSE 
 **********

 FCN=   3880.700     FROM HESSE     STATUS=OK           774 CALLS     5797 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     40.966        27.729        .62629E-04   -1.4427    
   3  Prefactor     .10000E-03    9.7106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.6314        .14426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5674        6.1118        .11589E-02   -1.5387    
   6  Prefactor     1.9528        6.5895        .13437E-02   -1.5428    
   7  Prefactor     .10000E-03    26.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.2737        8.9282        .14876E-03   -1.5169    
   9  Prefactor     27.761        42.367        .76023E-04   -1.4654    
  10  Prefactor     .10000E-03    12.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    38.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.826        15.646        .94868E-04   -1.4863    
  13  Prefactor     .10000E-03    48.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.792        11.199        .10079E-03   -1.4913    
  15  Prefactor     .10000E-03    14.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    83.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.936        25.875        .92012E-04   -1.4837    
  18  norm          .10000E-03    8.5230        .17755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.207        9.0383        .12540E-03   -1.5069    
  20  norm          3.4927        5.8576        .17481E-03   -1.5334    
  21  norm          24.084        17.274        .81622E-04   -1.4726    
  22  Prefactor     5.4794        11.089        .85838E-03   -1.5240    
  23  Prefactor     .10000E-03    22.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.8429        6.2534        .13595E-03   -1.5224    
  25  Prefactor     5.8305        23.053        .16618E-03   -1.5225    
  26  norm          .10000E-03    1.6489        .12040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.3460        5.9605        .22048E-03   -1.5402    
  28  Prefactor     3.0856        52.513        .22879E-03   -1.5357    
  29  Prefactor     7.3516        4.6568        .10097E-03   -1.5166    
  30  Prefactor     .10000E-03    8.0105        .17216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    22.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     3.9286        5.7923        .17090E-03   -1.5312    
  33  Prefactor     .10000E-03    1.3075        .69529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.0578        .30040        .24838E-03   -.91119    
  35  Prefactor     .86310        .29385        .28381E-03   -.97443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23298e-09
Minuit parameter uncertainties:
  1  0.000362595
  2  27.7377
  3  1.55989e-05
  4  1.30773e-05
  5  6.11331
  6  6.5919
  7  2.58376e-05
  8  8.92985
  9  42.413
  10  3.47425e-05
  11  0.000124406
  12  15.6496
  13  5.74149e-05
  14  11.2001
  15  3.55256e-06
  16  6.25719e-05
  17  25.8899
  18  6.80688e-07
  19  9.0395
  20  5.85855
  21  17.2777
  22  11.0936
  23  6.36463e-05
  24  6.25406
  25  23.0879
  26  4.99952e-05
  27  5.96202
  28  25.4843
  29  4.657
  30  6.92927e-06
  31  4.80337e-05
  32  5.79308
  33  1.37102e-06
  34  0.300887
  35  0.294393
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  6.807e-07  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:  8.631e-01  2.944e-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.058e+00  3.009e-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.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733069/likelihoodResults_628128001_628387201_4FGL_J2317.4-4533_daily_bin1500.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) = 3880.70090415
delta logL = -0.00055407437867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3880.70035015
delta logL = -8.09632183518e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10152E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8037       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0578       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86305       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=   3880.700     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      199 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.8558        .90712E-02** at limit **
   2  alpha         1.8145        3.3599        .43376       -.59806E-05
   3  Normalizat    1.0578        .23138        .40059E-01    .23041E-05
   4  Prefactor     .86311        .24243        .64166E-01    .50160E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.81453
  Normalizat = 1.05779
  Prefactor  = 0.863107
 **********
 **   18 **HESSE 
 **********

 FCN=   3880.700     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.5910        .17836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8145        3.3544        .50000       -.27775    
   3  Normalizat    1.0578        .27393        .24838E-03   -.91119    
   4  Prefactor     .86311        .28668        .28381E-03   -.97442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59169e-11
Minuit parameter uncertainties:
  1  8.35567e-06
  2  2.40678
  3  0.274296
  4  0.287177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733069': 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) = 3880.70035002
delta logL = 5.40840119356e-08

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  8.356e-06  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  1.815e+00  2.407e+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:  8.631e-01  2.872e-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.058e+00  2.743e-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/733069/cmap_HighResolution_628128001_628387201_4FGL_J2317.4-4533_daily_bin1500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.02e-05', job_status='DONE', photon_flux_upper_limit='4.49e-08', time_completed='2021-09-29 10:49:29.636471', job_id='733069', GAL2='0.86', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632937769.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='5.41e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1500' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:49:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 733069: <4FGL_J2317.4-4533_daily_bin1500> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1500 349.357 -45.5623 628128001 628387201 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.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            834 sec.

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

