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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin778
RA = 350.888, Dec = -3.29
tmin = 440985601, tmax = 441244801
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='810957', job_status='RUN', time_executed='2021-09-29 14:36:50.586029', time_epoch_executed='1632951410.59' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810957

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810957/ft1_4FGL_J2323.5-0317_daily_bin778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810957/ft2_4FGL_J2323.5-0317_daily_bin778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810957/ft1_4FGL_J2323.5-0317_daily_bin778.fits outfile=/scratch/kocevski/810957/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin778.fits ra=350.888 dec=-3.29 rad=12.0 tmin=440985601.0 tmax=441244801.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.42
user 3.19
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/810957/ft2_4FGL_J2323.5-0317_daily_bin778.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/810957/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin778.fits evtable="EVENTS" outfile="/scratch/kocevski/810957/ft1_filtered_4FGL_J2323.5-0317_daily_bin778.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/810957/ft1_filtered_4FGL_J2323.5-0317_daily_bin778.fits" evtable="EVENTS" scfile=/scratch/kocevski/810957/ft2_4FGL_J2323.5-0317_daily_bin778.fits sctable="SC_DATA" outfile=/scratch/kocevski/810957/ltcube_440985601_441244801_4FGL_J2323.5-0317_daily_bin778.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/810957/ft2_4FGL_J2323.5-0317_daily_bin778.fits
.....................!
real 11.80
user 11.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810957/ft1_filtered_4FGL_J2323.5-0317_daily_bin778.fits evtable="EVENTS" scfile=/scratch/kocevski/810957/ft2_4FGL_J2323.5-0317_daily_bin778.fits sctable="SC_DATA" expcube=/scratch/kocevski/810957/ltcube_440985601_441244801_4FGL_J2323.5-0317_daily_bin778.fits outfile=/scratch/kocevski/810957/expmap_440985601_441244801_4FGL_J2323.5-0317_daily_bin778.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/810957/ltcube_440985601_441244801_4FGL_J2323.5-0317_daily_bin778.fits
.....................!
real 190.52
user 185.90
sys 4.30

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/810957/ft1_filtered_4FGL_J2323.5-0317_daily_bin778.fits scfile=/scratch/kocevski/810957/ft2_4FGL_J2323.5-0317_daily_bin778.fits outfile=/scratch/kocevski/810957/cmap_440985601_441244801_4FGL_J2323.5-0317_daily_bin778.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/810957/ft1_filtered_4FGL_J2323.5-0317_daily_bin778.fits scfile=/scratch/kocevski/810957/ft2_4FGL_J2323.5-0317_daily_bin778.fits outfile=/scratch/kocevski/810957/cmap_HighResolution_440985601_441244801_4FGL_J2323.5-0317_daily_bin778.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/810957/ft1_filtered_4FGL_J2323.5-0317_daily_bin778.fits evtable="EVENTS" scfile=/scratch/kocevski/810957/ft2_4FGL_J2323.5-0317_daily_bin778.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/810957/Model_4FGL_J2323.5-0317_daily_bin778.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/810957/ft1_filtered_4FGL_J2323.5-0317_daily_bin778.fits.....................!
real 47.14
user 45.88
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.986       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.145       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.949       1.0000         .10000E-03   10000.    
    10 'norm      '    .94588       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    65.114       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.427       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.612       1.0000         .10000E-03   10000.    
    17 'norm      '    16.743       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .42117E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.359       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .69970       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1383       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=   4864.183     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2902 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.103       -.79281E-06** at limit **
   2  Prefactor     .10000E-03    49.815        .48936E-05** at limit **
   3  Prefactor     10.984        29.650       -.25144E-05   -.21739E-05
   4  Prefactor     .10000E-03    4.1152        .11724E-06** at limit **
   5  norm          .10000E-03    19.228        .21045E-05** at limit **
   6  Prefactor     .10000E-03    57.472       -.12505E-05** at limit **
   7  Prefactor     13.147        23.452        .10869E-05    .16231E-05
   8  Prefactor     .10000E-03    46.650        .16657E-05** at limit **
   9  Prefactor     20.946        11.998        .10254E-06    .59819E-03
  10  norm          .94562        1.0984       -.84292E-06   -.10999E-02
  11  norm          .10000E-03    1.8948        .17001E-06** at limit **
  12  Prefactor     .10000E-03    4.4680       -.90236E-07** at limit **
  13  Prefactor     .10000E-03    55.531        .29575E-05** at limit **
  14  Prefactor     65.260        201.35        .17766E-03    .32355E-04
  15  Prefactor     17.415        20.482       -.11897E-04    .30403E-03
  16  Prefactor     20.614        19.663        .23080E-06    .11595E-04
  17  norm          16.747        39.570        .97707E-05    .64336E-04
  18  Prefactor     .10006E-03    626.49       -.23981E-03** at limit **
  19  Prefactor     .10000E-03    6.7640       -.68265E-06** at limit **
  20  Prefactor     .10000E-03    41.665       -.84975E-05** at limit **
  21  Prefactor     21.360        23.685        .32848E-06    .13386E-04
  22  Prefactor     .10000E-03    9.1427        .42617E-06** at limit **
  23  Prefactor     .10000E-03    4.1481        .11478E-06** at limit **
  24  Normalizat    .69989        .21798        .30614E-05    .42873E-03
  25  Prefactor     1.1381        .16119       -.17995E-05    .77973E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9838
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1472
  Prefactor  = 0.0001
  Prefactor  = 20.9457
  norm       = 0.945617
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.2598
  Prefactor  = 17.4149
  Prefactor  = 20.6142
  norm       = 16.7469
  Prefactor  = 0.000100063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.3602
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.699888
  Prefactor  = 1.13814
 **********
 **   18 **HESSE 
 **********

 FCN=   4864.183     FROM HESSE     STATUS=OK           417 CALLS     3319 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    49.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.984        29.648        .12087E-03   -1.5045    
   4  Prefactor     .10000E-03    4.1179        .13818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    19.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    58.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.147        23.451        .11048E-03   -1.4983    
   8  Prefactor     .10000E-03    46.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.946        12.018        .87511E-04   -1.4792    
  10  norm          .94562        1.0503        .73784E-03   -1.5513    
  11  norm          .10000E-03    1.8960        .93740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.4789        .14397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    55.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     65.260        201.85        .24867E-03   -1.4091    
  15  Prefactor     17.415        20.397        .95942E-04   -1.4873    
  16  Prefactor     20.614        19.661        .88222E-04   -1.4800    
  17  norm          16.747        39.585        .97883E-04   -1.4889    
  18  Prefactor     .10006E-03    635.58        .42480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.8819        .35158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    41.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.360        23.688        .86667E-04   -1.4783    
  22  Prefactor     .10000E-03    9.1626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.1757        .13871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .69989        .24827        .31960E-03   -1.0390    
  25  Prefactor     1.1381        .18477        .19345E-03   -.88257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19167e-09
