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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin979
RA = 350.888, Dec = -3.29
tmin = 493084801, tmax = 493344001
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='811251', job_status='RUN', time_executed='2021-09-29 14:39:25.092701', time_epoch_executed='1632951565.09' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811251

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811251/ft1_4FGL_J2323.5-0317_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811251/ft2_4FGL_J2323.5-0317_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811251/ft1_4FGL_J2323.5-0317_daily_bin979.fits outfile=/scratch/kocevski/811251/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin979.fits ra=350.888 dec=-3.29 rad=12.0 tmin=493084801.0 tmax=493344001.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.60
user 3.37
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811251/ft1_filtered_4FGL_J2323.5-0317_daily_bin979.fits" evtable="EVENTS" scfile=/scratch/kocevski/811251/ft2_4FGL_J2323.5-0317_daily_bin979.fits sctable="SC_DATA" outfile=/scratch/kocevski/811251/ltcube_493084801_493344001_4FGL_J2323.5-0317_daily_bin979.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/811251/ft2_4FGL_J2323.5-0317_daily_bin979.fits
.....................!
real 12.19
user 11.85
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811251/ft1_filtered_4FGL_J2323.5-0317_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/811251/ft2_4FGL_J2323.5-0317_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/811251/ltcube_493084801_493344001_4FGL_J2323.5-0317_daily_bin979.fits outfile=/scratch/kocevski/811251/expmap_493084801_493344001_4FGL_J2323.5-0317_daily_bin979.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/811251/ltcube_493084801_493344001_4FGL_J2323.5-0317_daily_bin979.fits
.....................!
real 191.38
user 186.07
sys 4.93

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/811251/ft1_filtered_4FGL_J2323.5-0317_daily_bin979.fits scfile=/scratch/kocevski/811251/ft2_4FGL_J2323.5-0317_daily_bin979.fits outfile=/scratch/kocevski/811251/cmap_493084801_493344001_4FGL_J2323.5-0317_daily_bin979.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811251/ft1_filtered_4FGL_J2323.5-0317_daily_bin979.fits scfile=/scratch/kocevski/811251/ft2_4FGL_J2323.5-0317_daily_bin979.fits outfile=/scratch/kocevski/811251/cmap_HighResolution_493084801_493344001_4FGL_J2323.5-0317_daily_bin979.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.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/811251/ft1_filtered_4FGL_J2323.5-0317_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/811251/ft2_4FGL_J2323.5-0317_daily_bin979.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/811251/Model_4FGL_J2323.5-0317_daily_bin979.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/811251/ft1_filtered_4FGL_J2323.5-0317_daily_bin979.fits.....................!
real 67.10
user 65.69
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4173       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.462       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8955       1.0000         .10000E-03   10000.    
     5 'norm      '    14.692       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1974       1.0000         .10000E-03   10000.    
    10 'norm      '    .46541       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .77396E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .53117E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    12.373       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.415       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10921E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.203       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1986       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .69299       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=   7151.901     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     2954 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4179        7.3584       -.22011E-05   -.57520E-04
   2  Prefactor     .10000E-03    20.780       -.21308E-05** at limit **
   3  Prefactor     15.463        18.832       -.35002E-07   -.19997E-04
   4  Prefactor     5.8955        6.2871        .52885E-05   -.71202E-04
   5  norm          14.695        12.956       -.12779E-06   -.46385E-04
   6  Prefactor     .10000E-03    9.0020        .14693E-05** at limit **
   7  Prefactor     .10000E-03    23.993        .37651E-05** at limit **
   8  Prefactor     .10000E-03    9.8714        .90720E-06** at limit **
   9  Prefactor     7.2027        7.0701       -.17000E-05   -.21539E-03
  10  norm          .46530        .71090       -.15927E-06   -.21895E-02
  11  norm          .10000E-03    4.3853        .39138E-06** at limit **
  12  Prefactor     .10000E-03    3.0687        .16910E-07** at limit **
  13  Prefactor     .10000E-03    48.792       -.12220E-04** at limit **
  14  Prefactor     .10000E-03    38.292       -.12899E-05** at limit **
  15  Prefactor     .10210E-03    4.9933        .15834E-05** at limit **
  16  Prefactor     .10010E-03    9.0471       -.42953E-06** at limit **
  17  norm          12.364        11.765       -.91018E-07   -.27951E-03
  18  Prefactor     .10000E-03    9.3812       -.21817E-05** at limit **
  19  Prefactor     .10000E-03    1.3838       -.41302E-08** at limit **
  20  Prefactor     44.401        31.483        .12177E-05   -.45636E-04
  21  Prefactor     .10000E-03    52.921        .96245E-05** at limit **
  22  Prefactor     11.204        12.868       -.17488E-05   -.11464E-02
  23  Prefactor     .10000E-03    3.7903        .81213E-07** at limit **
  24  Normalizat    1.1984        .16373        .72112E-06   -.24665E-03
  25  Prefactor     .69312        .11897       -.39451E-06   -.17174E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.41789
  Prefactor  = 0.0001
  Prefactor  = 15.4633
  Prefactor  = 5.89552
  norm       = 14.6948
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.20273
  norm       = 0.465302
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001021
  Prefactor  = 0.000100105
  norm       = 12.3643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.4006
  Prefactor  = 0.0001
  Prefactor  = 11.2039
  Prefactor  = 0.0001
  Normalizat = 1.19842
  Prefactor  = 0.693118
 **********
 **   18 **HESSE 
 **********

 FCN=   7151.901     FROM HESSE     STATUS=OK           441 CALLS     3395 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4179        7.3565        .13059E-03   -1.5094    
   2  Prefactor     .10000E-03    20.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.463        18.834        .10186E-03   -1.4921    
   4  Prefactor     5.8955        6.1502        .16539E-03   -1.5222    
   5  norm          14.695        12.977        .10449E-03   -1.4941    
   6  Prefactor     .10000E-03    9.0016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.8755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.2027        7.0498        .14952E-03   -1.5171    
  10  norm          .46530        .67612        .83518E-03   -1.5572    
  11  norm          .10000E-03    4.4317        .17188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.0754        .14467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    48.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    38.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10210E-03    5.0806        .56549E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10010E-03    15.253        .91474E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.364        11.755        .11388E-03   -1.5005    
  18  Prefactor     .10000E-03    9.3727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.4335        .19382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     44.401        31.477        .60158E-04   -1.4374    
  21  Prefactor     .10000E-03    54.336        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.204        13.377        .59846E-03   -1.5038    
  23  Prefactor     .10000E-03    3.8625        .16072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1984        .19160        .23496E-03   -.86652    
  25  Prefactor     .69312        .13855        .22248E-03   -1.0380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54979e-09
