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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin680
RA = 350.888, Dec = -3.29
tmin = 415584001, tmax = 415843201
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='810810', job_status='RUN', time_executed='2021-09-29 14:38:50.557113', time_epoch_executed='1632951530.56' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810810

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810810/ft1_4FGL_J2323.5-0317_daily_bin680.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810810/ft2_4FGL_J2323.5-0317_daily_bin680.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810810/ft1_4FGL_J2323.5-0317_daily_bin680.fits outfile=/scratch/kocevski/810810/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin680.fits ra=350.888 dec=-3.29 rad=12.0 tmin=415584001.0 tmax=415843201.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.29
user 6.01
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/810810/ft2_4FGL_J2323.5-0317_daily_bin680.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/810810/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin680.fits evtable="EVENTS" outfile="/scratch/kocevski/810810/ft1_filtered_4FGL_J2323.5-0317_daily_bin680.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/810810/ft1_filtered_4FGL_J2323.5-0317_daily_bin680.fits" evtable="EVENTS" scfile=/scratch/kocevski/810810/ft2_4FGL_J2323.5-0317_daily_bin680.fits sctable="SC_DATA" outfile=/scratch/kocevski/810810/ltcube_415584001_415843201_4FGL_J2323.5-0317_daily_bin680.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/810810/ft2_4FGL_J2323.5-0317_daily_bin680.fits
.....................!
real 11.94
user 11.60
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810810/ft1_filtered_4FGL_J2323.5-0317_daily_bin680.fits evtable="EVENTS" scfile=/scratch/kocevski/810810/ft2_4FGL_J2323.5-0317_daily_bin680.fits sctable="SC_DATA" expcube=/scratch/kocevski/810810/ltcube_415584001_415843201_4FGL_J2323.5-0317_daily_bin680.fits outfile=/scratch/kocevski/810810/expmap_415584001_415843201_4FGL_J2323.5-0317_daily_bin680.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/810810/ltcube_415584001_415843201_4FGL_J2323.5-0317_daily_bin680.fits
.....................!
real 191.27
user 186.73
sys 4.18

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/810810/ft1_filtered_4FGL_J2323.5-0317_daily_bin680.fits scfile=/scratch/kocevski/810810/ft2_4FGL_J2323.5-0317_daily_bin680.fits outfile=/scratch/kocevski/810810/cmap_415584001_415843201_4FGL_J2323.5-0317_daily_bin680.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/810810/ft1_filtered_4FGL_J2323.5-0317_daily_bin680.fits scfile=/scratch/kocevski/810810/ft2_4FGL_J2323.5-0317_daily_bin680.fits outfile=/scratch/kocevski/810810/cmap_HighResolution_415584001_415843201_4FGL_J2323.5-0317_daily_bin680.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5029       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.382       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.897       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7334       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.2887       1.0000         .10000E-03   10000.    
    10 'norm      '    .57515       1.0000         .10000E-03   10000.    
    11 'norm      '    14.122       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 '    68.589       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9488       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    53.654       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .41738       1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.167       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5153       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.710       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .52396       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3646       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=   4160.331     FROM MIGRAD    STATUS=CONVERGED   1010 CALLS     3845 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5025        10.221        .25831E-03   -.40315E-04
   2  Prefactor     .10000E-03    27.312        .18142E-02** at limit **
   3  Prefactor     27.382        30.625        .76558E-04   -.11880E-05
   4  Prefactor     .10000E-03    4.4554        .13292E-02** at limit **
   5  norm          .10000E-03    14.045        .18142E-02** at limit **
   6  Prefactor     34.902        48.266        .67837E-04   -.20110E-04
   7  Prefactor     5.7319        15.551        .16775E-03   -.94205E-05
   8  Prefactor     .10000E-03    36.302        .18142E-02** at limit **
   9  Prefactor     9.2878        12.498        .13150E-03    .40980E-04
  10  norm          .57461        .90131        .46296E-04    .68759E-04
  11  norm          14.122        9.7876        .53293E-03   -.12354E-03
  12  Prefactor     .10000E-03    6.9691        .16616E-02** at limit **
  13  Prefactor     .10000E-03    69.484        .18142E-02** at limit **
  14  Prefactor     68.522        233.44        .48466E-04    .17358E-04
  15  Prefactor     5.9603        28.293        .16464E-03   -.55726E-04
  16  Prefactor     .10000E-03    13.108        .18142E-02** at limit **
  17  norm          53.674        45.740        .54758E-04   -.32928E-04
  18  Prefactor     .10000E-03    26.310        .18142E-02** at limit **
  19  Prefactor     .10000E-03    8.4647        .35907E-03** at limit **
  20  Prefactor     .28473        82.995        .13028        .70567E-04
  21  Prefactor     25.165        29.122        .79850E-04   -.64069E-05
  22  Prefactor     3.5143        15.027        .21562E-03   -.15923E-04
  23  Prefactor     13.709        10.101        .10818E-03    .16079E-04
  24  Normalizat    .52400        .28866        .37604E-03    .35675E-05
  25  Prefactor     1.3646        .21594        .19323E-03   -.57777E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.50249
  Prefactor  = 0.0001
  Prefactor  = 27.3823
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.9022
  Prefactor  = 5.73186
  Prefactor  = 0.0001
  Prefactor  = 9.28784
  norm       = 0.574608
  norm       = 14.1222
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 68.522
  Prefactor  = 5.96031
  Prefactor  = 0.0001
  norm       = 53.6739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.284728
  Prefactor  = 25.1648
  Prefactor  = 3.51432
  Prefactor  = 13.7091
  Normalizat = 0.524002
  Prefactor  = 1.36462
 **********
 **   18 **HESSE 
 **********

 FCN=   4160.331     FROM HESSE     STATUS=OK           411 CALLS     4256 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5025        10.217        .10332E-04   -1.5392    
   2  Prefactor     .10000E-03    27.312        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.382        30.629        .30623E-05   -1.4661    
   4  Prefactor     .10000E-03    4.4555        .26583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    14.049        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     34.902        48.279        .27135E-05   -1.4526    
   7  Prefactor     5.7319        15.550        .67098E-05   -1.5229    
   8  Prefactor     .10000E-03    36.302        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.2878        12.499        .52599E-05   -1.5098    
  10  norm          .57461        .90127        .18518E-05   -1.5556    
  11  norm          14.122        9.7885        .21317E-04   -1.4956    
  12  Prefactor     .10000E-03    6.9695        .33231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    69.487        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     68.522        233.53        .96932E-05   -1.4051    
  15  Prefactor     5.9603        28.222        .65855E-05   -1.5220    
  16  Prefactor     .10000E-03    13.108        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          53.674        45.705        .10952E-04   -1.4241    
  18  Prefactor     .10000E-03    26.311        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.4649        .71814E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .28473        79.416        .13364       -1.5601    
  21  Prefactor     25.165        29.115        .31940E-05   -1.4704    
  22  Prefactor     3.5143        15.026        .86249E-05   -1.5333    
  23  Prefactor     13.709        10.100        .43270E-05   -1.4967    
  24  Normalizat    .52400        .28870        .15041E-04   -1.1132    
  25  Prefactor     1.3646        .21605        .77291E-05   -.81405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5292e-10
