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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin703
RA = 350.888, Dec = -3.29
tmin = 421545601, tmax = 421804801
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='810843', job_status='RUN', time_executed='2021-09-29 14:36:50.333300', time_epoch_executed='1632951410.33' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810843

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810843/ft1_4FGL_J2323.5-0317_daily_bin703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810843/ft2_4FGL_J2323.5-0317_daily_bin703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810843/ft1_4FGL_J2323.5-0317_daily_bin703.fits outfile=/scratch/kocevski/810843/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin703.fits ra=350.888 dec=-3.29 rad=12.0 tmin=421545601.0 tmax=421804801.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.61
user 3.39
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/810843/ft1_filtered_4FGL_J2323.5-0317_daily_bin703.fits" evtable="EVENTS" scfile=/scratch/kocevski/810843/ft2_4FGL_J2323.5-0317_daily_bin703.fits sctable="SC_DATA" outfile=/scratch/kocevski/810843/ltcube_421545601_421804801_4FGL_J2323.5-0317_daily_bin703.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/810843/ft2_4FGL_J2323.5-0317_daily_bin703.fits
.....................!
real 12.12
user 11.67
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810843/ft1_filtered_4FGL_J2323.5-0317_daily_bin703.fits evtable="EVENTS" scfile=/scratch/kocevski/810843/ft2_4FGL_J2323.5-0317_daily_bin703.fits sctable="SC_DATA" expcube=/scratch/kocevski/810843/ltcube_421545601_421804801_4FGL_J2323.5-0317_daily_bin703.fits outfile=/scratch/kocevski/810843/expmap_421545601_421804801_4FGL_J2323.5-0317_daily_bin703.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/810843/ltcube_421545601_421804801_4FGL_J2323.5-0317_daily_bin703.fits
.....................!
real 191.71
user 186.52
sys 4.60

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/810843/ft1_filtered_4FGL_J2323.5-0317_daily_bin703.fits scfile=/scratch/kocevski/810843/ft2_4FGL_J2323.5-0317_daily_bin703.fits outfile=/scratch/kocevski/810843/cmap_421545601_421804801_4FGL_J2323.5-0317_daily_bin703.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/810843/ft1_filtered_4FGL_J2323.5-0317_daily_bin703.fits scfile=/scratch/kocevski/810843/ft2_4FGL_J2323.5-0317_daily_bin703.fits outfile=/scratch/kocevski/810843/cmap_HighResolution_421545601_421804801_4FGL_J2323.5-0317_daily_bin703.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/810843/ft1_filtered_4FGL_J2323.5-0317_daily_bin703.fits evtable="EVENTS" scfile=/scratch/kocevski/810843/ft2_4FGL_J2323.5-0317_daily_bin703.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/810843/Model_4FGL_J2323.5-0317_daily_bin703.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/810843/ft1_filtered_4FGL_J2323.5-0317_daily_bin703.fits.....................!
real 52.63
user 51.27
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/810843/ft1_filtered_4FGL_J2323.5-0317_daily_bin703.fits', '/scratch/kocevski/810843/ft2_4FGL_J2323.5-0317_daily_bin703.fits', expMap='/scratch/kocevski/810843/expmap_421545601_421804801_4FGL_J2323.5-0317_daily_bin703.fits', expCube='/scratch/kocevski/810843/ltcube_421545601_421804801_4FGL_J2323.5-0317_daily_bin703.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/810843/Model_4FGL_J2323.5-0317_daily_bin703.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/810843/ft1_filtered_4FGL_J2323.5-0317_daily_bin703.fits
Spacecraft file(s): /scratch/kocevski/810843/ft2_4FGL_J2323.5-0317_daily_bin703.fits
Exposure map: /scratch/kocevski/810843/expmap_421545601_421804801_4FGL_J2323.5-0317_daily_bin703.fits
Exposure cube: /scratch/kocevski/810843/ltcube_421545601_421804801_4FGL_J2323.5-0317_daily_bin703.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/810843/Model_4FGL_J2323.5-0317_daily_bin703.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) = 5433.21764559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.190       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.865       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.694       1.0000         .10000E-03   10000.    
     8 'Prefactor '    53.335       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.842       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4136       1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5768       1.0000         .10000E-03   10000.    
    13 'Prefactor '    85.623       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5553       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9754       1.0000         .10000E-03   10000.    
    17 'norm      '    16.625       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .36881       1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.490       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.0943       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1872       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88673       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85769       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.

 FCN=   5433.214     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2873 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.190        10.333       -.59328E-06    .80043E-04
   2  Prefactor     21.854        44.207       -.16405E-04    .33402E-04
   3  Prefactor     .10000E-03    26.939       -.40464E-05** at limit **
   4  Prefactor     .10000E-03    12.414       -.14410E-05** at limit **
   5  norm          .10000E-03    4.8360       -.16463E-06** at limit **
   6  Prefactor     .10000E-03    14.863        .16566E-05** at limit **
   7  Prefactor     17.691        16.993       -.13594E-05    .32995E-04
   8  Prefactor     53.177        80.044       -.19104E-03    .63380E-04
   9  Prefactor     14.853        15.096        .43437E-04    .42118E-03
  10  norm          1.4136        .96587       -.11062E-06    .61248E-03
  11  norm          .10000E-03    2.1823       -.25593E-06** at limit **
  12  Prefactor     3.5740        11.837       -.49136E-05   -.16961E-03
  13  Prefactor     85.612        55.309       -.10149E-04    .47327E-04
  14  Prefactor     .10000E-03    82.029        .54238E-04** at limit **
  15  Prefactor     4.5818        15.480       -.24746E-06    .69363E-04
  16  Prefactor     5.9733        14.081       -.46183E-06   -.33349E-04
  17  norm          16.634        23.351       -.20214E-05    .10407E-03
  18  Prefactor     .10000E-03    94.271       -.53837E-04** at limit **
  19  Prefactor     .33000        2.9744       -.71839E-06    .13733E-03
  20  Prefactor     40.489        36.091       -.29151E-05    .79487E-04
  21  Prefactor     9.0929        12.144       -.66992E-06   -.35101E-05
  22  Prefactor     1.1863        51.977       -.16730E-04   -.22613E-03
  23  Prefactor     .10000E-03    3.3011       -.36142E-07** at limit **
  24  Normalizat    .88657        .19740        .17510E-04    .10096E-03
  25  Prefactor     .85791        .13851       -.97275E-06    .90301E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1897
  Prefactor  = 21.8543
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6915
  Prefactor  = 53.177
  Prefactor  = 14.8526
  norm       = 1.41357
  norm       = 0.0001
  Prefactor  = 3.57396
  Prefactor  = 85.6123
  Prefactor  = 0.0001
  Prefactor  = 4.58185
  Prefactor  = 5.97331
  norm       = 16.6337
  Prefactor  = 0.000100001
  Prefactor  = 0.330001
  Prefactor  = 40.4887
  Prefactor  = 9.09294
  Prefactor  = 1.18634
  Prefactor  = 0.0001
  Normalizat = 0.886573
  Prefactor  = 0.857912
 **********
 **   18 **HESSE 
 **********

 FCN=   5433.214     FROM HESSE     STATUS=OK           429 CALLS     3302 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.190        10.331        .11976E-03   -1.5039    
   2  Prefactor     21.854        44.204        .85659E-04   -1.4773    
   3  Prefactor     .10000E-03    27.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.8467        .15829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.691        16.996        .95216E-04   -1.4866    
   8  Prefactor     53.177        80.203        .27460E-03   -1.4248    
   9  Prefactor     14.853        15.091        .10396E-03   -1.4937    
  10  norm          1.4136        .94904        .56517E-04   -1.5470    
  11  norm          .10000E-03    2.1845        .10624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.5740        11.805        .21368E-03   -1.5330    
  13  Prefactor     85.612        55.275        .43415E-04   -1.3855    
  14  Prefactor     .10000E-03    82.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.5818        15.067        .18861E-03   -1.5280    
  16  Prefactor     5.9733        14.057        .16427E-03   -1.5219    
  17  norm          16.634        23.083        .98228E-04   -1.4892    
  18  Prefactor     .10000E-03    94.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .33000        14.698        .21228E-02   -1.5593    
  20  Prefactor     40.489        36.079        .62994E-04   -1.4434    
  21  Prefactor     9.0929        12.143        .13290E-03   -1.5105    
  22  Prefactor     1.1863        53.066        .41856E-03   -1.5490    
  23  Prefactor     .10000E-03    3.3119        .13076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .88657        .22335        .27403E-03   -.96934    
  25  Prefactor     .85791        .15842        .20540E-03   -.97628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85406e-09
