/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 162 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 = 7501
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2323.5-0317_daily_bin809
RA = 350.888, Dec = -3.29
tmin = 449020801, tmax = 449280001
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='811001', job_status='RUN', time_executed='2021-09-29 14:38:20.577216', time_epoch_executed='1632951500.58' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='809'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811001

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811001/ft1_4FGL_J2323.5-0317_daily_bin809.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811001/ft2_4FGL_J2323.5-0317_daily_bin809.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811001/ft1_4FGL_J2323.5-0317_daily_bin809.fits outfile=/scratch/kocevski/811001/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin809.fits ra=350.888 dec=-3.29 rad=12.0 tmin=449020801.0 tmax=449280001.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 5.54
user 5.24
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811001/ft1_filtered_4FGL_J2323.5-0317_daily_bin809.fits" evtable="EVENTS" scfile=/scratch/kocevski/811001/ft2_4FGL_J2323.5-0317_daily_bin809.fits sctable="SC_DATA" outfile=/scratch/kocevski/811001/ltcube_449020801_449280001_4FGL_J2323.5-0317_daily_bin809.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/811001/ft2_4FGL_J2323.5-0317_daily_bin809.fits
.....................!
real 12.15
user 11.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811001/ft1_filtered_4FGL_J2323.5-0317_daily_bin809.fits evtable="EVENTS" scfile=/scratch/kocevski/811001/ft2_4FGL_J2323.5-0317_daily_bin809.fits sctable="SC_DATA" expcube=/scratch/kocevski/811001/ltcube_449020801_449280001_4FGL_J2323.5-0317_daily_bin809.fits outfile=/scratch/kocevski/811001/expmap_449020801_449280001_4FGL_J2323.5-0317_daily_bin809.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/811001/ltcube_449020801_449280001_4FGL_J2323.5-0317_daily_bin809.fits
.....................!
real 191.14
user 186.00
sys 4.74

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/811001/ft1_filtered_4FGL_J2323.5-0317_daily_bin809.fits scfile=/scratch/kocevski/811001/ft2_4FGL_J2323.5-0317_daily_bin809.fits outfile=/scratch/kocevski/811001/cmap_449020801_449280001_4FGL_J2323.5-0317_daily_bin809.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/811001/ft1_filtered_4FGL_J2323.5-0317_daily_bin809.fits scfile=/scratch/kocevski/811001/ft2_4FGL_J2323.5-0317_daily_bin809.fits outfile=/scratch/kocevski/811001/cmap_HighResolution_449020801_449280001_4FGL_J2323.5-0317_daily_bin809.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/811001/ft1_filtered_4FGL_J2323.5-0317_daily_bin809.fits evtable="EVENTS" scfile=/scratch/kocevski/811001/ft2_4FGL_J2323.5-0317_daily_bin809.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/811001/Model_4FGL_J2323.5-0317_daily_bin809.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/811001/ft1_filtered_4FGL_J2323.5-0317_daily_bin809.fits......................!
real 32.17
user 30.74
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.190       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.081       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-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 '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .76249       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10734E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5654       1.0000         .10000E-03   10000.    
    16 'Prefactor '    175.94       1.0000         .10000E-03   10000.    
    17 'norm      '    .12815E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.408       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    61.459       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.8577       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .32820       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3718       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=   2496.431     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2933 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.194        27.223       -.24169E-05   -.16588E-04
   2  Prefactor     .10000E-03    51.215       -.58799E-06** at limit **
   3  Prefactor     28.072        54.268       -.67865E-05   -.18514E-04
   4  Prefactor     .10000E-03    10.084       -.41412E-06** at limit **
   5  norm          .10000E-03    6.4327       -.24536E-07** at limit **
   6  Prefactor     .10000E-03    20.121        .30066E-04** at limit **
   7  Prefactor     .10000E-03    13.815        .58558E-07** at limit **
   8  Prefactor     .10000E-03    37.965       -.71262E-05** at limit **
   9  Prefactor     .10000E-03    8.4430       -.24662E-07** at limit **
  10  norm          .76102        1.7106       -.74998E-06   -.85480E-03
  11  norm          .10000E-03    4.8733       -.31434E-06** at limit **
  12  Prefactor     .10000E-03    21.839       -.21339E-04** at limit **
  13  Prefactor     .10000E-03    41.205        .25000E-04** at limit **
  14  Prefactor     .10000E-03    322.58       -.64056E-04** at limit **
  15  Prefactor     4.5413        14.489        .19849E-05    .12495E-03
  16  Prefactor     175.93        86.071       -.28991E-05    .51607E-04
  17  norm          .10000E-03    54.048       -.24603E-04** at limit **
  18  Prefactor     .10000E-03    131.59        .31176E-04** at limit **
  19  Prefactor     .10000E-03    5.0424       -.20044E-06** at limit **
  20  Prefactor     15.380        70.591       -.33722E-04    .26896E-06
  21  Prefactor     .10000E-03    18.191       -.10756E-04** at limit **
  22  Prefactor     61.463        45.123        .20332E-06   -.14491E-04
  23  Prefactor     5.8414        22.147       -.48359E-05   -.54073E-04
  24  Normalizat    .32799        .46588        .14640E-04    .70799E-04
  25  Prefactor     1.3720        .31669       -.18309E-05    .22457E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.1943
  Prefactor  = 0.0001
  Prefactor  = 28.0721
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.761019
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.54128
  Prefactor  = 175.928
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3796
  Prefactor  = 0.0001
  Prefactor  = 61.4631
  Prefactor  = 5.84142
  Normalizat = 0.327991
  Prefactor  = 1.37195
 **********
 **   18 **HESSE 
 **********

 FCN=   2496.431     FROM HESSE     STATUS=OK           419 CALLS     3352 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.194        27.131        .81444E-04   -1.4724    
   2  Prefactor     .10000E-03    51.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.072        53.283        .75603E-04   -1.4648    
   4  Prefactor     .10000E-03    10.108        .15490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.4401        .12377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.4561        .14178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .76102        1.5961        .90587E-03   -1.5533    
  11  norm          .10000E-03    4.8817        .10770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    41.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    322.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.5413        14.347        .18840E-03   -1.5282    
  16  Prefactor     175.93        86.059        .15213E-03   -1.3047    
  17  norm          .10000E-03    54.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    131.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.0578        .10947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.380        69.962        .10204E-03   -1.4923    
  21  Prefactor     .10000E-03    18.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     61.463        44.810        .51183E-04   -1.4138    
  23  Prefactor     5.8414        21.777        .16593E-03   -1.5225    
  24  Normalizat    .32799        .42075        .48798E-03   -1.2121    
  25  Prefactor     1.3720        .29403        .18295E-03   -.81192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.75086e-10
