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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin795
RA = 350.888, Dec = -3.29
tmin = 445392001, tmax = 445651201
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='810982', job_status='RUN', time_executed='2021-09-29 14:38:35.943946', time_epoch_executed='1632951515.94' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='795'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810982

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810982/ft1_4FGL_J2323.5-0317_daily_bin795.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810982/ft2_4FGL_J2323.5-0317_daily_bin795.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810982/ft1_4FGL_J2323.5-0317_daily_bin795.fits outfile=/scratch/kocevski/810982/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin795.fits ra=350.888 dec=-3.29 rad=12.0 tmin=445392001.0 tmax=445651201.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.81
user 3.59
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/810982/ft1_filtered_4FGL_J2323.5-0317_daily_bin795.fits" evtable="EVENTS" scfile=/scratch/kocevski/810982/ft2_4FGL_J2323.5-0317_daily_bin795.fits sctable="SC_DATA" outfile=/scratch/kocevski/810982/ltcube_445392001_445651201_4FGL_J2323.5-0317_daily_bin795.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/810982/ft2_4FGL_J2323.5-0317_daily_bin795.fits
.....................!
real 11.81
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810982/ft1_filtered_4FGL_J2323.5-0317_daily_bin795.fits evtable="EVENTS" scfile=/scratch/kocevski/810982/ft2_4FGL_J2323.5-0317_daily_bin795.fits sctable="SC_DATA" expcube=/scratch/kocevski/810982/ltcube_445392001_445651201_4FGL_J2323.5-0317_daily_bin795.fits outfile=/scratch/kocevski/810982/expmap_445392001_445651201_4FGL_J2323.5-0317_daily_bin795.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/810982/ltcube_445392001_445651201_4FGL_J2323.5-0317_daily_bin795.fits
.....................!
real 189.55
user 185.12
sys 4.12

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/810982/ft1_filtered_4FGL_J2323.5-0317_daily_bin795.fits scfile=/scratch/kocevski/810982/ft2_4FGL_J2323.5-0317_daily_bin795.fits outfile=/scratch/kocevski/810982/cmap_445392001_445651201_4FGL_J2323.5-0317_daily_bin795.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/810982/ft1_filtered_4FGL_J2323.5-0317_daily_bin795.fits scfile=/scratch/kocevski/810982/ft2_4FGL_J2323.5-0317_daily_bin795.fits outfile=/scratch/kocevski/810982/cmap_HighResolution_445392001_445651201_4FGL_J2323.5-0317_daily_bin795.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/810982/ft1_filtered_4FGL_J2323.5-0317_daily_bin795.fits evtable="EVENTS" scfile=/scratch/kocevski/810982/ft2_4FGL_J2323.5-0317_daily_bin795.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/810982/Model_4FGL_J2323.5-0317_daily_bin795.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/810982/ft1_filtered_4FGL_J2323.5-0317_daily_bin795.fits.....................!
real 46.25
user 44.94
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4052       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9133       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5300       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.712       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.2305       1.0000         .10000E-03   10000.    
    10 'norm      '    4.3925       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7777       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .56797E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.430       1.0000         .10000E-03   10000.    
    17 'norm      '    4.2657       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.595       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .75111       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0343       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=   4428.938     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2834 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4058        7.6633        .82446E-05    .37561E-03
   2  Prefactor     7.8876        81.898        .36099E-05   -.31846E-04
   3  Prefactor     .10000E-03    17.205       -.27482E-06** at limit **
   4  Prefactor     2.5288        11.429        .64980E-06    .17153E-04
   5  norm          .10000E-03    7.7376        .49858E-07** at limit **
   6  Prefactor     .10000E-03    32.394        .13497E-05** at limit **
   7  Prefactor     10.691        17.212        .11673E-06   -.28447E-04
   8  Prefactor     .10000E-03    15.708        .58480E-06** at limit **
   9  Prefactor     9.2290        7.4242        .41057E-07   -.54314E-04
  10  norm          4.3924        1.5123        .74180E-07   -.80241E-03
  11  norm          .10000E-03    2.1055        .81842E-09** at limit **
  12  Prefactor     4.7775        10.386        .30760E-05    .18485E-03
  13  Prefactor     .10000E-03    34.525        .38240E-06** at limit **
  14  Prefactor     .10000E-03    66.997        .55512E-06** at limit **
  15  Prefactor     .10015E-03    17.719        .83607E-05** at limit **
  16  Prefactor     23.412        23.569        .61685E-06   -.43387E-04
  17  norm          4.2676        44.972        .28369E-05   -.12577E-03
  18  Prefactor     .10000E-03    17.982       -.29315E-06** at limit **
  19  Prefactor     .10000E-03    3.3468        .82013E-07** at limit **
  20  Prefactor     32.604        48.335       -.64271E-06   -.43242E-04
  21  Prefactor     .10000E-03    16.841        .47082E-07** at limit **
  22  Prefactor     .10000E-03    4.8565       -.11435E-08** at limit **
  23  Prefactor     .10000E-03    11.162       -.32923E-06** at limit **
  24  Normalizat    .75113        .21631       -.15404E-05   -.23437E-03
  25  Prefactor     1.0343        .16003       -.46542E-07   -.18267E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.40579
  Prefactor  = 7.88757
  Prefactor  = 0.0001
  Prefactor  = 2.52877
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.691
  Prefactor  = 0.0001
  Prefactor  = 9.22905
  norm       = 4.39235
  norm       = 0.0001
  Prefactor  = 4.77752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100149
  Prefactor  = 23.4125
  norm       = 4.26764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.6039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.751132
  Prefactor  = 1.03429
 **********
 **   18 **HESSE 
 **********

 FCN=   4428.938     FROM HESSE     STATUS=OK           425 CALLS     3259 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4058        8.0080        .13200E-02   -1.5398    
   2  Prefactor     7.8876        82.290        .14254E-03   -1.5146    
   3  Prefactor     .10000E-03    17.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.5288        11.419        .25680E-03   -1.5390    
   5  norm          .10000E-03    7.7718        .18078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    32.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.691        17.232        .12241E-03   -1.5054    
   8  Prefactor     .10000E-03    15.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.2290        7.4251        .13191E-03   -1.5100    
  10  norm          4.3924        1.5011        .45192E-04   -1.5289    
  11  norm          .10000E-03    2.1108        .94291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.7775        10.442        .92034E-03   -1.5271    
  13  Prefactor     .10000E-03    34.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    66.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10015E-03    45.932        .37003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.412        23.566        .82752E-04   -1.4740    
  17  norm          4.2676        31.702        .19508E-03   -1.5295    
  18  Prefactor     .10000E-03    17.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.3687        .11851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.604        48.271        .70185E-04   -1.4565    
  21  Prefactor     .10000E-03    16.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.8597        .14324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .75113        .24769        .30023E-03   -1.0191    
  25  Prefactor     1.0343        .18506        .19437E-03   -.91595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04217e-09
