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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin903
RA = 349.357, Dec = -45.5623
tmin = 473385601, tmax = 473644801
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='730274', job_status='RUN', time_executed='2021-09-29 10:25:51.291323', time_epoch_executed='1632936351.29' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='903'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/730274

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/730274/ft1_4FGL_J2317.4-4533_daily_bin903.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/730274/ft2_4FGL_J2317.4-4533_daily_bin903.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/730274/ft1_4FGL_J2317.4-4533_daily_bin903.fits outfile=/scratch/kocevski/730274/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin903.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=473385601.0 tmax=473644801.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.66
user 3.45
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/730274/ft1_filtered_4FGL_J2317.4-4533_daily_bin903.fits" evtable="EVENTS" scfile=/scratch/kocevski/730274/ft2_4FGL_J2317.4-4533_daily_bin903.fits sctable="SC_DATA" outfile=/scratch/kocevski/730274/ltcube_473385601_473644801_4FGL_J2317.4-4533_daily_bin903.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/730274/ft2_4FGL_J2317.4-4533_daily_bin903.fits
.....................!
real 12.26
user 11.89
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/730274/ft1_filtered_4FGL_J2317.4-4533_daily_bin903.fits evtable="EVENTS" scfile=/scratch/kocevski/730274/ft2_4FGL_J2317.4-4533_daily_bin903.fits sctable="SC_DATA" expcube=/scratch/kocevski/730274/ltcube_473385601_473644801_4FGL_J2317.4-4533_daily_bin903.fits outfile=/scratch/kocevski/730274/expmap_473385601_473644801_4FGL_J2317.4-4533_daily_bin903.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/730274/ltcube_473385601_473644801_4FGL_J2317.4-4533_daily_bin903.fits
.....................!
real 189.87
user 185.09
sys 4.26

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/730274/ft1_filtered_4FGL_J2317.4-4533_daily_bin903.fits scfile=/scratch/kocevski/730274/ft2_4FGL_J2317.4-4533_daily_bin903.fits outfile=/scratch/kocevski/730274/cmap_473385601_473644801_4FGL_J2317.4-4533_daily_bin903.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.36
sys 0.16

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/730274/ft1_filtered_4FGL_J2317.4-4533_daily_bin903.fits evtable="EVENTS" scfile=/scratch/kocevski/730274/ft2_4FGL_J2317.4-4533_daily_bin903.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/730274/Model_4FGL_J2317.4-4533_daily_bin903.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/730274/ft1_filtered_4FGL_J2317.4-4533_daily_bin903.fits.....................!
real 39.43
user 38.15
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.304       1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.625       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9119       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10557E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .76589E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.178       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.469       1.0000         .10000E-03   10000.    
    13 'Prefactor '    56.796       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    50.269       1.0000         .10000E-03   10000.    
    16 'Prefactor '    88.842       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .79873E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    14.901       1.0000         .10000E-03   10000.    
    19 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    30.416       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.7244       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.1836       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.3761       1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .15138E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.2937       1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.702       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 '    .10330E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.0480       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .82719       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=   5215.053     FROM MIGRAD    STATUS=CONVERGED   1757 CALLS     5141 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.298        53.831        .88889E-04   -.14836E-04
   2  Prefactor     28.623        25.081        .74882E-04    .24291E-04
   3  Prefactor     .10000E-03    12.596        .18142E-02** at limit **
   4  Prefactor     .10000E-03    4.6070        .15123E-02** at limit **
   5  norm          1.9123        5.4563        .27861E-03   -.92627E-05
   6  Prefactor     .10000E-03    10.791        .16969E-02** at limit **
   7  Prefactor     .10000E-03    10.418        .18142E-02** at limit **
   8  Prefactor     .10000E-03    4.1322        .14239E-02** at limit **
   9  Prefactor     .10000E-03    16.436        .18142E-02** at limit **
  10  Prefactor     .10083E-03    149.42        .59543E-02** at limit **
  11  Prefactor     15.167        34.989        .10280E-03    .85704E-04
  12  Prefactor     11.473        13.703        .11829E-03    .31811E-04
  13  Prefactor     56.794        78.729        .53230E-04    .70053E-05
  14  Prefactor     .10000E-03    4.4450        .14786E-02** at limit **
  15  Prefactor     50.258        46.912        .56562E-04    .20501E-04
  16  Prefactor     88.862        69.400        .21314E-03    .55174E-04
  17  Prefactor     .10095E-03    20.039        .77493E-01** at limit **
  18  norm          14.901        11.957        .10376E-03    .23009E-05
  19  norm          .10000E-03    8.6190        .18142E-02** at limit **
  20  norm          .10000E-03    2.2375        .10539E-02** at limit **
  21  norm          30.416        11.614        .72649E-04    .10172E-04
  22  Prefactor     3.7219        7.4368        .10462E-02   -.19418E-03
  23  Prefactor     .10000E-03    18.785        .18142E-02** at limit **
  24  norm          4.1796        3.8953        .13207E-03    .13566E-03
  25  Prefactor     9.3764        10.876        .13088E-03   -.15201E-04
  26  norm          .10000E-03    .47160        .95613E-04** at limit **
  27  norm          .10000E-03    5.0654        .23070E-02** at limit **
  28  Prefactor     3.2808        29.249        .22309E-03   -.35672E-06
  29  Prefactor     13.699        4.8111        .88672E-04   -.47848E-03
  30  Prefactor     .10000E-03    16.167        .18142E-02** at limit **
  31  norm          .10000E-03    6.9664        .18142E-02** at limit **
  32  Prefactor     .10000E-03    6.2649        .34470E-03** at limit **
  33  Prefactor     .10000E-03    1.3089        .80513E-03** at limit **
  34  Normalizat    1.0479        .23785        .23189E-03    .42358E-04
  35  Prefactor     .82729        .24252        .27658E-03   -.45215E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2982
  Prefactor  = 28.6228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.9123
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100835
  Prefactor  = 15.1671
  Prefactor  = 11.4726
  Prefactor  = 56.7941
  Prefactor  = 0.0001
  Prefactor  = 50.2584
  Prefactor  = 88.8621
  Prefactor  = 0.000100951
  norm       = 14.9006
  norm       = 0.0001
  norm       = 0.0001
  norm       = 30.4155
  Prefactor  = 3.72191
  Prefactor  = 0.0001
  norm       = 4.17959
  Prefactor  = 9.37639
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.28085
  Prefactor  = 13.6994
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04793
  Prefactor  = 0.82729
 **********
 **   18 **HESSE 
 **********

 FCN=   5215.053     FROM HESSE     STATUS=OK           748 CALLS     5889 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.298        53.819        .35556E-05   -1.4807    
   2  Prefactor     28.623        25.078        .29953E-05   -1.4637    
   3  Prefactor     .10000E-03    12.596        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6072        .30245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9123        5.4562        .11144E-04   -1.5431    
   6  Prefactor     .10000E-03    10.995        .33938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.418        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.1332        .28478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.436        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10083E-03    153.82        .23817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.167        34.968        .41122E-05   -1.4929    
  12  Prefactor     11.473        13.697        .47317E-05   -1.5030    
  13  Prefactor     56.794        78.724        .10646E-04   -1.4199    
  14  Prefactor     .10000E-03    4.4463        .29573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     50.258        46.911        .11312E-04   -1.4289    
  16  Prefactor     88.862        69.398        .42628E-04   -1.3820    
  17  Prefactor     .10095E-03    18.472        .81833E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.901        11.957        .41503E-05   -1.4936    
  19  norm          .10000E-03    8.6243        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.2376        .21079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          30.416        11.613        .29060E-05   -1.4604    
  22  Prefactor     3.7219        7.4238        .41848E-04   -1.5322    
  23  Prefactor     .10000E-03    18.786        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.1796        3.8945        .52830E-05   -1.5299    
  25  Prefactor     9.3764        10.866        .52352E-05   -1.5095    
  26  norm          .10000E-03    .47160        .19123E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    5.0801        .46139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.2808        29.240        .89237E-05   -1.5346    
  29  Prefactor     13.699        4.8109        .35469E-05   -1.4968    
  30  Prefactor     .10000E-03    16.169        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    6.9664        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    6.2653        .68939E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    1.3090        .16103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.0479        .23802        .92757E-05   -.91442    
  35  Prefactor     .82729        .24275        .11063E-04   -.98730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30962e-09
