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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin709
RA = 350.888, Dec = -3.29
tmin = 423100801, tmax = 423360001
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='810852', job_status='RUN', time_executed='2021-09-29 14:36:02.846214', time_epoch_executed='1632951362.85' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810852

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810852/ft1_4FGL_J2323.5-0317_daily_bin709.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810852/ft2_4FGL_J2323.5-0317_daily_bin709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810852/ft1_4FGL_J2323.5-0317_daily_bin709.fits outfile=/scratch/kocevski/810852/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin709.fits ra=350.888 dec=-3.29 rad=12.0 tmin=423100801.0 tmax=423360001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.07
user 4.84
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/810852/ft1_filtered_4FGL_J2323.5-0317_daily_bin709.fits" evtable="EVENTS" scfile=/scratch/kocevski/810852/ft2_4FGL_J2323.5-0317_daily_bin709.fits sctable="SC_DATA" outfile=/scratch/kocevski/810852/ltcube_423100801_423360001_4FGL_J2323.5-0317_daily_bin709.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/810852/ft2_4FGL_J2323.5-0317_daily_bin709.fits
.....................!
real 12.42
user 11.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810852/ft1_filtered_4FGL_J2323.5-0317_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/810852/ft2_4FGL_J2323.5-0317_daily_bin709.fits sctable="SC_DATA" expcube=/scratch/kocevski/810852/ltcube_423100801_423360001_4FGL_J2323.5-0317_daily_bin709.fits outfile=/scratch/kocevski/810852/expmap_423100801_423360001_4FGL_J2323.5-0317_daily_bin709.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/810852/ltcube_423100801_423360001_4FGL_J2323.5-0317_daily_bin709.fits
.....................!
real 191.54
user 186.92
sys 4.31

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/810852/ft1_filtered_4FGL_J2323.5-0317_daily_bin709.fits scfile=/scratch/kocevski/810852/ft2_4FGL_J2323.5-0317_daily_bin709.fits outfile=/scratch/kocevski/810852/cmap_423100801_423360001_4FGL_J2323.5-0317_daily_bin709.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/810852/ft1_filtered_4FGL_J2323.5-0317_daily_bin709.fits scfile=/scratch/kocevski/810852/ft2_4FGL_J2323.5-0317_daily_bin709.fits outfile=/scratch/kocevski/810852/cmap_HighResolution_423100801_423360001_4FGL_J2323.5-0317_daily_bin709.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=350.888 yref=-3.29 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/810852/ft1_filtered_4FGL_J2323.5-0317_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/810852/ft2_4FGL_J2323.5-0317_daily_bin709.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/810852/Model_4FGL_J2323.5-0317_daily_bin709.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/810852/ft1_filtered_4FGL_J2323.5-0317_daily_bin709.fits.....................!
real 49.60
user 48.29
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    36.673       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .88939       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    55.210       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.892       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.2731       1.0000         .10000E-03   10000.    
    11 'norm      '    2.6546       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.632       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11112E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.569       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .22849E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.2287       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1638       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .64897       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=   4785.903     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2824 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7580        .11278E-06** at limit **
   2  Prefactor     36.675        48.873       -.13337E-06    .14305E-05
   3  Prefactor     .10000E-03    23.727        .47848E-06** at limit **
   4  Prefactor     .10000E-03    8.9301        .37127E-06** at limit **
   5  norm          .89139        17.493        .68409E-05   -.12295E-04
   6  Prefactor     .10000E-03    9.0453        .29298E-07** at limit **
   7  Prefactor     55.215        24.613       -.54668E-07   -.31722E-04
   8  Prefactor     20.917        51.480       -.28104E-06    .10144E-04
   9  Prefactor     .10000E-03    6.8374        .14159E-05** at limit **
  10  norm          2.2732        1.0335       -.82502E-08   -.13379E-03
  11  norm          2.6564        4.7308        .46212E-06   -.31120E-04
  12  Prefactor     .10000E-03    4.8754       -.79377E-07** at limit **
  13  Prefactor     .10000E-03    39.846       -.88764E-06** at limit **
  14  Prefactor     .10000E-03    68.923        .16655E-06** at limit **
  15  Prefactor     15.632        13.039       -.24384E-06   -.11850E-04
  16  Prefactor     .10000E-03    44.371       -.12919E-05** at limit **
  17  norm          .10000E-03    20.258       -.22775E-07** at limit **
  18  Prefactor     .10000E-03    28.904        .26013E-06** at limit **
  19  Prefactor     .10000E-03    1.5179       -.79480E-07** at limit **
  20  Prefactor     16.488        50.352       -.51118E-06   -.82593E-04
  21  Prefactor     .10000E-03    67.116       -.55767E-05** at limit **
  22  Prefactor     6.2308        19.475        .59634E-05    .12163E-04
  23  Prefactor     .10000E-03    5.1872        .30310E-06** at limit **
  24  Normalizat    1.1636        .21020        .58089E-06   -.13693E-03
  25  Prefactor     .64896        .14587       -.19215E-05   -.48787E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 36.6752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.89139
  Prefactor  = 0.0001
  Prefactor  = 55.2146
  Prefactor  = 20.9172
  Prefactor  = 0.0001
  norm       = 2.27319
  norm       = 2.65638
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6325
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4882
  Prefactor  = 0.0001
  Prefactor  = 6.2308
  Prefactor  = 0.0001
  Normalizat = 1.16361
  Prefactor  = 0.648956
 **********
 **   18 **HESSE 
 **********

 FCN=   4785.903     FROM HESSE     STATUS=OK           417 CALLS     3241 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7623        .13095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     36.675        48.885        .66180E-04   -1.4496    
   3  Prefactor     .10000E-03    23.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.0362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .89139        17.732        .51076E-03   -1.5519    
   6  Prefactor     .10000E-03    9.0472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     55.215        24.626        .53985E-04   -1.4220    
   8  Prefactor     20.917        51.485        .87629E-04   -1.4793    
   9  Prefactor     .10000E-03    6.8567        .17625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2732        1.0331        .27238E-04   -1.5406    
  11  norm          2.6564        4.6976        .19064E-03   -1.5382    
  12  Prefactor     .10000E-03    4.8874        .14917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    39.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    68.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.632        13.033        .10130E-03   -1.4917    
  16  Prefactor     .10000E-03    44.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    20.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.5214        .83166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.488        50.361        .98395E-04   -1.4896    
  21  Prefactor     .10000E-03    67.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.2308        19.669        .80423E-03   -1.5209    
  23  Prefactor     .10000E-03    5.2532        .15385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1636        .24860        .24163E-03   -.87735    
  25  Prefactor     .64896        .16949        .22469E-03   -1.0556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50165e-10
