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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin172
RA = 350.888, Dec = -3.29
tmin = 283910401, tmax = 284169601
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='808101', job_status='RUN', time_executed='2021-09-29 14:26:54.944167', time_epoch_executed='1632950814.94' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='172'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808101

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808101/ft1_4FGL_J2323.5-0317_daily_bin172.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808101/ft2_4FGL_J2323.5-0317_daily_bin172.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808101/ft1_4FGL_J2323.5-0317_daily_bin172.fits outfile=/scratch/kocevski/808101/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin172.fits ra=350.888 dec=-3.29 rad=12.0 tmin=283910401.0 tmax=284169601.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.60
user 3.38
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/808101/ft2_4FGL_J2323.5-0317_daily_bin172.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/808101/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin172.fits evtable="EVENTS" outfile="/scratch/kocevski/808101/ft1_filtered_4FGL_J2323.5-0317_daily_bin172.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/808101/ft1_filtered_4FGL_J2323.5-0317_daily_bin172.fits" evtable="EVENTS" scfile=/scratch/kocevski/808101/ft2_4FGL_J2323.5-0317_daily_bin172.fits sctable="SC_DATA" outfile=/scratch/kocevski/808101/ltcube_283910401_284169601_4FGL_J2323.5-0317_daily_bin172.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/808101/ft2_4FGL_J2323.5-0317_daily_bin172.fits
.....................!
real 12.15
user 11.79
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808101/ft1_filtered_4FGL_J2323.5-0317_daily_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/808101/ft2_4FGL_J2323.5-0317_daily_bin172.fits sctable="SC_DATA" expcube=/scratch/kocevski/808101/ltcube_283910401_284169601_4FGL_J2323.5-0317_daily_bin172.fits outfile=/scratch/kocevski/808101/expmap_283910401_284169601_4FGL_J2323.5-0317_daily_bin172.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/808101/ltcube_283910401_284169601_4FGL_J2323.5-0317_daily_bin172.fits
.....................!
real 190.53
user 185.84
sys 4.33

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/808101/ft1_filtered_4FGL_J2323.5-0317_daily_bin172.fits scfile=/scratch/kocevski/808101/ft2_4FGL_J2323.5-0317_daily_bin172.fits outfile=/scratch/kocevski/808101/cmap_283910401_284169601_4FGL_J2323.5-0317_daily_bin172.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808101/ft1_filtered_4FGL_J2323.5-0317_daily_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/808101/ft2_4FGL_J2323.5-0317_daily_bin172.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808101/Model_4FGL_J2323.5-0317_daily_bin172.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/808101/ft1_filtered_4FGL_J2323.5-0317_daily_bin172.fits....................!
real 50.95
user 49.57
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.928       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.417       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .57020       1.0000         .10000E-03   10000.    
    11 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2290       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    386.21       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10945E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    87.428       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10940E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.357       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.2566       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1760       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82641       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=   5078.102     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     3424 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.928        13.543        .12605E-08   -.23007E-04
   2  Prefactor     .10000E-03    24.399       -.61047E-05** at limit **
   3  Prefactor     .10000E-03    22.468        .54400E-06** at limit **
   4  Prefactor     .10000E-03    7.0231        .12318E-05** at limit **
   5  norm          .10000E-03    4.0765       -.22119E-06** at limit **
   6  Prefactor     10.423        26.498        .19739E-05   -.57236E-07
   7  Prefactor     .10000E-03    6.1152       -.36532E-07** at limit **
   8  Prefactor     .10000E-03    21.153        .40870E-05** at limit **
   9  Prefactor     .10000E-03    8.1377        .15310E-05** at limit **
  10  norm          .57130        1.1119        .62165E-06    .36477E-03
  11  norm          .10000E-03    6.3401       -.35951E-06** at limit **
  12  Prefactor     2.2302        5.9579        .79618E-07   -.35235E-03
  13  Prefactor     .10000E-03    16.915       -.18111E-05** at limit **
  14  Prefactor     386.19        289.00       -.13099E-04   -.11941E-04
  15  Prefactor     .10000E-03    12.359        .13108E-09** at limit **
  16  Prefactor     87.425        33.003       -.87462E-06    .19421E-05
  17  norm          .10000E-03    7.8345       -.20112E-05** at limit **
  18  Prefactor     .10000E-03    42.584        .73256E-06** at limit **
  19  Prefactor     .10000E-03    4.1511       -.25341E-07** at limit **
  20  Prefactor     .10000E-03    93.690       -.42856E-05** at limit **
  21  Prefactor     .10000E-03    17.503        .88747E-06** at limit **
  22  Prefactor     15.356        17.557        .18233E-06    .22399E-05
  23  Prefactor     2.2562        7.1012       -.92123E-07   -.30895E-03
  24  Normalizat    1.1761        .20667        .36558E-06   -.62956E-04
  25  Prefactor     .82622        .14893       -.48221E-07   -.28707E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9282
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.4227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.5713
  norm       = 0.0001
  Prefactor  = 2.2302
  Prefactor  = 0.0001
  Prefactor  = 386.188
  Prefactor  = 0.0001
  Prefactor  = 87.4255
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3558
  Prefactor  = 2.25625
  Normalizat = 1.17609
  Prefactor  = 0.82622
 **********
 **   18 **HESSE 
 **********

 FCN=   5078.102     FROM HESSE     STATUS=OK           417 CALLS     3841 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.928        13.624        .57994E-03   -1.5017    
   2  Prefactor     .10000E-03    24.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.0746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.0832        .14051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.423        26.511        .12414E-03   -1.5062    
   7  Prefactor     .10000E-03    6.1233        .17211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.2433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .57130        1.0805        .93715E-04   -1.5557    
  11  norm          .10000E-03    6.5610        .35021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2302        8.1571        .13769E-02   -1.5409    
  13  Prefactor     .10000E-03    16.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     386.19        287.58        .10379E-03   -1.1752    
  15  Prefactor     .10000E-03    12.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     87.425        32.990        .42968E-04   -1.3835    
  17  norm          .10000E-03    7.8047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    42.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.2484        .28268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    94.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.356        17.591        .10220E-03   -1.4924    
  23  Prefactor     2.2562        11.036        .13674E-02   -1.5408    
  24  Normalizat    1.1761        .24327        .25635E-03   -.87345    
  25  Prefactor     .82622        .17504        .21892E-03   -.98769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.9544e-10
