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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin997
RA = 350.888, Dec = -3.29
tmin = 497750401, tmax = 498009601
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='811278', job_status='RUN', time_executed='2021-09-29 14:38:27.363349', time_epoch_executed='1632951507.36' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='997'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811278

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811278/ft1_4FGL_J2323.5-0317_daily_bin997.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811278/ft2_4FGL_J2323.5-0317_daily_bin997.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811278/ft1_4FGL_J2323.5-0317_daily_bin997.fits outfile=/scratch/kocevski/811278/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin997.fits ra=350.888 dec=-3.29 rad=12.0 tmin=497750401.0 tmax=498009601.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.66
user 4.41
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/811278/ft2_4FGL_J2323.5-0317_daily_bin997.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/811278/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin997.fits evtable="EVENTS" outfile="/scratch/kocevski/811278/ft1_filtered_4FGL_J2323.5-0317_daily_bin997.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811278/ft1_filtered_4FGL_J2323.5-0317_daily_bin997.fits" evtable="EVENTS" scfile=/scratch/kocevski/811278/ft2_4FGL_J2323.5-0317_daily_bin997.fits sctable="SC_DATA" outfile=/scratch/kocevski/811278/ltcube_497750401_498009601_4FGL_J2323.5-0317_daily_bin997.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/811278/ft2_4FGL_J2323.5-0317_daily_bin997.fits
.....................!
real 11.84
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811278/ft1_filtered_4FGL_J2323.5-0317_daily_bin997.fits evtable="EVENTS" scfile=/scratch/kocevski/811278/ft2_4FGL_J2323.5-0317_daily_bin997.fits sctable="SC_DATA" expcube=/scratch/kocevski/811278/ltcube_497750401_498009601_4FGL_J2323.5-0317_daily_bin997.fits outfile=/scratch/kocevski/811278/expmap_497750401_498009601_4FGL_J2323.5-0317_daily_bin997.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/811278/ltcube_497750401_498009601_4FGL_J2323.5-0317_daily_bin997.fits
.....................!
real 192.12
user 186.85
sys 4.94

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/811278/ft1_filtered_4FGL_J2323.5-0317_daily_bin997.fits scfile=/scratch/kocevski/811278/ft2_4FGL_J2323.5-0317_daily_bin997.fits outfile=/scratch/kocevski/811278/cmap_497750401_498009601_4FGL_J2323.5-0317_daily_bin997.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811278/ft1_filtered_4FGL_J2323.5-0317_daily_bin997.fits scfile=/scratch/kocevski/811278/ft2_4FGL_J2323.5-0317_daily_bin997.fits outfile=/scratch/kocevski/811278/cmap_HighResolution_497750401_498009601_4FGL_J2323.5-0317_daily_bin997.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/811278/ft1_filtered_4FGL_J2323.5-0317_daily_bin997.fits evtable="EVENTS" scfile=/scratch/kocevski/811278/ft2_4FGL_J2323.5-0317_daily_bin997.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/811278/Model_4FGL_J2323.5-0317_daily_bin997.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/811278/ft1_filtered_4FGL_J2323.5-0317_daily_bin997.fits.....................!
real 75.79
user 74.39
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.272       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    558.09       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.741       1.0000         .10000E-03   10000.    
     5 'norm      '    10.719       1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.859       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5722       1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.166       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0935       1.0000         .10000E-03   10000.    
    10 'norm      '    2.1940       1.0000         .10000E-03   10000.    
    11 'norm      '    10.319       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15526E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.110       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11936E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0439       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82623       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=   8117.492     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2488 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.272        6.5765        .78732E-07    .14258E-04
   2  Prefactor     .10000E-03    13.909       -.20366E-06** at limit **
   3  Prefactor     558.09        71.088        .41631E-07    .17459E-04
   4  Prefactor     25.741        13.876       -.19168E-07    .89940E-05
   5  norm          10.719        11.979       -.46738E-07    .11464E-04
   6  Prefactor     51.849        38.154        .29700E-06    .76418E-05
   7  Prefactor     9.5731        9.6187        .20507E-07   -.19551E-05
   8  Prefactor     39.101        35.958        .24646E-05    .13475E-03
   9  Prefactor     1.1045        5.6856       -.28792E-05   -.22330E-04
  10  norm          2.1946        .86671        .10452E-08    .20042E-03
  11  norm          10.315        5.7621        .99995E-07    .26283E-03
  12  Prefactor     .10000E-03    4.0295       -.52384E-07** at limit **
  13  Prefactor     .10000E-03    50.408       -.13144E-05** at limit **
  14  Prefactor     .10000E-03    95.330       -.35810E-06** at limit **
  15  Prefactor     .10000E-03    18.293       -.52406E-05** at limit **
  16  Prefactor     .10000E-03    35.339        .52133E-06** at limit **
  17  norm          .10000E-03    5.7695       -.85200E-07** at limit **
  18  Prefactor     .10000E-03    32.906        .73004E-06** at limit **
  19  Prefactor     .10000E-03    1.2186       -.88746E-07** at limit **
  20  Prefactor     .10000E-03    25.941       -.95560E-06** at limit **
  21  Prefactor     20.110        19.579        .53848E-07    .36876E-05
  22  Prefactor     .10000E-03    44.300       -.14646E-05** at limit **
  23  Prefactor     .10000E-03    1.9865       -.28747E-07** at limit **
  24  Normalizat    1.0439        .17820       -.54617E-06    .27379E-03
  25  Prefactor     .82626        .12906        .37202E-06   -.32403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2724
  Prefactor  = 0.0001
  Prefactor  = 558.089
  Prefactor  = 25.7408
  norm       = 10.7191
  Prefactor  = 51.8493
  Prefactor  = 9.57307
  Prefactor  = 39.1007
  Prefactor  = 1.10455
  norm       = 2.19457
  norm       = 10.3153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04393
  Prefactor  = 0.826264
 **********
 **   18 **HESSE 
 **********

 FCN=   8117.492     FROM HESSE     STATUS=OK           425 CALLS     2913 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.272        6.5796        .12502E-03   -1.5067    
   2  Prefactor     .10000E-03    13.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     558.09        71.167        .87126E-04   -1.0938    
   4  Prefactor     25.741        13.875        .78956E-04   -1.4693    
   5  norm          10.719        11.980        .12237E-03   -1.5053    
   6  Prefactor     51.849        38.162        .55692E-04   -1.4267    
   7  Prefactor     9.5731        9.6205        .12953E-03   -1.5089    
   8  Prefactor     39.101        36.500        .64046E-04   -1.4457    
   9  Prefactor     1.1045        5.8198        .39877E-03   -1.5498    
  10  norm          2.1946        .86101        .50200E-04   -1.5412    
  11  norm          10.315        5.7380        .12473E-03   -1.5066    
  12  Prefactor     .10000E-03    4.0396        .17663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    50.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    95.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.226        .37840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    35.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.7725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    32.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.2293        .97032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     20.110        19.585        .89315E-04   -1.4811    
  22  Prefactor     .10000E-03    46.134        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.0046        .12399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0439        .20115        .28402E-03   -.91573    
  25  Prefactor     .82626        .14644        .23408E-03   -.98767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36378e-10