Minuit parameter uncertainties:
  1  1.13615e-07
  2  48.9386
  3  7.97827e-05
  4  1.5348e-05
  5  7.95361
  6  5.30915e-07
  7  24.6306
  8  51.5943
  9  7.62746e-06
  10  1.03307
  11  4.69822
  12  4.32468e-06
  13  6.24595e-05
  14  0.000110964
  15  13.035
  16  6.24237e-05
  17  2.6344e-06
  18  2.21277e-05
  19  4.25538e-07
  20  50.4915
  21  0.000235554
  22  19.6897
  23  2.58646e-06
  24  0.248853
  25  0.169624
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.273e+00  1.033e+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:  6.490e-01  1.696e-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.164e+00  2.489e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.39
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 8.80e-08 +/- 4.00e-08
Energy Flux (Fixed Index): 3.60e-05 +/- 1.64e-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) = 4785.83360308
delta logL = 0.0691895341561

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4785.83134778
delta logL = 0.0714448322706

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3359       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0125       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1723       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64505       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=   4785.831     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      197 TOTAL
                     EDM=   .38E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3361        1.2430        .67072E-03    .18831E-04
   2  alpha         2.0125        .42972        .23794        .11524E-05
   3  Normalizat    1.1723        .20026        .54479E-01    .49478E-05
   4  Prefactor     .64502        .14328        .41665E-01    .14011E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.33613
  alpha      = 2.01253
  Normalizat = 1.17231
  Prefactor  = 0.645017
 **********
 **   18 **HESSE 
 **********

 FCN=   4785.831     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .53E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3361        1.0613        .26829E-04   -1.5402    
   2  alpha         2.0125        .38444        .10031E-01   -.19624    
   3  Normalizat    1.1723        .23494        .24089E-03   -.87463    
   4  Prefactor     .64502        .16800        .22532E-03   -1.0572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34287e-13
Minuit parameter uncertainties:
  1  1.06135
  2  0.386035
  3  0.235146
  4  0.168127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810852': 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) = 4785.83134773
delta logL = 0.0714448864319

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.336e+00  1.061e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.013e+00  3.860e-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.450e-01  1.681e-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.172e+00  2.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.56
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.01 +/- 0.39
Photon Flux (Free Index): 7.93e-08 +/- 4.25e-08
Energy Flux (Free Index): 4.01e-05 +/- 2.21e-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/810852/cmap_HighResolution_423100801_423360001_4FGL_J2323.5-0317_daily_bin709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.80e-08', energy_flux2='4.01e-05', photon_flux_error='4.00e-08', dlogl='7.14e-02', energy_flux='3.60e-05', photon_flux2='7.93e-08', job_status='DONE', time_completed='2021-09-29 14:45:08.173954', photon_index_error2='0.39', photon_index2='2.01', ts='11.39', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='2.21e-05', EG='1.16', time_epoch_completed='1632951908.17', return_code='0', job_id='810852', GAL2='0.65', EG2='1.17', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='4.25e-08', ts2='11.56', photon_index='2.16' WHERE bin_id='709' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:45:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 810852: <4FGL_J2323.5-0317_daily_bin709> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin709 350.888 -3.29 423100801 423360001 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 :                                   533.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   591 sec.
    Turnaround time :                            593 sec.

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

