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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin208
RA = 350.888, Dec = -3.29
tmin = 293241601, tmax = 293500801
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='808158', job_status='RUN', time_executed='2021-09-29 14:26:10.762468', time_epoch_executed='1632950770.76' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='208'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808158

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808158/ft1_4FGL_J2323.5-0317_daily_bin208.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808158/ft2_4FGL_J2323.5-0317_daily_bin208.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808158/ft1_4FGL_J2323.5-0317_daily_bin208.fits outfile=/scratch/kocevski/808158/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin208.fits ra=350.888 dec=-3.29 rad=12.0 tmin=293241601.0 tmax=293500801.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.57
user 3.36
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808158/ft1_filtered_4FGL_J2323.5-0317_daily_bin208.fits" evtable="EVENTS" scfile=/scratch/kocevski/808158/ft2_4FGL_J2323.5-0317_daily_bin208.fits sctable="SC_DATA" outfile=/scratch/kocevski/808158/ltcube_293241601_293500801_4FGL_J2323.5-0317_daily_bin208.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/808158/ft2_4FGL_J2323.5-0317_daily_bin208.fits
.....................!
real 12.22
user 11.41
sys 0.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808158/ft1_filtered_4FGL_J2323.5-0317_daily_bin208.fits evtable="EVENTS" scfile=/scratch/kocevski/808158/ft2_4FGL_J2323.5-0317_daily_bin208.fits sctable="SC_DATA" expcube=/scratch/kocevski/808158/ltcube_293241601_293500801_4FGL_J2323.5-0317_daily_bin208.fits outfile=/scratch/kocevski/808158/expmap_293241601_293500801_4FGL_J2323.5-0317_daily_bin208.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/808158/ltcube_293241601_293500801_4FGL_J2323.5-0317_daily_bin208.fits
.....................!
real 190.16
user 185.52
sys 4.32

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/808158/ft1_filtered_4FGL_J2323.5-0317_daily_bin208.fits scfile=/scratch/kocevski/808158/ft2_4FGL_J2323.5-0317_daily_bin208.fits outfile=/scratch/kocevski/808158/cmap_293241601_293500801_4FGL_J2323.5-0317_daily_bin208.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808158/ft1_filtered_4FGL_J2323.5-0317_daily_bin208.fits scfile=/scratch/kocevski/808158/ft2_4FGL_J2323.5-0317_daily_bin208.fits outfile=/scratch/kocevski/808158/cmap_HighResolution_293241601_293500801_4FGL_J2323.5-0317_daily_bin208.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/808158/ft1_filtered_4FGL_J2323.5-0317_daily_bin208.fits evtable="EVENTS" scfile=/scratch/kocevski/808158/ft2_4FGL_J2323.5-0317_daily_bin208.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808158/Model_4FGL_J2323.5-0317_daily_bin208.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/808158/ft1_filtered_4FGL_J2323.5-0317_daily_bin208.fits.....................!
real 46.23
user 44.88
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    35.365       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.748       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9140       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.6295       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.5427       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    106.33       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.7327       1.0000         .10000E-03   10000.    
    20 'Prefactor '    65.787       1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.937       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4478       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .80202       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88836       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=   4398.330     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2902 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.676        .12543E-04** at limit **
   2  Prefactor     .10000E-03    70.728        .61253E-04** at limit **
   3  Prefactor     .10000E-03    11.496       -.49028E-05** at limit **
   4  Prefactor     .10000E-03    12.093        .47308E-06** at limit **
   5  norm          35.365        17.138        .12549E-07    .25434E-04
   6  Prefactor     23.745        37.231       -.19363E-05    .34049E-05
   7  Prefactor     8.9139        15.363        .58773E-07    .69373E-05
   8  Prefactor     .10000E-03    15.701        .37681E-05** at limit **
   9  Prefactor     .10000E-03    3.7404        .11524E-07** at limit **
  10  norm          2.6296        1.3094        .83423E-08    .50437E-03
  11  norm          .10000E-03    3.5093       -.40010E-07** at limit **
  12  Prefactor     8.5415        8.6567       -.78724E-06   -.92818E-03
  13  Prefactor     .10000E-03    47.979       -.45048E-04** at limit **
  14  Prefactor     .10000E-03    165.22       -.53207E-04** at limit **
  15  Prefactor     .10000E-03    20.169       -.10201E-04** at limit **
  16  Prefactor     .10000E-03    11.242        .37925E-05** at limit **
  17  norm          .10000E-03    29.065        .51424E-05** at limit **
  18  Prefactor     106.34        80.614        .33335E-05   -.22386E-05
  19  Prefactor     8.7327        5.4146        .22558E-07    .29540E-03
  20  Prefactor     65.784        44.064       -.12860E-05    .78870E-04
  21  Prefactor     33.935        25.243        .33457E-06    .76150E-05
  22  Prefactor     .10000E-03    5.0184       -.11326E-07** at limit **
  23  Prefactor     3.4456        10.858       -.12265E-05   -.31508E-03
  24  Normalizat    .80215        .22337       -.99518E-07   -.25295E-04
  25  Prefactor     .88829        .15624        .25339E-06   -.35120E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 35.3652
  Prefactor  = 23.7445
  Prefactor  = 8.91394
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.62963
  norm       = 0.0001
  Prefactor  = 8.54153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 106.338
  Prefactor  = 8.73266
  Prefactor  = 65.7842
  Prefactor  = 33.9345
  Prefactor  = 0.0001
  Prefactor  = 3.44557
  Normalizat = 0.802148
  Prefactor  = 0.88829
 **********
 **   18 **HESSE 
 **********

 FCN=   4398.330     FROM HESSE     STATUS=OK           421 CALLS     3323 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.392        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    70.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          35.365        17.145        .67389E-04   -1.4518    
   6  Prefactor     23.745        37.247        .82198E-04   -1.4733    
   7  Prefactor     8.9139        15.361        .13425E-03   -1.5111    
   8  Prefactor     .10000E-03    15.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.7471        .12525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.6296        1.3050        .50764E-04   -1.5384    
  11  norm          .10000E-03    3.5271        .12127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.5415        8.6846        .68575E-03   -1.5123    
  13  Prefactor     .10000E-03    47.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    165.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    29.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     106.34        80.739        .38999E-04   -1.3642    
  19  Prefactor     8.7327        5.4204        .11449E-03   -1.5117    
  20  Prefactor     65.784        44.115        .49481E-04   -1.4084    
  21  Prefactor     33.935        25.245        .68788E-04   -1.4542    
  22  Prefactor     .10000E-03    5.0211        .14510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.4456        10.901        .21782E-03   -1.5337    
  24  Normalizat    .80215        .26024        .29059E-03   -.99989    
  25  Prefactor     .88829        .18239        .20364E-03   -.96551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17541e-09
