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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin902
RA = 350.888, Dec = -3.29
tmin = 473126401, tmax = 473385601
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='811140', job_status='RUN', time_executed='2021-09-29 14:35:51.562032', time_epoch_executed='1632951351.56' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='902'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811140

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811140/ft1_4FGL_J2323.5-0317_daily_bin902.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811140/ft2_4FGL_J2323.5-0317_daily_bin902.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811140/ft1_4FGL_J2323.5-0317_daily_bin902.fits outfile=/scratch/kocevski/811140/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin902.fits ra=350.888 dec=-3.29 rad=12.0 tmin=473126401.0 tmax=473385601.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.51
user 3.32
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811140/ft1_filtered_4FGL_J2323.5-0317_daily_bin902.fits" evtable="EVENTS" scfile=/scratch/kocevski/811140/ft2_4FGL_J2323.5-0317_daily_bin902.fits sctable="SC_DATA" outfile=/scratch/kocevski/811140/ltcube_473126401_473385601_4FGL_J2323.5-0317_daily_bin902.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/811140/ft2_4FGL_J2323.5-0317_daily_bin902.fits
.....................!
real 11.84
user 11.47
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811140/ft1_filtered_4FGL_J2323.5-0317_daily_bin902.fits evtable="EVENTS" scfile=/scratch/kocevski/811140/ft2_4FGL_J2323.5-0317_daily_bin902.fits sctable="SC_DATA" expcube=/scratch/kocevski/811140/ltcube_473126401_473385601_4FGL_J2323.5-0317_daily_bin902.fits outfile=/scratch/kocevski/811140/expmap_473126401_473385601_4FGL_J2323.5-0317_daily_bin902.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/811140/ltcube_473126401_473385601_4FGL_J2323.5-0317_daily_bin902.fits
.....................!
real 189.74
user 184.19
sys 5.23

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/811140/ft1_filtered_4FGL_J2323.5-0317_daily_bin902.fits scfile=/scratch/kocevski/811140/ft2_4FGL_J2323.5-0317_daily_bin902.fits outfile=/scratch/kocevski/811140/cmap_473126401_473385601_4FGL_J2323.5-0317_daily_bin902.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/811140/ft1_filtered_4FGL_J2323.5-0317_daily_bin902.fits scfile=/scratch/kocevski/811140/ft2_4FGL_J2323.5-0317_daily_bin902.fits outfile=/scratch/kocevski/811140/cmap_HighResolution_473126401_473385601_4FGL_J2323.5-0317_daily_bin902.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/811140/ft1_filtered_4FGL_J2323.5-0317_daily_bin902.fits evtable="EVENTS" scfile=/scratch/kocevski/811140/ft2_4FGL_J2323.5-0317_daily_bin902.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/811140/Model_4FGL_J2323.5-0317_daily_bin902.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/811140/ft1_filtered_4FGL_J2323.5-0317_daily_bin902.fits.....................!
real 50.68
user 49.40
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1943       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.983       1.0000         .10000E-03   10000.    
     5 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .54489E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.3607       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4366       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.915       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.358       1.0000         .10000E-03   10000.    
    14 'Prefactor '    54.495       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10528E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    69.904       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    42.127       1.0000         .10000E-03   10000.    
    21 'Prefactor '    58.304       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10616E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.567       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86863       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92241       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=   4995.253     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2940 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8859        .11248E-07** at limit **
   2  Prefactor     6.1208        161.20       -.48868E-05   -.41687E-05
   3  Prefactor     .10000E-03    19.298        .11998E-06** at limit **
   4  Prefactor     11.982        8.7378        .18693E-06    .31540E-04
   5  norm          .10000E-03    5.1675        .14709E-07** at limit **
   6  Prefactor     .10000E-03    29.695        .72170E-05** at limit **
   7  Prefactor     .10000E-03    8.3455        .34497E-07** at limit **
   8  Prefactor     .10000E-03    136.96       -.68002E-05** at limit **
   9  Prefactor     .10000E-03    9.1246        .19216E-06** at limit **
  10  norm          3.3605        1.3260        .31381E-06   -.30447E-03
  11  norm          1.4359        3.4754       -.14980E-06   -.44245E-03
  12  Prefactor     10.915        12.208       -.57743E-06   -.20645E-04
  13  Prefactor     29.952        68.703       -.82196E-05   -.90982E-05
  14  Prefactor     54.444        171.39       -.55528E-04    .63102E-07
  15  Prefactor     .10000E-03    15.134        .23428E-06** at limit **
  16  Prefactor     .10000E-03    29.418       -.72983E-05** at limit **
  17  norm          .10000E-03    8.6313        .45686E-07** at limit **
  18  Prefactor     69.900        52.564       -.40357E-05    .12537E-05
  19  Prefactor     .10000E-03    2.3787        .52106E-07** at limit **
  20  Prefactor     42.143        43.742        .36046E-04    .55366E-05
  21  Prefactor     58.302        28.815       -.54820E-05    .33807E-05
  22  Prefactor     .10000E-03    38.737        .67443E-07** at limit **
  23  Prefactor     24.567        11.960        .54224E-06   -.15729E-04
  24  Normalizat    .86826        .21580       -.30345E-05    .48792E-04
  25  Prefactor     .92276        .15547        .29263E-06   -.76096E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.12079
  Prefactor  = 0.0001
  Prefactor  = 11.9822
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.36049
  norm       = 1.43588
  Prefactor  = 10.9146
  Prefactor  = 29.9523
  Prefactor  = 54.4442
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 69.8997
  Prefactor  = 0.0001
  Prefactor  = 42.1431
  Prefactor  = 58.3017
  Prefactor  = 0.0001
  Prefactor  = 24.5667
  Normalizat = 0.868263
  Prefactor  = 0.922761
 **********
 **   18 **HESSE 
 **********

 FCN=   4995.253     FROM HESSE     STATUS=OK           423 CALLS     3363 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8940        .15253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.1208        161.15        .16130E-03   -1.5213    
   3  Prefactor     .10000E-03    19.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.982        8.7393        .11572E-03   -1.5016    
   5  norm          .10000E-03    5.1798        .15690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.3600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    138.37        .21114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.2194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.3605        1.3244        .48152E-04   -1.5341    
  11  norm          1.4359        3.4176        .19861E-03   -1.5468    
  12  Prefactor     10.915        12.204        .12127E-03   -1.5047    
  13  Prefactor     29.952        68.783        .72719E-04   -1.4613    
  14  Prefactor     54.444        171.43        .54336E-04   -1.4231    
  15  Prefactor     .10000E-03    15.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.6379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     69.900        52.589        .48011E-04   -1.4034    
  19  Prefactor     .10000E-03    2.4088        .10636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     42.143        43.723        .61763E-04   -1.4409    
  21  Prefactor     58.302        28.816        .52541E-04   -1.4179    
  22  Prefactor     .10000E-03    39.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.567        11.977        .80818E-04   -1.4716    
  24  Normalizat    .86826        .25451        .29457E-03   -.97584    
  25  Prefactor     .92276        .18427        .20905E-03   -.95350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89209e-10
