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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin391
RA = 350.888, Dec = -3.29
tmin = 340675201, tmax = 340934401
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='808446', job_status='RUN', time_executed='2021-09-29 14:27:30.343009', time_epoch_executed='1632950850.34' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808446

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808446/ft1_4FGL_J2323.5-0317_daily_bin391.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808446/ft2_4FGL_J2323.5-0317_daily_bin391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808446/ft1_4FGL_J2323.5-0317_daily_bin391.fits outfile=/scratch/kocevski/808446/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin391.fits ra=350.888 dec=-3.29 rad=12.0 tmin=340675201.0 tmax=340934401.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 6.31
user 5.90
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808446/ft1_filtered_4FGL_J2323.5-0317_daily_bin391.fits" evtable="EVENTS" scfile=/scratch/kocevski/808446/ft2_4FGL_J2323.5-0317_daily_bin391.fits sctable="SC_DATA" outfile=/scratch/kocevski/808446/ltcube_340675201_340934401_4FGL_J2323.5-0317_daily_bin391.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/808446/ft2_4FGL_J2323.5-0317_daily_bin391.fits
.....................!
real 10.91
user 10.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808446/ft1_filtered_4FGL_J2323.5-0317_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/808446/ft2_4FGL_J2323.5-0317_daily_bin391.fits sctable="SC_DATA" expcube=/scratch/kocevski/808446/ltcube_340675201_340934401_4FGL_J2323.5-0317_daily_bin391.fits outfile=/scratch/kocevski/808446/expmap_340675201_340934401_4FGL_J2323.5-0317_daily_bin391.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/808446/ltcube_340675201_340934401_4FGL_J2323.5-0317_daily_bin391.fits
.....................!
real 192.05
user 186.53
sys 4.59

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/808446/ft1_filtered_4FGL_J2323.5-0317_daily_bin391.fits scfile=/scratch/kocevski/808446/ft2_4FGL_J2323.5-0317_daily_bin391.fits outfile=/scratch/kocevski/808446/cmap_340675201_340934401_4FGL_J2323.5-0317_daily_bin391.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/808446/ft1_filtered_4FGL_J2323.5-0317_daily_bin391.fits scfile=/scratch/kocevski/808446/ft2_4FGL_J2323.5-0317_daily_bin391.fits outfile=/scratch/kocevski/808446/cmap_HighResolution_340675201_340934401_4FGL_J2323.5-0317_daily_bin391.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808446/ft1_filtered_4FGL_J2323.5-0317_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/808446/ft2_4FGL_J2323.5-0317_daily_bin391.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808446/Model_4FGL_J2323.5-0317_daily_bin391.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/808446/ft1_filtered_4FGL_J2323.5-0317_daily_bin391.fits.....................!
real 49.87
user 48.58
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.489       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    20.100       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6576       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .56014       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9439       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11328E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.804       1.0000         .10000E-03   10000.    
    17 'norm      '    20.061       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    65.586       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4696       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .74031E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .21839E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .64312       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1045       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=   4847.539     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     3004 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0111        .11957E-06** at limit **
   2  Prefactor     33.491        37.835       -.11147E-06   -.16998E-04
   3  Prefactor     .10000E-03    10.140        .73624E-07** at limit **
   4  Prefactor     .10000E-03    6.1867        .13718E-06** at limit **
   5  norm          20.102        13.113        .84182E-07   -.61886E-04
   6  Prefactor     5.6717        114.66        .45478E-07   -.18354E-04
   7  Prefactor     .10000E-03    12.557       -.26035E-06** at limit **
   8  Prefactor     .10000E-03    34.740       -.13246E-05** at limit **
   9  Prefactor     .10000E-03    3.0810        .55475E-07** at limit **
  10  norm          .56038        .77601       -.37472E-06   -.20198E-02
  11  norm          .10000E-03    1.4311        .48533E-07** at limit **
  12  Prefactor     4.9435        15.127       -.13612E-05   -.11039E-03
  13  Prefactor     .10000E-03    98.516       -.24085E-05** at limit **
  14  Prefactor     .10000E-03    100.44       -.10949E-05** at limit **
  15  Prefactor     .10017E-03    35.383        .25475E-06** at limit **
  16  Prefactor     19.805        29.598        .76038E-06    .78632E-05
  17  norm          20.066        22.069        .33818E-06   -.30287E-03
  18  Prefactor     .10000E-03    25.978        .58202E-06** at limit **
  19  Prefactor     .10000E-03    2.5419       -.56679E-07** at limit **
  20  Prefactor     65.603        50.267        .57265E-06   -.86839E-04
  21  Prefactor     1.4619        55.662       -.96821E-05   -.14414E-03
  22  Prefactor     .10244E-03    96.206       -.73738E-05** at limit **
  23  Prefactor     .10000E-03    6.2983       -.32768E-06** at limit **
  24  Normalizat    .64286        .21251       -.37558E-05   -.27047E-03
  25  Prefactor     1.1046        .15850        .12634E-05   -.49319E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 33.4906
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.1022
  Prefactor  = 5.67168
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.560379
  norm       = 0.0001
  Prefactor  = 4.94352
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.000100174
  Prefactor  = 19.8045
  norm       = 20.066
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.6034
  Prefactor  = 1.46189
  Prefactor  = 0.000102437
  Prefactor  = 0.000100005
  Normalizat = 0.642862
  Prefactor  = 1.10458
 **********
 **   18 **HESSE 
 **********

 FCN=   4847.539     FROM HESSE     STATUS=OK           431 CALLS     3435 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0521        .16670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     33.491        37.841        .69245E-04   -1.4550    
   3  Prefactor     .10000E-03    10.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.2333        .16915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          20.102        13.112        .89339E-04   -1.4811    
   6  Prefactor     5.6717        114.27        .16888E-03   -1.5232    
   7  Prefactor     .10000E-03    12.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    34.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.0870        .11936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .56038        .74310        .69892E-03   -1.5558    
  11  norm          .10000E-03    1.4327        .81350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9435        15.068        .18088E-03   -1.5263    
  13  Prefactor     .10000E-03    98.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    100.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10017E-03    45.043        .37233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.805        29.542        .90001E-04   -1.4818    
  17  norm          20.066        22.054        .89425E-04   -1.4812    
  18  Prefactor     .10000E-03    26.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.5834        .10825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     65.603        50.232        .49556E-04   -1.4086    
  21  Prefactor     1.4619        56.467        .35453E-03   -1.5466    
  22  Prefactor     .10244E-03    24.288        .81610E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    17.241        .33031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .64286        .23340        .31364E-03   -1.0619    
  25  Prefactor     1.1046        .17804        .18693E-03   -.89320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44538e-09