Minuit parameter uncertainties:
  1  13.6271
  2  5.22213e-06
  3  5.14473e-06
  4  3.82821e-06
  5  1.53253e-06
  6  26.5409
  7  1.50169e-06
  8  4.42686e-06
  9  1.25533e-05
  10  1.08052
  11  1.31074e-05
  12  8.16112
  13  3.64261e-07
  14  288.659
  15  8.73723e-05
  16  32.9967
  17  1.15266e-05
  18  4.8559e-06
  19  4.66181e-05
  20  0.000106302
  21  4.82574e-06
  22  17.5967
  23  9.9829
  24  0.243508
  25  0.175163
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  5.713e-01  1.081e+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.262e-01  1.752e-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.176e+00  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/808101/likelihoodResults_283910401_284169601_4FGL_J2323.5-0317_daily_bin172.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) = 5077.77545323
delta logL = 0.326124700694

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5077.74857588
delta logL = 0.353002049195

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29569       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6711       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85886       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=   5077.749     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      217 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29454        4.2041        .83110E-02    .11088E-02
   2  alpha         3.6742        4.3272        .49178        .30222E-04
   3  Normalizat    1.1075        .43468E-01    .59461E-01   -.46251E-04
   4  Prefactor     .85888        .31830E-01    .44479E-01   -.49461E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.29454
  alpha      = 3.67417
  Normalizat = 1.1075
  Prefactor  = 0.858882
 **********
 **   18 **HESSE 
 **********

 FCN=   5077.749     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      250 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29454        13.340        .37386E-04   -1.5599    
   2  alpha         3.6742        3.0300        .19920E-01    .48891    
   3  Normalizat    1.1075        .28946        .26297E-03   -.89511    
   4  Prefactor     .85888        .20053        .21510E-03   -.97593    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.9703e-07
Minuit parameter uncertainties:
  1  3.96463
  2  10.4527
  3  0.289875
  4  0.200705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808101': 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) = 5077.7485752
delta logL = 0.353002730257

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.945e-01  3.965e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  3.674e+00  1.045e+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.589e-01  2.007e-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.108e+00  2.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 3.67 +/- 10.45
Photon Flux (Free Index): 7.47e-08 +/- 1.34e-07
Energy Flux (Free Index): 1.24e-05 +/- 1.74e-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/808101/cmap_HighResolution_283910401_284169601_4FGL_J2323.5-0317_daily_bin172.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.72e-05', comment='SUCCESS', energy_flux2='1.24e-05', dlogl='3.53e-01', photon_flux2='7.47e-08', job_status='DONE', time_completed='2021-09-29 14:38:30.841238', photon_index_error2='10.45', photon_index2='3.67', ts='0.38', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.74e-05', EG='1.18', time_epoch_completed='1632951510.84', return_code='0', job_id='808101', GAL2='0.86', EG2='1.11', return_code2='102', photon_flux_error2='1.34e-07', ts2='1.15', photon_index='2.16' WHERE bin_id='172' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:38:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 808101: <4FGL_J2323.5-0317_daily_bin172> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin172 350.888 -3.29 283910401 284169601 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 :                                   633.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            800 sec.

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

