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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin805
RA = 350.888, Dec = -3.29
tmin = 447984001, tmax = 448243201
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='810996', job_status='RUN', time_executed='2021-09-29 14:37:58.036009', time_epoch_executed='1632951478.04' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='805'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810996

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810996/ft1_4FGL_J2323.5-0317_daily_bin805.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810996/ft2_4FGL_J2323.5-0317_daily_bin805.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810996/ft1_4FGL_J2323.5-0317_daily_bin805.fits outfile=/scratch/kocevski/810996/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin805.fits ra=350.888 dec=-3.29 rad=12.0 tmin=447984001.0 tmax=448243201.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 4.00
user 3.80
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/810996/ft1_filtered_4FGL_J2323.5-0317_daily_bin805.fits" evtable="EVENTS" scfile=/scratch/kocevski/810996/ft2_4FGL_J2323.5-0317_daily_bin805.fits sctable="SC_DATA" outfile=/scratch/kocevski/810996/ltcube_447984001_448243201_4FGL_J2323.5-0317_daily_bin805.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/810996/ft2_4FGL_J2323.5-0317_daily_bin805.fits
.....................!
real 11.88
user 11.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810996/ft1_filtered_4FGL_J2323.5-0317_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/810996/ft2_4FGL_J2323.5-0317_daily_bin805.fits sctable="SC_DATA" expcube=/scratch/kocevski/810996/ltcube_447984001_448243201_4FGL_J2323.5-0317_daily_bin805.fits outfile=/scratch/kocevski/810996/expmap_447984001_448243201_4FGL_J2323.5-0317_daily_bin805.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/810996/ltcube_447984001_448243201_4FGL_J2323.5-0317_daily_bin805.fits
.....................!
real 189.92
user 184.81
sys 4.80

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/810996/ft1_filtered_4FGL_J2323.5-0317_daily_bin805.fits scfile=/scratch/kocevski/810996/ft2_4FGL_J2323.5-0317_daily_bin805.fits outfile=/scratch/kocevski/810996/cmap_447984001_448243201_4FGL_J2323.5-0317_daily_bin805.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/810996/ft1_filtered_4FGL_J2323.5-0317_daily_bin805.fits scfile=/scratch/kocevski/810996/ft2_4FGL_J2323.5-0317_daily_bin805.fits outfile=/scratch/kocevski/810996/cmap_HighResolution_447984001_448243201_4FGL_J2323.5-0317_daily_bin805.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/810996/ft1_filtered_4FGL_J2323.5-0317_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/810996/ft2_4FGL_J2323.5-0317_daily_bin805.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/810996/Model_4FGL_J2323.5-0317_daily_bin805.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/810996/ft1_filtered_4FGL_J2323.5-0317_daily_bin805.fits.....................!
real 62.02
user 60.77
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.1817       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0436       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.360       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .74462       1.0000         .10000E-03   10000.    
    11 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3034       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12000E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    215.87       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.9043       1.0000         .10000E-03   10000.    
    17 'norm      '    19.746       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.883       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.703       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.0543       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.973       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82049       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0648       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=   6551.000     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2890 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2253       -.17676E-07** at limit **
   2  Prefactor     .10000E-03    14.479       -.98428E-05** at limit **
   3  Prefactor     .10000E-03    7.0862       -.38411E-07** at limit **
   4  Prefactor     .10000E-03    2.3379        .12191E-07** at limit **
   5  norm          9.1835        10.085        .31050E-06   -.88751E-04
   6  Prefactor     5.0436        57.482       -.50969E-05   -.12716E-04
   7  Prefactor     19.353        17.494        .29443E-05    .71734E-05
   8  Prefactor     .10000E-03    15.370        .13400E-04** at limit **
   9  Prefactor     .10000E-03    5.1100       -.65577E-07** at limit **
  10  norm          .74403        .73046        .10127E-05    .12548E-02
  11  norm          .10000E-03    4.5238        .26428E-06** at limit **
  12  Prefactor     7.3020        12.295       -.58871E-05   -.87682E-04
  13  Prefactor     .10000E-03    365.76       -.38706E-04** at limit **
  14  Prefactor     215.58        245.90       -.18709E-03   -.10330E-04
  15  Prefactor     .10000E-03    5.1928        .81915E-07** at limit **
  16  Prefactor     9.8966        28.604        .99944E-05    .39924E-05
  17  norm          19.718        31.748        .28896E-04    .24915E-04
  18  Prefactor     .10000E-03    17.261       -.41997E-05** at limit **
  19  Prefactor     21.888        8.1388        .26794E-05   -.34587E-03
  20  Prefactor     .10000E-03    11.486        .49489E-06** at limit **
  21  Prefactor     10.699        21.398        .55437E-05   -.23051E-04
  22  Prefactor     5.0573        15.248        .34192E-05   -.78632E-04
  23  Prefactor     12.975        8.0650        .91411E-07   -.51322E-04
  24  Normalizat    .82024        .18952       -.13104E-05   -.18721E-04
  25  Prefactor     1.0649        .14226        .49028E-06   -.28143E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.18346
  Prefactor  = 5.04356
  Prefactor  = 19.3529
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.744034
  norm       = 0.0001
  Prefactor  = 7.302
  Prefactor  = 0.0001
  Prefactor  = 215.584
  Prefactor  = 0.0001
  Prefactor  = 9.8966
  norm       = 19.718
  Prefactor  = 0.0001
  Prefactor  = 21.8876
  Prefactor  = 0.0001
  Prefactor  = 10.6988
  Prefactor  = 5.05731
  Prefactor  = 12.9749
  Normalizat = 0.820244
  Prefactor  = 1.06486
 **********
 **   18 **HESSE 
 **********

 FCN=   6551.000     FROM HESSE     STATUS=OK           427 CALLS     3317 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2264        .11791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.0895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.3395        .12086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.1835        10.084        .13227E-03   -1.5102    
   6  Prefactor     5.0436        57.499        .17905E-03   -1.5259    
   7  Prefactor     19.353        17.495        .91028E-04   -1.4828    
   8  Prefactor     .10000E-03    15.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.1507        .17862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .74403        .71180        .65382E-04   -1.5535    
  11  norm          .10000E-03    4.6457        .33602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.3020        12.252        .14842E-03   -1.5167    
  13  Prefactor     .10000E-03    376.67        .36332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     215.58        245.95        .13762E-03   -1.2761    
  15  Prefactor     .10000E-03    5.1985        .17995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.8966        28.515        .12733E-03   -1.5079    
  17  norm          19.718        31.804        .90135E-04   -1.4820    
  18  Prefactor     .10000E-03    17.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.888        8.1591        .85623E-04   -1.4772    
  20  Prefactor     .10000E-03    11.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.699        21.389        .12247E-03   -1.5054    
  22  Prefactor     5.0573        15.229        .17886E-03   -1.5258    
  23  Prefactor     12.975        8.0785        .11121E-03   -1.4987    
  24  Normalizat    .82024        .21729        .30724E-03   -.99322    
  25  Prefactor     1.0649        .16405        .20625E-03   -.90598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55373e-10
