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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin681
RA = 350.888, Dec = -3.29
tmin = 415843201, tmax = 416102401
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='810811', job_status='RUN', time_executed='2021-09-29 14:38:39.455150', time_epoch_executed='1632951519.46' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='681'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/810811

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/810811/ft1_4FGL_J2323.5-0317_daily_bin681.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/810811/ft2_4FGL_J2323.5-0317_daily_bin681.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/810811/ft1_4FGL_J2323.5-0317_daily_bin681.fits outfile=/scratch/kocevski/810811/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin681.fits ra=350.888 dec=-3.29 rad=12.0 tmin=415843201.0 tmax=416102401.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.86
user 5.58
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/810811/ft1_filtered_4FGL_J2323.5-0317_daily_bin681.fits" evtable="EVENTS" scfile=/scratch/kocevski/810811/ft2_4FGL_J2323.5-0317_daily_bin681.fits sctable="SC_DATA" outfile=/scratch/kocevski/810811/ltcube_415843201_416102401_4FGL_J2323.5-0317_daily_bin681.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/810811/ft2_4FGL_J2323.5-0317_daily_bin681.fits
.....................!
real 11.96
user 11.57
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/810811/ft1_filtered_4FGL_J2323.5-0317_daily_bin681.fits evtable="EVENTS" scfile=/scratch/kocevski/810811/ft2_4FGL_J2323.5-0317_daily_bin681.fits sctable="SC_DATA" expcube=/scratch/kocevski/810811/ltcube_415843201_416102401_4FGL_J2323.5-0317_daily_bin681.fits outfile=/scratch/kocevski/810811/expmap_415843201_416102401_4FGL_J2323.5-0317_daily_bin681.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/810811/ltcube_415843201_416102401_4FGL_J2323.5-0317_daily_bin681.fits
.....................!
real 190.78
user 185.62
sys 4.80

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/810811/ft1_filtered_4FGL_J2323.5-0317_daily_bin681.fits scfile=/scratch/kocevski/810811/ft2_4FGL_J2323.5-0317_daily_bin681.fits outfile=/scratch/kocevski/810811/cmap_415843201_416102401_4FGL_J2323.5-0317_daily_bin681.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=350.888 yref=-3.29 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/810811/ft1_filtered_4FGL_J2323.5-0317_daily_bin681.fits scfile=/scratch/kocevski/810811/ft2_4FGL_J2323.5-0317_daily_bin681.fits outfile=/scratch/kocevski/810811/cmap_HighResolution_415843201_416102401_4FGL_J2323.5-0317_daily_bin681.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/810811/ft1_filtered_4FGL_J2323.5-0317_daily_bin681.fits evtable="EVENTS" scfile=/scratch/kocevski/810811/ft2_4FGL_J2323.5-0317_daily_bin681.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/810811/Model_4FGL_J2323.5-0317_daily_bin681.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/810811/ft1_filtered_4FGL_J2323.5-0317_daily_bin681.fits.....................!
real 45.65
user 44.23
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3397       1.0000         .10000E-03   10000.    
     2 'Prefactor '    177.36       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.661       1.0000         .10000E-03   10000.    
     5 'norm      '    .46076       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.111       1.0000         .10000E-03   10000.    
     8 'Prefactor '    58.184       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10592E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.2594       1.0000         .10000E-03   10000.    
    11 'norm      '    13.716       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6386       1.0000         .10000E-03   10000.    
    13 'Prefactor '    59.986       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    118.48       1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.3853       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.836       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.4886       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4173       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74387       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=   4252.447     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2940 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3423        27.868       -.60232E-05   -.54632E-04
   2  Prefactor     177.18        121.75        .42334E-05   -.92087E-05
   3  Prefactor     .10000E-03    13.209        .51560E-07** at limit **
   4  Prefactor     22.659        14.635       -.21820E-08   -.15390E-04
   5  norm          .29803        21.895        .25021E-05   -.33424E-03
   6  Prefactor     .10000E-03    15.428       -.19085E-07** at limit **
   7  Prefactor     30.110        26.928       -.11042E-06   -.45094E-04
   8  Prefactor     58.262        69.950       -.11098E-05   -.96649E-04
   9  Prefactor     .10000E-03    24.797        .70506E-05** at limit **
  10  norm          3.2593        1.5503        .34555E-08   -.34658E-03
  11  norm          13.720        10.328       -.16349E-06   -.24853E-03
  12  Prefactor     6.6351        15.361        .20641E-07   -.56620E-06
  13  Prefactor     59.983        56.156       -.67543E-07   -.10904E-04
  14  Prefactor     .10000E-03    85.866       -.40599E-07** at limit **
  15  Prefactor     .10000E-03    3.9594       -.16040E-07** at limit **
  16  Prefactor     118.47        61.600       -.79990E-07   -.13014E-04
  17  norm          .10000E-03    11.733       -.23890E-07** at limit **
  18  Prefactor     .10000E-03    53.758        .36914E-06** at limit **
  19  Prefactor     8.3835        5.3024        .41294E-07   -.29414E-04
  20  Prefactor     .10000E-03    25.101       -.14114E-06** at limit **
  21  Prefactor     19.832        24.806       -.95860E-07   -.33232E-06
  22  Prefactor     .10000E-03    19.297       -.62414E-06** at limit **
  23  Prefactor     9.4796        11.114        .11206E-05    .48137E-04
  24  Normalizat    1.4171        .28446       -.14688E-05   -.16055E-03
  25  Prefactor     .74413        .20356        .16276E-05   -.21084E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.34231
  Prefactor  = 177.184
  Prefactor  = 0.0001
  Prefactor  = 22.6594
  norm       = 0.298025
  Prefactor  = 0.0001
  Prefactor  = 30.1104
  Prefactor  = 58.2623
  Prefactor  = 0.000100001
  norm       = 3.25935
  norm       = 13.7201
  Prefactor  = 6.63513
  Prefactor  = 59.9827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 118.469
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.38351
  Prefactor  = 0.0001
  Prefactor  = 19.8325
  Prefactor  = 0.0001
  Prefactor  = 9.47957
  Normalizat = 1.41711
  Prefactor  = 0.744131
 **********
 **   18 **HESSE 
 **********

 FCN=   4252.447     FROM HESSE     STATUS=OK           431 CALLS     3371 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3423        27.537        .17392E-03   -1.5246    
   2  Prefactor     177.18        120.07        .15153E-03   -1.3038    
   3  Prefactor     .10000E-03    13.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.659        14.639        .84144E-04   -1.4756    
   5  norm          .29803        34.932        .75988E-01   -1.5599    
   6  Prefactor     .10000E-03    15.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.110        26.934        .73015E-04   -1.4610    
   8  Prefactor     58.262        70.791        .52595E-04   -1.4180    
   9  Prefactor     .10000E-03    24.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2593        1.5494        .53147E-04   -1.5347    
  11  norm          13.720        10.328        .10815E-03   -1.4967    
  12  Prefactor     6.6351        15.332        .15574E-03   -1.5193    
  13  Prefactor     59.983        56.158        .51803E-04   -1.4157    
  14  Prefactor     .10000E-03    85.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9630        .12671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     118.47        61.544        .36969E-04   -1.3527    
  17  norm          .10000E-03    11.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    53.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.3835        5.3030        .11474E-03   -1.5129    
  20  Prefactor     .10000E-03    25.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.832        24.831        .89930E-04   -1.4817    
  22  Prefactor     .10000E-03    19.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.4796        11.098        .13010E-03   -1.5092    
  24  Normalizat    1.4171        .33300        .27538E-03   -.80135    
  25  Prefactor     .74413        .23536        .26900E-03   -1.0182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32882e-10
