/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 37 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 = 7648
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2323.5-0317_daily_bin268
RA = 350.888, Dec = -3.29
tmin = 308793601, tmax = 309052801
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='808247', job_status='RUN', time_executed='2021-09-29 14:26:15.040974', time_epoch_executed='1632950775.04' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='268'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808247

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808247/ft1_4FGL_J2323.5-0317_daily_bin268.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808247/ft2_4FGL_J2323.5-0317_daily_bin268.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808247/ft1_4FGL_J2323.5-0317_daily_bin268.fits outfile=/scratch/kocevski/808247/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin268.fits ra=350.888 dec=-3.29 rad=12.0 tmin=308793601.0 tmax=309052801.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.58
user 3.34
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808247/ft1_filtered_4FGL_J2323.5-0317_daily_bin268.fits" evtable="EVENTS" scfile=/scratch/kocevski/808247/ft2_4FGL_J2323.5-0317_daily_bin268.fits sctable="SC_DATA" outfile=/scratch/kocevski/808247/ltcube_308793601_309052801_4FGL_J2323.5-0317_daily_bin268.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/808247/ft2_4FGL_J2323.5-0317_daily_bin268.fits
.....................!
real 13.74
user 11.92
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808247/ft1_filtered_4FGL_J2323.5-0317_daily_bin268.fits evtable="EVENTS" scfile=/scratch/kocevski/808247/ft2_4FGL_J2323.5-0317_daily_bin268.fits sctable="SC_DATA" expcube=/scratch/kocevski/808247/ltcube_308793601_309052801_4FGL_J2323.5-0317_daily_bin268.fits outfile=/scratch/kocevski/808247/expmap_308793601_309052801_4FGL_J2323.5-0317_daily_bin268.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/808247/ltcube_308793601_309052801_4FGL_J2323.5-0317_daily_bin268.fits
.....................!
real 191.52
user 185.55
sys 5.38

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/808247/ft1_filtered_4FGL_J2323.5-0317_daily_bin268.fits scfile=/scratch/kocevski/808247/ft2_4FGL_J2323.5-0317_daily_bin268.fits outfile=/scratch/kocevski/808247/cmap_308793601_309052801_4FGL_J2323.5-0317_daily_bin268.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.58
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808247/ft1_filtered_4FGL_J2323.5-0317_daily_bin268.fits scfile=/scratch/kocevski/808247/ft2_4FGL_J2323.5-0317_daily_bin268.fits outfile=/scratch/kocevski/808247/cmap_HighResolution_308793601_309052801_4FGL_J2323.5-0317_daily_bin268.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808247/ft1_filtered_4FGL_J2323.5-0317_daily_bin268.fits evtable="EVENTS" scfile=/scratch/kocevski/808247/ft2_4FGL_J2323.5-0317_daily_bin268.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808247/Model_4FGL_J2323.5-0317_daily_bin268.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/808247/ft1_filtered_4FGL_J2323.5-0317_daily_bin268.fits.....................!
real 57.89
user 56.48
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7676       1.0000         .10000E-03   10000.    
     5 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7582       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.464       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .35111       1.0000         .10000E-03   10000.    
    11 'norm      '    4.1774       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5841       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.764       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5663       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.822       1.0000         .10000E-03   10000.    
    17 'norm      '    5.8074       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.347       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.027       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86624       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85046       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=   6252.070     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2868 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0158        .50112E-07** at limit **
   2  Prefactor     .10000E-03    51.335       -.38362E-06** at limit **
   3  Prefactor     .10000E-03    63.670        .14920E-05** at limit **
   4  Prefactor     4.7680        6.3533        .12692E-05   -.23963E-03
   5  norm          .10000E-03    8.6552        .24212E-06** at limit **
   6  Prefactor     .10000E-03    14.603        .63980E-07** at limit **
   7  Prefactor     4.7583        15.628        .33754E-06    .12202E-04
   8  Prefactor     14.462        22.250        .23895E-06    .23165E-04
   9  Prefactor     .10000E-03    2.2013        .15114E-07** at limit **
  10  norm          .35189        .62035       -.13894E-05   -.38362E-03
  11  norm          4.1770        3.3645        .29617E-06    .20765E-03
  12  Prefactor     5.5847        6.9221        .92267E-08   -.61781E-05
  13  Prefactor     10.763        19.409        .24418E-06    .20283E-04
  14  Prefactor     8.3211        1020.0       -.17065E-04    .13395E-05
  15  Prefactor     .10000E-03    4.4230       -.96342E-06** at limit **
  16  Prefactor     26.820        24.499       -.26928E-06    .80716E-05
  17  norm          5.8097        10.461        .71245E-06    .12419E-03
  18  Prefactor     .10000E-03    75.661       -.11805E-05** at limit **
  19  Prefactor     .10000E-03    1.1276       -.58056E-06** at limit **
  20  Prefactor     16.346        30.534       -.18791E-06    .21546E-04
  21  Prefactor     .10000E-03    4.8664        .10090E-07** at limit **
  22  Prefactor     10.027        13.573        .14843E-05   -.10489E-03
  23  Prefactor     .10000E-03    1.4857        .11975E-07** at limit **
  24  Normalizat    .86626        .16472        .53560E-07    .25439E-03
  25  Prefactor     .85045        .12314        .84939E-06    .12890E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.76799
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.75833
  Prefactor  = 14.4622
  Prefactor  = 0.0001
  norm       = 0.351887
  norm       = 4.17702
  Prefactor  = 5.58472
  Prefactor  = 10.763
  Prefactor  = 8.3211
  Prefactor  = 0.0001
  Prefactor  = 26.8198
  norm       = 5.80975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3464
  Prefactor  = 0.0001
  Prefactor  = 10.0271
  Prefactor  = 0.0001
  Normalizat = 0.866257
  Prefactor  = 0.850451
 **********
 **   18 **HESSE 
 **********

 FCN=   6252.070     FROM HESSE     STATUS=OK           427 CALLS     3295 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0578        .17291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    51.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    64.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.7680        6.3181        .92133E-03   -1.5271    
   5  norm          .10000E-03    8.7408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.7583        15.622        .18445E-03   -1.5272    
   8  Prefactor     14.462        22.259        .10532E-03   -1.4947    
   9  Prefactor     .10000E-03    2.2046        .11451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .35189        .61485        .82676E-03   -1.5589    
  11  norm          4.1770        3.3649        .12604E-03   -1.5299    
  12  Prefactor     5.5847        6.9130        .17001E-03   -1.5235    
  13  Prefactor     10.763        19.406        .12212E-03   -1.5052    
  14  Prefactor     8.3211        1038.0        .13696E-03   -1.5131    
  15  Prefactor     .10000E-03    4.4202        .16161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.820        24.497        .77352E-04   -1.4672    
  17  norm          5.8097        10.454        .16666E-03   -1.5226    
  18  Prefactor     .10000E-03    76.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.1262        .81636E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.346        30.539        .99059E-04   -1.4899    
  21  Prefactor     .10000E-03    4.8699        .17035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.027        13.540        .63271E-03   -1.5075    
  23  Prefactor     .10000E-03    1.4879        .94119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .86626        .19121        .25550E-03   -.97656    
  25  Prefactor     .85045        .14319        .19334E-03   -.97895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28274e-09
