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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin528
RA = 350.888, Dec = -3.29
tmin = 376185601, tmax = 376444801
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='809480', job_status='RUN', time_executed='2021-09-29 14:32:50.436696', time_epoch_executed='1632951170.44' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='528'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809480

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809480/ft1_4FGL_J2323.5-0317_daily_bin528.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809480/ft2_4FGL_J2323.5-0317_daily_bin528.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809480/ft1_4FGL_J2323.5-0317_daily_bin528.fits outfile=/scratch/kocevski/809480/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin528.fits ra=350.888 dec=-3.29 rad=12.0 tmin=376185601.0 tmax=376444801.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.36
user 3.15
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809480/ft1_filtered_4FGL_J2323.5-0317_daily_bin528.fits evtable="EVENTS" scfile=/scratch/kocevski/809480/ft2_4FGL_J2323.5-0317_daily_bin528.fits sctable="SC_DATA" expcube=/scratch/kocevski/809480/ltcube_376185601_376444801_4FGL_J2323.5-0317_daily_bin528.fits outfile=/scratch/kocevski/809480/expmap_376185601_376444801_4FGL_J2323.5-0317_daily_bin528.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/809480/ltcube_376185601_376444801_4FGL_J2323.5-0317_daily_bin528.fits
.....................!
real 190.45
user 185.19
sys 4.92

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/809480/ft1_filtered_4FGL_J2323.5-0317_daily_bin528.fits scfile=/scratch/kocevski/809480/ft2_4FGL_J2323.5-0317_daily_bin528.fits outfile=/scratch/kocevski/809480/cmap_376185601_376444801_4FGL_J2323.5-0317_daily_bin528.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809480/ft1_filtered_4FGL_J2323.5-0317_daily_bin528.fits scfile=/scratch/kocevski/809480/ft2_4FGL_J2323.5-0317_daily_bin528.fits outfile=/scratch/kocevski/809480/cmap_HighResolution_376185601_376444801_4FGL_J2323.5-0317_daily_bin528.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=350.888 yref=-3.29 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    56.512       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.799       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8044       1.0000         .10000E-03   10000.    
     5 'norm      '    26.449       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.736       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.419       1.0000         .10000E-03   10000.    
     8 'Prefactor '    47.348       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .82193       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.523       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.718       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2517       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.846       1.0000         .10000E-03   10000.    
    17 'norm      '    18.596       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.258       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5164       1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.685       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.581       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.904       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92205       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95076       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=   5065.005     FROM MIGRAD    STATUS=CONVERGED    990 CALLS     3347 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0342        .12100E-02** at limit **
   2  Prefactor     56.516        48.887        .53363E-04   -.10439E-04
   3  Prefactor     21.803        45.410        .85789E-04   -.26504E-05
   4  Prefactor     1.8045        8.8488        .31114E-03   -.83382E-04
   5  norm          26.451        17.168        .77896E-04   -.11574E-03
   6  Prefactor     25.734        42.294        .78965E-04    .66227E-05
   7  Prefactor     33.418        20.355        .69317E-04   -.28866E-04
   8  Prefactor     47.356        45.649        .58273E-04   -.62118E-04
   9  Prefactor     .10000E-03    5.7125        .16546E-02** at limit **
  10  norm          .81931        1.1457        .86074E-03    .32079E-02
  11  norm          .10000E-03    2.2729        .10462E-02** at limit **
  12  Prefactor     11.522        10.066        .11802E-03    .35546E-04
  13  Prefactor     14.680        48.173        .10440E-03    .77313E-05
  14  Prefactor     .10000E-03    90.144        .18142E-02** at limit **
  15  Prefactor     1.2743        108.72        .39959E-03    .12800E-03
  16  Prefactor     16.845        19.757        .97583E-04    .96697E-05
  17  norm          18.490        38.600        .92877E-04    .20474E-03
  18  Prefactor     33.243        75.814        .69484E-04   -.42769E-04
  19  Prefactor     5.5074        6.4456        .15419E-03    .11738E-03
  20  Prefactor     38.679        30.090        .64441E-04    .84681E-05
  21  Prefactor     15.580        20.287        .10147E-03    .35854E-05
  22  Prefactor     17.904        18.948        .94654E-04   -.26544E-04
  23  Prefactor     .10000E-03    3.2275        .12467E-02** at limit **
  24  Normalizat    .92190        .26830        .29658E-03    .68387E-04
  25  Prefactor     .95086        .18673        .21623E-03   -.30439E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 56.516
  Prefactor  = 21.8028
  Prefactor  = 1.80453
  norm       = 26.4511
  Prefactor  = 25.7337
  Prefactor  = 33.418
  Prefactor  = 47.3557
  Prefactor  = 0.0001
  norm       = 0.819308
  norm       = 0.0001
  Prefactor  = 11.5222
  Prefactor  = 14.6801
  Prefactor  = 0.0001
  Prefactor  = 1.27428
  Prefactor  = 16.8453
  norm       = 18.4901
  Prefactor  = 33.2427
  Prefactor  = 5.50735
  Prefactor  = 38.6792
  Prefactor  = 15.5805
  Prefactor  = 17.9036
  Prefactor  = 0.0001
  Normalizat = 0.921899
  Prefactor  = 0.950864
 **********
 **   18 **HESSE 
 **********

 FCN=   5065.005     FROM HESSE     STATUS=OK           401 CALLS     3748 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0343        .24201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     56.516        48.886        .10673E-04   -1.4203    
   3  Prefactor     21.803        45.403        .34316E-05   -1.4774    
   4  Prefactor     1.8045        8.8458        .12445E-04   -1.5439    
   5  norm          26.451        17.166        .31158E-05   -1.4679    
   6  Prefactor     25.734        42.294        .31586E-05   -1.4693    
   7  Prefactor     33.418        20.356        .27727E-05   -1.4551    
   8  Prefactor     47.356        45.646        .11655E-04   -1.4331    
   9  Prefactor     .10000E-03    5.7135        .33092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .81931        1.1420        .34430E-04   -1.5527    
  11  norm          .10000E-03    2.2730        .20925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.522        10.066        .47207E-05   -1.5029    
  13  Prefactor     14.680        48.113        .41761E-05   -1.4941    
  14  Prefactor     .10000E-03    90.144        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2743        105.34        .15984E-04   -1.5482    
  16  Prefactor     16.845        19.755        .39033E-05   -1.4887    
  17  norm          18.490        38.201        .18575E-04   -1.4848    
  18  Prefactor     33.243        75.814        .13897E-04   -1.4554    
  19  Prefactor     5.5074        6.4317        .61677E-05   -1.5239    
  20  Prefactor     38.679        30.086        .25777E-05   -1.4463    
  21  Prefactor     15.580        20.286        .40587E-05   -1.4918    
  22  Prefactor     17.904        18.946        .37862E-05   -1.4861    
  23  Prefactor     .10000E-03    3.2277        .24934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .92190        .26823        .11863E-04   -.95695    
  25  Prefactor     .95086        .18680        .43246E-04   -.94386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27298e-09
