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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1096
RA = 349.357, Dec = -45.5623
tmin = 523411201, tmax = 523670401
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='731327', job_status='RUN', time_executed='2021-09-29 10:30:43.285719', time_epoch_executed='1632936643.29' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1096'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731327

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731327/ft1_4FGL_J2317.4-4533_daily_bin1096.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731327/ft2_4FGL_J2317.4-4533_daily_bin1096.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731327/ft1_4FGL_J2317.4-4533_daily_bin1096.fits outfile=/scratch/kocevski/731327/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1096.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=523411201.0 tmax=523670401.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.56
user 3.32
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/731327/ft2_4FGL_J2317.4-4533_daily_bin1096.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/731327/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1096.fits evtable="EVENTS" outfile="/scratch/kocevski/731327/ft1_filtered_4FGL_J2317.4-4533_daily_bin1096.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.54
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731327/ft1_filtered_4FGL_J2317.4-4533_daily_bin1096.fits" evtable="EVENTS" scfile=/scratch/kocevski/731327/ft2_4FGL_J2317.4-4533_daily_bin1096.fits sctable="SC_DATA" outfile=/scratch/kocevski/731327/ltcube_523411201_523670401_4FGL_J2317.4-4533_daily_bin1096.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/731327/ft2_4FGL_J2317.4-4533_daily_bin1096.fits
.....................!
real 11.70
user 11.31
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731327/ft1_filtered_4FGL_J2317.4-4533_daily_bin1096.fits evtable="EVENTS" scfile=/scratch/kocevski/731327/ft2_4FGL_J2317.4-4533_daily_bin1096.fits sctable="SC_DATA" expcube=/scratch/kocevski/731327/ltcube_523411201_523670401_4FGL_J2317.4-4533_daily_bin1096.fits outfile=/scratch/kocevski/731327/expmap_523411201_523670401_4FGL_J2317.4-4533_daily_bin1096.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/731327/ltcube_523411201_523670401_4FGL_J2317.4-4533_daily_bin1096.fits
.....................!
real 194.22
user 188.46
sys 5.27

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/731327/ft1_filtered_4FGL_J2317.4-4533_daily_bin1096.fits scfile=/scratch/kocevski/731327/ft2_4FGL_J2317.4-4533_daily_bin1096.fits outfile=/scratch/kocevski/731327/cmap_523411201_523670401_4FGL_J2317.4-4533_daily_bin1096.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=349.357 yref=-45.5623 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731327/ft1_filtered_4FGL_J2317.4-4533_daily_bin1096.fits scfile=/scratch/kocevski/731327/ft2_4FGL_J2317.4-4533_daily_bin1096.fits outfile=/scratch/kocevski/731327/cmap_HighResolution_523411201_523670401_4FGL_J2317.4-4533_daily_bin1096.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731327/ft1_filtered_4FGL_J2317.4-4533_daily_bin1096.fits evtable="EVENTS" scfile=/scratch/kocevski/731327/ft2_4FGL_J2317.4-4533_daily_bin1096.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731327/Model_4FGL_J2317.4-4533_daily_bin1096.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/731327/ft1_filtered_4FGL_J2317.4-4533_daily_bin1096.fits.....................!
real 37.45
user 36.14
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.577       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7228       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.385       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1673       1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.161       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.837       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18120E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    120.26       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .80613       1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.2321       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .18592E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.2628       1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    12.143       1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.0458       1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.4601       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .83946E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.3178       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.2898       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .67450       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=   4580.858     FROM MIGRAD    STATUS=CONVERGED    971 CALLS     5058 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.402        .77862E-07** at limit **
   2  Prefactor     17.572        17.127       -.29916E-06    .12794E-04
   3  Prefactor     2.6460        160.29       -.17832E-05    .75463E-05
   4  Prefactor     .10000E-03    14.793       -.22200E-05** at limit **
   5  norm          .10000E-03    2.6131        .54152E-08** at limit **
   6  Prefactor     14.386        6.8695       -.12564E-06    .14719E-04
   7  Prefactor     .10000E-03    18.955        .12468E-06** at limit **
   8  Prefactor     2.1667        7.2037       -.31358E-07    .47071E-04
   9  Prefactor     41.154        41.769       -.23037E-06   -.14158E-04
  10  Prefactor     .10000E-03    8.6459       -.12107E-07** at limit **
  11  Prefactor     .10000E-03    38.261       -.65057E-07** at limit **
  12  Prefactor     34.836        16.335       -.14815E-06   -.21027E-04
  13  Prefactor     .10000E-03    82.425        .64035E-06** at limit **
  14  Prefactor     .10000E-03    2.3385        .68390E-07** at limit **
  15  Prefactor     .10000E-03    18.789        .15970E-06** at limit **
  16  Prefactor     120.28        91.051       -.99437E-07    .22400E-04
  17  Prefactor     .10000E-03    21.318       -.19394E-06** at limit **
  18  norm          .10000E-03    7.8033        .11103E-06** at limit **
  19  norm          .80611        7.0344        .22626E-06    .46936E-04
  20  norm          .10000E-03    1.7347        .24342E-07** at limit **
  21  norm          8.2319        10.897       -.16312E-07    .54513E-04
  22  Prefactor     .10000E-03    6.1871       -.12347E-05** at limit **
  23  Prefactor     .10000E-03    12.544       -.58466E-08** at limit **
  24  norm          .10000E-03    1.6507        .74488E-07** at limit **
  25  Prefactor     4.2847        10.076        .19691E-05    .16744E-03
  26  norm          .10000E-03    .33296        .32743E-07** at limit **
  27  norm          12.143        6.0776       -.70414E-07   -.12162E-04
  28  Prefactor     8.0357        23.699       -.16336E-06    .30707E-04
  29  Prefactor     7.4578        3.9711        .25921E-06    .10862E-02
  30  Prefactor     .10001E-03    170.93       -.12299E-04** at limit **
  31  norm          .10000E-03    9.9951        .16215E-07** at limit **
  32  Prefactor     1.3163        5.0177       -.64088E-06    .13792E-03
  33  Prefactor     .10000E-03    2.6532       -.15660E-07** at limit **
  34  Normalizat    1.2899        .26658        .25328E-05    .87233E-04
  35  Prefactor     .67435        .26838       -.30464E-05    .24499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.5721
  Prefactor  = 2.64598
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 14.3859
  Prefactor  = 0.0001
  Prefactor  = 2.16668
  Prefactor  = 41.1542
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.8359
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 120.277
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.806113
  norm       = 0.0001
  norm       = 8.23189
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.28471
  norm       = 0.0001
  norm       = 12.143
  Prefactor  = 8.0357
  Prefactor  = 7.45783
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 1.31635
  Prefactor  = 0.0001
  Normalizat = 1.28995
  Prefactor  = 0.674351
 **********
 **   18 **HESSE 
 **********

 FCN=   4580.858     FROM HESSE     STATUS=OK           768 CALLS     5826 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.572        17.067        .95531E-04   -1.4869    
   3  Prefactor     2.6460        161.00        .24680E-03   -1.5383    
   4  Prefactor     .10000E-03    15.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.6132        .10685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.386        6.8581        .10560E-03   -1.4949    
   7  Prefactor     .10000E-03    18.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.1667        7.1661        .27974E-03   -1.5414    
   9  Prefactor     41.154        41.768        .62480E-04   -1.4424    
  10  Prefactor     .10000E-03    8.6505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    38.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     34.836        16.313        .67896E-04   -1.4527    
  13  Prefactor     .10000E-03    82.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.3413        .10109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     120.28        91.044        .18348E-03   -1.3510    
  17  Prefactor     .10000E-03    21.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.8243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .80611        6.9164        .34614E-03   -1.5528    
  20  norm          .10000E-03    1.7351        .87061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.2319        10.895        .69865E-03   -1.5134    
  22  Prefactor     .10000E-03    20.134        .29547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.6544        .84884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.2847        10.541        .19515E-03   -1.5294    
  26  norm          .10000E-03    .33669        .38093E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          12.143        6.0745        .11295E-03   -1.5011    
  28  Prefactor     8.0357        23.717        .14135E-03   -1.5141    
  29  Prefactor     7.4578        3.9784        .93263E-04   -1.5162    
  30  Prefactor     .10001E-03    170.17        .52011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    10.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.3163        5.0410        .13848E-02   -1.5479    
  33  Prefactor     .10000E-03    2.7189        .21516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.2899        .28045        .22572E-03   -.83867    
  35  Prefactor     .67435        .27959        .31646E-03   -1.0454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02433e-09
