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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin464
RA = 350.888, Dec = -3.29
tmin = 359596801, tmax = 359856001
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='809387', job_status='RUN', time_executed='2021-09-29 14:31:00.249746', time_epoch_executed='1632951060.25' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='464'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809387

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809387/ft1_4FGL_J2323.5-0317_daily_bin464.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809387/ft2_4FGL_J2323.5-0317_daily_bin464.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809387/ft1_4FGL_J2323.5-0317_daily_bin464.fits outfile=/scratch/kocevski/809387/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin464.fits ra=350.888 dec=-3.29 rad=12.0 tmin=359596801.0 tmax=359856001.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.78
user 3.52
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/809387/ft2_4FGL_J2323.5-0317_daily_bin464.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809387/ft2_4FGL_J2323.5-0317_daily_bin464.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/809387/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin464.fits evtable="EVENTS" outfile="/scratch/kocevski/809387/ft1_filtered_4FGL_J2323.5-0317_daily_bin464.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809387/ft1_filtered_4FGL_J2323.5-0317_daily_bin464.fits" evtable="EVENTS" scfile=/scratch/kocevski/809387/ft2_4FGL_J2323.5-0317_daily_bin464.fits sctable="SC_DATA" outfile=/scratch/kocevski/809387/ltcube_359596801_359856001_4FGL_J2323.5-0317_daily_bin464.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/809387/ft2_4FGL_J2323.5-0317_daily_bin464.fits
.....................!
real 12.72
user 12.09
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809387/ft1_filtered_4FGL_J2323.5-0317_daily_bin464.fits evtable="EVENTS" scfile=/scratch/kocevski/809387/ft2_4FGL_J2323.5-0317_daily_bin464.fits sctable="SC_DATA" expcube=/scratch/kocevski/809387/ltcube_359596801_359856001_4FGL_J2323.5-0317_daily_bin464.fits outfile=/scratch/kocevski/809387/expmap_359596801_359856001_4FGL_J2323.5-0317_daily_bin464.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/809387/ltcube_359596801_359856001_4FGL_J2323.5-0317_daily_bin464.fits
.....................!
real 191.33
user 185.90
sys 5.04

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J2323.5-0317 @ 350.888 -3.29

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/809387/ft1_filtered_4FGL_J2323.5-0317_daily_bin464.fits scfile=/scratch/kocevski/809387/ft2_4FGL_J2323.5-0317_daily_bin464.fits outfile=/scratch/kocevski/809387/cmap_359596801_359856001_4FGL_J2323.5-0317_daily_bin464.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=350.888 yref=-3.29 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/809387/ft1_filtered_4FGL_J2323.5-0317_daily_bin464.fits scfile=/scratch/kocevski/809387/ft2_4FGL_J2323.5-0317_daily_bin464.fits outfile=/scratch/kocevski/809387/cmap_HighResolution_359596801_359856001_4FGL_J2323.5-0317_daily_bin464.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=350.888 yref=-3.29 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809387/ft1_filtered_4FGL_J2323.5-0317_daily_bin464.fits evtable="EVENTS" scfile=/scratch/kocevski/809387/ft2_4FGL_J2323.5-0317_daily_bin464.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809387/Model_4FGL_J2323.5-0317_daily_bin464.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/809387/ft1_filtered_4FGL_J2323.5-0317_daily_bin464.fits.....................!
real 66.47
user 65.07
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/809387/ft1_filtered_4FGL_J2323.5-0317_daily_bin464.fits', '/scratch/kocevski/809387/ft2_4FGL_J2323.5-0317_daily_bin464.fits', expMap='/scratch/kocevski/809387/expmap_359596801_359856001_4FGL_J2323.5-0317_daily_bin464.fits', expCube='/scratch/kocevski/809387/ltcube_359596801_359856001_4FGL_J2323.5-0317_daily_bin464.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/809387/Model_4FGL_J2323.5-0317_daily_bin464.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2323.5-0317'

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.648e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/809387/ft1_filtered_4FGL_J2323.5-0317_daily_bin464.fits
Spacecraft file(s): /scratch/kocevski/809387/ft2_4FGL_J2323.5-0317_daily_bin464.fits
Exposure map: /scratch/kocevski/809387/expmap_359596801_359856001_4FGL_J2323.5-0317_daily_bin464.fits
Exposure cube: /scratch/kocevski/809387/ltcube_359596801_359856001_4FGL_J2323.5-0317_daily_bin464.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/809387/Model_4FGL_J2323.5-0317_daily_bin464.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) = 7380.40489534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3591       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .56505E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.1118       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5383       1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.930       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13220E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.9268       1.0000         .10000E-03   10000.    
    11 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6623       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11288E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    32.202       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.9738       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .25922E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.389       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.9382       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89138       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92769       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7380.380     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2860 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3605        6.7686        .32750E-02   -.12225E-03
   2  Prefactor     .10000E-03    14.111        .90712E-02** at limit **
   3  Prefactor     .10000E-03    5.9378        .90712E-02** at limit **
   4  Prefactor     .10001E-03    5.1626        .72344E-01** at limit **
   5  norm          9.1125        9.2931        .33194E-02    .68396E-04
   6  Prefactor     .10000E-03    13.876        .90712E-02** at limit **
   7  Prefactor     6.5387        12.006        .39237E-02    .14054E-02
   8  Prefactor     33.928        37.186        .17199E-02    .34113E-03
   9  Prefactor     .10000E-03    7.5060        .90712E-02** at limit **
  10  norm          2.9263        1.0578        .59362E-03    .15351E-02
  11  norm          .10000E-03    2.4155        .90712E-02** at limit **
  12  Prefactor     1.6630        12.002        .81793E-02    .40781E-03
  13  Prefactor     .10000E-03    32.328        .90712E-02** at limit **
  14  Prefactor     .10000E-03    68.306        .90712E-02** at limit **
  15  Prefactor     .10000E-03    5.5163        .90712E-02** at limit **
  16  Prefactor     .10000E-03    18.795        .90712E-02** at limit **
  17  norm          32.182        18.973        .17653E-02   -.29148E-04
  18  Prefactor     6.9694        26.218        .37979E-02    .53565E-03
  19  Prefactor     .10000E-03    1.7078        .59213E-01** at limit **
  20  Prefactor     24.390        33.441        .20278E-02   -.73606E-03
  21  Prefactor     .10000E-03    6.7748        .90712E-02** at limit **
  22  Prefactor     .10000E-03    7.6701        .90712E-02** at limit **
  23  Prefactor     6.9384        5.5489        .38077E-02    .20796E-03
  24  Normalizat    .89130        .16419        .44791E-01    .17522E-04
  25  Prefactor     .92772        .11977        .45357E-01    .29491E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.3605
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 9.11245
  Prefactor  = 0.000100003
  Prefactor  = 6.53873
  Prefactor  = 33.9282
  Prefactor  = 0.000100003
  norm       = 2.92634
  norm       = 0.0001
  Prefactor  = 1.66304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 32.1822
  Prefactor  = 6.96939
  Prefactor  = 0.0001
  Prefactor  = 24.3904
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.93843
  Normalizat = 0.891301
  Prefactor  = 0.927722
 **********
 **   18 **HESSE 
 **********

 FCN=   7380.380     FROM HESSE     STATUS=OK           423 CALLS     3283 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3605        6.7674        .13100E-03   -1.5096    
   2  Prefactor     .10000E-03    14.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.9399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    20.721        .37877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.1125        9.2900        .13277E-03   -1.5104    
   6  Prefactor     .10000E-03    13.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.5387        12.004        .78474E-03   -1.5196    
   8  Prefactor     33.928        37.105        .68795E-04   -1.4542    
   9  Prefactor     .10000E-03    7.5616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.9263        1.0553        .11872E-03   -1.5366    
  11  norm          .10000E-03    2.4364        .13027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6630        12.001        .32717E-03   -1.5450    
  13  Prefactor     .10000E-03    32.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    68.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.5396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          32.182        18.227        .70611E-04   -1.4573    
  18  Prefactor     6.9694        26.202        .15192E-03   -1.5180    
  19  Prefactor     .10000E-03    6.5053        .20605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.390        33.448        .81112E-04   -1.4720    
  21  Prefactor     .10000E-03    6.7853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.7242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.9384        5.5534        .15231E-03   -1.5181    
  24  Normalizat    .89130        .18745        .27110E-03   -.96766    
  25  Prefactor     .92772        .13741        .20107E-03   -.95179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.87436e-09
