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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin128
RA = 350.888, Dec = -3.29
tmin = 272505601, tmax = 272764801
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='807042', job_status='RUN', time_executed='2021-09-29 14:25:04.062949', time_epoch_executed='1632950704.06' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/807042

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/807042/ft1_4FGL_J2323.5-0317_daily_bin128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/807042/ft2_4FGL_J2323.5-0317_daily_bin128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/807042/ft1_4FGL_J2323.5-0317_daily_bin128.fits outfile=/scratch/kocevski/807042/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin128.fits ra=350.888 dec=-3.29 rad=12.0 tmin=272505601.0 tmax=272764801.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 1.75
user 1.56
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/807042/ft1_filtered_4FGL_J2323.5-0317_daily_bin128.fits" evtable="EVENTS" scfile=/scratch/kocevski/807042/ft2_4FGL_J2323.5-0317_daily_bin128.fits sctable="SC_DATA" outfile=/scratch/kocevski/807042/ltcube_272505601_272764801_4FGL_J2323.5-0317_daily_bin128.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/807042/ft2_4FGL_J2323.5-0317_daily_bin128.fits
.....................!
real 15.52
user 12.41
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/807042/ft1_filtered_4FGL_J2323.5-0317_daily_bin128.fits evtable="EVENTS" scfile=/scratch/kocevski/807042/ft2_4FGL_J2323.5-0317_daily_bin128.fits sctable="SC_DATA" expcube=/scratch/kocevski/807042/ltcube_272505601_272764801_4FGL_J2323.5-0317_daily_bin128.fits outfile=/scratch/kocevski/807042/expmap_272505601_272764801_4FGL_J2323.5-0317_daily_bin128.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/807042/ltcube_272505601_272764801_4FGL_J2323.5-0317_daily_bin128.fits
.....................!
real 190.04
user 185.16
sys 4.21

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/807042/ft1_filtered_4FGL_J2323.5-0317_daily_bin128.fits scfile=/scratch/kocevski/807042/ft2_4FGL_J2323.5-0317_daily_bin128.fits outfile=/scratch/kocevski/807042/cmap_272505601_272764801_4FGL_J2323.5-0317_daily_bin128.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.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/807042/ft1_filtered_4FGL_J2323.5-0317_daily_bin128.fits evtable="EVENTS" scfile=/scratch/kocevski/807042/ft2_4FGL_J2323.5-0317_daily_bin128.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/807042/Model_4FGL_J2323.5-0317_daily_bin128.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/807042/ft1_filtered_4FGL_J2323.5-0317_daily_bin128.fits.....................!
real 71.52
user 70.16
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5495       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .90520       1.0000         .10000E-03   10000.    
    11 'norm      '    3.9932       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0857       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.746       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9202       1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.503       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.4325       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0884       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77488       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=   7614.419     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2836 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2229        .39028E-08** at limit **
   2  Prefactor     .10000E-03    47.273        .80037E-06** at limit **
   3  Prefactor     .10000E-03    14.341        .15376E-05** at limit **
   4  Prefactor     7.5495        6.6806        .52388E-06   -.13341E-03
   5  norm          .10000E-03    3.7037        .26300E-07** at limit **
   6  Prefactor     .10000E-03    7.8347        .61185E-06** at limit **
   7  Prefactor     .10000E-03    4.9796        .15589E-07** at limit **
   8  Prefactor     .10000E-03    9.3219       -.18200E-07** at limit **
   9  Prefactor     .10000E-03    2.3892       -.16005E-07** at limit **
  10  norm          .90519        .71954        .15345E-07   -.91899E-04
  11  norm          3.9930        4.1024        .42101E-07   -.98105E-04
  12  Prefactor     6.0851        7.5656        .14116E-06   -.27752E-04
  13  Prefactor     .10000E-03    20.092       -.11307E-05** at limit **
  14  Prefactor     .10000E-03    99.209       -.90884E-06** at limit **
  15  Prefactor     .10000E-03    5.8925       -.12099E-06** at limit **
  16  Prefactor     .10000E-03    19.278        .44760E-06** at limit **
  17  norm          .10000E-03    7.5258       -.61170E-06** at limit **
  18  Prefactor     25.742        50.393       -.51485E-06   -.31995E-04
  19  Prefactor     1.9218        3.5668        .54201E-06   -.84111E-04
  20  Prefactor     40.503        33.443       -.41192E-06    .20855E-05
  21  Prefactor     7.4297        19.741        .37637E-05   -.10183E-03
  22  Prefactor     .10000E-03    13.006       -.11587E-05** at limit **
  23  Prefactor     .10000E-03    2.5517        .20502E-07** at limit **
  24  Normalizat    1.0884        .15778       -.32762E-06   -.14769E-04
  25  Prefactor     .77484        .11395       -.19565E-06   -.15305E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.5495
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.905185
  norm       = 3.99299
  Prefactor  = 6.08509
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.7424
  Prefactor  = 1.92181
  Prefactor  = 40.5029
  Prefactor  = 7.42972
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.08835
  Prefactor  = 0.774845
 **********
 **   18 **HESSE 
 **********

 FCN=   7614.419     FROM HESSE     STATUS=OK           423 CALLS     3259 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2308        .12705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    48.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.5495        6.6958        .72979E-03   -1.5158    
   5  norm          .10000E-03    3.7176        .16399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.9513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.3246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.3937        .13167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .90519        .68577        .62317E-03   -1.5518    
  11  norm          3.9930        4.0916        .17094E-03   -1.5308    
  12  Prefactor     6.0851        7.5642        .16275E-03   -1.5215    
  13  Prefactor     .10000E-03    20.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    99.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.9232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.6432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.742        50.584        .78949E-04   -1.4693    
  19  Prefactor     1.9218        3.5625        .20903E-03   -1.5431    
  20  Prefactor     40.503        33.467        .62984E-04   -1.4434    
  21  Prefactor     7.4297        20.051        .73556E-03   -1.5163    
  22  Prefactor     .10000E-03    13.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.6051        .13611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0884        .18138        .24012E-03   -.90127    
  25  Prefactor     .77484        .13114        .20795E-03   -1.0066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.0468e-10
