/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 181 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 = 7405
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2323.5-0317_daily_bin431
RA = 350.888, Dec = -3.29
tmin = 351043201, tmax = 351302401
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='809339', job_status='RUN', time_executed='2021-09-29 14:33:28.064555', time_epoch_executed='1632951208.06' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809339

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809339/ft1_4FGL_J2323.5-0317_daily_bin431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809339/ft2_4FGL_J2323.5-0317_daily_bin431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809339/ft1_4FGL_J2323.5-0317_daily_bin431.fits outfile=/scratch/kocevski/809339/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin431.fits ra=350.888 dec=-3.29 rad=12.0 tmin=351043201.0 tmax=351302401.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.44
user 3.20
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809339/ft2_4FGL_J2323.5-0317_daily_bin431.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/809339/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin431.fits evtable="EVENTS" outfile="/scratch/kocevski/809339/ft1_filtered_4FGL_J2323.5-0317_daily_bin431.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809339/ft1_filtered_4FGL_J2323.5-0317_daily_bin431.fits" evtable="EVENTS" scfile=/scratch/kocevski/809339/ft2_4FGL_J2323.5-0317_daily_bin431.fits sctable="SC_DATA" outfile=/scratch/kocevski/809339/ltcube_351043201_351302401_4FGL_J2323.5-0317_daily_bin431.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/809339/ft2_4FGL_J2323.5-0317_daily_bin431.fits
.....................!
real 12.05
user 11.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809339/ft1_filtered_4FGL_J2323.5-0317_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/809339/ft2_4FGL_J2323.5-0317_daily_bin431.fits sctable="SC_DATA" expcube=/scratch/kocevski/809339/ltcube_351043201_351302401_4FGL_J2323.5-0317_daily_bin431.fits outfile=/scratch/kocevski/809339/expmap_351043201_351302401_4FGL_J2323.5-0317_daily_bin431.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/809339/ltcube_351043201_351302401_4FGL_J2323.5-0317_daily_bin431.fits
.....................!
real 191.12
user 185.60
sys 5.15

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/809339/ft1_filtered_4FGL_J2323.5-0317_daily_bin431.fits scfile=/scratch/kocevski/809339/ft2_4FGL_J2323.5-0317_daily_bin431.fits outfile=/scratch/kocevski/809339/cmap_351043201_351302401_4FGL_J2323.5-0317_daily_bin431.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809339/ft1_filtered_4FGL_J2323.5-0317_daily_bin431.fits scfile=/scratch/kocevski/809339/ft2_4FGL_J2323.5-0317_daily_bin431.fits outfile=/scratch/kocevski/809339/cmap_HighResolution_351043201_351302401_4FGL_J2323.5-0317_daily_bin431.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809339/ft1_filtered_4FGL_J2323.5-0317_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/809339/ft2_4FGL_J2323.5-0317_daily_bin431.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809339/Model_4FGL_J2323.5-0317_daily_bin431.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/809339/ft1_filtered_4FGL_J2323.5-0317_daily_bin431.fits.....................!
real 70.57
user 69.13
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10808E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7440       1.0000         .10000E-03   10000.    
     5 'norm      '    7.0545       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    45.231       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.2388       1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.607       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13119E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.800       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12121E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .12421E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6078       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11938E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12563E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9193       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .36509       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1423       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84254       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=   7458.559     FROM MIGRAD    STATUS=CONVERGED   1018 CALLS     3333 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9441        .11754E-02** at limit **
   2  Prefactor     .10000E-03    26.222        .18142E-02** at limit **
   3  Prefactor     .10000E-03    39.174        .18142E-02** at limit **
   4  Prefactor     4.7407        4.6160        .89232E-03    .12904E-03
   5  norm          7.0624        8.8778        .15104E-03    .21377E-04
   6  Prefactor     .10000E-03    26.217        .18142E-02** at limit **
   7  Prefactor     .10000E-03    11.828        .18142E-02** at limit **
   8  Prefactor     45.190        42.399        .59615E-04   -.74450E-04
   9  Prefactor     .10000E-03    2.8700        .14258E-02** at limit **
  10  norm          3.2388        1.0142        .46215E-04    .21990E-02
  11  norm          .10000E-03    1.3596        .98191E-03** at limit **
  12  Prefactor     13.608        12.419        .10859E-03    .46695E-04
  13  Prefactor     .10000E-03    57.074        .18142E-02** at limit **
  14  Prefactor     .10000E-03    57.516        .18142E-02** at limit **
  15  Prefactor     13.777        10.885        .10782E-03    .15362E-02
  16  Prefactor     .10000E-03    10.262        .18142E-02** at limit **
  17  norm          .10000E-03    21.164        .18142E-02** at limit **
  18  Prefactor     7.6198        29.815        .14539E-03    .70061E-04
  19  Prefactor     .10001E-03    6.3203        .22084E-02** at limit **
  20  Prefactor     .10002E-03    31.576        .12621    ** at limit **
  21  Prefactor     1.9297        62.978        .29996E-03    .35513E-04
  22  Prefactor     .10000E-03    9.2897        .18142E-02** at limit **
  23  Prefactor     .37429        19.962        .28469E-02   -.31398E-03
  24  Normalizat    1.1422        .20625        .25484E-03    .53286E-03
  25  Prefactor     .84261        .14590        .21803E-03    .93681E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.74073
  norm       = 7.06238
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.1902
  Prefactor  = 0.0001
  norm       = 3.23885
  norm       = 0.0001
  Prefactor  = 13.6078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7766
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.6198
  Prefactor  = 0.000100014
  Prefactor  = 0.000100015
  Prefactor  = 1.92973
  Prefactor  = 0.0001
  Prefactor  = 0.374293
  Normalizat = 1.14217
  Prefactor  = 0.842612
 **********
 **   18 **HESSE 
 **********

 FCN=   7458.559     FROM HESSE     STATUS=OK           413 CALLS     3746 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9442        .23508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.224        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    39.191        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.7407        4.6160        .35693E-04   -1.5272    
   5  norm          7.0624        8.8763        .60414E-05   -1.5176    
   6  Prefactor     .10000E-03    26.222        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.831        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     45.190        42.387        .11923E-04   -1.4362    
   9  Prefactor     .10000E-03    2.8701        .28517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2388        1.0142        .92430E-05   -1.5348    
  11  norm          .10000E-03    1.3597        .19638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.608        12.418        .43435E-05   -1.4970    
  13  Prefactor     .10000E-03    57.086        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    57.516        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.777        10.876        .21564E-04   -1.4965    
  16  Prefactor     .10000E-03    10.263        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    21.166        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.6198        29.815        .58157E-05   -1.5156    
  19  Prefactor     .10001E-03    6.3401        .44168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    30.577        .12905       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.9297        62.943        .11998E-04   -1.5430    
  22  Prefactor     .10000E-03    9.2916        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .37429        19.974        .11387E-03   -1.5586    
  24  Normalizat    1.1422        .20588        .50968E-04   -.88409    
  25  Prefactor     .84261        .14598        .43606E-04   -.98176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86104e-09