Minuit parameter uncertainties:
  1  4.3479e-06
  2  48.9203
  3  45.4745
  4  7.99229
  5  17.1695
  6  42.343
  7  20.3599
  8  45.6794
  9  7.54497e-05
  10  1.14202
  11  2.31388e-05
  12  10.0675
  13  48.241
  14  0.000295572
  15  23.2128
  16  19.7629
  17  38.2515
  18  76.0353
  19  6.43246
  20  30.0976
  21  20.2946
  22  18.9528
  23  5.25633e-06
  24  0.268618
  25  0.186925
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  8.193e-01  1.142e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  9.598e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  6.247e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  9.509e-01  1.869e-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.219e-01  2.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/809480/likelihoodResults_376185601_376444801_4FGL_J2323.5-0317_daily_bin528.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) = 5063.25075338
delta logL = 1.75397633517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5063.20001008
delta logL = 1.80471962876

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29384       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1531       1.0000          .0000       5.0000    
     3 'Normalizat'    .77707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0179       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=   5063.200     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      219 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29371        2.6945        .46044E-02    .10026E-02
   2  alpha         4.1539        4.5752        .30974        .30173E-04
   3  Normalizat    .77728        .74284E-01    .72134E-01    .16920E-04
   4  Prefactor     1.0177        .55415E-01    .42354E-01   -.15197E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.293706
  alpha      = 4.15391
  Normalizat = 0.777282
  Prefactor  = 1.01771
 **********
 **   18 **HESSE 
 **********

 FCN=   5063.200     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      252 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29371        4.3592        .20623E-04   -1.5600    
   2  alpha         4.1539        4.4075        .14071E-01    .72290    
   3  Normalizat    .77728        .27096        .31923E-03   -1.0092    
   4  Prefactor     1.0177        .20343        .20947E-03   -.92141    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24272e-07
Minuit parameter uncertainties:
  1  2.26285
  2  5.28749
  3  0.271428
  4  0.203583
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809480': 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): 102
logL (Free Index) = 5063.20000827
delta logL = 1.80472144709

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  2.937e-01  2.263e+00  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  4.154e+00  5.287e+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:  1.018e+00  2.036e-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:  7.773e-01  2.714e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.64
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 4.15 +/- 5.29
Photon Flux (Free Index): 1.50e-07 +/- 9.11e-08
Energy Flux (Free Index): 2.27e-05 +/- 1.97e-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/809480/cmap_HighResolution_376185601_376444801_4FGL_J2323.5-0317_daily_bin528.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-05', comment='SUCCESS', energy_flux2='2.27e-05', dlogl='1.80e+00', photon_flux2='1.50e-07', job_status='DONE', time_completed='2021-09-29 14:43:13.839933', photon_index_error2='5.29', photon_index2='4.15', ts='0.69', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.97e-05', EG='0.92', time_epoch_completed='1632951793.84', return_code='0', job_id='809480', GAL2='1.02', EG2='0.78', return_code2='102', photon_flux_error2='9.11e-08', ts2='4.64', photon_index='2.16' WHERE bin_id='528' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:43:13 PDT 2021


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

Job <4FGL_J2323.5-0317_daily_bin528> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 14:30:25 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:30:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 14:30:27 2021
Terminated at Wed Sep 29 14:43:16 2021
Results reported at Wed Sep 29 14:43:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin528 350.888 -3.29 376185601 376444801 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 :                                   619.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            771 sec.

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