Minuit parameter uncertainties:
  1  27.145
  2  1.17873e-05
  3  53.3734
  4  1.22953e-05
  5  1.12795e-05
  6  6.25217e-06
  7  9.71822e-06
  8  3.22464e-05
  9  1.89486e-05
  10  1.5962
  11  1.02251e-05
  12  5.3069e-05
  13  3.42903e-05
  14  5.01078e-05
  15  14.3575
  16  86.1209
  17  6.68401e-05
  18  0.000177508
  19  3.8217e-06
  20  65.7318
  21  4.3385e-05
  22  44.8349
  23  21.8064
  24  0.424894
  25  0.294386
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  7.610e-01  1.596e+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:  1.372e+00  2.944e-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:  3.280e-01  4.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/811001/likelihoodResults_449020801_449280001_4FGL_J2323.5-0317_daily_bin809.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) = 2496.30550126
delta logL = 0.125967391159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2496.30328057
delta logL = 0.12818807987

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73682       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7826       1.0000          .0000       5.0000    
     3 'Normalizat'    .30065       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3830       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=   2496.303     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      202 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73678        73.007        .12202E-01    .44243E-03
   2  alpha         2.7829        3.4616        .41489E-01    .12812E-04
   3  Normalizat    .30075        .16355        .11507        .27078E-04
   4  Prefactor     1.3829        .12687        .31300E-01   -.37468E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.736782
  alpha      = 2.78289
  Normalizat = 0.300748
  Prefactor  = 1.38287
 **********
 **   18 **HESSE 
 **********

 FCN=   2496.303     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73678        1.4269        .64232E-03   -1.5536    
   2  alpha         2.7829        1.2643        .16596E-02    .11340    
   3  Normalizat    .30075        .39199        .50925E-03   -1.2279    
   4  Prefactor     1.3829        .28824        .18230E-03   -.80875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.63031e-10
Minuit parameter uncertainties:
  1  1.42696
  2  1.3264
  3  0.395639
  4  0.288578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811001': 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) = 2496.30328034
delta logL = 0.128188306963

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  7.368e-01  1.427e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.783e+00  1.326e+00  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:  1.383e+00  2.886e-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:  3.007e-01  3.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/811001/cmap_HighResolution_449020801_449280001_4FGL_J2323.5-0317_daily_bin809.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.77e-05', job_status='DONE', photon_flux_upper_limit='1.90e-07', time_completed='2021-09-29 14:46:13.482682', job_id='811001', GAL2='1.38', fit_tolerance='1e-08', EG2='0.30', EG='0.33', time_epoch_completed='1632951973.48', return_code2='0', ts='0.29', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='1.28e-01', ts2='0.56', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='809' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:46:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 811001: <4FGL_J2323.5-0317_daily_bin809> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin809> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 14:35:27 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:35:29 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:35:29 2021
Terminated at Wed Sep 29 14:46:13 2021
Results reported at Wed Sep 29 14:46:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin809 350.888 -3.29 449020801 449280001 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 :                                   458.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             248.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            646 sec.

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

