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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1231
RA = 349.357, Dec = -45.5623
tmin = 558403201, tmax = 558662401
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='731547', job_status='RUN', time_executed='2021-09-29 10:33:21.752803', time_epoch_executed='1632936801.75' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1231'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731547

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731547/ft1_4FGL_J2317.4-4533_daily_bin1231.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731547/ft2_4FGL_J2317.4-4533_daily_bin1231.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731547/ft1_4FGL_J2317.4-4533_daily_bin1231.fits outfile=/scratch/kocevski/731547/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1231.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=558403201.0 tmax=558662401.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.84
user 3.57
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731547/ft1_filtered_4FGL_J2317.4-4533_daily_bin1231.fits" evtable="EVENTS" scfile=/scratch/kocevski/731547/ft2_4FGL_J2317.4-4533_daily_bin1231.fits sctable="SC_DATA" outfile=/scratch/kocevski/731547/ltcube_558403201_558662401_4FGL_J2317.4-4533_daily_bin1231.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/731547/ft2_4FGL_J2317.4-4533_daily_bin1231.fits
.....................!
real 11.81
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731547/ft1_filtered_4FGL_J2317.4-4533_daily_bin1231.fits evtable="EVENTS" scfile=/scratch/kocevski/731547/ft2_4FGL_J2317.4-4533_daily_bin1231.fits sctable="SC_DATA" expcube=/scratch/kocevski/731547/ltcube_558403201_558662401_4FGL_J2317.4-4533_daily_bin1231.fits outfile=/scratch/kocevski/731547/expmap_558403201_558662401_4FGL_J2317.4-4533_daily_bin1231.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/731547/ltcube_558403201_558662401_4FGL_J2317.4-4533_daily_bin1231.fits
.....................!
real 193.03
user 187.58
sys 4.99

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/731547/ft1_filtered_4FGL_J2317.4-4533_daily_bin1231.fits scfile=/scratch/kocevski/731547/ft2_4FGL_J2317.4-4533_daily_bin1231.fits outfile=/scratch/kocevski/731547/cmap_558403201_558662401_4FGL_J2317.4-4533_daily_bin1231.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.58
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731547/ft1_filtered_4FGL_J2317.4-4533_daily_bin1231.fits scfile=/scratch/kocevski/731547/ft2_4FGL_J2317.4-4533_daily_bin1231.fits outfile=/scratch/kocevski/731547/cmap_HighResolution_558403201_558662401_4FGL_J2317.4-4533_daily_bin1231.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    141.57       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3317       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8500       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10606E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.253       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.4054       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.609       1.0000         .10000E-03   10000.    
    18 'norm      '    24.737       1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    10.602       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .84155E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    12.343       1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.309       1.0000         .10000E-03   10000.    
    26 'norm      '    .91524       1.0000         .10000E-03   10000.    
    27 'norm      '    .11688E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.9695       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.3833       1.0000         .10000E-03   10000.    
    33 'Prefactor '    3.0262       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .67231       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.2411       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3580.037     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     4256 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    14.696       -.25009E-05** at limit **
   2  Prefactor     .10023E-03    11.711        .74297E-06** at limit **
   3  Prefactor     141.57        1.0754        .46740E-08    .70949E-03
   4  Prefactor     .10001E-03    8.0608       -.14511E-05** at limit **
   5  norm          .10000E-03    6.3256        .50881E-06** at limit **
   6  Prefactor     4.3318        3.5223       -.14206E-08   -.33900E-04
   7  Prefactor     .10032E-03    18.932       -.30025E-05** at limit **
   8  Prefactor     8.8501        1.0522       -.50096E-07   -.10050E-03
   9  Prefactor     .10470E-03    36.636        .30403E-05** at limit **
  10  Prefactor     .10012E-03    4.8634        .67289E-06** at limit **
  11  Prefactor     .10022E-03    20.704       -.48659E-05** at limit **
  12  Prefactor     .10012E-03    12.516        .31181E-06** at limit **
  13  Prefactor     .10012E-03    58.243       -.22894E-05** at limit **
  14  Prefactor     .10006E-03    5.2642       -.89436E-06** at limit **
  15  Prefactor     34.267        1.5018       -.34372E-08   -.16807E-02
  16  Prefactor     7.4435        3.3917        .31616E-07   -.24662E-02
  17  Prefactor     26.620        3.0889       -.30616E-06    .47661E-02
  18  norm          24.741        2.8569       -.25508E-06    .46887E-02
  19  norm          .10000E-03    5.7955        .55743E-06** at limit **
  20  norm          .10018E-03    6.8167       -.13575E-05** at limit **
  21  norm          10.602        1.0419       -.55163E-07    .19228E-03
  22  Prefactor     .10258E-03    285.32        .83320E-05** at limit **
  23  Prefactor     .10022E-03    15.958        .20248E-05** at limit **
  24  norm          12.346        1.1258        .83323E-08    .75524E-03
  25  Prefactor     13.419        10.657       -.13165E-05    .33750E-02
  26  norm          .91533        .99562       -.12966E-06   -.56110E-03
  27  norm          .10000E-03    5.6325       -.40626E-07** at limit **
  28  Prefactor     6.9692        1.0289       -.38067E-07    .11497E-03
  29  Prefactor     .10000E-03    .99002       -.22797E-06** at limit **
  30  Prefactor     .10011E-03    5.0702       -.19625E-06** at limit **
  31  norm          .10006E-03    4.3667        .32327E-06** at limit **
  32  Prefactor     1.3833        4.2998       -.95508E-06   -.23883E-03
  33  Prefactor     3.0255        4.5367       -.72005E-07   -.55747E-03
  34  Normalizat    .67208        .28691        .82660E-06   -.15475E-03
  35  Prefactor     1.2413        .31888       -.11867E-05   -.20502E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 0.000100227
  Prefactor  = 141.567
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 4.33184
  Prefactor  = 0.000100321
  Prefactor  = 8.85008
  Prefactor  = 0.000104699
  Prefactor  = 0.000100124
  Prefactor  = 0.000100218
  Prefactor  = 0.000100121
  Prefactor  = 0.000100118
  Prefactor  = 0.00010006
  Prefactor  = 34.2672
  Prefactor  = 7.44348
  Prefactor  = 26.6201
  norm       = 24.7408
  norm       = 0.0001
  norm       = 0.00010018
  norm       = 10.602
  Prefactor  = 0.000102576
  Prefactor  = 0.000100218
  norm       = 12.346
  Prefactor  = 13.4185
  norm       = 0.915329
  norm       = 0.0001
  Prefactor  = 6.96916
  Prefactor  = 0.0001
  Prefactor  = 0.00010011
  norm       = 0.00010006
  Prefactor  = 1.3833
  Prefactor  = 3.02554
  Normalizat = 0.672077
  Prefactor  = 1.24125
 **********
 **   18 **HESSE 
 **********

 FCN=   3580.037     FROM HESSE     STATUS=OK           850 CALLS     5106 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    19.626        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10023E-03    23.589        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     141.57        64.596        .84647E-03   -1.3323    
   4  Prefactor     .10001E-03    8.2470        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.2841        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3318        3.5358        .48386E-02   -1.5292    
   7  Prefactor     .10032E-03    37.862        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.8501        8.1065        .33684E-02   -1.5113    
   9  Prefactor     .10470E-03    349.32        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10012E-03    12.182        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10022E-03    42.619        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10012E-03    14.924        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10012E-03    62.373        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10006E-03    8.9815        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     34.267        58.446        .17118E-02   -1.4537    
  16  Prefactor     7.4435        137.63        .36846E-02   -1.5162    
  17  Prefactor     26.620        23.161        .19415E-02   -1.4676    
  18  norm          24.741        24.750        .20135E-02   -1.4713    
  19  norm          .10000E-03    5.7770        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10018E-03    11.146        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          10.602        10.664        .30763E-02   -1.5057    
  22  Prefactor     .10258E-03    17.925        .65417E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10022E-03    27.775        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          12.346        6.6487        .28504E-02   -1.5005    
  25  Prefactor     13.419        30.468        .27449E-02   -1.4975    
  26  norm          .91533        1.0639        .12863E-01   -1.5517    
  27  norm          .10000E-03    5.4006        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.9692        13.383        .37991E-02   -1.5180    
  29  Prefactor     .10000E-03    .98827        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10011E-03    8.9734        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10006E-03    12.029        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.3833        4.3659        .92477E-02   -1.5473    
  33  Prefactor     3.0255        4.5765        .58319E-02   -1.5360    
  34  Normalizat    .67208        .24247        .63640E-01   -1.0501    
  35  Prefactor     1.2413        .25746        .53567E-01   -.85071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20417e-07