Minuit parameter uncertainties:
  1  10.3329
  2  44.2706
  3  4.5428e-06
  4  7.01476e-05
  5  4.56129e-05
  6  8.61055e-05
  7  17.001
  8  80.3669
  9  15.0946
  10  0.949049
  11  3.24981e-05
  12  11.8122
  13  55.3082
  14  1.83815e-05
  15  15.0793
  16  14.0652
  17  23.0955
  18  0.000518973
  19  4.40516
  20  36.0983
  21  12.1459
  22  15.883
  23  1.16991e-05
  24  0.223585
  25  0.158501
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.414e+00  9.490e-01  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:  8.579e-01  1.585e-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.866e-01  2.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.84
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 5.47e-08 +/- 3.67e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.50e-05

TS (Fixed Index): 3.84
Ra Dec: 350.888 -3.290
Photon Flux Upper Limit: 1.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/810843/likelihoodResults_421545601_421804801_4FGL_J2323.5-0317_daily_bin703.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) = 5433.21121927
delta logL = 0.00246797801992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5433.21103135
delta logL = 0.00265590370418

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4280       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1174       1.0000          .0000       5.0000    
     3 'Normalizat'    .88861       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85685       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=   5433.211     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      191 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4281        28.339        .90411E-02    .85489E-03
   2  alpha         2.1178        2.7326        .36970        .26702E-05
   3  Normalizat    .88857        .11234        .44756E-01   -.56633E-04
   4  Prefactor     .85687        .91782E-01    .44453E-01   -.81602E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.42808
  alpha      = 2.1178
  Normalizat = 0.888569
  Prefactor  = 0.856871
 **********
 **   18 **HESSE 
 **********

 FCN=   5433.211     FROM HESSE     STATUS=OK            33 CALLS      224 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4281        .96857        .56894E-04   -1.5469    
   2  alpha         2.1178        .57548        .14113E-01   -.15348    
   3  Normalizat    .88857        .21135        .27376E-03   -.96863    
   4  Prefactor     .85687        .15646        .20551E-03   -.97665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79433e-11