Minuit parameter uncertainties:
  1  6.76797
  2  0.000376974
  3  2.16931e-05
  4  0.000904801
  5  9.29143
  6  0.000404868
  7  12.0083
  8  37.1305
  9  0.000280874
  10  1.05527
  11  2.70469e-06
  12  8.93727
  13  5.5922e-05
  14  0.000109541
  15  8.92433e-06
  16  0.000144407
  17  18.2306
  18  26.2448
  19  2.16732e-06
  20  33.4738
  21  6.82851e-05
  22  0.000220253
  23  5.55379
  24  0.187591
  25  0.137466
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.926e+00  1.055e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  9.277e-01  1.375e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  8.913e-01  1.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.29
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 4.08e-08
Energy Flux (Fixed Index): 4.64e-05 +/- 1.67e-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) = 7378.19846469
delta logL = 2.18165750802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7378.18611035
delta logL = 2.19401184563

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1145       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9241       1.0000          .0000       5.0000    
     3 'Normalizat'    .79750       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96939       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+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=   7378.186     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      301 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1143        1.0226        .34479E-04    .33171E-03
   2  alpha         2.9240        .41002        .77480E-02    .24140E-04
   3  Normalizat    .79752        .18634        .28434E-03   -.24650E-03
   4  Prefactor     .96950        .13821        .19691E-03   -.41700E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.11432
  alpha      = 2.92401
  Normalizat = 0.797518
  Prefactor  = 0.969498
 **********
 **   18 **HESSE 
 **********

 FCN=   7378.186     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1143        .97120        .13792E-05   -1.5417    
   2  alpha         2.9240        .38931        .30992E-03    .17043    
   3  Normalizat    .79752        .18626        .11373E-04   -1.0016    
   4  Prefactor     .96950        .13816        .39381E-04   -.93753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08718e-10
