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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin192
RA = 350.888, Dec = -3.29
tmin = 289094401, tmax = 289353601
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='808130', job_status='RUN', time_executed='2021-09-29 14:28:06.675587', time_epoch_executed='1632950886.68' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808130

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808130/ft1_4FGL_J2323.5-0317_daily_bin192.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808130/ft2_4FGL_J2323.5-0317_daily_bin192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808130/ft1_4FGL_J2323.5-0317_daily_bin192.fits outfile=/scratch/kocevski/808130/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin192.fits ra=350.888 dec=-3.29 rad=12.0 tmin=289094401.0 tmax=289353601.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.61
user 3.36
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/808130/ft2_4FGL_J2323.5-0317_daily_bin192.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/808130/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin192.fits evtable="EVENTS" outfile="/scratch/kocevski/808130/ft1_filtered_4FGL_J2323.5-0317_daily_bin192.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/808130/ft1_filtered_4FGL_J2323.5-0317_daily_bin192.fits" evtable="EVENTS" scfile=/scratch/kocevski/808130/ft2_4FGL_J2323.5-0317_daily_bin192.fits sctable="SC_DATA" outfile=/scratch/kocevski/808130/ltcube_289094401_289353601_4FGL_J2323.5-0317_daily_bin192.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/808130/ft2_4FGL_J2323.5-0317_daily_bin192.fits
.....................!
real 11.83
user 11.44
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808130/ft1_filtered_4FGL_J2323.5-0317_daily_bin192.fits evtable="EVENTS" scfile=/scratch/kocevski/808130/ft2_4FGL_J2323.5-0317_daily_bin192.fits sctable="SC_DATA" expcube=/scratch/kocevski/808130/ltcube_289094401_289353601_4FGL_J2323.5-0317_daily_bin192.fits outfile=/scratch/kocevski/808130/expmap_289094401_289353601_4FGL_J2323.5-0317_daily_bin192.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/808130/ltcube_289094401_289353601_4FGL_J2323.5-0317_daily_bin192.fits
.....................!
real 190.49
user 185.18
sys 4.96

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/808130/ft1_filtered_4FGL_J2323.5-0317_daily_bin192.fits scfile=/scratch/kocevski/808130/ft2_4FGL_J2323.5-0317_daily_bin192.fits outfile=/scratch/kocevski/808130/cmap_289094401_289353601_4FGL_J2323.5-0317_daily_bin192.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808130/ft1_filtered_4FGL_J2323.5-0317_daily_bin192.fits scfile=/scratch/kocevski/808130/ft2_4FGL_J2323.5-0317_daily_bin192.fits outfile=/scratch/kocevski/808130/cmap_HighResolution_289094401_289353601_4FGL_J2323.5-0317_daily_bin192.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=350.888 yref=-3.29 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808130/ft1_filtered_4FGL_J2323.5-0317_daily_bin192.fits evtable="EVENTS" scfile=/scratch/kocevski/808130/ft2_4FGL_J2323.5-0317_daily_bin192.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808130/Model_4FGL_J2323.5-0317_daily_bin192.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/808130/ft1_filtered_4FGL_J2323.5-0317_daily_bin192.fits.....................!
real 58.13
user 56.71
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    17.278       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.403       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.993       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20720E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .99715       1.0000         .10000E-03   10000.    
    11 'norm      '    .81209E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2098       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.7432       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5828       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98730       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=   5824.494     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2916 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2704        .65808E-07** at limit **
   2  Prefactor     .10000E-03    33.643       -.34975E-06** at limit **
   3  Prefactor     .10000E-03    12.291        .15359E-05** at limit **
   4  Prefactor     .10000E-03    19.200        .77782E-06** at limit **
   5  norm          17.271        18.707        .17860E-06   -.68144E-05
   6  Prefactor     22.408        24.844        .19519E-06   -.66511E-06
   7  Prefactor     .10000E-03    9.5655        .97800E-06** at limit **
   8  Prefactor     30.972        68.549       -.66776E-05    .23541E-04
   9  Prefactor     .10002E-03    52.599       -.17909E-04** at limit **
  10  norm          .99709        .89042       -.24153E-07    .41860E-03
  11  norm          .10165E-03    6.1423        .18487E-05** at limit **
  12  Prefactor     .10000E-03    3.0938        .31003E-07** at limit **
  13  Prefactor     .10000E-03    13.730       -.14044E-05** at limit **
  14  Prefactor     .10000E-03    88.757       -.21523E-05** at limit **
  15  Prefactor     .10000E-03    4.2107        .11109E-06** at limit **
  16  Prefactor     .10000E-03    11.091        .48126E-07** at limit **
  17  norm          .10000E-03    6.4918        .48832E-07** at limit **
  18  Prefactor     .10000E-03    28.780       -.80963E-06** at limit **
  19  Prefactor     1.2096        2.5879        .69407E-06    .12993E-02
  20  Prefactor     .10000E-03    7.8890        .14702E-07** at limit **
  21  Prefactor     .10000E-03    9.9977       -.12016E-05** at limit **
  22  Prefactor     1.7674        47.158        .26406E-05    .19661E-03
  23  Prefactor     .10000E-03    3.9865        .78507E-07** at limit **
  24  Normalizat    1.5842        .24675        .79107E-06    .83360E-04
  25  Prefactor     .98617        .16822       -.14106E-05   -.23836E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.271
  Prefactor  = 22.4076
  Prefactor  = 0.0001
  Prefactor  = 30.9717
  Prefactor  = 0.000100023
  norm       = 0.997092
  norm       = 0.000101655
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.20963
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.76736
  Prefactor  = 0.0001
  Normalizat = 1.58422
  Prefactor  = 0.986171
 **********
 **   18 **HESSE 
 **********

 FCN=   5824.494     FROM HESSE     STATUS=OK           425 CALLS     3341 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2813        .15403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          17.271        18.768        .96353E-04   -1.4877    
   6  Prefactor     22.408        24.851        .84627E-04   -1.4761    
   7  Prefactor     .10000E-03    9.6084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.972        71.505        .71971E-04   -1.4594    
   9  Prefactor     .10002E-03    53.517        .39423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .99709        .89610        .65017E-04   -1.5508    
  11  norm          .10165E-03    7.0242        .54849E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.0962        .13110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    88.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.2205        .15294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.4944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2096        2.5749        .17739E-03   -1.5488    
  20  Prefactor     .10000E-03    7.8911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.7674        48.376        .31771E-03   -1.5442    
  23  Prefactor     .10000E-03    4.0047        .14882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5842        .29620        .27633E-03   -.75439    
  25  Prefactor     .98617        .20218        .24391E-03   -.93192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69119e-09