Minuit parameter uncertainties:
  1  53.9485
  2  25.087
  3  5.86157e-05
  4  1.4639e-05
  5  5.45761
  6  5.49372e-05
  7  1.61507e-05
  8  8.49528e-05
  9  1.96283e-05
  10  0.0227202
  11  35.0157
  12  13.7011
  13  78.8688
  14  8.61393e-06
  15  46.9454
  16  69.4617
  17  0.008385
  18  11.9589
  19  8.02126e-05
  20  1.44673e-06
  21  11.6143
  22  7.42567
  23  1.98739e-05
  24  3.89474
  25  10.8681
  26  4.4364e-06
  27  5.30412e-06
  28  19.6015
  29  4.81103
  30  1.80347e-05
  31  4.29709e-05
  32  9.01185e-05
  33  4.99012e-06
  34  0.238267
  35  0.243065
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.490e+01  1.196e+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:  8.273e-01  2.431e-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.048e+00  2.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.81
Ra Dec: 349.357 -45.562
Photon Index (Fixed Index): 1.79 +/- 0.00
Photon Flux (Fixed Index): 1.64e-08 +/- 1.32e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.47e-05

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) = 5215.00548055
delta logL = 0.04801375631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5215.00456952
delta logL = 0.0489247841542

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.358       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5917       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0485       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82878       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=   5215.005     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      257 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.358        12.646        .10220E-03    .22920E-03
   2  alpha         1.5917        .64619        .15587E-01    .24050E-04
   3  Normalizat    1.0486        .22223        .23184E-03   -.16721E-04
   4  Prefactor     .82865        .23972        .27642E-03   -.12873E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.3582
  alpha      = 1.59173
  Normalizat = 1.04863
  Prefactor  = 0.828651
 **********
 **   18 **HESSE 
 **********

 FCN=   5215.005     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.358        12.653        .20440E-04   -1.4924    
   2  alpha         1.5917        .64670        .62348E-03   -.37182    
   3  Normalizat    1.0486        .22247        .92737E-05   -.91419    
   4  Prefactor     .82865        .23998        .11057E-04   -.98681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.81138e-11
