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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin1274
RA = 350.888, Dec = -3.29
tmin = 569548801, tmax = 569808001
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='10463', job_status='RUN', time_executed='2021-09-29 23:09:06.084732', time_epoch_executed='1632982146.08' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='1274'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10463

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10463/ft1_4FGL_J2323.5-0317_daily_bin1274.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10463/ft2_4FGL_J2323.5-0317_daily_bin1274.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10463/ft1_4FGL_J2323.5-0317_daily_bin1274.fits outfile=/scratch/kocevski/10463/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin1274.fits ra=350.888 dec=-3.29 rad=12.0 tmin=569548801.0 tmax=569808001.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.64
user 3.38
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10463/ft2_4FGL_J2323.5-0317_daily_bin1274.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/10463/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin1274.fits evtable="EVENTS" outfile="/scratch/kocevski/10463/ft1_filtered_4FGL_J2323.5-0317_daily_bin1274.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.50
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10463/ft1_filtered_4FGL_J2323.5-0317_daily_bin1274.fits" evtable="EVENTS" scfile=/scratch/kocevski/10463/ft2_4FGL_J2323.5-0317_daily_bin1274.fits sctable="SC_DATA" outfile=/scratch/kocevski/10463/ltcube_569548801_569808001_4FGL_J2323.5-0317_daily_bin1274.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/10463/ft2_4FGL_J2323.5-0317_daily_bin1274.fits
.....................!
real 11.89
user 11.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10463/ft1_filtered_4FGL_J2323.5-0317_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/10463/ft2_4FGL_J2323.5-0317_daily_bin1274.fits sctable="SC_DATA" expcube=/scratch/kocevski/10463/ltcube_569548801_569808001_4FGL_J2323.5-0317_daily_bin1274.fits outfile=/scratch/kocevski/10463/expmap_569548801_569808001_4FGL_J2323.5-0317_daily_bin1274.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/10463/ltcube_569548801_569808001_4FGL_J2323.5-0317_daily_bin1274.fits
.....................!
real 191.40
user 185.61
sys 5.42

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/10463/ft1_filtered_4FGL_J2323.5-0317_daily_bin1274.fits scfile=/scratch/kocevski/10463/ft2_4FGL_J2323.5-0317_daily_bin1274.fits outfile=/scratch/kocevski/10463/cmap_569548801_569808001_4FGL_J2323.5-0317_daily_bin1274.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10463/ft1_filtered_4FGL_J2323.5-0317_daily_bin1274.fits scfile=/scratch/kocevski/10463/ft2_4FGL_J2323.5-0317_daily_bin1274.fits outfile=/scratch/kocevski/10463/cmap_HighResolution_569548801_569808001_4FGL_J2323.5-0317_daily_bin1274.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    40.831       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.420       1.0000         .10000E-03   10000.    
     5 'norm      '    7.4750       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4004       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12882E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .89824       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3876       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2896       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-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 '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2579       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.2349       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95464       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96045       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=   5519.585     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2882 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5903        .41597E-07** at limit **
   2  Prefactor     .10000E-03    26.527        .17783E-06** at limit **
   3  Prefactor     40.831        50.379        .90655E-07    .88460E-05
   4  Prefactor     10.421        10.315        .37602E-07    .84445E-05
   5  norm          7.4771        12.809        .15534E-06    .96617E-05
   6  Prefactor     .10000E-03    16.684       -.24808E-07** at limit **
   7  Prefactor     4.4019        14.778        .50633E-05    .11555E-03
   8  Prefactor     .10000E-03    162.74       -.10034E-05** at limit **
   9  Prefactor     .87929        35.571       -.18282E-05    .34911E-03
  10  norm          2.3871        1.3216       -.12374E-07    .24378E-03
  11  norm          1.3169        27.882       -.92287E-07    .18256E-03
  12  Prefactor     .10000E-03    15.640       -.92061E-07** at limit **
  13  Prefactor     .10000E-03    61.264        .19139E-06** at limit **
  14  Prefactor     .10001E-03    74.922        .57472E-06** at limit **
  15  Prefactor     .10000E-03    6.4203        .53816E-07** at limit **
  16  Prefactor     .10000E-03    13.636        .11316E-06** at limit **
  17  norm          .10000E-03    10.741        .43151E-08** at limit **
  18  Prefactor     2.2659        330.03       -.72410E-07    .12699E-04
  19  Prefactor     .10000E-03    2.1545        .26335E-06** at limit **
  20  Prefactor     .10000E-03    45.988       -.37974E-06** at limit **
  21  Prefactor     7.2364        22.670        .36841E-06   -.35731E-05
  22  Prefactor     .10000E-03    5.1294        .32832E-07** at limit **
  23  Prefactor     .10000E-03    7.9788        .15586E-06** at limit **
  24  Normalizat    .95475        .20435       -.90311E-06    .35824E-04
  25  Prefactor     .96030        .14420       -.43813E-06   -.11269E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.8307
  Prefactor  = 10.4207
  norm       = 7.47709
  Prefactor  = 0.0001
  Prefactor  = 4.40191
  Prefactor  = 0.000100003
  Prefactor  = 0.879287
  norm       = 2.38713
  norm       = 1.3169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.26587
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 7.23637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.954746
  Prefactor  = 0.960297
 **********
 **   18 **HESSE 
 **********

 FCN=   5519.585     FROM HESSE     STATUS=OK           427 CALLS     3309 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5964        .13749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     40.831        50.483        .62731E-04   -1.4429    
   4  Prefactor     10.421        10.312        .12412E-03   -1.5062    
   5  norm          7.4771        12.803        .14669E-03   -1.5161    
   6  Prefactor     .10000E-03    16.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4019        15.156        .95994E-03   -1.5288    
   8  Prefactor     .10000E-03    164.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .87929        129.08        .43155E-02   -1.5520    
  10  norm          2.3871        1.3342        .57378E-04   -1.5399    
  11  norm          1.3169        55.908        .39004E-03   -1.5478    
  12  Prefactor     .10000E-03    16.333        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    61.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    76.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.4858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2659        328.62        .27340E-03   -1.5407    
  19  Prefactor     .10000E-03    3.8364        .21080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    46.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.2364        22.667        .14912E-03   -1.5170    
  22  Prefactor     .10000E-03    5.1366        .16434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.0759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .95475        .23653        .27972E-03   -.94562    
  25  Prefactor     .96030        .16729        .20456E-03   -.94065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61658e-09