Minuit parameter uncertainties:
  1  4.25903e-06
  2  6.58748e-06
  3  29.6875
  4  1.85156e-06
  5  3.76234e-07
  6  4.04697e-05
  7  23.4676
  8  2.49946e-05
  9  12.0193
  10  1.05033
  11  4.49795e-07
  12  1.36147e-07
  13  0.000113763
  14  204.021
  15  20.405
  16  19.667
  17  39.6473
  18  0.0128289
  19  0.000108174
  20  9.74287e-05
  21  23.6981
  22  2.38878e-06
  23  8.05988e-07
  24  0.248668
  25  0.184877
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  9.456e-01  1.050e+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:  1.138e+00  1.849e-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.999e-01  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.66e-08 +/- 4.06e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.67e-05

TS (Fixed Index): 1.13
Ra Dec: 350.888 -3.290
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/810957/likelihoodResults_440985601_441244801_4FGL_J2323.5-0317_daily_bin778.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) = 4863.90101335
delta logL = 0.28167961666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4863.89855472
delta logL = 0.284138248582

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90150       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5994       1.0000          .0000       5.0000    
     3 'Normalizat'    .71388       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1317       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=   4863.899     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90125        .97767        .12813E-01    .42553E-03
   2  alpha         1.5990        .52275        .39285       -.29773E-04
   3  Normalizat    .71393        .20884        .71551E-01    .20407E-04
   4  Prefactor     1.1316        .15885        .36492E-01   -.22985E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.901254
  alpha      = 1.599
  Normalizat = 0.713935
  Prefactor  = 1.13161
 **********
 **   18 **HESSE 
 **********

 FCN=   4863.899     FROM HESSE     STATUS=OK            35 CALLS      242 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90125        1.0625        .66848E-03   -1.5518    
   2  alpha         1.5990        .69077        .14783E-01   -.36870    
   3  Normalizat    .71393        .23766        .31668E-03   -1.0335    
   4  Prefactor     1.1316        .18128        .19389E-03   -.88463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.37109e-10
Minuit parameter uncertainties:
  1  1.06252
  2  0.70129
  3  0.238006
  4  0.181384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810957': 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) = 4863.89855456
delta logL = 0.284138402014

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  9.013e-01  1.063e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.599e+00  7.013e-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.132e+00  1.814e-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:  7.139e-01  2.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.70
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 1.60 +/- 0.70
Photon Flux (Free Index): 2.35e-08 +/- 3.17e-08
Energy Flux (Free Index): 2.64e-05 +/- 3.22e-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/810957/cmap_HighResolution_440985601_441244801_4FGL_J2323.5-0317_daily_bin778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-05', comment='SUCCESS', photon_flux='3.66e-08', energy_flux2='2.64e-05', photon_flux_error='4.06e-08', dlogl='2.84e-01', energy_flux='1.50e-05', photon_flux2='2.35e-08', job_status='DONE', time_completed='2021-09-29 14:46:35.612869', photon_index_error2='0.70', photon_index2='1.60', ts='1.13', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='3.22e-05', EG='0.70', time_epoch_completed='1632951995.61', return_code='0', job_id='810957', GAL2='1.13', EG2='0.71', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='3.17e-08', ts2='1.70', photon_index='2.16' WHERE bin_id='778' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:46:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 810957: <4FGL_J2323.5-0317_daily_bin778> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin778 350.888 -3.29 440985601 441244801 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 :                                   576.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   669 sec.
    Turnaround time :                            671 sec.

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

