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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin370
RA = 350.888, Dec = -3.29
tmin = 335232001, tmax = 335491201
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='808414', job_status='RUN', time_executed='2021-09-29 14:28:19.811658', time_epoch_executed='1632950899.81' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808414

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808414/ft1_4FGL_J2323.5-0317_daily_bin370.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808414/ft2_4FGL_J2323.5-0317_daily_bin370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808414/ft1_4FGL_J2323.5-0317_daily_bin370.fits outfile=/scratch/kocevski/808414/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin370.fits ra=350.888 dec=-3.29 rad=12.0 tmin=335232001.0 tmax=335491201.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.74
user 3.49
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808414/ft1_filtered_4FGL_J2323.5-0317_daily_bin370.fits" evtable="EVENTS" scfile=/scratch/kocevski/808414/ft2_4FGL_J2323.5-0317_daily_bin370.fits sctable="SC_DATA" outfile=/scratch/kocevski/808414/ltcube_335232001_335491201_4FGL_J2323.5-0317_daily_bin370.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/808414/ft2_4FGL_J2323.5-0317_daily_bin370.fits
.....................!
real 11.69
user 11.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808414/ft1_filtered_4FGL_J2323.5-0317_daily_bin370.fits evtable="EVENTS" scfile=/scratch/kocevski/808414/ft2_4FGL_J2323.5-0317_daily_bin370.fits sctable="SC_DATA" expcube=/scratch/kocevski/808414/ltcube_335232001_335491201_4FGL_J2323.5-0317_daily_bin370.fits outfile=/scratch/kocevski/808414/expmap_335232001_335491201_4FGL_J2323.5-0317_daily_bin370.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/808414/ltcube_335232001_335491201_4FGL_J2323.5-0317_daily_bin370.fits
.....................!
real 190.78
user 185.48
sys 4.98

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/808414/ft1_filtered_4FGL_J2323.5-0317_daily_bin370.fits scfile=/scratch/kocevski/808414/ft2_4FGL_J2323.5-0317_daily_bin370.fits outfile=/scratch/kocevski/808414/cmap_335232001_335491201_4FGL_J2323.5-0317_daily_bin370.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808414/ft1_filtered_4FGL_J2323.5-0317_daily_bin370.fits scfile=/scratch/kocevski/808414/ft2_4FGL_J2323.5-0317_daily_bin370.fits outfile=/scratch/kocevski/808414/cmap_HighResolution_335232001_335491201_4FGL_J2323.5-0317_daily_bin370.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808414/ft1_filtered_4FGL_J2323.5-0317_daily_bin370.fits evtable="EVENTS" scfile=/scratch/kocevski/808414/ft2_4FGL_J2323.5-0317_daily_bin370.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808414/Model_4FGL_J2323.5-0317_daily_bin370.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/808414/ft1_filtered_4FGL_J2323.5-0317_daily_bin370.fits.....................!
real 52.87
user 50.96
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    85.393       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.483       1.0000         .10000E-03   10000.    
     5 'norm      '    .82856       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0141       1.0000         .10000E-03   10000.    
    10 'norm      '    6.8365       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2414       1.0000         .10000E-03   10000.    
    13 'Prefactor '    67.287       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.9387       1.0000         .10000E-03   10000.    
    16 'Prefactor '    42.359       1.0000         .10000E-03   10000.    
    17 'norm      '    .10639E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.909       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.467       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.853       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89395       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83525       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=   5223.271     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2920 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9423        .49660E-07** at limit **
   2  Prefactor     .10002E-03    78.428       -.16882E-04** at limit **
   3  Prefactor     85.395        60.752       -.68705E-07   -.88921E-05
   4  Prefactor     15.483        13.519        .12322E-06    .18171E-04
   5  norm          .82579        12.033        .10257E-05   -.35239E-04
   6  Prefactor     .10000E-03    9.8614       -.19283E-06** at limit **
   7  Prefactor     .10000E-03    8.5022        .26899E-06** at limit **
   8  Prefactor     .10000E-03    21.299       -.11422E-05** at limit **
   9  Prefactor     3.0135        6.5232        .27467E-05    .10769E-02
  10  norm          6.8365        1.7331       -.12830E-06    .26950E-03
  11  norm          .10057E-03    11.554       -.57246E-05** at limit **
  12  Prefactor     6.2411        15.243        .23396E-05    .20333E-03
  13  Prefactor     67.287        55.238        .19243E-06   -.14131E-04
  14  Prefactor     .10001E-03    122.26        .10571E-04** at limit **
  15  Prefactor     6.9376        14.895       -.48651E-06   -.15182E-03
  16  Prefactor     42.358        35.454       -.41269E-06   -.65226E-06
  17  norm          .10000E-03    113.74        .40200E-05** at limit **
  18  Prefactor     .10000E-03    114.70        .52715E-05** at limit **
  19  Prefactor     22.910        8.0829       -.51166E-07   -.31678E-03
  20  Prefactor     .10000E-03    16.112        .60428E-06** at limit **
  21  Prefactor     .10000E-03    8.2075       -.19388E-06** at limit **
  22  Prefactor     12.468        15.426        .27767E-06    .16726E-04
  23  Prefactor     12.853        9.4911        .18917E-06    .66690E-04
  24  Normalizat    .89389        .22585       -.10184E-05    .31751E-04
  25  Prefactor     .83531        .15495       -.26186E-06    .15593E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 85.3951
  Prefactor  = 15.4826
  norm       = 0.825793
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.01346
  norm       = 6.83655
  norm       = 0.000100574
  Prefactor  = 6.24108
  Prefactor  = 67.287
  Prefactor  = 0.000100011
  Prefactor  = 6.93757
  Prefactor  = 42.3584
  norm       = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 22.9096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4676
  Prefactor  = 12.8535
  Normalizat = 0.893892
  Prefactor  = 0.835311
 **********
 **   18 **HESSE 
 **********

 FCN=   5223.271     FROM HESSE     STATUS=OK           431 CALLS     3351 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9674        .17203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    79.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     85.395        60.966        .43473E-04   -1.3857    
   4  Prefactor     15.483        13.523        .50894E-03   -1.4921    
   5  norm          .82579        44.689        .46454E-02   -1.5526    
   6  Prefactor     .10000E-03    9.8680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.5229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0135        6.8162        .11689E-02   -1.5361    
  10  norm          6.8365        1.7179        .44587E-04   -1.5185    
  11  norm          .10057E-03    36.424        .32181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.2411        15.182        .80340E-03   -1.5208    
  13  Prefactor     67.287        55.230        .48930E-04   -1.4066    
  14  Prefactor     .10001E-03    122.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.9376        14.748        .15230E-03   -1.5181    
  16  Prefactor     42.358        35.368        .61594E-04   -1.4405    
  17  norm          .10000E-03    115.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    116.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.910        8.0679        .83687E-04   -1.4750    
  20  Prefactor     .10000E-03    16.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.2259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.468        15.431        .11345E-03   -1.5002    
  23  Prefactor     12.853        9.5227        .11173E-03   -1.4991    
  24  Normalizat    .89389        .26518        .29873E-03   -.96675    
  25  Prefactor     .83531        .18329        .22192E-03   -.98440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77964e-08