Minuit parameter uncertainties:
  1  1.11299e-06
  2  0.000138752
  3  2.62868e-05
  4  4.61635
  5  8.87797
  6  0.000124619
  7  5.72088e-05
  8  42.4157
  9  1.80054e-05
  10  1.01416
  11  3.11339e-06
  12  12.4206
  13  0.000125571
  14  0.000145679
  15  10.8774
  16  5.372e-05
  17  3.7979e-05
  18  29.8734
  19  0.000587978
  20  0.00137069
  21  22.0667
  22  2.41173e-05
  23  5.4697
  24  0.206028
  25  0.146047
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.239e+00  1.014e+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:  8.426e-01  1.460e-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.142e+00  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 28.41
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.25e-07 +/- 3.92e-08
Energy Flux (Fixed Index): 5.13e-05 +/- 1.61e-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) = 7458.33501976
delta logL = 0.223598246269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7458.33361897
delta logL = 0.224999028237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0528       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3763       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1173       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85382       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=   7458.334     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      238 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0531        12.635        .58050E-02    .24818E-03
   2  alpha         2.3763        3.6881        .21765        .48850E-04
   3  Normalizat    1.1173        .15654        .58124E-01    .13162E-04
   4  Prefactor     .85378        .92357E-01    .44414E-01   -.65018E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.05312
  alpha      = 2.37631
  Normalizat = 1.11735
  Prefactor  = 0.853781
 **********
 **   18 **HESSE 
 **********

 FCN=   7458.334     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0531        1.0116        .42888E-04   -1.5358    
   2  alpha         2.3763        .32941        .90640E-02   -.49498E-01
   3  Normalizat    1.1173        .19657        .25705E-03   -.89197    
   4  Prefactor     .85378        .14513        .21668E-03   -.97775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46605e-12
Minuit parameter uncertainties:
  1  1.01157
  2  0.330374
  3  0.196699
  4  0.14519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809339': 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) = 7458.33361885
delta logL = 0.224999151364

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.053e+00  1.012e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.376e+00  3.304e-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.538e-01  1.452e-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.117e+00  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 28.91
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.38 +/- 0.33
Photon Flux (Free Index): 1.47e-07 +/- 5.28e-08
Energy Flux (Free Index): 4.70e-05 +/- 1.51e-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/809339/cmap_HighResolution_351043201_351302401_4FGL_J2323.5-0317_daily_bin431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.25e-07', energy_flux2='4.70e-05', photon_flux_error='3.92e-08', dlogl='2.25e-01', energy_flux='5.13e-05', photon_flux2='1.47e-07', job_status='DONE', time_completed='2021-09-29 14:45:19.953597', photon_index_error2='0.33', photon_index2='2.38', ts='28.41', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='1.14', time_epoch_completed='1632951919.95', return_code='0', job_id='809339', GAL2='0.85', EG2='1.12', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='5.28e-08', ts2='28.91', photon_index='2.16' WHERE bin_id='431' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:45:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 809339: <4FGL_J2323.5-0317_daily_bin431> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin431 350.888 -3.29 351043201 351302401 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 :                                   707.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            905 sec.

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

