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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin821
RA = 350.888, Dec = -3.29
tmin = 452131201, tmax = 452390401
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='811019', job_status='RUN', time_executed='2021-09-29 14:39:00.319131', time_epoch_executed='1632951540.32' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='821'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811019

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811019/ft1_4FGL_J2323.5-0317_daily_bin821.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811019/ft2_4FGL_J2323.5-0317_daily_bin821.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811019/ft1_4FGL_J2323.5-0317_daily_bin821.fits outfile=/scratch/kocevski/811019/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin821.fits ra=350.888 dec=-3.29 rad=12.0 tmin=452131201.0 tmax=452390401.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.37
user 3.14
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811019/ft1_filtered_4FGL_J2323.5-0317_daily_bin821.fits" evtable="EVENTS" scfile=/scratch/kocevski/811019/ft2_4FGL_J2323.5-0317_daily_bin821.fits sctable="SC_DATA" outfile=/scratch/kocevski/811019/ltcube_452131201_452390401_4FGL_J2323.5-0317_daily_bin821.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/811019/ft2_4FGL_J2323.5-0317_daily_bin821.fits
.....................!
real 11.78
user 11.43
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811019/ft1_filtered_4FGL_J2323.5-0317_daily_bin821.fits evtable="EVENTS" scfile=/scratch/kocevski/811019/ft2_4FGL_J2323.5-0317_daily_bin821.fits sctable="SC_DATA" expcube=/scratch/kocevski/811019/ltcube_452131201_452390401_4FGL_J2323.5-0317_daily_bin821.fits outfile=/scratch/kocevski/811019/expmap_452131201_452390401_4FGL_J2323.5-0317_daily_bin821.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/811019/ltcube_452131201_452390401_4FGL_J2323.5-0317_daily_bin821.fits
.....................!
real 190.87
user 185.33
sys 5.12

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/811019/ft1_filtered_4FGL_J2323.5-0317_daily_bin821.fits scfile=/scratch/kocevski/811019/ft2_4FGL_J2323.5-0317_daily_bin821.fits outfile=/scratch/kocevski/811019/cmap_452131201_452390401_4FGL_J2323.5-0317_daily_bin821.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811019/ft1_filtered_4FGL_J2323.5-0317_daily_bin821.fits scfile=/scratch/kocevski/811019/ft2_4FGL_J2323.5-0317_daily_bin821.fits outfile=/scratch/kocevski/811019/cmap_HighResolution_452131201_452390401_4FGL_J2323.5-0317_daily_bin821.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.62
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/811019/ft1_filtered_4FGL_J2323.5-0317_daily_bin821.fits evtable="EVENTS" scfile=/scratch/kocevski/811019/ft2_4FGL_J2323.5-0317_daily_bin821.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/811019/Model_4FGL_J2323.5-0317_daily_bin821.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/811019/ft1_filtered_4FGL_J2323.5-0317_daily_bin821.fits.....................!
real 71.00
user 69.40
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.731       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1529       1.0000         .10000E-03   10000.    
     5 'norm      '    35.574       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .24928E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5370       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.828       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7430       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1138       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13817E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18181E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.663       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10455E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.156       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.465       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0204       1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.692       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93149       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80934       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=   7475.188     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     2929 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3815        .25434E-06** at limit **
   2  Prefactor     35.714        32.886       -.99466E-06    .28952E-04
   3  Prefactor     .10000E-03    20.469        .40461E-06** at limit **
   4  Prefactor     2.1521        4.8855        .50757E-05   -.10810E-03
   5  norm          35.573        13.682        .39958E-07    .10455E-03
   6  Prefactor     .10003E-03    144.44       -.34697E-05** at limit **
   7  Prefactor     9.5381        9.1765       -.14791E-07    .15817E-03
   8  Prefactor     18.811        33.464       -.31529E-05   -.46997E-04
   9  Prefactor     1.7454        5.6233        .17035E-05    .23731E-03
  10  norm          1.1133        .78514       -.45922E-07   -.35597E-03
  11  norm          .10000E-03    .92156       -.42303E-08** at limit **
  12  Prefactor     .10001E-03    6.0473       -.79455E-06** at limit **
  13  Prefactor     .10000E-03    17.742        .15906E-07** at limit **
  14  Prefactor     .10000E-03    442.40        .57026E-05** at limit **
  15  Prefactor     21.655        10.890       -.59433E-07   -.61564E-04
  16  Prefactor     .10000E-03    22.128       -.45915E-06** at limit **
  17  norm          .10000E-03    7.1121        .12823E-09** at limit **
  18  Prefactor     .10000E-03    12.959        .98480E-08** at limit **
  19  Prefactor     .10000E-03    1.4121       -.30782E-07** at limit **
  20  Prefactor     33.140        33.450       -.79401E-06    .65014E-04
  21  Prefactor     15.471        19.146        .22737E-06    .34789E-04
  22  Prefactor     1.0219        10.743        .15030E-05   -.13757E-04
  23  Prefactor     24.692        8.4641        .38671E-08   -.10855E-04
  24  Normalizat    .93148        .16522       -.23968E-06    .40084E-03
  25  Prefactor     .80936        .11743        .66408E-06    .70485E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 35.7144
  Prefactor  = 0.0001
  Prefactor  = 2.15214
  norm       = 35.5732
  Prefactor  = 0.000100032
  Prefactor  = 9.53811
  Prefactor  = 18.8114
  Prefactor  = 1.74541
  norm       = 1.11325
  norm       = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 21.6555
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.1402
  Prefactor  = 15.4713
  Prefactor  = 1.02194
  Prefactor  = 24.6917
  Normalizat = 0.931482
  Prefactor  = 0.809356
 **********
 **   18 **HESSE 
 **********

 FCN=   7475.188     FROM HESSE     STATUS=OK           427 CALLS     3356 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4154        .17671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     35.714        32.915        .67044E-04   -1.4512    
   3  Prefactor     .10000E-03    20.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1521        4.8916        .14040E-02   -1.5415    
   5  norm          35.573        13.686        .67191E-04   -1.4514    
   6  Prefactor     .10003E-03    147.79        .42932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.5381        9.1820        .64883E-03   -1.5090    
   8  Prefactor     18.811        32.982        .92304E-04   -1.4840    
   9  Prefactor     1.7454        5.4967        .29836E-03   -1.5444    
  10  norm          1.1133        .76452        .60590E-04   -1.5497    
  11  norm          .10000E-03    .92314        .81033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    64.175        .40831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    443.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.655        10.845        .86057E-04   -1.4777    
  16  Prefactor     .10000E-03    22.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.1144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.4221        .10008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     33.140        33.474        .69591E-04   -1.4556    
  21  Prefactor     15.471        19.139        .10185E-03   -1.4921    
  22  Prefactor     1.0219        10.790        .51155E-03   -1.5506    
  23  Prefactor     24.692        8.4878        .80613E-04   -1.4714    
  24  Normalizat    .93148        .18990        .26420E-03   -.95363    
  25  Prefactor     .80936        .13541        .20834E-03   -.99384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.71512e-10