Minuit parameter uncertainties:
  1  4.03063e-06
  2  0.000186664
  3  50.5355
  4  10.3138
  5  12.8073
  6  4.79538e-05
  7  15.1695
  8  0.00142804
  9  21.3529
  10  1.33424
  11  17.1775
  12  3.10366e-05
  13  0.000225268
  14  0.00131657
  15  6.93705e-06
  16  7.75951e-05
  17  1.24531e-05
  18  54.8836
  19  2.33655e-05
  20  0.00066943
  21  22.6937
  22  4.17832e-06
  23  2.58459e-05
  24  0.236786
  25  0.167382
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.387e+00  1.334e+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:  9.603e-01  1.674e-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:  9.547e-01  2.368e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.50
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 9.24e-08 +/- 5.16e-08
Energy Flux (Fixed Index): 3.78e-05 +/- 2.12e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5519.0206421
delta logL = 0.564548058438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5519.01898211
delta logL = 0.566208042027

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9938       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7230       1.0000          .0000       5.0000    
     3 'Normalizat'    .89289       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98951       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=   5519.019     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      236 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9938        14.840        .73346E-02    .12876E-02
   2  alpha         2.7230        3.8511        .26557        .37052E-04
   3  Normalizat    .89288        .95197E-01    .65151E-01    .15455E-04
   4  Prefactor     .98952        .63742E-01    .46136E-01    .29269E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.99378
  alpha      = 2.72304
  Normalizat = 0.892881
  Prefactor  = 0.989517
 **********
 **   18 **HESSE 
 **********

 FCN=   5519.019     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9938        1.3094        .46367E-04   -1.5426    
   2  alpha         2.7230        .59617        .10732E-01    .89337E-01
   3  Normalizat    .89288        .23497        .28819E-03   -.96711    
   4  Prefactor     .98952        .16878        .20182E-03   -.93080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1088e-09
Minuit parameter uncertainties:
  1  1.30941
  2  0.602022
  3  0.235244
  4  0.168874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10463': 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) = 5519.01898211
delta logL = 0.566208043334

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.994e+00  1.309e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.723e+00  6.020e-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.895e-01  1.689e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  8.929e-01  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.70
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.72 +/- 0.60
Photon Flux (Free Index): 1.42e-07 +/- 7.71e-08
Energy Flux (Free Index): 3.45e-05 +/- 1.67e-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/10463/cmap_HighResolution_569548801_569808001_4FGL_J2323.5-0317_daily_bin1274.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.24e-08', energy_flux2='3.45e-05', photon_flux_error='5.16e-08', dlogl='5.66e-01', energy_flux='3.78e-05', photon_flux2='1.42e-07', job_status='DONE', time_completed='2021-09-29 23:18:25.777223', photon_index_error2='0.60', photon_index2='2.72', ts='5.50', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='0.95', time_epoch_completed='1632982705.78', return_code='0', job_id='10463', GAL2='0.99', EG2='0.89', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='7.71e-08', ts2='6.70', photon_index='2.16' WHERE bin_id='1274' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:18:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 10463: <4FGL_J2323.5-0317_daily_bin1274> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin1274> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:05:12 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:05:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 23:05:14 2021
Terminated at Wed Sep 29 23:18:26 2021
Results reported at Wed Sep 29 23:18:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin1274 350.888 -3.29 569548801 569808001 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 :                                   558.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            794 sec.

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

