/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 68 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 = 7323
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2323.5-0317_daily_bin330
RA = 350.888, Dec = -3.29
tmin = 324864001, tmax = 325123201
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='808340', job_status='RUN', time_executed='2021-09-29 14:26:50.621510', time_epoch_executed='1632950810.62' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808340

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808340/ft1_4FGL_J2323.5-0317_daily_bin330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808340/ft2_4FGL_J2323.5-0317_daily_bin330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808340/ft1_4FGL_J2323.5-0317_daily_bin330.fits outfile=/scratch/kocevski/808340/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin330.fits ra=350.888 dec=-3.29 rad=12.0 tmin=324864001.0 tmax=325123201.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.83
user 5.55
sys 0.26

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808340/ft1_filtered_4FGL_J2323.5-0317_daily_bin330.fits" evtable="EVENTS" scfile=/scratch/kocevski/808340/ft2_4FGL_J2323.5-0317_daily_bin330.fits sctable="SC_DATA" outfile=/scratch/kocevski/808340/ltcube_324864001_325123201_4FGL_J2323.5-0317_daily_bin330.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/808340/ft2_4FGL_J2323.5-0317_daily_bin330.fits
.....................!
real 11.56
user 11.19
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808340/ft1_filtered_4FGL_J2323.5-0317_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/808340/ft2_4FGL_J2323.5-0317_daily_bin330.fits sctable="SC_DATA" expcube=/scratch/kocevski/808340/ltcube_324864001_325123201_4FGL_J2323.5-0317_daily_bin330.fits outfile=/scratch/kocevski/808340/expmap_324864001_325123201_4FGL_J2323.5-0317_daily_bin330.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/808340/ltcube_324864001_325123201_4FGL_J2323.5-0317_daily_bin330.fits
.....................!
real 192.94
user 188.08
sys 4.54

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/808340/ft1_filtered_4FGL_J2323.5-0317_daily_bin330.fits scfile=/scratch/kocevski/808340/ft2_4FGL_J2323.5-0317_daily_bin330.fits outfile=/scratch/kocevski/808340/cmap_324864001_325123201_4FGL_J2323.5-0317_daily_bin330.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808340/ft1_filtered_4FGL_J2323.5-0317_daily_bin330.fits scfile=/scratch/kocevski/808340/ft2_4FGL_J2323.5-0317_daily_bin330.fits outfile=/scratch/kocevski/808340/cmap_HighResolution_324864001_325123201_4FGL_J2323.5-0317_daily_bin330.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.56
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808340/ft1_filtered_4FGL_J2323.5-0317_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/808340/ft2_4FGL_J2323.5-0317_daily_bin330.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808340/Model_4FGL_J2323.5-0317_daily_bin330.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/808340/ft1_filtered_4FGL_J2323.5-0317_daily_bin330.fits.....................!
real 52.20
user 50.96
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6669       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    90.200       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.972       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .46731       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7082       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.150       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2106       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10657E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.560       1.0000         .10000E-03   10000.    
    17 'norm      '    10.173       1.0000         .10000E-03   10000.    
    18 'Prefactor '    60.978       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0653       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10885E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98200       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91128       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=   5158.912     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2908 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6664        7.6745        .21332E-06   -.89262E-04
   2  Prefactor     .10000E-03    15.955       -.86610E-07** at limit **
   3  Prefactor     90.187        56.798        .10054E-05    .24336E-04
   4  Prefactor     10.972        10.900       -.75586E-07   -.33605E-05
   5  norm          .10000E-03    15.238       -.46828E-06** at limit **
   6  Prefactor     .10000E-03    17.277        .28808E-06** at limit **
   7  Prefactor     .10000E-03    6.8270       -.13041E-06** at limit **
   8  Prefactor     .10000E-03    13.381       -.34599E-06** at limit **
   9  Prefactor     .10000E-03    3.0715        .26831E-06** at limit **
  10  norm          .46722        .64984        .56442E-07    .24255E-03
  11  norm          3.7071        5.7083        .16629E-05    .34583E-03
  12  Prefactor     22.150        13.381       -.24565E-07   -.20060E-04
  13  Prefactor     1.1710        389.84        .10814E-04   -.37668E-05
  14  Prefactor     .10000E-03    46.710       -.10540E-06** at limit **
  15  Prefactor     .10000E-03    3.9921       -.70801E-07** at limit **
  16  Prefactor     10.560        27.614        .12787E-06   -.58165E-05
  17  norm          10.174        17.875       -.20225E-06   -.22932E-04
  18  Prefactor     61.046        74.741       -.54658E-05   -.88887E-04
  19  Prefactor     6.0656        4.2858        .48696E-07   -.98147E-04
  20  Prefactor     .10000E-03    12.011        .25634E-06** at limit **
  21  Prefactor     .10000E-03    5.7857       -.18315E-07** at limit **
  22  Prefactor     .10000E-03    22.205        .55352E-06** at limit **
  23  Prefactor     .10008E-03    8.2223        .24180E-05** at limit **
  24  Normalizat    .98208        .21360       -.84785E-06   -.22076E-03
  25  Prefactor     .91124        .15032        .24520E-06   -.22317E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.66643
  Prefactor  = 0.0001
  Prefactor  = 90.1873
  Prefactor  = 10.9723
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.467221
  norm       = 3.70712
  Prefactor  = 22.1498
  Prefactor  = 1.171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5595
  norm       = 10.1744
  Prefactor  = 61.0455
  Prefactor  = 6.06558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100076
  Normalizat = 0.982084
  Prefactor  = 0.91124
 **********
 **   18 **HESSE 
 **********

 FCN=   5158.912     FROM HESSE     STATUS=OK           429 CALLS     3337 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6664        7.6117        .21093E-03   -1.5325    
   2  Prefactor     .10000E-03    15.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     90.187        57.025        .42309E-04   -1.3806    
   4  Prefactor     10.972        10.897        .12095E-03   -1.5045    
   5  norm          .10000E-03    15.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.8348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.0808        .12300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .46722        .60751        .65869E-03   -1.5571    
  11  norm          3.7071        5.8188        .10367E-02   -1.5323    
  12  Prefactor     22.150        13.367        .85107E-04   -1.4766    
  13  Prefactor     1.1710        405.33        .41122E-02   -1.5492    
  14  Prefactor     .10000E-03    46.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9972        .14004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.560        27.578        .12329E-03   -1.5058    
  17  norm          10.174        17.862        .12563E-03   -1.5070    
  18  Prefactor     61.046        75.768        .25691E-03   -1.4144    
  19  Prefactor     6.0656        4.2910        .11521E-03   -1.5215    
  20  Prefactor     .10000E-03    12.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.7886        .16874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10008E-03    27.560        .32806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .98208        .24759        .27573E-03   -.93633    
  25  Prefactor     .91124        .17561        .20844E-03   -.95749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57075e-09