Minuit parameter uncertainties:
  1  0.968578
  2  0.580813
  3  0.211547
  4  0.156539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810843': 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) = 5433.21103108
delta logL = 0.00265616704382

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.428e+00  9.686e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.118e+00  5.808e-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:  8.569e-01  1.565e-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.886e-01  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.84
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.12 +/- 0.58
Photon Flux (Free Index): 5.31e-08 +/- 4.09e-08
Energy Flux (Free Index): 2.30e-05 +/- 1.79e-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/810843/cmap_HighResolution_421545601_421804801_4FGL_J2323.5-0317_daily_bin703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.45e-05', comment='SUCCESS', photon_flux='5.47e-08', energy_flux2='2.30e-05', photon_flux_error='3.67e-08', dlogl='2.66e-03', energy_flux='2.24e-05', photon_flux2='5.31e-08', job_status='DONE', time_completed='2021-09-29 14:47:17.512800', photon_index_error2='0.58', photon_index2='2.12', ts='3.84', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='1.79e-05', EG='0.89', time_epoch_completed='1632952037.51', return_code='0', job_id='810843', GAL2='0.86', EG2='0.89', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='4.09e-08', ts2='3.84', photon_index='2.16' WHERE bin_id='703' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:47:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 810843: <4FGL_J2323.5-0317_daily_bin703> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin703> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 14:35:14 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:35:16 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:35:16 2021
Terminated at Wed Sep 29 14:47:17 2021
Results reported at Wed Sep 29 14:47:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin703 350.888 -3.29 421545601 421804801 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 :                                   615.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             262.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            723 sec.

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

