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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin741
RA = 350.888, Dec = -3.29
tmin = 431395201, tmax = 431654401
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='810896', job_status='RUN', time_executed='2021-09-29 14:39:08.146716', time_epoch_executed='1632951548.15' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810896

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810896/ft1_4FGL_J2323.5-0317_daily_bin741.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810896/ft2_4FGL_J2323.5-0317_daily_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810896/ft1_4FGL_J2323.5-0317_daily_bin741.fits outfile=/scratch/kocevski/810896/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin741.fits ra=350.888 dec=-3.29 rad=12.0 tmin=431395201.0 tmax=431654401.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.61
user 5.34
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/810896/ft1_filtered_4FGL_J2323.5-0317_daily_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/810896/ft2_4FGL_J2323.5-0317_daily_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/810896/ltcube_431395201_431654401_4FGL_J2323.5-0317_daily_bin741.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/810896/ft2_4FGL_J2323.5-0317_daily_bin741.fits
.....................!
real 12.01
user 11.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810896/ft1_filtered_4FGL_J2323.5-0317_daily_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/810896/ft2_4FGL_J2323.5-0317_daily_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/810896/ltcube_431395201_431654401_4FGL_J2323.5-0317_daily_bin741.fits outfile=/scratch/kocevski/810896/expmap_431395201_431654401_4FGL_J2323.5-0317_daily_bin741.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/810896/ltcube_431395201_431654401_4FGL_J2323.5-0317_daily_bin741.fits
.....................!
real 190.73
user 186.38
sys 3.97

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/810896/ft1_filtered_4FGL_J2323.5-0317_daily_bin741.fits scfile=/scratch/kocevski/810896/ft2_4FGL_J2323.5-0317_daily_bin741.fits outfile=/scratch/kocevski/810896/cmap_431395201_431654401_4FGL_J2323.5-0317_daily_bin741.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.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/810896/ft1_filtered_4FGL_J2323.5-0317_daily_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/810896/ft2_4FGL_J2323.5-0317_daily_bin741.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/810896/Model_4FGL_J2323.5-0317_daily_bin741.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/810896/ft1_filtered_4FGL_J2323.5-0317_daily_bin741.fits......................!
real 31.35
user 30.03
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/810896/ft1_filtered_4FGL_J2323.5-0317_daily_bin741.fits', '/scratch/kocevski/810896/ft2_4FGL_J2323.5-0317_daily_bin741.fits', expMap='/scratch/kocevski/810896/expmap_431395201_431654401_4FGL_J2323.5-0317_daily_bin741.fits', expCube='/scratch/kocevski/810896/ltcube_431395201_431654401_4FGL_J2323.5-0317_daily_bin741.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/810896/Model_4FGL_J2323.5-0317_daily_bin741.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/810896/ft1_filtered_4FGL_J2323.5-0317_daily_bin741.fits
Spacecraft file(s): /scratch/kocevski/810896/ft2_4FGL_J2323.5-0317_daily_bin741.fits
Exposure map: /scratch/kocevski/810896/expmap_431395201_431654401_4FGL_J2323.5-0317_daily_bin741.fits
Exposure cube: /scratch/kocevski/810896/ltcube_431395201_431654401_4FGL_J2323.5-0317_daily_bin741.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/810896/Model_4FGL_J2323.5-0317_daily_bin741.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2251.38662748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8784       1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.912       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    16.890       1.0000         .10000E-03   10000.    
     6 'Prefactor '    54.927       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10731E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.2975       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5023       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    249.04       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12589E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5897       1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.377       1.0000         .10000E-03   10000.    
    17 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .83981       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.2098       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    46.474       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4218       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=   2251.339     FROM MIGRAD    STATUS=CONVERGED    989 CALLS     3370 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8722        20.367        .13452E-03   -.13734E-04
   2  Prefactor     39.916        69.692        .63447E-04   -.37629E-05
   3  Prefactor     .10000E-03    57.644        .18142E-02** at limit **
   4  Prefactor     .10000E-03    6.5435        .11851E-02** at limit **
   5  norm          16.892        21.242        .97455E-04   -.33772E-04
   6  Prefactor     54.922        66.869        .54123E-04   -.21026E-04
   7  Prefactor     .10000E-03    57.124        .18142E-02** at limit **
   8  Prefactor     .10000E-03    223.82        .18142E-02** at limit **
   9  Prefactor     .10000E-03    58.909        .18142E-02** at limit **
  10  norm          3.2954        2.9088        .64690E-04   -.23989E-03
  11  norm          1.4930        36.627        .17464E-02   -.74796E-05
  12  Prefactor     .10000E-03    10.140        .14723E-02** at limit **
  13  Prefactor     249.04        142.11        .25669E-04   -.29276E-04
  14  Prefactor     .10000E-03    331.42        .18142E-02** at limit **
  15  Prefactor     1.6112        169.03        .33657E-03   -.30569E-04
  16  Prefactor     34.378        31.493        .68347E-04   -.13473E-04
  17  norm          .10000E-03    38.972        .18142E-02** at limit **
  18  Prefactor     .10000E-03    58.769        .18142E-02** at limit **
  19  Prefactor     .83194        26.321        .31977E-03   -.64794E-04
  20  Prefactor     .10000E-03    35.142        .18142E-02** at limit **
  21  Prefactor     3.2102        45.496        .22614E-03   -.86722E-05
  22  Prefactor     .10000E-03    13.265        .16842E-02** at limit **
  23  Prefactor     46.476        25.833        .58815E-04   -.25805E-04
  24  Normalizat    .10000E-01    .15130        .95473E-02** at limit **
  25  Prefactor     1.4219        .14910        .17203E-03   -.12122E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.87222
  Prefactor  = 39.9158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.8924
  Prefactor  = 54.9216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.29539
  norm       = 1.49301
  Prefactor  = 0.0001
  Prefactor  = 249.043
  Prefactor  = 0.0001
  Prefactor  = 1.61117
  Prefactor  = 34.3779
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.831942
  Prefactor  = 0.0001
  Prefactor  = 3.21019
  Prefactor  = 0.0001
  Prefactor  = 46.4759
  Normalizat = 0.01
  Prefactor  = 1.42192
 **********
 **   18 **HESSE 
 **********

 FCN=   2251.339     FROM HESSE     STATUS=OK           403 CALLS     3773 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8722        20.366        .53807E-05   -1.5112    
   2  Prefactor     39.916        69.704        .25379E-05   -1.4444    
   3  Prefactor     .10000E-03    57.652        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5435        .23703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          16.892        21.240        .38982E-05   -1.4886    
   6  Prefactor     54.922        66.866        .10825E-04   -1.4224    
   7  Prefactor     .10000E-03    57.135        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    223.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    58.937        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2954        2.8946        .25876E-05   -1.5345    
  11  norm          1.4930        36.193        .69858E-04   -1.5464    
  12  Prefactor     .10000E-03    10.141        .29446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     249.04        141.98        .51337E-05   -1.2538    
  14  Prefactor     .10000E-03    331.42        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.6112        164.53        .13463E-04   -1.5454    
  16  Prefactor     34.378        31.493        .13669E-04   -1.4535    
  17  norm          .10000E-03    38.973        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    58.770        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .83194        25.650        .12791E-04   -1.5526    
  20  Prefactor     .10000E-03    35.144        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.2102        45.494        .90454E-05   -1.5350    
  22  Prefactor     .10000E-03    13.267        .33683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     46.476        25.833        .23526E-05   -1.4343    
  24  Normalizat    .10000E-01    .15133        .19095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.4219        .14894        .34407E-04   -.79751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86456e-11
