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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin505
RA = 350.888, Dec = -3.29
tmin = 370224001, tmax = 370483201
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='809446', job_status='RUN', time_executed='2021-09-29 14:32:31.423744', time_epoch_executed='1632951151.42' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809446

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809446/ft1_4FGL_J2323.5-0317_daily_bin505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809446/ft2_4FGL_J2323.5-0317_daily_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809446/ft1_4FGL_J2323.5-0317_daily_bin505.fits outfile=/scratch/kocevski/809446/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin505.fits ra=350.888 dec=-3.29 rad=12.0 tmin=370224001.0 tmax=370483201.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 16.52
user 16.10
sys 0.35

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809446/ft2_4FGL_J2323.5-0317_daily_bin505.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/809446/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin505.fits evtable="EVENTS" outfile="/scratch/kocevski/809446/ft1_filtered_4FGL_J2323.5-0317_daily_bin505.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809446/ft1_filtered_4FGL_J2323.5-0317_daily_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/809446/ft2_4FGL_J2323.5-0317_daily_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/809446/ltcube_370224001_370483201_4FGL_J2323.5-0317_daily_bin505.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/809446/ft2_4FGL_J2323.5-0317_daily_bin505.fits
.....................!
real 10.67
user 10.28
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809446/ft1_filtered_4FGL_J2323.5-0317_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/809446/ft2_4FGL_J2323.5-0317_daily_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/809446/ltcube_370224001_370483201_4FGL_J2323.5-0317_daily_bin505.fits outfile=/scratch/kocevski/809446/expmap_370224001_370483201_4FGL_J2323.5-0317_daily_bin505.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/809446/ltcube_370224001_370483201_4FGL_J2323.5-0317_daily_bin505.fits
.....................!
real 190.64
user 185.58
sys 4.74

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/809446/ft1_filtered_4FGL_J2323.5-0317_daily_bin505.fits scfile=/scratch/kocevski/809446/ft2_4FGL_J2323.5-0317_daily_bin505.fits outfile=/scratch/kocevski/809446/cmap_370224001_370483201_4FGL_J2323.5-0317_daily_bin505.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809446/ft1_filtered_4FGL_J2323.5-0317_daily_bin505.fits scfile=/scratch/kocevski/809446/ft2_4FGL_J2323.5-0317_daily_bin505.fits outfile=/scratch/kocevski/809446/cmap_HighResolution_370224001_370483201_4FGL_J2323.5-0317_daily_bin505.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/809446/ft1_filtered_4FGL_J2323.5-0317_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/809446/ft2_4FGL_J2323.5-0317_daily_bin505.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809446/Model_4FGL_J2323.5-0317_daily_bin505.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/809446/ft1_filtered_4FGL_J2323.5-0317_daily_bin505.fits.....................!
real 69.02
user 67.64
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.345       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.4103       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7254       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.5119       1.0000         .10000E-03   10000.    
    11 'norm      '    9.4212       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6261       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.103       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.287       1.0000         .10000E-03   10000.    
    16 'Prefactor '    48.084       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8061       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12655E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    82.535       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7131       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.3867       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .66362E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0454       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93705       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=   6616.726     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     3019 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.338        12.201        .32794E-07   -.49511E-04
   2  Prefactor     .10000E-03    19.243        .15524E-06** at limit **
   3  Prefactor     .10000E-03    217.81        .12323E-04** at limit **
   4  Prefactor     .10000E-03    11.729       -.31296E-08** at limit **
   5  norm          5.4098        13.249       -.59994E-07   -.79218E-05
   6  Prefactor     .10000E-03    46.028       -.55138E-05** at limit **
   7  Prefactor     4.7233        20.039       -.38426E-06    .20222E-04
   8  Prefactor     .10000E-03    39.194        .40395E-05** at limit **
   9  Prefactor     .10000E-03    3.2539        .59912E-07** at limit **
  10  norm          2.5123        1.3160       -.22617E-06    .12869E-02
  11  norm          9.4219        8.3129        .78145E-06    .15770E-03
  12  Prefactor     4.6265        5.7752        .86443E-06   -.11221E-02
  13  Prefactor     .10000E-03    79.195        .22426E-05** at limit **
  14  Prefactor     40.162        145.44        .82024E-05    .64807E-04
  15  Prefactor     24.254        27.648        .81675E-05    .11590E-02
  16  Prefactor     48.085        26.464       -.22128E-06    .42190E-04
  17  norm          1.8955        214.09       -.34844E-04    .15574E-03
  18  Prefactor     .10000E-03    25.330       -.55021E-06** at limit **
  19  Prefactor     .15589E-03    3.5227       -.26905E-05** at limit **
  20  Prefactor     82.502        44.996       -.12509E-05    .19459E-03
  21  Prefactor     2.7156        17.141        .38766E-06   -.29251E-04
  22  Prefactor     8.3863        12.945        .15393E-06    .16518E-03
  23  Prefactor     .10010E-03    5.9486        .42557E-06** at limit **
  24  Normalizat    1.0460        .22779       -.36231E-06    .46378E-03
  25  Prefactor     .93676        .14551        .10149E-06    .57657E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.3385
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.40979
  Prefactor  = 0.0001
  Prefactor  = 4.72329
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.51232
  norm       = 9.42187
  Prefactor  = 4.62646
  Prefactor  = 0.0001
  Prefactor  = 40.1623
  Prefactor  = 24.2545
  Prefactor  = 48.0849
  norm       = 1.89554
  Prefactor  = 0.0001
  Prefactor  = 0.000155888
  Prefactor  = 82.5017
  Prefactor  = 2.71559
  Prefactor  = 8.38634
  Prefactor  = 0.000100104
  Normalizat = 1.04596
  Prefactor  = 0.93676
 **********
 **   18 **HESSE 
 **********

 FCN=   6616.726     FROM HESSE     STATUS=OK           433 CALLS     3452 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.338        12.001        .11401E-03   -1.5005    
   2  Prefactor     .10000E-03    19.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    217.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.4098        13.238        .17276E-03   -1.5243    
   6  Prefactor     .10000E-03    46.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.7233        20.003        .18511E-03   -1.5273    
   8  Prefactor     .10000E-03    39.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.2559        .14326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5123        1.3085        .61030E-04   -1.5391    
  11  norm          9.4219        8.2788        .13057E-03   -1.5094    
  12  Prefactor     4.6265        5.7511        .93564E-03   -1.5278    
  13  Prefactor     .10000E-03    79.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     40.162        145.48        .63296E-04   -1.4440    
  15  Prefactor     24.254        31.035        .81283E-04   -1.4723    
  16  Prefactor     48.085        26.454        .57827E-04   -1.4320    
  17  norm          1.8955        208.12        .31096E-03   -1.5433    
  18  Prefactor     .10000E-03    25.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .15589E-03    12.962        .38204E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     82.502        45.076        .44213E-04   -1.3889    
  21  Prefactor     2.7156        17.074        .24727E-03   -1.5378    
  22  Prefactor     8.3863        12.975        .13843E-03   -1.5129    
  23  Prefactor     .10010E-03    51.725        .37500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0460        .26312        .31503E-03   -.91506    
  25  Prefactor     .93676        .16906        .22568E-03   -.94868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26503e-09
