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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin836
RA = 350.888, Dec = -3.29
tmin = 456019201, tmax = 456278401
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='811043', job_status='RUN', time_executed='2021-09-29 14:39:23.112935', time_epoch_executed='1632951563.11' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='836'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811043

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811043/ft1_4FGL_J2323.5-0317_daily_bin836.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811043/ft2_4FGL_J2323.5-0317_daily_bin836.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811043/ft1_4FGL_J2323.5-0317_daily_bin836.fits outfile=/scratch/kocevski/811043/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin836.fits ra=350.888 dec=-3.29 rad=12.0 tmin=456019201.0 tmax=456278401.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.93
user 6.63
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811043/ft1_filtered_4FGL_J2323.5-0317_daily_bin836.fits" evtable="EVENTS" scfile=/scratch/kocevski/811043/ft2_4FGL_J2323.5-0317_daily_bin836.fits sctable="SC_DATA" outfile=/scratch/kocevski/811043/ltcube_456019201_456278401_4FGL_J2323.5-0317_daily_bin836.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/811043/ft2_4FGL_J2323.5-0317_daily_bin836.fits
.....................!
real 11.73
user 11.36
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811043/ft1_filtered_4FGL_J2323.5-0317_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/811043/ft2_4FGL_J2323.5-0317_daily_bin836.fits sctable="SC_DATA" expcube=/scratch/kocevski/811043/ltcube_456019201_456278401_4FGL_J2323.5-0317_daily_bin836.fits outfile=/scratch/kocevski/811043/expmap_456019201_456278401_4FGL_J2323.5-0317_daily_bin836.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/811043/ltcube_456019201_456278401_4FGL_J2323.5-0317_daily_bin836.fits
.....................!
real 190.84
user 184.60
sys 5.90

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/811043/ft1_filtered_4FGL_J2323.5-0317_daily_bin836.fits scfile=/scratch/kocevski/811043/ft2_4FGL_J2323.5-0317_daily_bin836.fits outfile=/scratch/kocevski/811043/cmap_456019201_456278401_4FGL_J2323.5-0317_daily_bin836.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811043/ft1_filtered_4FGL_J2323.5-0317_daily_bin836.fits scfile=/scratch/kocevski/811043/ft2_4FGL_J2323.5-0317_daily_bin836.fits outfile=/scratch/kocevski/811043/cmap_HighResolution_456019201_456278401_4FGL_J2323.5-0317_daily_bin836.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/811043/ft1_filtered_4FGL_J2323.5-0317_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/811043/ft2_4FGL_J2323.5-0317_daily_bin836.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/811043/Model_4FGL_J2323.5-0317_daily_bin836.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/811043/ft1_filtered_4FGL_J2323.5-0317_daily_bin836.fits.....................!
real 48.58
user 47.32
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7652       1.0000         .10000E-03   10000.    
     2 'Prefactor '    58.448       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9435       1.0000         .10000E-03   10000.    
     5 'norm      '    20.278       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.487       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.967       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3651       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.203       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .34777E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0549       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9115       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.081       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.001       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0049       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .67375       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=   4511.717     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2841 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7670        8.8027       -.56387E-06   -.81341E-04
   2  Prefactor     58.456        46.365        .50954E-05   -.53752E-06
   3  Prefactor     .10000E-03    11.838       -.11039E-06** at limit **
   4  Prefactor     1.9475        11.088       -.31581E-05   -.29761E-03
   5  norm          20.283        14.161        .28230E-05    .45853E-04
   6  Prefactor     34.505        47.605        .16560E-04    .39851E-04
   7  Prefactor     .10000E-03    18.251        .37593E-06** at limit **
   8  Prefactor     24.965        34.902       -.52932E-06   -.62581E-05
   9  Prefactor     .10000E-03    4.3831       -.28526E-07** at limit **
  10  norm          1.3650        .94216       -.12586E-08    .37278E-03
  11  norm          .10000E-03    2.5935       -.62569E-07** at limit **
  12  Prefactor     25.203        15.145       -.22024E-06    .12173E-03
  13  Prefactor     .10006E-03    233.32       -.22174E-03** at limit **
  14  Prefactor     .10000E-03    82.804        .71314E-04** at limit **
  15  Prefactor     .10000E-03    4.9286        .28891E-06** at limit **
  16  Prefactor     5.0561        27.018        .28210E-07    .17162E-04
  17  norm          .10000E-03    5.6061       -.53514E-06** at limit **
  18  Prefactor     .10000E-03    114.57        .17756E-04** at limit **
  19  Prefactor     5.9114        4.6305        .87847E-06    .10654E-03
  20  Prefactor     .10000E-03    63.771       -.38141E-04** at limit **
  21  Prefactor     .10000E-03    5.9292        .49913E-06** at limit **
  22  Prefactor     13.085        13.561        .27596E-05    .76414E-05
  23  Prefactor     12.004        8.3529       -.16177E-06   -.77875E-04
  24  Normalizat    1.0046        .20753       -.27765E-05    .75781E-03
  25  Prefactor     .67369        .14452        .59212E-06    .64722E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.76704
  Prefactor  = 58.4556
  Prefactor  = 0.0001
  Prefactor  = 1.94745
  norm       = 20.2829
  Prefactor  = 34.5045
  Prefactor  = 0.0001
  Prefactor  = 24.9646
  Prefactor  = 0.0001
  norm       = 1.36497
  norm       = 0.0001
  Prefactor  = 25.2031
  Prefactor  = 0.000100061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.05613
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.91143
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 13.0851
  Prefactor  = 12.0041
  Normalizat = 1.00465
  Prefactor  = 0.673693
 **********
 **   18 **HESSE 
 **********

 FCN=   4511.717     FROM HESSE     STATUS=OK           421 CALLS     3262 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7670        8.7959        .14390E-03   -1.5151    
   2  Prefactor     58.456        46.358        .52476E-04   -1.4177    
   3  Prefactor     .10000E-03    11.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.9475        11.125        .29777E-03   -1.5429    
   5  norm          20.283        14.166        .88946E-04   -1.4807    
   6  Prefactor     34.505        47.673        .68239E-04   -1.4532    
   7  Prefactor     .10000E-03    18.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.965        35.002        .80170E-04   -1.4708    
   9  Prefactor     .10000E-03    4.3924        .13720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3650        .93317        .51515E-04   -1.5474    
  11  norm          .10000E-03    2.6062        .10559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.203        15.129        .79794E-04   -1.4703    
  13  Prefactor     .10006E-03    234.07        .19662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    83.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.9374        .14553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.0561        26.923        .17884E-03   -1.5258    
  17  norm          .10000E-03    5.6065        .15532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    115.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.9114        4.6382        .12004E-03   -1.5222    
  20  Prefactor     .10000E-03    64.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.9334        .15975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.085        13.565        .11075E-03   -1.4984    
  23  Prefactor     12.004        8.3730        .11563E-03   -1.5015    
  24  Normalizat    1.0046        .24150        .24410E-03   -.92875    
  25  Prefactor     .67369        .16744        .21502E-03   -1.0457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91337e-09