Minuit parameter uncertainties:
  1  8.01158
  2  51.0438
  3  1.36332e-05
  4  10.7505
  5  7.88559e-06
  6  7.51896e-05
  7  17.2397
  8  2.01742e-05
  9  7.42584
  10  1.50106
  11  1.03681e-06
  12  10.4458
  13  4.21087e-05
  14  5.94766e-05
  15  0.00524166
  16  23.5758
  17  23.2802
  18  6.82567e-06
  19  1.51343e-05
  20  48.329
  21  7.10254e-05
  22  1.95287e-06
  23  7.70629e-05
  24  0.248056
  25  0.185174
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  4.392e+00  1.501e+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:  1.034e+00  1.852e-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.511e-01  2.481e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.05
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.70e-07 +/- 5.81e-08
Energy Flux (Fixed Index): 6.96e-05 +/- 2.38e-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) = 4427.90238012
delta logL = 1.03595649191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4427.9014947
delta logL = 1.0368419158

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4528       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7155       1.0000          .0000       5.0000    
     3 'Normalizat'    .66232       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0770       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=   4427.901     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      233 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4514        14.770        .54412E-03    .76136E-04
   2  alpha         2.7154        3.8387        .15921        .41687E-04
   3  Normalizat    .66217        .20826        .71639E-01    .24061E-04
   4  Prefactor     1.0771        .13454        .38535E-01    .31006E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.4514
  alpha      = 2.71543
  Normalizat = 0.66217
  Prefactor  = 1.07714
 **********
 **   18 **HESSE 
 **********

 FCN=   4427.901     FROM HESSE     STATUS=OK            31 CALLS      264 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4514        1.5780        .21765E-04   -1.5336    
   2  alpha         2.7154        .42195        .68578E-02    .86278E-01
   3  Normalizat    .66217        .25041        .31709E-03   -1.0541    
   4  Prefactor     1.0771        .18514        .19081E-03   -.90201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48323e-12
Minuit parameter uncertainties:
  1  1.57798
  2  0.423999
  3  0.250847
  4  0.185254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810982': 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) = 4427.90149308
delta logL = 1.03684352841

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.451e+00  1.578e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.715e+00  4.240e-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.077e+00  1.853e-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:  6.622e-01  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.35
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.72 +/- 0.42
Photon Flux (Free Index): 2.44e-07 +/- 8.62e-08
Energy Flux (Free Index): 5.94e-05 +/- 1.93e-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/810982/cmap_HighResolution_445392001_445651201_4FGL_J2323.5-0317_daily_bin795.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.70e-07', energy_flux2='5.94e-05', photon_flux_error='5.81e-08', dlogl='1.04e+00', energy_flux='6.96e-05', photon_flux2='2.44e-07', job_status='DONE', time_completed='2021-09-29 14:47:06.653572', photon_index_error2='0.42', photon_index2='2.72', ts='20.05', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.93e-05', EG='0.75', time_epoch_completed='1632952026.65', return_code='0', job_id='810982', GAL2='1.08', EG2='0.66', return_code2='0', energy_flux_error='2.38e-05', photon_flux_error2='8.62e-08', ts2='22.35', photon_index='2.16' WHERE bin_id='795' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:47:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 810982: <4FGL_J2323.5-0317_daily_bin795> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin795 350.888 -3.29 445392001 445651201 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 :                                   509.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            702 sec.

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

