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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin342
RA = 350.888, Dec = -3.29
tmin = 327974401, tmax = 328233601
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='808358', job_status='RUN', time_executed='2021-09-29 14:26:34.265468', time_epoch_executed='1632950794.27' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='342'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808358

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808358/ft1_4FGL_J2323.5-0317_daily_bin342.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808358/ft2_4FGL_J2323.5-0317_daily_bin342.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808358/ft1_4FGL_J2323.5-0317_daily_bin342.fits outfile=/scratch/kocevski/808358/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin342.fits ra=350.888 dec=-3.29 rad=12.0 tmin=327974401.0 tmax=328233601.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.51
user 3.28
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/808358/ft2_4FGL_J2323.5-0317_daily_bin342.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/808358/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin342.fits evtable="EVENTS" outfile="/scratch/kocevski/808358/ft1_filtered_4FGL_J2323.5-0317_daily_bin342.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808358/ft1_filtered_4FGL_J2323.5-0317_daily_bin342.fits" evtable="EVENTS" scfile=/scratch/kocevski/808358/ft2_4FGL_J2323.5-0317_daily_bin342.fits sctable="SC_DATA" outfile=/scratch/kocevski/808358/ltcube_327974401_328233601_4FGL_J2323.5-0317_daily_bin342.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/808358/ft2_4FGL_J2323.5-0317_daily_bin342.fits
.....................!
real 11.83
user 11.42
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808358/ft1_filtered_4FGL_J2323.5-0317_daily_bin342.fits evtable="EVENTS" scfile=/scratch/kocevski/808358/ft2_4FGL_J2323.5-0317_daily_bin342.fits sctable="SC_DATA" expcube=/scratch/kocevski/808358/ltcube_327974401_328233601_4FGL_J2323.5-0317_daily_bin342.fits outfile=/scratch/kocevski/808358/expmap_327974401_328233601_4FGL_J2323.5-0317_daily_bin342.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/808358/ltcube_327974401_328233601_4FGL_J2323.5-0317_daily_bin342.fits
.....................!
real 190.65
user 185.63
sys 4.63

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/808358/ft1_filtered_4FGL_J2323.5-0317_daily_bin342.fits scfile=/scratch/kocevski/808358/ft2_4FGL_J2323.5-0317_daily_bin342.fits outfile=/scratch/kocevski/808358/cmap_327974401_328233601_4FGL_J2323.5-0317_daily_bin342.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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808358/ft1_filtered_4FGL_J2323.5-0317_daily_bin342.fits scfile=/scratch/kocevski/808358/ft2_4FGL_J2323.5-0317_daily_bin342.fits outfile=/scratch/kocevski/808358/cmap_HighResolution_327974401_328233601_4FGL_J2323.5-0317_daily_bin342.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/808358/ft1_filtered_4FGL_J2323.5-0317_daily_bin342.fits evtable="EVENTS" scfile=/scratch/kocevski/808358/ft2_4FGL_J2323.5-0317_daily_bin342.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808358/Model_4FGL_J2323.5-0317_daily_bin342.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/808358/ft1_filtered_4FGL_J2323.5-0317_daily_bin342.fits.....................!
real 78.50
user 77.04
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    50.057       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13575E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.8099       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5143       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.068       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3567       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.5268       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.3299       1.0000         .10000E-03   10000.    
    13 'Prefactor '    148.67       1.0000         .10000E-03   10000.    
    14 'Prefactor '    132.31       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0541       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.980       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0539       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.398       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.836       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2104       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81971       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=   8341.404     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2910 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1494       -.70213E-09** at limit **
   2  Prefactor     50.057        34.300        .87316E-07   -.34057E-05
   3  Prefactor     .10000E-03    9.2878        .92949E-07** at limit **
   4  Prefactor     .10000E-03    8.6182       -.12695E-06** at limit **
   5  norm          8.8094        8.5025        .12239E-05    .79144E-05
   6  Prefactor     6.5107        35.074        .38181E-06   -.98773E-05
   7  Prefactor     20.072        19.287        .49067E-07    .21141E-04
   8  Prefactor     7.3856        40.113       -.18542E-05   -.19754E-04
   9  Prefactor     .10000E-03    5.0772        .34288E-05** at limit **
  10  norm          .10000E-03    .39819       -.89786E-07** at limit **
  11  norm          1.5276        3.0293        .10020E-05   -.31945E-04
  12  Prefactor     9.3300        8.9242        .58088E-07    .12564E-06
  13  Prefactor     148.66        73.375        .42722E-07   -.36631E-04
  14  Prefactor     132.26        159.51       -.51103E-06   -.20876E-04
  15  Prefactor     9.0555        10.289        .74237E-07    .54013E-05
  16  Prefactor     .10000E-03    9.3623       -.14826E-06** at limit **
  17  norm          .10000E-03    18.210        .25967E-06** at limit **
  18  Prefactor     15.973        23.343       -.45487E-07   -.43431E-04
  19  Prefactor     7.0541        4.4659        .11984E-06   -.19917E-04
  20  Prefactor     26.384        41.559        .47990E-07   -.55731E-04
  21  Prefactor     24.832        23.979        .34019E-07   -.44444E-04
  22  Prefactor     .10000E-03    3.7805       -.29948E-07** at limit **
  23  Prefactor     .10000E-03    1.3992        .68518E-08** at limit **
  24  Normalizat    1.2101        .17418       -.12153E-05   -.34567E-05
  25  Prefactor     .81995        .12361        .66804E-06   -.11649E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 50.0575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.80944
  Prefactor  = 6.51069
  Prefactor  = 20.0723
  Prefactor  = 7.38561
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.52755
  Prefactor  = 9.32998
  Prefactor  = 148.656
  Prefactor  = 132.26
  Prefactor  = 9.05547
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.9733
  Prefactor  = 7.05408
  Prefactor  = 26.3839
  Prefactor  = 24.8318
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.21009
  Prefactor  = 0.819949
 **********
 **   18 **HESSE 
 **********

 FCN=   8341.404     FROM HESSE     STATUS=OK           435 CALLS     3345 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1542        .13075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     50.057        34.319        .56681E-04   -1.4292    
   3  Prefactor     .10000E-03    9.3059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.9813        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.8094        8.4932        .67521E-03   -1.5114    
   6  Prefactor     6.5107        35.058        .15724E-03   -1.5198    
   7  Prefactor     20.072        19.288        .89410E-04   -1.4812    
   8  Prefactor     7.3856        40.501        .14787E-03   -1.5164    
   9  Prefactor     .10000E-03    5.0979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .83021        .11019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5276        2.9786        .21348E-03   -1.5461    
  12  Prefactor     9.3300        8.9214        .13121E-03   -1.5097    
  13  Prefactor     148.66        73.331        .16526E-03   -1.3263    
  14  Prefactor     132.26        158.95        .17504E-03   -1.3403    
  15  Prefactor     9.0555        10.218        .13320E-03   -1.5106    
  16  Prefactor     .10000E-03    9.3709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    18.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.973        23.341        .10019E-03   -1.4908    
  19  Prefactor     7.0541        4.4555        .13354E-03   -1.5177    
  20  Prefactor     26.384        41.569        .77969E-04   -1.4680    
  21  Prefactor     24.832        23.966        .80380E-04   -1.4711    
  22  Prefactor     .10000E-03    3.7883        .17342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.4015        .10550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2101        .20205        .25925E-03   -.86292    
  25  Prefactor     .81995        .14326        .22869E-03   -.98997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.24146e-11