Minuit parameter uncertainties:
  1  1.98681e-07
  2  0.000232999
  3  0.000268562
  4  6.69645
  5  1.68796e-06
  6  8.02342e-05
  7  1.02179e-06
  8  5.48784e-08
  9  1.4442e-06
  10  0.685775
  11  4.09191
  12  7.56542
  13  0.000240038
  14  0.000416471
  15  1.0356e-05
  16  8.5577e-05
  17  7.80481e-05
  18  50.6685
  19  3.56287
  20  33.483
  21  20.0693
  22  0.000182024
  23  1.53611e-06
  24  0.181486
  25  0.131197
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  9.052e-01  6.858e-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:  7.748e-01  1.312e-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.088e+00  1.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.97
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.50e-08 +/- 2.65e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.09e-05

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

Saving results to:
/scratch/kocevski/807042/likelihoodResults_272505601_272764801_4FGL_J2323.5-0317_daily_bin128.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) = 7614.34064832
delta logL = 0.0786653253654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7614.33892209
delta logL = 0.0803915611023

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .88460       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4373       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78018       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=   7614.339     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      236 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88446        11.926        .12646E-01    .81145E-03
   2  alpha         2.4369        3.5140        .41168        .23021E-04
   3  Normalizat    1.0759        .49310E-01    .39077E-01    .10791E-04
   4  Prefactor     .78008        .34771E-01    .43459E-01    .13629E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.884463
  alpha      = 2.43687
  Normalizat = 1.07591
  Prefactor  = 0.780076
 **********
 **   18 **HESSE 
 **********

 FCN=   7614.339     FROM HESSE     STATUS=OK            35 CALLS      271 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88446        .68083        .57960E-03   -1.5520    
   2  alpha         2.4369        .71266        .17813E-01   -.25253E-01
   3  Normalizat    1.0759        .17784        .24130E-03   -.90529    
   4  Prefactor     .78008        .13077        .20731E-03   -1.0047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.92306e-10
Minuit parameter uncertainties:
  1  0.680841
  2  0.722689
  3  0.17794
  4  0.130826
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/807042': 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) = 7614.33892012
delta logL = 0.0803935306649

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  8.845e-01  6.808e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.437e+00  7.227e-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:  7.801e-01  1.308e-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.076e+00  1.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.13
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.44 +/- 0.72
Photon Flux (Free Index): 4.54e-08 +/- 3.95e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.00e-05

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/807042/cmap_HighResolution_272505601_272764801_4FGL_J2323.5-0317_daily_bin128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.82e-05', comment='SUCCESS', photon_flux='3.50e-08', energy_flux2='1.37e-05', photon_flux_error='2.65e-08', dlogl='8.04e-02', energy_flux='1.44e-05', photon_flux2='4.54e-08', job_status='DONE', time_completed='2021-09-29 14:37:30.259259', photon_index_error2='0.72', photon_index2='2.44', ts='2.97', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='9.32e-08', energy_flux_error2='1.00e-05', EG='1.09', time_epoch_completed='1632951450.26', return_code='0', job_id='807042', GAL2='0.78', EG2='1.08', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='3.95e-08', ts2='3.13', photon_index='2.16' WHERE bin_id='128' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:37:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 807042: <4FGL_J2323.5-0317_daily_bin128> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin128> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 14:21:01 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:21:03 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:21:03 2021
Terminated at Wed Sep 29 14:37:33 2021
Results reported at Wed Sep 29 14:37:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin128 350.888 -3.29 272505601 272764801 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 :                                   742.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             277.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            992 sec.

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

