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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin203
RA = 350.888, Dec = -3.29
tmin = 291945601, tmax = 292204801
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='808145', job_status='RUN', time_executed='2021-09-29 14:29:15.279812', time_epoch_executed='1632950955.28' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='203'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808145

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808145/ft1_4FGL_J2323.5-0317_daily_bin203.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808145/ft2_4FGL_J2323.5-0317_daily_bin203.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808145/ft1_4FGL_J2323.5-0317_daily_bin203.fits outfile=/scratch/kocevski/808145/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin203.fits ra=350.888 dec=-3.29 rad=12.0 tmin=291945601.0 tmax=292204801.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 3.77
user 3.52
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/808145/ft2_4FGL_J2323.5-0317_daily_bin203.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/808145/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin203.fits evtable="EVENTS" outfile="/scratch/kocevski/808145/ft1_filtered_4FGL_J2323.5-0317_daily_bin203.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/808145/ft1_filtered_4FGL_J2323.5-0317_daily_bin203.fits" evtable="EVENTS" scfile=/scratch/kocevski/808145/ft2_4FGL_J2323.5-0317_daily_bin203.fits sctable="SC_DATA" outfile=/scratch/kocevski/808145/ltcube_291945601_292204801_4FGL_J2323.5-0317_daily_bin203.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/808145/ft2_4FGL_J2323.5-0317_daily_bin203.fits
.....................!
real 11.60
user 11.23
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808145/ft1_filtered_4FGL_J2323.5-0317_daily_bin203.fits evtable="EVENTS" scfile=/scratch/kocevski/808145/ft2_4FGL_J2323.5-0317_daily_bin203.fits sctable="SC_DATA" expcube=/scratch/kocevski/808145/ltcube_291945601_292204801_4FGL_J2323.5-0317_daily_bin203.fits outfile=/scratch/kocevski/808145/expmap_291945601_292204801_4FGL_J2323.5-0317_daily_bin203.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/808145/ltcube_291945601_292204801_4FGL_J2323.5-0317_daily_bin203.fits
.....................!
real 190.86
user 185.13
sys 5.38

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/808145/ft1_filtered_4FGL_J2323.5-0317_daily_bin203.fits scfile=/scratch/kocevski/808145/ft2_4FGL_J2323.5-0317_daily_bin203.fits outfile=/scratch/kocevski/808145/cmap_291945601_292204801_4FGL_J2323.5-0317_daily_bin203.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808145/ft1_filtered_4FGL_J2323.5-0317_daily_bin203.fits scfile=/scratch/kocevski/808145/ft2_4FGL_J2323.5-0317_daily_bin203.fits outfile=/scratch/kocevski/808145/cmap_HighResolution_291945601_292204801_4FGL_J2323.5-0317_daily_bin203.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808145/ft1_filtered_4FGL_J2323.5-0317_daily_bin203.fits evtable="EVENTS" scfile=/scratch/kocevski/808145/ft2_4FGL_J2323.5-0317_daily_bin203.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808145/Model_4FGL_J2323.5-0317_daily_bin203.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/808145/ft1_filtered_4FGL_J2323.5-0317_daily_bin203.fits....................!
real 62.34
user 60.93
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .66467       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1388       1.0000         .10000E-03   10000.    
     5 'norm      '    8.2479       1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.347       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12265E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4026       1.0000         .10000E-03   10000.    
    10 'norm      '    .73779       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.533       1.0000         .10000E-03   10000.    
    13 'Prefactor '    64.687       1.0000         .10000E-03   10000.    
    14 'Prefactor '    93.191       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.184       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.593       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.544       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.9464       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98608       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89491       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6498.289     FROM MIGRAD    STATUS=CONVERGED   1035 CALLS     3400 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6677        .15054E-02** at limit **
   2  Prefactor     .55748        45.511        .15814        .12683E-03
   3  Prefactor     .10000E-03    19.285        .18142E-02** at limit **
   4  Prefactor     8.1386        7.3222        .14053E-03    .18606E-05
   5  norm          8.2477        12.505        .13960E-03   -.13438E-04
   6  Prefactor     41.337        39.595        .62341E-04   -.12218E-04
   7  Prefactor     .10024E-03    12.759        .82416E-01** at limit **
   8  Prefactor     .10000E-03    65.244        .18142E-02** at limit **
   9  Prefactor     4.3982        6.4041        .19194E-03   -.33762E-05
  10  norm          .73667        .91106        .81572E-03    .35699E-03
  11  norm          .10000E-03    2.1704        .11515E-02** at limit **
  12  Prefactor     11.532        10.835        .11796E-03   -.91557E-05
  13  Prefactor     64.672        49.459        .49897E-04    .60105E-04
  14  Prefactor     93.376        199.36        .20815E-03    .34627E-04
  15  Prefactor     .10000E-03    7.4339        .18142E-02** at limit **
  16  Prefactor     16.186        17.879        .99557E-04   -.10277E-05
  17  norm          .10000E-03    9.4992        .18142E-02** at limit **
  18  Prefactor     25.597        51.692        .79185E-04    .19382E-04
  19  Prefactor     .10000E-03    4.1131        .31294E-03** at limit **
  20  Prefactor     41.537        40.437        .62193E-04    .62626E-04
  21  Prefactor     .10000E-03    29.469        .18142E-02** at limit **
  22  Prefactor     .10000E-03    8.5041        .18142E-02** at limit **
  23  Prefactor     9.9460        6.7422        .12706E-03   -.19238E-04
  24  Normalizat    .98625        .21102        .27300E-03    .15454E-03
  25  Prefactor     .89488        .15353        .21000E-03   -.19218E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.557484
  Prefactor  = 0.0001
  Prefactor  = 8.13863
  norm       = 8.24774
  Prefactor  = 41.3369
  Prefactor  = 0.000100238
  Prefactor  = 0.000100001
  Prefactor  = 4.39819
  norm       = 0.736667
  norm       = 0.0001
  Prefactor  = 11.5324
  Prefactor  = 64.6717
  Prefactor  = 93.376
  Prefactor  = 0.0001
  Prefactor  = 16.1858
  norm       = 0.0001
  Prefactor  = 25.5967
  Prefactor  = 0.0001
  Prefactor  = 41.5373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.94601
  Normalizat = 0.986249
  Prefactor  = 0.894879
 **********
 **   18 **HESSE 
 **********

 FCN=   6498.289     FROM HESSE     STATUS=OK           423 CALLS     3823 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6679        .30109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55748        44.713        .16022       -1.5559    
   3  Prefactor     .10000E-03    19.287        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.1386        7.3221        .56214E-05   -1.5137    
   5  norm          8.2477        12.504        .55838E-05   -1.5134    
   6  Prefactor     41.337        39.574        .24936E-05   -1.4421    
   7  Prefactor     .10024E-03    12.401        .84191E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    65.251        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.3982        6.4031        .76775E-05   -1.5288    
  10  norm          .73667        .90914        .32629E-04   -1.5536    
  11  norm          .10000E-03    2.1708        .23029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.532        10.835        .47185E-05   -1.5029    
  13  Prefactor     64.672        49.459        .99794E-05   -1.4098    
  14  Prefactor     93.376        199.07        .83261E-05   -1.3772    
  15  Prefactor     .10000E-03    7.4365        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.186        17.877        .39823E-05   -1.4903    
  17  norm          .10000E-03    9.4998        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.597        51.709        .31674E-05   -1.4696    
  19  Prefactor     .10000E-03    4.1133        .62589E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     41.537        40.436        .12439E-04   -1.4418    
  21  Prefactor     .10000E-03    29.480        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.5052        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.9460        6.7421        .50823E-05   -1.5077    
  24  Normalizat    .98625        .21116        .10920E-04   -.93493    
  25  Prefactor     .89488        .15365        .84001E-05   -.96320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94976e-10