Minuit parameter uncertainties:
  1  1.24806e-05
  2  8.79341e-06
  3  0.000145382
  4  8.55357e-05
  5  18.7741
  6  24.8621
  7  8.57513e-05
  8  71.7041
  9  0.00224131
  10  0.896116
  11  0.00681922
  12  4.59097e-06
  13  0.000127003
  14  0.000483333
  15  1.98495e-05
  16  2.00323e-05
  17  1.03726e-05
  18  8.28739e-05
  19  2.57516
  20  9.52734e-06
  21  7.11196e-05
  22  18.5091
  23  1.42724e-05
  24  0.296527
  25  0.20234
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  9.971e-01  8.961e-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:  9.862e-01  2.023e-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.584e+00  2.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.88
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.86e-08 +/- 3.47e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.42e-05

TS (Fixed Index): 3.88
Ra Dec: 350.888 -3.290
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/808130/likelihoodResults_289094401_289353601_4FGL_J2323.5-0317_daily_bin192.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) = 5823.77679978
delta logL = 0.717588317995

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5823.7625621
delta logL = 0.731826001635

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26708       1.0000         .10000E-03   10000.    
     2 'alpha     '    .97777       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6164       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97773       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=   5823.763     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      216 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26717        .28863        .87420E-02   -.56076E-03
   2  alpha         .97820        .47689        .37136       -.36595E-04
   3  Normalizat    1.6166        .23268        .61977E-01    .15396E-05
   4  Prefactor     .97763        .16827        .45988E-01    .10473E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.267166
  alpha      = 0.978203
  Normalizat = 1.61659
  Prefactor  = 0.977627
 **********
 **   18 **HESSE 
 **********

 FCN=   5823.763     FROM HESSE     STATUS=OK            35 CALLS      251 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26717        .47008        .35829E-03   -1.5605    
   2  alpha         .97820        .74832        .15582E-01   -.65444    
   3  Normalizat    1.6166        .27638        .27409E-03   -.74553    
   4  Prefactor     .97763        .19995        .24489E-03   -.93479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13755e-10
Minuit parameter uncertainties:
  1  0.470082
  2  0.767316
  3  0.276644
  4  0.200103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808130': 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) = 5823.76256154
delta logL = 0.731826564096

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.672e-01  4.701e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  9.782e-01  7.673e-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.776e-01  2.001e-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.617e+00  2.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.35
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 0.98 +/- 0.77
Photon Flux (Free Index): 7.54e-09 +/- 9.79e-09
Energy Flux (Free Index): 4.13e-05 +/- 6.23e-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/808130/cmap_HighResolution_289094401_289353601_4FGL_J2323.5-0317_daily_bin192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-05', comment='SUCCESS', photon_flux='3.86e-08', energy_flux2='4.13e-05', photon_flux_error='3.47e-08', dlogl='7.32e-01', energy_flux='1.58e-05', photon_flux2='7.54e-09', job_status='DONE', time_completed='2021-09-29 14:38:55.486017', photon_index_error2='0.77', photon_index2='0.98', ts='3.88', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='6.23e-05', EG='1.58', time_epoch_completed='1632951535.49', return_code='0', job_id='808130', GAL2='0.98', EG2='1.62', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='9.79e-09', ts2='5.35', photon_index='2.16' WHERE bin_id='192' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:38:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 808130: <4FGL_J2323.5-0317_daily_bin192> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin192 350.888 -3.29 289094401 289353601 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 :                                   646.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            822 sec.

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