Minuit parameter uncertainties:
  1  0.000280027
  2  0.000199478
  3  1.91417e-07
  4  3.52753e-06
  5  17.1472
  6  37.2836
  7  15.3676
  8  5.11396e-06
  9  4.47767e-06
  10  1.30505
  11  6.69074e-06
  12  8.68584
  13  8.17465e-05
  14  5.33393e-05
  15  7.90477e-05
  16  4.72378e-06
  17  4.64551e-05
  18  80.8229
  19  5.42074
  20  44.137
  21  25.2526
  22  7.93194e-07
  23  10.9073
  24  0.260642
  25  0.182511
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.630e+00  1.305e+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:  8.883e-01  1.825e-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.021e-01  2.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.86
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 5.05e-08
Energy Flux (Fixed Index): 4.17e-05 +/- 2.07e-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) = 4397.15042852
delta logL = 1.17920882266

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4397.1301622
delta logL = 1.19947514932

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6989       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0288       1.0000          .0000       5.0000    
     3 'Normalizat'    .70715       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93557       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=   4397.130     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      240 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6991        10.994        .78097E-02    .20626E-03
   2  alpha         3.0284        4.0077        .20630        .37470E-04
   3  Normalizat    .70737        .10487        .69375E-01    .22829E-04
   4  Prefactor     .93541        .69242E-01    .45457E-01   -.66098E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.69906
  alpha      = 3.02844
  Normalizat = 0.707366
  Prefactor  = 0.935406
 **********
 **   18 **HESSE 
 **********

 FCN=   4397.130     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6991        1.3245        .34720E-04   -1.5447    
   2  alpha         3.0284        .66143        .87674E-02    .21298    
   3  Normalizat    .70737        .25443        .30701E-03   -1.0360    
   4  Prefactor     .93541        .18395        .19883E-03   -.94915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89007e-12
Minuit parameter uncertainties:
  1  1.32456
  2  0.669787
  3  0.254859
  4  0.184072
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808158': 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) = 4397.13016164
delta logL = 1.19947570161

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.699e+00  1.325e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  3.028e+00  6.698e-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:  9.354e-01  1.841e-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.074e-01  2.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.45
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 3.03 +/- 0.67
Photon Flux (Free Index): 1.78e-07 +/- 8.51e-08
Energy Flux (Free Index): 3.65e-05 +/- 1.59e-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/808158/cmap_HighResolution_293241601_293500801_4FGL_J2323.5-0317_daily_bin208.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='3.65e-05', photon_flux_error='5.05e-08', dlogl='1.20e+00', energy_flux='4.17e-05', photon_flux2='1.78e-07', job_status='DONE', time_completed='2021-09-29 14:35:16.193388', photon_index_error2='0.67', photon_index2='3.03', ts='7.86', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='0.80', time_epoch_completed='1632951316.19', return_code='0', job_id='808158', GAL2='0.94', EG2='0.71', return_code2='0', energy_flux_error='2.07e-05', photon_flux_error2='8.51e-08', ts2='10.45', photon_index='2.16' WHERE bin_id='208' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:35:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 808158: <4FGL_J2323.5-0317_daily_bin208> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin208 350.888 -3.29 293241601 293500801 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 :                                   517.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   599 sec.
    Turnaround time :                            600 sec.

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