Minuit parameter uncertainties:
  1  2.69676e-07
  2  2.12625e-06
  3  1.73991e-06
  4  4.67834e-07
  5  10.0855
  6  34.0999
  7  17.4997
  8  1.40008e-05
  9  1.95069e-05
  10  0.711803
  11  5.16207e-05
  12  12.2566
  13  0.000500836
  14  247.143
  15  1.12005e-05
  16  28.5542
  17  31.8318
  18  2.09921e-05
  19  8.15956
  20  3.80772e-05
  21  21.4041
  22  15.2409
  23  8.07915
  24  0.217518
  25  0.164126
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  7.440e-01  7.118e-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:  1.065e+00  1.641e-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.202e-01  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.50
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 2.88e-08 +/- 2.75e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.13e-05

TS (Fixed Index): 2.50
Ra Dec: 350.888 -3.290
Photon Flux Upper Limit: 9.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.01e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/810996/likelihoodResults_447984001_448243201_4FGL_J2323.5-0317_daily_bin805.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) = 6550.15980501
delta logL = 0.84060950892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6550.12747301
delta logL = 0.872941505534

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32874       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0964       1.0000          .0000       5.0000    
     3 'Normalizat'    .83644       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0613       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=   6550.127     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      213 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32881        .35543        .10251E-01   -.11820E-02
   2  alpha         1.0962        .44766        .38144       -.49584E-04
   3  Normalizat    .83654        .18322        .68854E-01    .18092E-04
   4  Prefactor     1.0612        .13921        .39288E-01    .81348E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.328808
  alpha      = 1.09623
  Normalizat = 0.836542
  Prefactor  = 1.06119
 **********
 **   18 **HESSE 
 **********

 FCN=   6550.127     FROM HESSE     STATUS=OK            35 CALLS      248 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32881        .55684        .43908E-03   -1.5593    
   2  alpha         1.0962        .73173        .15473E-01   -.59621    
   3  Normalizat    .83654        .21065        .30464E-03   -.98727    
   4  Prefactor     1.0612        .16041        .20661E-03   -.90717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4628e-10
Minuit parameter uncertainties:
  1  0.556849
  2  0.747922
  3  0.21086
  4  0.160481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810996': 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) = 6550.12747234
delta logL = 0.872942176645

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.288e-01  5.568e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.096e+00  7.479e-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:  1.061e+00  1.605e-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.365e-01  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.25
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 1.10 +/- 0.75
Photon Flux (Free Index): 8.58e-09 +/- 1.20e-08
Energy Flux (Free Index): 3.46e-05 +/- 4.85e-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/810996/cmap_HighResolution_447984001_448243201_4FGL_J2323.5-0317_daily_bin805.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-05', comment='SUCCESS', photon_flux='2.88e-08', energy_flux2='3.46e-05', photon_flux_error='2.75e-08', dlogl='8.73e-01', energy_flux='1.18e-05', photon_flux2='8.58e-09', job_status='DONE', time_completed='2021-09-29 14:49:25.167846', photon_index_error2='0.75', photon_index2='1.10', ts='2.50', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='9.80e-08', energy_flux_error2='4.85e-05', EG='0.82', time_epoch_completed='1632952165.17', return_code='0', job_id='810996', GAL2='1.06', EG2='0.84', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='1.20e-08', ts2='4.25', photon_index='2.16' WHERE bin_id='805' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:49:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 810996: <4FGL_J2323.5-0317_daily_bin805> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin805 350.888 -3.29 447984001 448243201 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 :                                   677.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            838 sec.

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