Minuit parameter uncertainties:
  1  7.35721
  2  5.5087e-05
  3  18.8408
  4  6.15088
  5  12.9791
  6  1.56991e-06
  7  3.77932e-05
  8  1.532e-05
  9  7.05062
  10  0.67613
  11  6.91317e-05
  12  6.45308e-07
  13  1.24623e-05
  14  2.34093e-06
  15  0.00653334
  16  0.00252905
  17  11.7569
  18  3.58016e-06
  19  2.98413e-06
  20  31.4887
  21  0.000312559
  22  13.3802
  23  1.51305e-05
  24  0.191709
  25  0.138618
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  4.653e-01  6.761e-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:  6.931e-01  1.386e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  1.198e+00  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/811251/likelihoodResults_493084801_493344001_4FGL_J2323.5-0317_daily_bin979.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) = 7151.83370127
delta logL = 0.0676357030043

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7151.82914103
delta logL = 0.0721959404045

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .52693       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8314       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2048       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68869       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7151.829     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      259 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52662        .69837        .83907E-03    .62880E-02
   2  alpha         1.8313        .78237        .21703E-01   -.78437E-05
   3  Normalizat    1.2047        .18533        .23442E-03   -.41417E-04
   4  Prefactor     .68874        .13829        .22310E-03    .78118E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.526624
  alpha      = 1.83135
  Normalizat = 1.20471
  Prefactor  = 0.688739
 **********
 **   18 **HESSE 
 **********

 FCN=   7151.829     FROM HESSE     STATUS=OK            27 CALLS      286 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52662        .70086        .16781E-03   -1.5563    
   2  alpha         1.8313        .78576        .86813E-03   -.27076    
   3  Normalizat    1.2047        .18547        .93766E-05   -.86457    
   4  Prefactor     .68874        .13838        .89240E-05   -1.0397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09146e-11
Minuit parameter uncertainties:
  1  0.700868
  2  0.800405
  3  0.185568
  4  0.138451
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811251': 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) = 7151.82914084
delta logL = 0.0721961360068

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  5.266e-01  7.009e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.831e+00  8.004e-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:  6.887e-01  1.385e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  1.205e+00  1.856e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/811251/cmap_HighResolution_493084801_493344001_4FGL_J2323.5-0317_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.18e-05', job_status='DONE', photon_flux_upper_limit='7.76e-08', time_completed='2021-09-29 14:51:50.554263', job_id='811251', GAL2='0.69', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1632952310.55', return_code2='0', ts='0.58', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='7.22e-02', ts2='0.73', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='979' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:51:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 811251: <4FGL_J2323.5-0317_daily_bin979> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin979 350.888 -3.29 493084801 493344001 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 :                                   741.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            964 sec.

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