Minuit parameter uncertainties:
  1  1.32332e-05
  2  17.0716
  3  41.3965
  4  0.000407381
  5  6.60586e-07
  6  6.8585
  7  3.47771e-05
  8  7.16896
  9  41.7978
  10  7.9609e-06
  11  3.67191e-05
  12  16.3154
  13  0.000408975
  14  4.6213e-06
  15  4.56764e-05
  16  91.15
  17  9.0268e-05
  18  2.06483e-05
  19  4.72289
  20  1.75837e-06
  21  10.8976
  22  0.000208557
  23  1.28486e-05
  24  4.17267e-06
  25  10.5455
  26  6.96638e-07
  27  6.07482
  28  23.745
  29  3.97857
  30  0.00227783
  31  8.61849e-06
  32  5.04261
  33  2.75579e-08
  34  0.280781
  35  0.280171
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  2.065e-05  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:  6.744e-01  2.802e-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.290e+00  2.808e-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: 3.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731327/likelihoodResults_523411201_523670401_4FGL_J2317.4-4533_daily_bin1096.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): 102
logL (Free Index) = 4580.85863594
delta logL = -0.00060473650592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4580.8580312
delta logL = 9.56788426265e-10

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4580.858     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      248 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    347.57        .18142E-02** at limit **
   2  alpha         1.8636        3.3361        .50000       -.16894E-07
   3  Normalizat    1.2900        .35832E-01    .22572E-03   -.92673E-05
   4  Prefactor     .67435        .37671E-01    .31646E-03   -.68616E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.86359
  Normalizat = 1.28995
  Prefactor  = 0.674346
 **********
 **   18 **HESSE 
 **********

 FCN=   4580.858     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1242.5        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8636        2.8744        .50000       -.25740    
   3  Normalizat    1.2900        .89131E-01    .90289E-05   -.83867    
   4  Prefactor     .67435        .93694E-01    .12658E-04   -1.0454    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.93961e-09
Minuit parameter uncertainties:
  1  0.00142514
  2  2922.12
  3  0.0891414
  4  0.0937163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731327': 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): 102
logL (Free Index) = 4580.85803117
delta logL = 2.68528310698e-08

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  1.425e-03  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  1.864e+00  2.922e+03  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:  6.743e-01  9.372e-02  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.290e+00  8.914e-02  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/731327/cmap_HighResolution_523411201_523670401_4FGL_J2317.4-4533_daily_bin1096.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.09e-05', job_status='DONE', photon_flux_upper_limit='3.67e-08', time_completed='2021-09-29 10:44:08.816692', job_id='731327', GAL2='0.67', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1632937448.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='2.69e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1096' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:44:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 731327: <4FGL_J2317.4-4533_daily_bin1096> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1096> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep 29 10:30:25 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:30:26 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:26 2021
Terminated at Wed Sep 29 10:44:09 2021
Results reported at Wed Sep 29 10:44:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1096 349.357 -45.5623 523411201 523670401 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 :                                   801.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            824 sec.

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

