/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 2 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2323.5-0317_daily_bin63
RA = 350.888, Dec = -3.29
tmin = 255657601, tmax = 255916801
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='806935', job_status='RUN', time_executed='2021-09-29 14:21:04.217008', time_epoch_executed='1632950464.22' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='63'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806935

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806935/ft1_4FGL_J2323.5-0317_daily_bin63.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806935/ft2_4FGL_J2323.5-0317_daily_bin63.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806935/ft1_4FGL_J2323.5-0317_daily_bin63.fits outfile=/scratch/kocevski/806935/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin63.fits ra=350.888 dec=-3.29 rad=12.0 tmin=255657601.0 tmax=255916801.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 1.62
user 1.28
sys 0.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806935/ft1_filtered_4FGL_J2323.5-0317_daily_bin63.fits" evtable="EVENTS" scfile=/scratch/kocevski/806935/ft2_4FGL_J2323.5-0317_daily_bin63.fits sctable="SC_DATA" outfile=/scratch/kocevski/806935/ltcube_255657601_255916801_4FGL_J2323.5-0317_daily_bin63.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/806935/ft2_4FGL_J2323.5-0317_daily_bin63.fits
.....................!
real 12.42
user 12.04
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806935/ft1_filtered_4FGL_J2323.5-0317_daily_bin63.fits evtable="EVENTS" scfile=/scratch/kocevski/806935/ft2_4FGL_J2323.5-0317_daily_bin63.fits sctable="SC_DATA" expcube=/scratch/kocevski/806935/ltcube_255657601_255916801_4FGL_J2323.5-0317_daily_bin63.fits outfile=/scratch/kocevski/806935/expmap_255657601_255916801_4FGL_J2323.5-0317_daily_bin63.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/806935/ltcube_255657601_255916801_4FGL_J2323.5-0317_daily_bin63.fits
.....................!
real 190.90
user 185.40
sys 5.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/806935/ft1_filtered_4FGL_J2323.5-0317_daily_bin63.fits scfile=/scratch/kocevski/806935/ft2_4FGL_J2323.5-0317_daily_bin63.fits outfile=/scratch/kocevski/806935/cmap_255657601_255916801_4FGL_J2323.5-0317_daily_bin63.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806935/ft1_filtered_4FGL_J2323.5-0317_daily_bin63.fits scfile=/scratch/kocevski/806935/ft2_4FGL_J2323.5-0317_daily_bin63.fits outfile=/scratch/kocevski/806935/cmap_HighResolution_255657601_255916801_4FGL_J2323.5-0317_daily_bin63.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/806935/ft1_filtered_4FGL_J2323.5-0317_daily_bin63.fits evtable="EVENTS" scfile=/scratch/kocevski/806935/ft2_4FGL_J2323.5-0317_daily_bin63.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/806935/Model_4FGL_J2323.5-0317_daily_bin63.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/806935/ft1_filtered_4FGL_J2323.5-0317_daily_bin63.fits.....................!
real 63.21
user 61.90
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39139       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .14347       1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.849       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4548       1.0000         .10000E-03   10000.    
     8 'Prefactor '    58.869       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10652E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .24381       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3626       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    71.356       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11853E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.087       1.0000         .10000E-03   10000.    
    16 'Prefactor '    61.162       1.0000         .10000E-03   10000.    
    17 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.056       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7042       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.474       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86311       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93530       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=   6904.519     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     3008 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37871        6.1889       -.13708E-05    .41354E-03
   2  Prefactor     .10000E-03    26.749       -.33336E-07** at limit **
   3  Prefactor     .10000E-03    8.9362       -.53237E-08** at limit **
   4  Prefactor     .10000E-03    2.4888        .99556E-08** at limit **
   5  norm          .10197E-03    7.5112       -.35052E-06** at limit **
   6  Prefactor     38.837        36.468       -.23529E-05   -.12196E-04
   7  Prefactor     6.4610        9.1587       -.22936E-06    .13677E-04
   8  Prefactor     58.810        54.130       -.23241E-06    .17998E-03
   9  Prefactor     .10011E-03    7.0481       -.50422E-05** at limit **
  10  norm          .24353        .64507       -.16775E-06   -.13508E-03
  11  norm          2.3659        4.7809        .44544E-05    .46357E-03
  12  Prefactor     .10000E-03    2.8414        .15569E-08** at limit **
  13  Prefactor     71.308        51.655       -.51657E-05   -.30396E-04
  14  Prefactor     .10000E-03    107.81       -.17231E-05** at limit **
  15  Prefactor     21.081        12.024        .31124E-08    .18938E-03
  16  Prefactor     61.128        30.848       -.27658E-06    .12037E-04
  17  norm          .10000E-03    7.9058        .96056E-09** at limit **
  18  Prefactor     34.012        38.837       -.15608E-05    .35958E-04
  19  Prefactor     1.7015        4.2051        .32289E-06   -.21077E-03
  20  Prefactor     .10000E-03    7.5589       -.28798E-07** at limit **
  21  Prefactor     .10000E-03    7.2104        .35896E-07** at limit **
  22  Prefactor     11.462        13.554       -.97526E-06    .25211E-04
  23  Prefactor     .10000E-03    1.6937        .50415E-08** at limit **
  24  Normalizat    .86345        .17958        .31645E-05    .38909E-03
  25  Prefactor     .93557        .12581       -.55616E-06    .75519E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.378707
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000101965
  Prefactor  = 38.8372
  Prefactor  = 6.46098
  Prefactor  = 58.8104
  Prefactor  = 0.000100106
  norm       = 0.243528
  norm       = 2.3659
  Prefactor  = 0.0001
  Prefactor  = 71.3078
  Prefactor  = 0.0001
  Prefactor  = 21.0812
  Prefactor  = 61.1276
  norm       = 0.0001
  Prefactor  = 34.0121
  Prefactor  = 1.70152
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4624
  Prefactor  = 0.0001
  Normalizat = 0.86345
  Prefactor  = 0.935571
 **********
 **   18 **HESSE 
 **********

 FCN=   6904.519     FROM HESSE     STATUS=OK           435 CALLS     3443 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37871        33.267        .39172E-02   -1.5585    
   2  Prefactor     .10000E-03    26.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.9428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4938        .12802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10197E-03    13.985        .65213E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     38.837        36.592        .64306E-04   -1.4461    
   7  Prefactor     6.4610        9.1530        .15797E-03   -1.5200    
   8  Prefactor     58.810        54.289        .52290E-04   -1.4173    
   9  Prefactor     .10011E-03    34.332        .36293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .24353        .83414        .98689E-03   -1.5609    
  11  norm          2.3659        4.8183        .23967E-03   -1.5400    
  12  Prefactor     .10000E-03    2.8448        .13677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     71.308        51.704        .47524E-04   -1.4017    
  14  Prefactor     .10000E-03    107.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.081        11.757        .87225E-04   -1.4789    
  16  Prefactor     61.128        30.867        .51306E-04   -1.4143    
  17  norm          .10000E-03    7.9072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.012        38.848        .68668E-04   -1.4541    
  19  Prefactor     1.7015        4.1005        .22698E-03   -1.5447    
  20  Prefactor     .10000E-03    7.5635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.2235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.462        13.563        .11827E-03   -1.5031    
  23  Prefactor     .10000E-03    1.6961        .10559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .86345        .20273        .28031E-03   -.97757    
  25  Prefactor     .93557        .14394        .20227E-03   -.94909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78039e-08