Minuit parameter uncertainties:
  1  7.83343e-06
  2  0.000104584
  3  8.202e-05
  4  6.31899
  5  1.50889e-05
  6  1.27971e-05
  7  15.635
  8  22.2715
  9  1.36879e-06
  10  0.614858
  11  3.36504
  12  6.91402
  13  19.4171
  14  189.333
  15  5.69245e-05
  16  24.5064
  17  10.4576
  18  3.72057e-05
  19  1.46305e-05
  20  30.5685
  21  1.8627e-06
  22  13.5442
  23  9.60898e-07
  24  0.191359
  25  0.143257
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.519e-01  6.149e-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.505e-01  1.433e-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.663e-01  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/808247/likelihoodResults_308793601_309052801_4FGL_J2323.5-0317_daily_bin268.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) = 6251.59235292
delta logL = 0.477203511305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6251.58570485
delta logL = 0.483851582374

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29500       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2597       1.0000          .0000       5.0000    
     3 'Normalizat'    .83229       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86450       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=   6251.586     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      213 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29399        4.8588        .88029E-02    .17417E-02
   2  alpha         3.2635        4.1156        .43856        .47178E-04
   3  Normalizat    .83269        .37754E-01    .44030E-01    .17591E-04
   4  Prefactor     .86431        .28596E-01    .44551E-01    .29795E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.293993
  alpha      = 3.26353
  Normalizat = 0.832688
  Prefactor  = 0.86431
 **********
 **   18 **HESSE 
 **********

 FCN=   6251.586     FROM HESSE     STATUS=OK            35 CALLS      248 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29399        .79853        .40708E-03   -1.5600    
   2  alpha         3.2635        1.7692        .18856E-01    .31037    
   3  Normalizat    .83269        .19163        .25996E-03   -.98867    
   4  Prefactor     .86431        .14297        .19185E-03   -.97400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5441e-12
Minuit parameter uncertainties:
  1  0.798561
  2  1.99443
  3  0.191784
  4  0.143029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808247': 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) = 6251.58569499
delta logL = 0.483861446627

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.940e-01  7.986e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  3.264e+00  1.994e+00  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.643e-01  1.430e-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.327e-01  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 3.26 +/- 1.99
Photon Flux (Free Index): 4.21e-08 +/- 4.08e-08
Energy Flux (Free Index): 7.86e-06 +/- 8.66e-06

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/808247/cmap_HighResolution_308793601_309052801_4FGL_J2323.5-0317_daily_bin268.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-05', comment='SUCCESS', energy_flux2='7.86e-06', dlogl='4.84e-01', photon_flux2='4.21e-08', job_status='DONE', time_completed='2021-09-29 14:37:45.830376', photon_index_error2='1.99', photon_index2='3.26', ts='0.46', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='7.25e-08', energy_flux_error2='8.66e-06', EG='0.87', time_epoch_completed='1632951465.83', return_code='0', job_id='808247', GAL2='0.86', EG2='0.83', return_code2='0', photon_flux_error2='4.08e-08', ts2='1.46', photon_index='2.16' WHERE bin_id='268' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:37:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 808247: <4FGL_J2323.5-0317_daily_bin268> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin268> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:25:24 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:25:26 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:25:26 2021
Terminated at Wed Sep 29 14:37:46 2021
Results reported at Wed Sep 29 14:37:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin268 350.888 -3.29 308793601 309052801 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 :                                   663.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            742 sec.

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