Minuit parameter uncertainties:
  1  12.6557
  2  0.655306
  3  0.222667
  4  0.240285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/730274': 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) = 5215.00456938
delta logL = 0.0489249259854

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.536e+01  1.266e+01  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  1.592e+00  6.553e-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:  8.287e-01  2.403e-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.049e+00  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.90
Ra Dec: 349.357 -45.562
Photon Index (Free Index): 1.59 +/- 0.66
Photon Flux (Free Index): 1.35e-08 +/- 1.43e-08
Energy Flux (Free Index): 2.23e-05 +/- 2.34e-05

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/730274/cmap_HighResolution_473385601_473644801_4FGL_J2317.4-4533_daily_bin903.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.64e-08', energy_flux2='2.23e-05', photon_flux_error='1.32e-08', dlogl='4.89e-02', energy_flux='1.83e-05', photon_flux2='1.35e-08', job_status='DONE', time_completed='2021-09-29 10:38:30.669208', photon_index_error2='0.66', photon_index2='1.59', ts='5.81', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.34e-05', EG='1.05', time_epoch_completed='1632937110.67', return_code='0', job_id='730274', GAL2='0.83', EG2='1.05', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='1.43e-08', ts2='5.90', photon_index='1.79' WHERE bin_id='903' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:38:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 730274: <4FGL_J2317.4-4533_daily_bin903> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin903 349.357 -45.5623 473385601 473644801 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 :                                   755.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             357.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            778 sec.

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