Minuit parameter uncertainties:
  1  0.000706304
  2  0.00463196
  3  64.6285
  4  0.000650494
  5  7.00976e-05
  6  3.53599
  7  0.00698122
  8  8.10753
  9  0.0815124
  10  0.00245593
  11  0.00610726
  12  0.00268281
  13  0.00544028
  14  0.0014708
  15  58.5435
  16  64.1863
  17  23.1691
  18  24.7602
  19  1.39117e-05
  20  0.00283098
  21  10.6663
  22  0.0135957
  23  0.00492083
  24  6.6491
  25  30.5032
  26  1.06388
  27  1.23787e-05
  28  13.3891
  29  6.88972e-06
  30  0.00198946
  31  0.00170587
  32  4.36686
  33  4.57703
  34  0.24286
  35  0.257718
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  1.241e+00  2.577e-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:  6.721e-01  2.429e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.69
Ra Dec: 349.357 -45.562
Photon Index (Fixed Index): 1.79 +/- 0.00
Photon Flux (Fixed Index): 2.73e-08 +/- 2.73e-08
Energy Flux (Fixed Index): 3.04e-05 +/- 3.05e-05

TS (Fixed Index): 1.69
Ra Dec: 349.357 -45.562
Photon Flux Upper Limit: 9.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731547/likelihoodResults_558403201_558662401_4FGL_J2317.4-4533_daily_bin1231.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) = 3579.60293154
delta logL = 0.434183366537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3579.35290502
delta logL = 0.684209881395

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8254       1.0000         .10000E-03   10000.    
     2 'alpha     '    .50455       1.0000          .0000       5.0000    
     3 'Normalizat'    .67060       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2614       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=   3579.353     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      233 TOTAL
                     EDM=   .50E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8167        15.227       -.97482E-05   -.67800E-04
   2  alpha         .50292        .83963       -.17560E-03    .37327E-05
   3  Normalizat    .66970        .22949       -.89156E-06   -.36601E-04
   4  Prefactor     1.2621        .25669        .10685E-05   -.51470E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.81671
  alpha      = 0.502916
  Normalizat = 0.669697
  Prefactor  = 1.26205
 **********
 **   18 **HESSE 
 **********

 FCN=   3579.353     FROM HESSE     STATUS=OK            31 CALLS      264 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8167        14.112        .14334E-03   -1.5149    
   2  alpha         .50292        .78630        .21042E-01   -.92535    
   3  Normalizat    .66970        .28482        .28200E-03   -1.0510    
   4  Prefactor     1.2621        .31890        .23529E-03   -.84443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.59722e-12