Minuit parameter uncertainties:
  1  8.79732
  2  46.3865
  3  1.91239e-05
  4  9.31161
  5  14.1687
  6  47.7261
  7  4.4916e-05
  8  35.0311
  9  9.50578e-06
  10  0.933178
  11  3.96919e-06
  12  15.1311
  13  0.00756764
  14  2.14969e-05
  15  3.02895e-07
  16  23.351
  17  6.48567e-07
  18  1.26138e-05
  19  4.63847
  20  0.000484232
  21  3.79155e-06
  22  13.5685
  23  8.37379
  24  0.241766
  25  0.167569
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.365e+00  9.332e-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:  6.737e-01  1.676e-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.005e+00  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.72
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 5.28e-08 +/- 3.61e-08
Energy Flux (Fixed Index): 2.16e-05 +/- 1.48e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4511.03146526
delta logL = 0.685945910087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4511.02406557
delta logL = 0.693345601422

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0564       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1037       1.0000          .0000       5.0000    
     3 'Normalizat'    .91520       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71374       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=   4511.024     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      228 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0575        8.3766        .76621E-02    .40542E-03
   2  alpha         3.1027        4.0495        .27310        .43802E-04
   3  Normalizat    .91511        .77685E-01    .45095E-01    .10439E-04
   4  Prefactor     .71381        .50253E-01    .42584E-01    .86315E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.05752
  alpha      = 3.10266
  Normalizat = 0.915113
  Prefactor  = 0.713809
 **********
 **   18 **HESSE 
 **********

 FCN=   4511.024     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0575        1.0355        .34189E-04   -1.5502    
   2  alpha         3.1027        .88395        .10997E-01    .24346    
   3  Normalizat    .91511        .24014        .25397E-03   -.95931    
   4  Prefactor     .71381        .17089        .20937E-03   -1.0299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27613e-09
Minuit parameter uncertainties:
  1  1.03552
  2  0.904778
  3  0.24042
  4  0.171013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811043': 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) = 4511.02406443
delta logL = 0.693346740674

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  1.058e+00  1.036e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  3.103e+00  9.048e-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:  7.138e-01  1.710e-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:  9.151e-01  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.24
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 3.10 +/- 0.90
Photon Flux (Free Index): 1.22e-07 +/- 7.82e-08
Energy Flux (Free Index): 2.43e-05 +/- 1.28e-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/811043/cmap_HighResolution_456019201_456278401_4FGL_J2323.5-0317_daily_bin836.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.28e-08', energy_flux2='2.43e-05', photon_flux_error='3.61e-08', dlogl='6.93e-01', energy_flux='2.16e-05', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-29 14:48:22.088702', photon_index_error2='0.90', photon_index2='3.10', ts='4.72', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='1.28e-05', EG='1.00', time_epoch_completed='1632952102.09', return_code='0', job_id='811043', GAL2='0.71', EG2='0.92', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='7.82e-08', ts2='6.24', photon_index='2.16' WHERE bin_id='836' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:48:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 811043: <4FGL_J2323.5-0317_daily_bin836> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin836 350.888 -3.29 456019201 456278401 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 :                                   534.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            772 sec.

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

