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


Performing analysis on: 4FGL_J2323.5-0317_daily_bin368
RA = 350.888, Dec = -3.29
tmin = 334713601, tmax = 334972801
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='808411', job_status='RUN', time_executed='2021-09-29 14:26:57.198735', time_epoch_executed='1632950817.2' WHERE source_name='4FGL J2323.5-0317' and cadence='daily' and bin_id='368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808411

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808411/ft1_4FGL_J2323.5-0317_daily_bin368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808411/ft2_4FGL_J2323.5-0317_daily_bin368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808411/ft1_4FGL_J2323.5-0317_daily_bin368.fits outfile=/scratch/kocevski/808411/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin368.fits ra=350.888 dec=-3.29 rad=12.0 tmin=334713601.0 tmax=334972801.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.51
user 3.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/808411/ft2_4FGL_J2323.5-0317_daily_bin368.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/808411/ft1_filteredMKT_4FGL_J2323.5-0317_daily_bin368.fits evtable="EVENTS" outfile="/scratch/kocevski/808411/ft1_filtered_4FGL_J2323.5-0317_daily_bin368.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/808411/ft1_filtered_4FGL_J2323.5-0317_daily_bin368.fits" evtable="EVENTS" scfile=/scratch/kocevski/808411/ft2_4FGL_J2323.5-0317_daily_bin368.fits sctable="SC_DATA" outfile=/scratch/kocevski/808411/ltcube_334713601_334972801_4FGL_J2323.5-0317_daily_bin368.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/808411/ft2_4FGL_J2323.5-0317_daily_bin368.fits
.....................!
real 11.70
user 11.33
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808411/ft1_filtered_4FGL_J2323.5-0317_daily_bin368.fits evtable="EVENTS" scfile=/scratch/kocevski/808411/ft2_4FGL_J2323.5-0317_daily_bin368.fits sctable="SC_DATA" expcube=/scratch/kocevski/808411/ltcube_334713601_334972801_4FGL_J2323.5-0317_daily_bin368.fits outfile=/scratch/kocevski/808411/expmap_334713601_334972801_4FGL_J2323.5-0317_daily_bin368.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/808411/ltcube_334713601_334972801_4FGL_J2323.5-0317_daily_bin368.fits
.....................!
real 189.63
user 185.08
sys 4.21

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/808411/ft1_filtered_4FGL_J2323.5-0317_daily_bin368.fits scfile=/scratch/kocevski/808411/ft2_4FGL_J2323.5-0317_daily_bin368.fits outfile=/scratch/kocevski/808411/cmap_334713601_334972801_4FGL_J2323.5-0317_daily_bin368.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808411/ft1_filtered_4FGL_J2323.5-0317_daily_bin368.fits scfile=/scratch/kocevski/808411/ft2_4FGL_J2323.5-0317_daily_bin368.fits outfile=/scratch/kocevski/808411/cmap_HighResolution_334713601_334972801_4FGL_J2323.5-0317_daily_bin368.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808411/ft1_filtered_4FGL_J2323.5-0317_daily_bin368.fits evtable="EVENTS" scfile=/scratch/kocevski/808411/ft2_4FGL_J2323.5-0317_daily_bin368.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808411/Model_4FGL_J2323.5-0317_daily_bin368.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/808411/ft1_filtered_4FGL_J2323.5-0317_daily_bin368.fits.....................!
real 49.05
user 47.25
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    77.897       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0349       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12196E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5370       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0508       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .95049       1.0000         .10000E-03   10000.    
    11 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.546       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    57.555       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.602       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.5293       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1987       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .70497       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=   4519.799     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2949 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7503        .13938E-07** at limit **
   2  Prefactor     .10000E-03    17.066        .82683E-05** at limit **
   3  Prefactor     77.895        60.872       -.14116E-05    .32623E-06
   4  Prefactor     6.0362        12.438        .11495E-05   -.55692E-04
   5  norm          .10000E-03    3.9697       -.11857E-07** at limit **
   6  Prefactor     .10000E-03    105.28        .14386E-04** at limit **
   7  Prefactor     4.5352        13.903       -.42715E-05   -.78086E-04
   8  Prefactor     7.0372        109.12       -.28164E-04   -.29794E-04
   9  Prefactor     .10000E-03    8.1771        .38928E-05** at limit **
  10  norm          .95093        .99291       -.78609E-07   -.90689E-03
  11  norm          .10000E-03    8.9408       -.35435E-06** at limit **
  12  Prefactor     12.545        11.626       -.11213E-05   -.17176E-04
  13  Prefactor     .10000E-03    12.921       -.12372E-04** at limit **
  14  Prefactor     .10000E-03    159.96       -.22015E-04** at limit **
  15  Prefactor     .10000E-03    10.646        .90991E-05** at limit **
  16  Prefactor     .10000E-03    8.9807       -.58749E-05** at limit **
  17  norm          .10000E-03    16.099        .10045E-04** at limit **
  18  Prefactor     .10000E-03    18.388       -.12404E-04** at limit **
  19  Prefactor     .10000E-03    2.2544       -.13315E-06** at limit **
  20  Prefactor     57.557        42.571        .11304E-05   -.36576E-04
  21  Prefactor     20.593        22.888       -.41811E-06   -.48354E-05
  22  Prefactor     .10000E-03    7.4451       -.55104E-06** at limit **
  23  Prefactor     6.5298        9.4479       -.50682E-06   -.11145E-03
  24  Normalizat    1.1986        .21691        .12907E-05   -.18856E-03
  25  Prefactor     .70501        .15093        .47356E-06   -.13117E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 77.8952
  Prefactor  = 6.03623
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.53521
  Prefactor  = 7.03723
  Prefactor  = 0.000100001
  norm       = 0.950931
  norm       = 0.000100001
  Prefactor  = 12.5451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.5574
  Prefactor  = 20.5934
  Prefactor  = 0.0001
  Prefactor  = 6.52984
  Normalizat = 1.1986
  Prefactor  = 0.705014
 **********
 **   18 **HESSE 
 **********

 FCN=   4519.799     FROM HESSE     STATUS=OK           421 CALLS     3370 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7555        .12714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     77.895        61.105        .45500E-04   -1.3940    
   4  Prefactor     6.0362        12.424        .16344E-03   -1.5217    
   5  norm          .10000E-03    3.9784        .13082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    107.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5352        13.920        .18900E-03   -1.5282    
   8  Prefactor     7.0372        109.59        .15108E-03   -1.5177    
   9  Prefactor     .10000E-03    8.2834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .95093        .95339        .65297E-03   -1.5513    
  11  norm          .10000E-03    9.2751        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.545        11.625        .11309E-03   -1.4999    
  13  Prefactor     .10000E-03    12.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    159.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.9798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    16.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.2970        .98515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     57.557        42.651        .52880E-04   -1.4189    
  21  Prefactor     20.593        22.911        .88243E-04   -1.4800    
  22  Prefactor     .10000E-03    7.4618        .17916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.5298        9.4805        .15706E-03   -1.5197    
  24  Normalizat    1.1986        .25625        .24421E-03   -.86646    
  25  Prefactor     .70501        .17753        .22243E-03   -1.0333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60393e-10