Minuit parameter uncertainties:
  1  14.1183
  2  0.827413
  3  0.285444
  4  0.319387
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731547': 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) = 3579.35289455
delta logL = 0.684220351696

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  1.262e+00  3.194e-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:  6.697e-01  2.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.04
Ra Dec: 349.357 -45.562
Photon Index (Free Index): 0.50 +/- 0.83
Photon Flux (Free Index): 7.39e-09 +/- 8.38e-09
Energy Flux (Free Index): 1.03e-04 +/- 1.36e-04

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/731547/cmap_HighResolution_558403201_558662401_4FGL_J2317.4-4533_daily_bin1231.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-04', comment='SUCCESS', photon_flux='2.73e-08', energy_flux2='1.03e-04', photon_flux_error='2.73e-08', dlogl='6.84e-01', energy_flux='3.04e-05', photon_flux2='7.39e-09', job_status='DONE', time_completed='2021-09-29 10:45:00.483469', photon_index_error2='0.83', photon_index2='0.50', ts='1.69', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='9.21e-08', energy_flux_error2='1.36e-04', EG='0.67', time_epoch_completed='1632937500.48', return_code='0', job_id='731547', GAL2='1.26', EG2='0.67', return_code2='0', energy_flux_error='3.05e-05', photon_flux_error2='8.38e-09', ts2='3.04', photon_index='1.79' WHERE bin_id='1231' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:45:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 731547: <4FGL_J2317.4-4533_daily_bin1231> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1231> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep 29 10:30:47 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:30:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 10:30:49 2021
Terminated at Wed Sep 29 10:45:01 2021
Results reported at Wed Sep 29 10:45:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1231 349.357 -45.5623 558403201 558662401 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 :                                   669.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             251.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            854 sec.

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