Minuit parameter uncertainties:
  1  6.84024e-06
  2  9.99217
  3  4.58532e-05
  4  7.3229
  5  12.5081
  6  39.5989
  7  0.00343596
  8  0.00062358
  9  6.40411
  10  0.909153
  11  1.18165e-05
  12  10.8367
  13  49.4902
  14  200.52
  15  2.29759e-05
  16  17.8831
  17  8.43287e-06
  18  51.7995
  19  1.08074e-05
  20  40.4622
  21  0.000156077
  22  3.22115e-05
  23  6.74263
  24  0.211341
  25  0.153728
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  7.367e-01  9.092e-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:  8.949e-01  1.537e-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.862e-01  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.96
Ra Dec: 350.888 -3.290
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/808145/likelihoodResults_291945601_292204801_4FGL_J2323.5-0317_daily_bin203.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) = 6498.28234624
delta logL = 0.00635262538526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6498.28205798
delta logL = 0.00664088379017

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .72543       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2687       1.0000          .0000       5.0000    
     3 'Normalizat'    .98259       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89662       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=   6498.282     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      204 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72545        22.011        .17529E-01    .57027E-03
   2  alpha         2.2687        2.7525        .41376       -.11469E-04
   3  Normalizat    .98261        .48192E-01    .45948E-01    .14058E-04
   4  Prefactor     .89660        .38162E-01    .44962E-01    .93086E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.725446
  alpha      = 2.26869
  Normalizat = 0.982615
  Prefactor  = 0.896602
 **********
 **   18 **HESSE 
 **********

 FCN=   6498.282     FROM HESSE     STATUS=OK            35 CALLS      239 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72545        .87631        .79236E-03   -1.5538    
   2  alpha         2.2687        .95784        .23229E-01   -.92656E-01
   3  Normalizat    .98261        .20673        .27344E-03   -.93615    
   4  Prefactor     .89660        .15194        .20982E-03   -.96260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33349e-11
Minuit parameter uncertainties:
  1  0.876329
  2  0.983203
  3  0.206895
  4  0.152016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808145': 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) = 6498.28205797
delta logL = 0.00664089007751

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  7.254e-01  8.763e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.269e+00  9.832e-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:  8.966e-01  1.520e-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.826e-01  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/808145/cmap_HighResolution_291945601_292204801_4FGL_J2323.5-0317_daily_bin203.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-05', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-29 14:41:07.319756', job_id='808145', GAL2='0.90', fit_tolerance='1e-08', EG2='0.98', EG='0.99', time_epoch_completed='1632951667.32', return_code2='0', ts='0.96', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='6.64e-03', ts2='0.98', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='203' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:41:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 808145: <4FGL_J2323.5-0317_daily_bin203> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin203 350.888 -3.29 291945601 292204801 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 :                                   710.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