Minuit parameter uncertainties:
  1  1.1631e-06
  2  3.14747e-06
  3  61.154
  4  12.4297
  5  1.30968e-06
  6  0.000385084
  7  13.9302
  8  55.6624
  9  0.000173733
  10  0.95341
  11  0.000140939
  12  11.6271
  13  2.72684e-06
  14  9.88541e-05
  15  6.01283e-05
  16  1.77698e-06
  17  4.74084e-05
  18  9.63268e-06
  19  1.32959e-05
  20  42.6732
  21  22.9211
  22  8.90348e-06
  23  9.48264
  24  0.256523
  25  0.177669
Done.

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

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  9.509e-01  9.534e-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:  7.050e-01  1.777e-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.199e+00  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.45
Ra Dec: 350.888 -3.290
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.68e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.51e-05

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

Saving results to:
/scratch/kocevski/808411/likelihoodResults_334713601_334972801_4FGL_J2323.5-0317_daily_bin368.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) = 4519.7949735
delta logL = 0.00452313049209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4519.79466624
delta logL = 0.00483039808023

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93277       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2422       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1954       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70660       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=   4519.795     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      234 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93275        .98069        .64083E-03    .41495E-03
   2  alpha         2.2422        .84714        .17392E-01    .24102E-04
   3  Normalizat    1.1954        .24463        .24449E-03   -.47523E-04
   4  Prefactor     .70660        .17548        .22220E-03   -.73676E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.932755
  alpha      = 2.24217
  Normalizat = 1.19542
  Prefactor  = 0.706601
 **********
 **   18 **HESSE 
 **********

 FCN=   4519.795     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93275        .96073        .25633E-04   -1.5515    
   2  alpha         2.2422        .83053        .69568E-03   -.10331    
   3  Normalizat    1.1954        .24478        .97796E-05   -.86745    
   4  Prefactor     .70660        .17554        .88881E-05   -1.0327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81046e-11
Minuit parameter uncertainties:
  1  0.960748
  2  0.846799
  3  0.245016
  4  0.175677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808411': 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) = 4519.79466624
delta logL = 0.00483039813389

Extracting fit parameters...

4FGL J2323.5-0317
   Spectrum: LogParabola
373         norm:  9.328e-01  9.607e-01  1.000e-04  1.000e+04 ( 1.000e-11)
374        alpha:  2.242e+00  8.468e-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.066e-01  1.757e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  1.195e+00  2.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 350.888 -3.290
Photon Index (Free Index): 2.24 +/- 0.85
Photon Flux (Free Index): 3.91e-08 +/- 4.46e-08
Energy Flux (Free Index): 1.45e-05 +/- 1.57e-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/808411/cmap_HighResolution_334713601_334972801_4FGL_J2323.5-0317_daily_bin368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.95e-05', comment='SUCCESS', photon_flux='3.68e-08', energy_flux2='1.45e-05', photon_flux_error='3.69e-08', dlogl='4.83e-03', energy_flux='1.51e-05', photon_flux2='3.91e-08', job_status='DONE', time_completed='2021-09-29 14:36:53.969481', photon_index_error2='0.85', photon_index2='2.24', ts='1.45', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.57e-05', EG='1.20', time_epoch_completed='1632951413.97', return_code='0', job_id='808411', GAL2='0.71', EG2='1.20', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='4.46e-08', ts2='1.45', photon_index='2.16' WHERE bin_id='368' AND source_name='4FGL J2323.5-0317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:36:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 808411: <4FGL_J2323.5-0317_daily_bin368> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.5-0317_daily_bin368 350.888 -3.29 334713601 334972801 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 :                                   570.15 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             260.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            677 sec.

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