Minuit parameter uncertainties:
  1  2.31842e-05
  2  32.9318
  3  8.89201e-05
  4  4.89255
  5  13.6872
  6  0.00436391
  7  9.1834
  8  33.0142
  9  5.49829
  10  0.764522
  11  2.99248e-07
  12  0.00188102
  13  1.36528e-05
  14  0.00242832
  15  10.8455
  16  2.70019e-05
  17  1.14807e-06
  18  7.6693e-06
  19  1.33334e-06
  20  33.4932
  21  19.1465
  22  6.64253
  23  8.48823
  24  0.190037
  25  0.135467
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.113e+00  7.645e-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:  8.094e-01  1.355e-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.315e-01  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.74
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 4.31e-08 +/- 2.96e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 1.21e-05

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

Saving results to:
/scratch/kocevski/811019/likelihoodResults_452131201_452390401_4FGL_J2323.5-0317_daily_bin821.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) = 7474.9663571
delta logL = 0.221218279994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7474.96273059
delta logL = 0.224844790751

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99253       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5561       1.0000          .0000       5.0000    
     3 'Normalizat'    .91409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81715       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=   7474.963     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      232 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .99254        10.574        .11739E-01    .79268E-03
   2  alpha         2.5561        3.7502        .39413        .31842E-04
   3  Normalizat    .91408        .50490E-01    .45081E-01    .19611E-04
   4  Prefactor     .81717        .36914E-01    .43940E-01    .12864E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.992543
  alpha      = 2.55608
  Normalizat = 0.914083
  Prefactor  = 0.817165
 **********
 **   18 **HESSE 
 **********

 FCN=   7474.963     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .99254        .75152        .53146E-04   -1.5509    
   2  alpha         2.5561        .62896        .14738E-01    .22434E-01
   3  Normalizat    .91408        .18317        .26632E-03   -.95967    
   4  Prefactor     .81717        .13492        .20739E-03   -.99099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19331e-09
Minuit parameter uncertainties:
  1  0.751531
  2  0.635791
  3  0.183294
  4  0.134972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811019': 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) = 7474.96273058
delta logL = 0.224844802171

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  9.925e-01  7.515e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.556e+00  6.358e-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.172e-01  1.350e-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.141e-01  1.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.19
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.56 +/- 0.64
Photon Flux (Free Index): 5.82e-08 +/- 4.08e-08
Energy Flux (Free Index): 1.59e-05 +/- 1.05e-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/811019/cmap_HighResolution_452131201_452390401_4FGL_J2323.5-0317_daily_bin821.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-05', comment='SUCCESS', photon_flux='4.31e-08', energy_flux2='1.59e-05', photon_flux_error='2.96e-08', dlogl='2.25e-01', energy_flux='1.76e-05', photon_flux2='5.82e-08', job_status='DONE', time_completed='2021-09-29 14:51:32.450032', photon_index_error2='0.64', photon_index2='2.56', ts='3.74', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.05e-05', EG='0.93', time_epoch_completed='1632952292.45', return_code='0', job_id='811019', GAL2='0.82', EG2='0.91', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='4.08e-08', ts2='4.19', photon_index='2.16' WHERE bin_id='821' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:51:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 811019: <4FGL_J2323.5-0317_daily_bin821> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin821> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 14:35:28 2021
Job was executed on host(s) <bullet0066>, 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:51:33 2021
Results reported at Wed Sep 29 14:51:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin821 350.888 -3.29 452131201 452390401 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 :                                   748.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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