Minuit parameter uncertainties:
  1  9.43929e-06
  2  0.00281064
  3  61.0108
  4  13.5258
  5  12.1585
  6  1.05816e-05
  7  1.77001e-05
  8  6.21276e-05
  9  6.81799
  10  1.71791
  11  0.00915121
  12  15.1914
  13  55.2719
  14  0.00230196
  15  14.7555
  16  35.3858
  17  0.000992648
  18  0.00114258
  19  8.06829
  20  5.17423e-05
  21  8.65786e-06
  22  15.4364
  23  9.52378
  24  0.265566
  25  0.183429
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  6.837e+00  1.718e+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.353e-01  1.834e-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.939e-01  2.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 56.38
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 2.65e-07 +/- 6.65e-08
Energy Flux (Fixed Index): 1.08e-04 +/- 2.72e-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) = 5223.10391444
delta logL = 0.167155190714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5223.06172592
delta logL = 0.209343710324

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5765       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3232       1.0000          .0000       5.0000    
     3 'Normalizat'    .86031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84970       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=   5223.062     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5775        2.7358        .39122E-02    .61896E-03
   2  alpha         2.3236        .40131        .14557        .13966E-03
   3  Normalizat    .86004        .21815        .68598E-01    .34732E-04
   4  Prefactor     .84978        .15487        .44361E-01    .40017E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.57755
  alpha      = 2.32358
  Normalizat = 0.860038
  Prefactor  = 0.849776
 **********
 **   18 **HESSE 
 **********

 FCN=   5223.062     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5775        1.6932        .42268E-04   -1.5195    
   2  alpha         2.3236        .25450        .62889E-02   -.70627E-01
   3  Normalizat    .86004        .25520        .30350E-03   -.97879    
   4  Prefactor     .84978        .18135        .22006E-03   -.97919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17118e-10
Minuit parameter uncertainties:
  1  1.69324
  2  0.254946
  3  0.255562
  4  0.181479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808414': 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) = 5223.06172365
delta logL = 0.20934597836

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  6.578e+00  1.693e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.324e+00  2.549e-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.498e-01  1.815e-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.600e-01  2.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 56.82
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.32 +/- 0.25
Photon Flux (Free Index): 2.99e-07 +/- 8.81e-08
Energy Flux (Free Index): 1.01e-04 +/- 2.63e-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/808414/cmap_HighResolution_335232001_335491201_4FGL_J2323.5-0317_daily_bin370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.65e-07', energy_flux2='1.01e-04', photon_flux_error='6.65e-08', dlogl='2.09e-01', energy_flux='1.08e-04', photon_flux2='2.99e-07', job_status='DONE', time_completed='2021-09-29 14:37:38.330764', photon_index_error2='0.25', photon_index2='2.32', ts='56.38', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='2.63e-05', EG='0.89', time_epoch_completed='1632951458.33', return_code='0', job_id='808414', GAL2='0.85', EG2='0.86', return_code2='0', energy_flux_error='2.72e-05', photon_flux_error2='8.81e-08', ts2='56.82', photon_index='2.16' WHERE bin_id='370' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:37:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 808414: <4FGL_J2323.5-0317_daily_bin370> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin370 350.888 -3.29 335232001 335491201 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 :                                   554.33 sec.
    Max Memory :                                 1228 MB
    Average Memory :                             291.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            722 sec.

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