Minuit parameter uncertainties:
  1  7.10199
  2  8.1346e-06
  3  1.1198e-05
  4  2.86517e-06
  5  0.0104875
  6  36.6136
  7  9.15499
  8  54.3347
  9  0.00381217
  10  0.834176
  11  4.81908
  12  7.13191e-07
  13  51.7364
  14  0.000124446
  15  11.7587
  16  30.8749
  17  2.48345e-06
  18  38.8766
  19  4.10113
  20  1.16619e-06
  21  1.08234e-05
  22  13.5671
  23  1.6034e-06
  24  0.202909
  25  0.144
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.435e-01  8.342e-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.356e-01  1.440e-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:  8.634e-01  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/806935/likelihoodResults_255657601_255916801_4FGL_J2323.5-0317_daily_bin63.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) = 6904.19046847
delta logL = 0.328347626642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6904.19010266
delta logL = 0.328713435455

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25765       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3606       1.0000          .0000       5.0000    
     3 'Normalizat'    .82916       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94838       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=   6904.190     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      215 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25750        4.8718        .10238E-01    .24159E-02
   2  alpha         3.3610        4.1463        .44759        .51582E-04
   3  Normalizat    .82913        .33074E-01    .64552E-01    .21486E-04
   4  Prefactor     .94836        .25002E-01    .45619E-01    .45104E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.257501
  alpha      = 3.36105
  Normalizat = 0.829125
  Prefactor  = 0.948358
 **********
 **   18 **HESSE 
 **********

 FCN=   6904.190     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25750        .82238        .49692E-04   -1.5606    
   2  alpha         3.3610        1.9252        .24282E-01    .35162    
   3  Normalizat    .82913        .19558        .28555E-03   -.98997    
   4  Prefactor     .94836        .14436        .20094E-03   -.94471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.886e-08
Minuit parameter uncertainties:
  1  0.822412
  2  2.25748
  3  0.195743
  4  0.144418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806935': 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) = 6904.19010245
delta logL = 0.328713640815

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.575e-01  8.224e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  3.361e+00  2.257e+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.484e-01  1.444e-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:  8.291e-01  1.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
Ra Dec: 350.888 -3.290

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/806935/cmap_HighResolution_255657601_255916801_4FGL_J2323.5-0317_daily_bin63.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-05', job_status='DONE', photon_flux_upper_limit='8.33e-08', time_completed='2021-09-29 14:32:56.821928', job_id='806935', GAL2='0.95', fit_tolerance='1e-08', EG2='0.83', EG='0.86', time_epoch_completed='1632951176.82', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='3.29e-01', ts2='0.78', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='63' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:32:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 806935: <4FGL_J2323.5-0317_daily_bin63> in cluster <slac> Done

Job <4FGL_J2323.5-0317_daily_bin63> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 14:20:52 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:20:54 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:20:54 2021
Terminated at Wed Sep 29 14:32:57 2021
Results reported at Wed Sep 29 14:32:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin63 350.888 -3.29 255657601 255916801 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 :                                   706.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            725 sec.

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