Minuit parameter uncertainties:
  1  24.2753
  2  120.236
  3  2.41638e-06
  4  14.6412
  5  6.45583
  6  1.55255e-06
  7  26.9453
  8  70.8936
  9  0.000313165
  10  1.54938
  11  10.3295
  12  15.341
  13  56.2077
  14  3.74376e-05
  15  5.81e-07
  16  61.5774
  17  2.58514e-06
  18  3.72457e-05
  19  5.30326
  20  2.60653e-06
  21  24.8443
  22  2.03168e-05
  23  11.1003
  24  0.333517
  25  0.23568
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.259e+00  1.549e+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:  7.441e-01  2.357e-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.417e+00  3.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.42
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.26e-07 +/- 5.99e-08
Energy Flux (Fixed Index): 5.17e-05 +/- 2.46e-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) = 4251.9449831
delta logL = 0.502250969179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4251.93386297
delta logL = 0.513371094742

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1925       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6926       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4639       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72208       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=   4251.934     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      210 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1925        1.5740        .56694E-02   -.41156E-02
   2  alpha         1.6926        .38034        .24872       -.41488E-04
   3  Normalizat    1.4639        .26300        .61481E-01    .24784E-04
   4  Prefactor     .72207        .19352        .61716E-01    .34949E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.19254
  alpha      = 1.69257
  Normalizat = 1.46389
  Prefactor  = 0.722071
 **********
 **   18 **HESSE 
 **********

 FCN=   4251.934     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1925        1.6688        .55162E-04   -1.5351    
   2  alpha         1.6926        .43638        .10146E-01   -.32887    
   3  Normalizat    1.4639        .31112        .27191E-03   -.78798    
   4  Prefactor     .72207        .22841        .27299E-03   -1.0267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6326e-09
Minuit parameter uncertainties:
  1  1.66884
  2  0.438896
  3  0.311522
  4  0.228708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/810811': 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) = 4251.93386297
delta logL = 0.513371097079

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  3.193e+00  1.669e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  1.693e+00  4.389e-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.221e-01  2.287e-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.464e+00  3.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.50
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 1.69 +/- 0.44
Photon Flux (Free Index): 8.69e-08 +/- 5.56e-08
Energy Flux (Free Index): 7.93e-05 +/- 5.71e-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/810811/cmap_HighResolution_415843201_416102401_4FGL_J2323.5-0317_daily_bin681.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.26e-07', energy_flux2='7.93e-05', photon_flux_error='5.99e-08', dlogl='5.13e-01', energy_flux='5.17e-05', photon_flux2='8.69e-08', job_status='DONE', time_completed='2021-09-29 14:47:33.647780', photon_index_error2='0.44', photon_index2='1.69', ts='14.42', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='5.71e-05', EG='1.42', time_epoch_completed='1632952053.65', return_code='0', job_id='810811', GAL2='0.72', EG2='1.46', return_code2='0', energy_flux_error='2.46e-05', photon_flux_error2='5.56e-08', ts2='15.50', photon_index='2.16' WHERE bin_id='681' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:47:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 810811: <4FGL_J2323.5-0317_daily_bin681> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin681 350.888 -3.29 415843201 416102401 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 :                                   526.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            742 sec.

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