Minuit parameter uncertainties:
  1  7.5871e-06
  2  63.0025
  3  1.71094e-05
  4  8.74024
  5  6.4572e-06
  6  9.19901e-06
  7  3.52854e-06
  8  0.000833738
  9  5.87071e-05
  10  1.32437
  11  3.41807
  12  12.2067
  13  68.9659
  14  173.024
  15  0.00010434
  16  7.99171e-05
  17  1.04291e-05
  18  52.6244
  19  1.20377e-05
  20  43.756
  21  28.8229
  22  4.45665e-05
  23  11.978
  24  0.254862
  25  0.18439
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.360e+00  1.324e+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.228e-01  1.844e-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.683e-01  2.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.19
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.30e-07 +/- 5.12e-08
Energy Flux (Fixed Index): 5.33e-05 +/- 2.10e-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) = 4995.24691823
delta logL = 0.00649262244315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4995.24575278
delta logL = 0.00765807026255

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3069       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2127       1.0000          .0000       5.0000    
     3 'Normalizat'    .86225       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92589       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=   4995.246     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3067        23.897        .55656E-02    .12115E-03
   2  alpha         2.2127        3.3902        .24341        .17993E-04
   3  Normalizat    .86222        .23505        .66793E-01    .15388E-04
   4  Prefactor     .92593        .16167        .45334E-01    .43591E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.30672
  alpha      = 2.21273
  Normalizat = 0.862218
  Prefactor  = 0.925926
 **********
 **   18 **HESSE 
 **********

 FCN=   4995.246     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3067        1.3834        .47583E-04   -1.5344    
   2  alpha         2.2127        .43115        .99118E-02   -.11516    
   3  Normalizat    .86222        .25394        .29549E-03   -.97801    
   4  Prefactor     .92593        .18421        .20875E-03   -.95241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57649e-10
Minuit parameter uncertainties:
  1  1.38341
  2  0.43335
  3  0.254294
  4  0.184337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811140': 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) = 4995.24575275
delta logL = 0.00765810606845

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.307e+00  1.383e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.213e+00  4.333e-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.259e-01  1.843e-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.622e-01  2.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.14
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.21 +/- 0.43
Photon Flux (Free Index): 1.35e-07 +/- 6.27e-08
Energy Flux (Free Index): 5.16e-05 +/- 2.43e-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/811140/cmap_HighResolution_473126401_473385601_4FGL_J2323.5-0317_daily_bin902.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.30e-07', energy_flux2='5.16e-05', photon_flux_error='5.12e-08', dlogl='7.66e-03', energy_flux='5.33e-05', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-09-29 14:44:56.711950', photon_index_error2='0.43', photon_index2='2.21', ts='13.19', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='2.43e-05', EG='0.87', time_epoch_completed='1632951896.71', return_code='0', job_id='811140', GAL2='0.93', EG2='0.86', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='6.27e-08', ts2='13.14', photon_index='2.16' WHERE bin_id='902' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:44:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 811140: <4FGL_J2323.5-0317_daily_bin902> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin902 350.888 -3.29 473126401 473385601 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 :                                   538.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   556 sec.
    Turnaround time :                            561 sec.

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