Minuit parameter uncertainties:
  1  5.96735e-07
  2  34.3327
  3  7.66875e-06
  4  1.19715e-05
  5  8.49434
  6  30.2431
  7  19.2937
  8  34.6265
  9  8.92281e-06
  10  3.59975e-06
  11  2.97888
  12  8.9227
  13  73.3761
  14  159.466
  15  10.2201
  16  9.80651e-06
  17  5.64756e-06
  18  23.3538
  19  4.45569
  20  41.6147
  21  23.9756
  22  8.00045e-07
  23  5.19517e-07
  24  0.202182
  25  0.143324
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.000e-04  3.600e-06  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.199e-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:  1.210e+00  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/808358/likelihoodResults_327974401_328233601_4FGL_J2323.5-0317_daily_bin342.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): 102
logL (Free Index) = 8341.409531
delta logL = -0.00578618682084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8341.36918705
delta logL = 0.0345577633816

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47358E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6345       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1980       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82430       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=   8341.369     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      356 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49134E-01    1.5879        .13610E-01    .36979E-02
   2  alpha         3.6192        3.2495        .48471        .61005E-04
   3  Normalizat    1.1979        .18851E-01    .58869E-01    .91036E-05
   4  Prefactor     .82428        .14052E-01    .44033E-01    .12774E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0491339
  alpha      = 3.61922
  Normalizat = 1.19787
  Prefactor  = 0.82428
 **********
 **   18 **HESSE 
 **********

 FCN=   8341.369     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      391 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49134E-01    33.089        .51400E-03   -1.5664    
   2  alpha         3.6192        2.9780        .70432E-01    .46418    
   3  Normalizat    1.1979        .11188        .26035E-03   -.86669    
   4  Prefactor     .82428        .81441E-01    .22812E-03   -.98839    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.05304e-06
Minuit parameter uncertainties:
  1  2.54893
  2  28.9835
  3  0.111907
  4  0.0814527
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808358': 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): 102
logL (Free Index) = 8341.36916825
delta logL = 0.034576564598

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  4.913e-02  2.549e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  3.619e+00  2.898e+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.243e-01  8.145e-02  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.198e+00  1.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.888 -3.290

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/808358/cmap_HighResolution_327974401_328233601_4FGL_J2323.5-0317_daily_bin342.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-05', job_status='DONE', photon_flux_upper_limit='5.88e-08', time_completed='2021-09-29 14:40:25.380098', job_id='808358', GAL2='0.82', fit_tolerance='1e-08', EG2='1.20', EG='1.21', time_epoch_completed='1632951625.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='3.46e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='342' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:40:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 808358: <4FGL_J2323.5-0317_daily_bin342> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin342 350.888 -3.29 327974401 328233601 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 :                                   807.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            892 sec.

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