Minuit parameter uncertainties:
  1  20.3816
  2  69.8466
  3  1.18237e-06
  4  5.48267e-07
  5  21.2496
  6  66.9571
  7  6.19031e-05
  8  0.000151283
  9  4.83135e-05
  10  2.89477
  11  14.7113
  12  7.88874e-07
  13  142.175
  14  0.000124792
  15  32.655
  16  31.5082
  17  4.82704e-05
  18  4.0767e-06
  19  9.24264
  20  9.40317e-06
  21  24.1916
  22  8.52128e-07
  23  25.8391
  24  1.04931e-06
  25  0.14899
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.295e+00  2.895e+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.422e+00  1.490e-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.000e-02  1.049e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.16
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 1.12e-07
Energy Flux (Fixed Index): 5.22e-05 +/- 4.59e-05

TS (Fixed Index): 2.16
Ra Dec: 350.888 -3.290
Photon Flux Upper Limit: 3.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.39e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/810896/likelihoodResults_431395201_431654401_4FGL_J2323.5-0317_daily_bin741.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) = 2250.32236029
delta logL = 1.01631494834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2250.17497303
delta logL = 1.16370220678

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3093       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4140       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4073       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=   2250.175     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      248 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3135        18.479        .71258E-02    .13288E-03
   2  alpha         3.4116        4.1593        .18821        .17552E-04
   3  Normalizat    .10000E-01    .40745E-01    .22375    ** at limit **
   4  Prefactor     1.4076        .95735E-01    .30961E-01   -.15439E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.3135
  alpha      = 3.41161
  Normalizat = 0.01
  Prefactor  = 1.40757
 **********
 **   18 **HESSE 
 **********

 FCN=   2250.175     FROM HESSE     STATUS=OK            31 CALLS      279 TOTAL
                     EDM=   .22E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3135        2.0963        .31752E-04   -1.5479    
   2  alpha         3.4116        1.0724        .81997E-03    .37325    
   3  Normalizat    .10000E-01    .11430        .83957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4076        .13292        .17194E-03   -.80162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17615e-13
Minuit parameter uncertainties:
  1  2.09644
  2  1.1145
  3  4.81714e-08
  4  0.132953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810896': 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) = 2250.17496821
delta logL = 1.16370703214

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.314e+00  2.096e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  3.412e+00  1.115e+00  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.408e+00  1.330e-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.000e-02  4.817e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.48
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 3.41 +/- 1.11
Photon Flux (Free Index): 2.30e-07 +/- 1.41e-07
Energy Flux (Free Index): 4.10e-05 +/- 2.73e-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/810896/cmap_HighResolution_431395201_431654401_4FGL_J2323.5-0317_daily_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-04', comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='4.10e-05', photon_flux_error='1.12e-07', dlogl='1.16e+00', energy_flux='5.22e-05', photon_flux2='2.30e-07', job_status='DONE', time_completed='2021-09-29 14:46:47.092189', photon_index_error2='1.11', photon_index2='3.41', ts='2.16', fit_tolerance='1e-08', GAL='1.42', photon_index_error='0.00', photon_flux_upper_limit='3.38e-07', energy_flux_error2='2.73e-05', EG='0.01', time_epoch_completed='1632952007.09', return_code='0', job_id='810896', GAL2='1.41', EG2='0.01', return_code2='0', energy_flux_error='4.59e-05', photon_flux_error2='1.41e-07', ts2='4.48', photon_index='2.16' WHERE bin_id='741' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:46:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 810896: <4FGL_J2323.5-0317_daily_bin741> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin741 350.888 -3.29 431395201 431654401 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 :                                   457.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            688 sec.

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