Minuit parameter uncertainties:
  1  7.61375
  2  4.8267e-06
  3  57.0592
  4  10.8987
  5  2.93093e-05
  6  9.84571e-06
  7  9.5628e-06
  8  7.54155e-06
  9  1.0855e-05
  10  0.607519
  11  5.81966
  12  13.3689
  13  43.8732
  14  7.01523e-06
  15  4.35742e-06
  16  27.611
  17  17.8713
  18  75.8879
  19  4.2912
  20  3.49626e-06
  21  1.28952e-06
  22  2.54598e-05
  23  0.00290044
  24  0.247876
  25  0.175723
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  4.672e-01  6.075e-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:  9.112e-01  1.757e-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.821e-01  2.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.11
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.81e-08 +/- 2.35e-08
Energy Flux (Fixed Index): 7.41e-06 +/- 9.63e-06

TS (Fixed Index): 1.11
Ra Dec: 350.888 -3.290
Photon Flux Upper Limit: 8.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.55e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/808340/likelihoodResults_324864001_325123201_4FGL_J2323.5-0317_daily_bin330.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) = 5158.90463522
delta logL = 0.00724675501533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5158.9045529
delta logL = 0.00732907540623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .46191       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0364       1.0000          .0000       5.0000    
     3 'Normalizat'    .98427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91046       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=   5158.905     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      188 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46177        .64589        .11114E-01    .38341E-03
   2  alpha         2.0353        .98343        .42083E-01   -.97169E-04
   3  Normalizat    .98428        .20347        .45970E-01    .12527E-04
   4  Prefactor     .91045        .14911        .45138E-01    .62373E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.461767
  alpha      = 2.0353
  Normalizat = 0.984282
  Prefactor  = 0.910455
 **********
 **   18 **HESSE 
 **********

 FCN=   5158.905     FROM HESSE     STATUS=OK            33 CALLS      221 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .46177        .60899        .66085E-03   -1.5572    
   2  alpha         2.0353        .99577        .84167E-02   -.18697    
   3  Normalizat    .98428        .23662        .27546E-03   -.93559    
   4  Prefactor     .91045        .17358        .20852E-03   -.95777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41784e-12
Minuit parameter uncertainties:
  1  0.609002
  2  1.02528
  3  0.236872
  4  0.173688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808340': 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) = 5158.90455236
delta logL = 0.00732961544327

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  4.618e-01  6.090e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.035e+00  1.025e+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:  9.105e-01  1.737e-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.843e-01  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.04 +/- 1.03
Photon Flux (Free Index): 1.60e-08 +/- 2.70e-08
Energy Flux (Free Index): 7.80e-06 +/- 1.08e-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/808340/cmap_HighResolution_324864001_325123201_4FGL_J2323.5-0317_daily_bin330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-05', comment='SUCCESS', photon_flux='1.81e-08', energy_flux2='7.80e-06', photon_flux_error='2.35e-08', dlogl='7.33e-03', energy_flux='7.41e-06', photon_flux2='1.60e-08', job_status='DONE', time_completed='2021-09-29 14:37:33.429488', photon_index_error2='1.03', photon_index2='2.04', ts='1.11', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='8.67e-08', energy_flux_error2='1.08e-05', EG='0.98', time_epoch_completed='1632951453.43', return_code='0', job_id='808340', GAL2='0.91', EG2='0.98', return_code2='0', energy_flux_error='9.63e-06', photon_flux_error2='2.70e-08', ts2='1.13', photon_index='2.16' WHERE bin_id='330' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:37:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 808340: <4FGL_J2323.5-0317_daily_bin330> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin330> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:25:32 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:25:34 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:25:34 2021
Terminated at Wed Sep 29 14:37:34 2021
Results reported at Wed Sep 29 14:37:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin330 350.888 -3.29 324864001 325123201 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 :                                   615.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            722 sec.

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