Minuit parameter uncertainties:
  1  0.971206
  2  0.390951
  3  0.186412
  4  0.138206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809387': 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) = 7378.18610898
delta logL = 2.19401321475

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.114e+00  9.712e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.924e+00  3.910e-01  0.000e+00  5.000e+00 ( 1.000e+00)
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  9.695e-01  1.382e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  7.975e-01  1.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.08
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.92 +/- 0.39
Photon Flux (Free Index): 1.94e-07 +/- 6.32e-08
Energy Flux (Free Index): 4.18e-05 +/- 1.25e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/809387/cmap_HighResolution_359596801_359856001_4FGL_J2323.5-0317_daily_bin464.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='4.18e-05', photon_flux_error='4.08e-08', dlogl='2.19e+00', energy_flux='4.64e-05', photon_flux2='1.94e-07', job_status='DONE', time_completed='2021-09-29 14:42:08.036965', photon_index_error2='0.39', photon_index2='2.92', ts='16.29', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.25e-05', EG='0.89', time_epoch_completed='1632951728.04', return_code='0', job_id='809387', GAL2='0.97', EG2='0.80', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='6.32e-08', ts2='21.08', photon_index='2.16' WHERE bin_id='464' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:42:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 809387: <4FGL_J2323.5-0317_daily_bin464> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin464> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 14:30:18 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:30:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 14:30:20 2021
Terminated at Wed Sep 29 14:42:08 2021
Results reported at Wed Sep 29 14:42:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin464 350.888 -3.29 359596801 359856001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2323.5-0317 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   654.23 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             326.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            710 sec.

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