Minuit parameter uncertainties:
  1  12.0036
  2  2.52631e-06
  3  0.000825252
  4  5.16098e-06
  5  13.2453
  6  8.61973e-05
  7  19.451
  8  4.31809e-05
  9  1.75958e-05
  10  1.30851
  11  8.27977
  12  5.7518
  13  0.000163713
  14  146.795
  15  31.0555
  16  26.4602
  17  39.8659
  18  3.1374e-05
  19  0.0538408
  20  45.0951
  21  13.624
  22  12.9798
  23  0.00465259
  24  0.263444
  25  0.169154
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.512e+00  1.309e+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:  9.368e-01  1.692e-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.046e+00  2.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.79
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 9.72e-08 +/- 5.06e-08
Energy Flux (Fixed Index): 3.98e-05 +/- 2.07e-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) = 6616.31116917
delta logL = 0.414490900909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6616.26187621
delta logL = 0.463783860602

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1578        1.1168        .70098E-02    .15880E-03
   2  alpha         1.6660        .34863        .30106       -.52041E-04
   3  Normalizat    1.0813        .20724        .70218E-01    .16490E-04
   4  Prefactor     .92500        .14162        .45323E-01    .13840E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.15776
  alpha      = 1.66602
  Normalizat = 1.0813
  Prefactor  = 0.924996
 **********
 **   18 **HESSE 
 **********

 FCN=   6616.262     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1578        1.3851        .59618E-04   -1.5414    
   2  alpha         1.6660        .48997        .11730E-01   -.34011    
   3  Normalizat    1.0813        .24142        .31069E-03   -.90354    
   4  Prefactor     .92500        .16462        .22705E-03   -.95273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9845e-12
Minuit parameter uncertainties:
  1  1.38514
  2  0.493569
  3  0.241663
  4  0.164706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809446': 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) = 6616.2618759
delta logL = 0.463784176925

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.158e+00  1.385e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.666e+00  4.936e-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:  9.250e-01  1.647e-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.081e+00  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.76
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 1.67 +/- 0.49
Photon Flux (Free Index): 5.79e-08 +/- 4.70e-08
Energy Flux (Free Index): 5.60e-05 +/- 3.84e-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/809446/cmap_HighResolution_370224001_370483201_4FGL_J2323.5-0317_daily_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.72e-08', energy_flux2='5.60e-05', photon_flux_error='5.06e-08', dlogl='4.64e-01', energy_flux='3.98e-05', photon_flux2='5.79e-08', job_status='DONE', time_completed='2021-09-29 14:43:54.000509', photon_index_error2='0.49', photon_index2='1.67', ts='10.79', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='3.84e-05', EG='1.05', time_epoch_completed='1632951834.0', return_code='0', job_id='809446', GAL2='0.92', EG2='1.08', return_code2='0', energy_flux_error='2.07e-05', photon_flux_error2='4.70e-08', ts2='11.76', photon_index='2.16' WHERE bin_id='505' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:43:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 809446: <4FGL_J2323.5-0317_daily_bin505> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin505> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 14:30:22 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:30:24 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:30:24 2021
Terminated at Wed Sep 29 14:43:54 2021
Results reported at Wed Sep 29 14:43:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin505 350.888 -3.29 370224001 370483201 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 :                                   675.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