Minuit parameter uncertainties:
  1  1.94636e-05
  2  37.8682
  3  1.10909e-05
  4  1.29243e-05
  5  13.1141
  6  51.0279
  7  2.22364e-05
  8  0.000469888
  9  6.52246e-06
  10  0.743111
  11  3.26538e-06
  12  15.0799
  13  0.00112653
  14  0.000716478
  15  0.00559991
  16  29.5637
  17  22.0624
  18  0.000168744
  19  5.79712e-06
  20  50.2648
  21  18.1892
  22  0.0153926
  23  0.000572035
  24  0.233761
  25  0.178137
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  5.604e-01  7.431e-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:  1.105e+00  1.781e-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:  6.429e-01  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/808446/likelihoodResults_340675201_340934401_4FGL_J2323.5-0317_daily_bin391.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) = 4847.5324907
delta logL = 0.0065477319722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4847.53244194
delta logL = 0.00659649067802

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .56040       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0499       1.0000          .0000       5.0000    
     3 'Normalizat'    .64499       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1037       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=   4847.532     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      246 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56037        .74482        .70450E-03    .11982E-03
   2  alpha         2.0495        .93171        .21996E-01   -.18433E-04
   3  Normalizat    .64501        .22466        .31316E-03    .99470E-05
   4  Prefactor     1.1037        .17274        .18699E-03    .19918E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.560374
  alpha      = 2.04953
  Normalizat = 0.645011
  Prefactor  = 1.10374
 **********
 **   18 **HESSE 
 **********

 FCN=   4847.532     FROM HESSE     STATUS=OK            27 CALLS      273 TOTAL
                     EDM=   .40E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56037        .74644        .28180E-04   -1.5558    
   2  alpha         2.0495        .93418        .43993E-02   -.18118    
   3  Normalizat    .64501        .22479        .12526E-04   -1.0611    
   4  Prefactor     1.1037        .17285        .37398E-04   -.89347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98546e-13
Minuit parameter uncertainties:
  1  0.746457
  2  0.958247
  3  0.22511
  4  0.172936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808446': 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) = 4847.53244187
delta logL = 0.00659656324024

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  5.604e-01  7.465e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.050e+00  9.582e-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:  1.104e+00  1.729e-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:  6.450e-01  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/808446/cmap_HighResolution_340675201_340934401_4FGL_J2323.5-0317_daily_bin391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.89e-05', job_status='DONE', photon_flux_upper_limit='9.50e-08', time_completed='2021-09-29 14:37:53.032478', job_id='808446', GAL2='1.10', fit_tolerance='1e-08', EG2='0.65', EG='0.64', time_epoch_completed='1632951473.03', return_code2='0', ts='0.84', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='6.60e-03', ts2='0.85', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='391' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:37:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 808446: <4FGL_J2323.5-0317_daily_bin391> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin391> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:25:41 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:25:43 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:25:43 2021
Terminated at Wed Sep 29 14:37:53 2021
Results reported at Wed Sep 29 14:37:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin391 350.888 -3.29 340675201 340934401 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 :                                   601.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            732 sec.

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