Minuit parameter uncertainties:
  1  10.1159
  2  4.67228e-06
  3  30.6467
  4  1.63222e-06
  5  6.61325e-06
  6  48.3327
  7  15.561
  8  0.000215075
  9  12.5025
  10  0.90129
  11  9.78959
  12  6.32684e-06
  13  0.000387164
  14  236.771
  15  25.959
  16  1.91932e-05
  17  45.7347
  18  7.18853e-05
  19  0.000115169
  20  9.5215
  21  29.131
  22  14.5396
  23  10.1014
  24  0.28953
  25  0.21619
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  5.746e-01  9.013e-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.365e+00  2.162e-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:  5.240e-01  2.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/810810/likelihoodResults_415584001_415843201_4FGL_J2323.5-0317_daily_bin680.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) = 4160.16630785
delta logL = 0.164878614946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4160.14890773
delta logL = 0.182278737364

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .43775       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0408       1.0000          .0000       5.0000    
     3 'Normalizat'    .49632       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3772       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=   4160.149     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      198 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .43777        23.218        .11014E-01    .85598E-03
   2  alpha         3.0420        3.4776        .42439E-01    .18193E-04
   3  Normalizat    .49622        .87188E-01    .87051E-01    .28540E-04
   4  Prefactor     1.3772        .71170E-01    .31384E-01   -.82968E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.437771
  alpha      = 3.04196
  Normalizat = 0.496223
  Prefactor  = 1.37721
 **********
 **   18 **HESSE 
 **********

 FCN=   4160.149     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .43777        .85106        .52107E-03   -1.5576    
   2  alpha         3.0420        1.5652        .16976E-02    .21852    
   3  Normalizat    .49622        .26936        .38565E-03   -1.1259    
   4  Prefactor     1.3772        .21238        .19238E-03   -.81039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88924e-12
Minuit parameter uncertainties:
  1  0.851084
  2  1.69918
  3  0.270072
  4  0.212512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810810': 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) = 4160.14890707
delta logL = 0.182279394507

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  4.378e-01  8.511e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  3.042e+00  1.699e+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.377e+00  2.125e-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:  4.962e-01  2.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 3.04 +/- 1.70
Photon Flux (Free Index): 4.67e-08 +/- 6.57e-08
Energy Flux (Free Index): 9.52e-06 +/- 1.17e-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/810810/cmap_HighResolution_415584001_415843201_4FGL_J2323.5-0317_daily_bin680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.85e-05', comment='SUCCESS', energy_flux2='9.52e-06', dlogl='1.82e-01', photon_flux2='4.67e-08', job_status='DONE', time_completed='2021-09-29 14:48:56.010468', photon_index_error2='1.70', photon_index2='3.04', ts='0.67', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.17e-05', EG='0.52', time_epoch_completed='1632952136.01', return_code='0', job_id='810810', GAL2='1.38', EG2='0.50', return_code2='0', photon_flux_error2='6.57e-08', ts2='1.06', photon_index='2.16' WHERE bin_id='680' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:48:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 810810: <4FGL_J2323.5-0317_daily_bin680> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin680 350.888 -3.29 415584001 415843201 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 :                             296.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            824 sec.

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