Minuit parameter uncertainties:
  1  6.58005
  2  5.04398e-06
  3  71.1785
  4  13.8763
  5  11.9823
  6  38.18
  7  9.62201
  8  36.521
  9  5.07134
  10  0.861014
  11  5.7383
  12  6.02311e-07
  13  3.03811e-05
  14  1.88298e-05
  15  0.000147129
  16  2.41984e-05
  17  5.81251e-07
  18  4.52456e-05
  19  1.79369e-06
  20  4.02739e-06
  21  19.5908
  22  0.000210272
  23  1.46243e-06
  24  0.201301
  25  0.146513
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.195e+00  8.610e-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.263e-01  1.465e-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:  1.044e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.76
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 8.49e-08 +/- 3.33e-08
Energy Flux (Fixed Index): 3.48e-05 +/- 1.37e-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) = 8117.38867493
delta logL = 0.103225211575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8117.38660196
delta logL = 0.10529818053

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0862       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3422       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0300       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83246       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=   8117.387     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      227 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0862        13.441        .71464E-02    .28492E-03
   2  alpha         2.3422        3.6147        .28896        .73607E-04
   3  Normalizat    1.0300        .12711        .64578E-01    .53963E-04
   4  Prefactor     .83246        .74098E-01    .44138E-01    .42652E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.08619
  alpha      = 2.34223
  Normalizat = 1.02998
  Prefactor  = 0.832462
 **********
 **   18 **HESSE 
 **********

 FCN=   8117.387     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0862        .87008        .47665E-04   -1.5419    
   2  alpha         2.3422        .40601        .11680E-01   -.63150E-01
   3  Normalizat    1.0300        .19782        .28564E-03   -.92033    
   4  Prefactor     .83246        .14580        .23327E-03   -.98543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.83833e-11
Minuit parameter uncertainties:
  1  0.870088
  2  0.407821
  3  0.197957
  4  0.145869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811278': 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) = 8117.38660196
delta logL = 0.105298180756

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.086e+00  8.701e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.342e+00  4.078e-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.325e-01  1.459e-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:  1.030e+00  1.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.87
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.34 +/- 0.41
Photon Flux (Free Index): 9.68e-08 +/- 4.44e-08
Energy Flux (Free Index): 3.21e-05 +/- 1.33e-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/811278/cmap_HighResolution_497750401_498009601_4FGL_J2323.5-0317_daily_bin997.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.49e-08', energy_flux2='3.21e-05', photon_flux_error='3.33e-08', dlogl='1.05e-01', energy_flux='3.48e-05', photon_flux2='9.68e-08', job_status='DONE', time_completed='2021-09-29 14:49:55.254001', photon_index_error2='0.41', photon_index2='2.34', ts='17.76', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.33e-05', EG='1.04', time_epoch_completed='1632952195.25', return_code='0', job_id='811278', GAL2='0.83', EG2='1.03', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='4.44e-08', ts2='17.87', photon_index='2.16' WHERE bin_id='997' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:49:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 811278: <4FGL_J2323.5-0317_daily_bin997> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin997 350.888 -3.29 497750401 498009601 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 :                                   679.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            847 sec.

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

