/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 68 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 = 7392
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1333
RA = 350.385, Dec = -16.3176
tmin = 584841601, tmax = 585100801
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='765319', job_status='RUN', time_executed='2021-09-29 12:07:38.837733', time_epoch_executed='1632942458.84' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1333'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/765319

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/765319/ft1_4FGL_J2321.5-1619_daily_bin1333.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/765319/ft2_4FGL_J2321.5-1619_daily_bin1333.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/765319/ft1_4FGL_J2321.5-1619_daily_bin1333.fits outfile=/scratch/kocevski/765319/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1333.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=584841601.0 tmax=585100801.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 2.89
user 2.69
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/765319/ft2_4FGL_J2321.5-1619_daily_bin1333.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/765319/ft2_4FGL_J2321.5-1619_daily_bin1333.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/765319/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1333.fits evtable="EVENTS" outfile="/scratch/kocevski/765319/ft1_filtered_4FGL_J2321.5-1619_daily_bin1333.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/765319/ft1_filtered_4FGL_J2321.5-1619_daily_bin1333.fits" evtable="EVENTS" scfile=/scratch/kocevski/765319/ft2_4FGL_J2321.5-1619_daily_bin1333.fits sctable="SC_DATA" outfile=/scratch/kocevski/765319/ltcube_584841601_585100801_4FGL_J2321.5-1619_daily_bin1333.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/765319/ft2_4FGL_J2321.5-1619_daily_bin1333.fits
.....................!
real 12.27
user 11.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/765319/ft1_filtered_4FGL_J2321.5-1619_daily_bin1333.fits evtable="EVENTS" scfile=/scratch/kocevski/765319/ft2_4FGL_J2321.5-1619_daily_bin1333.fits sctable="SC_DATA" expcube=/scratch/kocevski/765319/ltcube_584841601_585100801_4FGL_J2321.5-1619_daily_bin1333.fits outfile=/scratch/kocevski/765319/expmap_584841601_585100801_4FGL_J2321.5-1619_daily_bin1333.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/765319/ltcube_584841601_585100801_4FGL_J2321.5-1619_daily_bin1333.fits
.....................!
real 191.54
user 185.65
sys 5.57

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 J2321.5-1619 @ 350.385 -16.3176

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/765319/ft1_filtered_4FGL_J2321.5-1619_daily_bin1333.fits scfile=/scratch/kocevski/765319/ft2_4FGL_J2321.5-1619_daily_bin1333.fits outfile=/scratch/kocevski/765319/cmap_584841601_585100801_4FGL_J2321.5-1619_daily_bin1333.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.385 yref=-16.3176 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/765319/ft1_filtered_4FGL_J2321.5-1619_daily_bin1333.fits scfile=/scratch/kocevski/765319/ft2_4FGL_J2321.5-1619_daily_bin1333.fits outfile=/scratch/kocevski/765319/cmap_HighResolution_584841601_585100801_4FGL_J2321.5-1619_daily_bin1333.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.385 yref=-16.3176 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/765319/ft1_filtered_4FGL_J2321.5-1619_daily_bin1333.fits evtable="EVENTS" scfile=/scratch/kocevski/765319/ft2_4FGL_J2321.5-1619_daily_bin1333.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/765319/Model_4FGL_J2321.5-1619_daily_bin1333.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/765319/ft1_filtered_4FGL_J2321.5-1619_daily_bin1333.fits.....................!
real 47.38
user 46.10
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/765319/ft1_filtered_4FGL_J2321.5-1619_daily_bin1333.fits', '/scratch/kocevski/765319/ft2_4FGL_J2321.5-1619_daily_bin1333.fits', expMap='/scratch/kocevski/765319/expmap_584841601_585100801_4FGL_J2321.5-1619_daily_bin1333.fits', expCube='/scratch/kocevski/765319/ltcube_584841601_585100801_4FGL_J2321.5-1619_daily_bin1333.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/765319/Model_4FGL_J2321.5-1619_daily_bin1333.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.5-1619'

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  2.964e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.829e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  3.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/765319/ft1_filtered_4FGL_J2321.5-1619_daily_bin1333.fits
Spacecraft file(s): /scratch/kocevski/765319/ft2_4FGL_J2321.5-1619_daily_bin1333.fits
Exposure map: /scratch/kocevski/765319/expmap_584841601_585100801_4FGL_J2321.5-1619_daily_bin1333.fits
Exposure cube: /scratch/kocevski/765319/ltcube_584841601_585100801_4FGL_J2321.5-1619_daily_bin1333.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/765319/Model_4FGL_J2321.5-1619_daily_bin1333.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) = 5728.19353765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .62359       1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.761       1.0000         .10000E-03   10000.    
     4 'norm      '    5.0097       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3109       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .79599E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.629       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8251       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.163       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.4720       1.0000         .10000E-03   10000.    
    14 'Prefactor '    73.490       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10502E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.991       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.044       1.0000         .10000E-03   10000.    
    19 'norm      '    .43472       1.0000         .10000E-03   10000.    
    20 'norm      '    .31401       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.834       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0448       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81591       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5728.061     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2663 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.1183        .34131E-07** at limit **
   2  norm          .62355        .72092        .46751E-07    .61014E-04
   3  Prefactor     38.771        50.197       -.26926E-05    .72119E-04
   4  norm          5.0088        4.2502        .68574E-06   -.21757E-03
   5  Prefactor     .10000E-03    35.877       -.65495E-06** at limit **
   6  Prefactor     8.3113        13.635       -.62850E-06   -.16814E-03
   7  Prefactor     .10000E-03    47.894        .73960E-05** at limit **
   8  Prefactor     25.632        16.223       -.57446E-07   -.56483E-05
   9  Prefactor     5.8325        68.781       -.57432E-06    .30663E-06
  10  Prefactor     15.153        22.712        .18423E-06   -.70758E-05
  11  Prefactor     .10000E-03    7.4767       -.51320E-07** at limit **
  12  norm          .10000E-03    1.5221        .32624E-07** at limit **
  13  norm          7.4725        3.7198       -.33279E-07   -.20293E-04
  14  Prefactor     73.492        52.217       -.43205E-06    .67403E-05
  15  Prefactor     .10000E-03    17.030        .48037E-06** at limit **
  16  Prefactor     35.996        36.621       -.35644E-06   -.76790E-05
  17  Prefactor     .10000E-03    68.739        .17592E-06** at limit **
  18  Prefactor     25.205        90.960        .67247E-05    .13503E-05
  19  norm          .43483        .51324       -.33213E-06   -.18672E-02
  20  norm          .31342        5.9457       -.29590E-06   -.23659E-03
  21  Prefactor     17.836        7.9050       -.49833E-07    .20324E-04
  22  Normalizat    1.0444        .21057        .22803E-05   -.15339E-03
  23  Prefactor     .81613        .18218       -.29072E-05   -.67117E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.623551
  Prefactor  = 38.7715
  norm       = 5.00877
  Prefactor  = 0.0001
  Prefactor  = 8.31125
  Prefactor  = 0.0001
  Prefactor  = 25.6317
  Prefactor  = 5.83247
  Prefactor  = 15.1526
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.4725
  Prefactor  = 73.4919
  Prefactor  = 0.0001
  Prefactor  = 35.996
  Prefactor  = 0.0001
  Prefactor  = 25.2053
  norm       = 0.434831
  norm       = 0.313416
  Prefactor  = 17.8362
  Normalizat = 1.04442
  Prefactor  = 0.816128
 **********
 **   18 **HESSE 
 **********

 FCN=   5728.061     FROM HESSE     STATUS=OK           386 CALLS     3049 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.1202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .62355        .69868        .66902E-03   -1.5550    
   3  Prefactor     38.771        54.949        .64378E-04   -1.4462    
   4  norm          5.0088        4.6502        .60826E-04   -1.5260    
   5  Prefactor     .10000E-03    35.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3113        13.730        .69531E-03   -1.5131    
   7  Prefactor     .10000E-03    46.767        .34726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.632        16.239        .79129E-04   -1.4695    
   9  Prefactor     5.8325        67.879        .16640E-03   -1.5225    
  10  Prefactor     15.153        22.715        .10286E-03   -1.4929    
  11  Prefactor     .10000E-03    7.4878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.5246        .91160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.4725        3.7173        .93811E-04   -1.5161    
  14  Prefactor     73.492        52.171        .46834E-04   -1.3991    
  15  Prefactor     .10000E-03    17.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.996        36.649        .66802E-04   -1.4507    
  17  Prefactor     .10000E-03    68.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.205        90.863        .80045E-04   -1.4703    
  19  norm          .43483        .52378        .47454E-03   -1.5576    
  20  norm          .31342        6.5417        .28328E-02   -1.5596    
  21  Prefactor     17.836        7.9145        .94840E-04   -1.4863    
  22  Normalizat    1.0444        .23089        .25159E-03   -.91557    
  23  Prefactor     .81613        .19709        .25640E-03   -.99137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59873e-07
Minuit parameter uncertainties:
  1  3.94786e-06
  2  0.698686
  3  55.0207
  4  4.65055
  5  6.7891e-05
  6  13.7352
  7  0.000256407
  8  16.2418
  9  39.8512
  10  22.7278
  11  3.49185e-06
  12  1.34181e-06
  13  3.71738
  14  52.203
  15  8.12218e-05
  16  36.6717
  17  0.000148736
  18  91.3679
  19  0.523784
  20  2.86365
  21  7.91501
  22  0.231115
  23  0.197258
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.515e+01  2.273e+01  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.829e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  3.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  8.161e-01  1.973e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.044e+00  2.311e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.64
Ra Dec: 350.385 -16.318
Photon Flux Upper Limit: 6.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/765319/likelihoodResults_584841601_585100801_4FGL_J2321.5-1619_daily_bin1333.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) = 5728.04595935
delta logL = 0.0151614636316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5728.03954117
delta logL = 0.0215796498869

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.415       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9832       1.0000          .0000       10.000    
     3 'Normalizat'    1.0425       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81669       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+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=   5728.040     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      249 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.414        25.711        .11369E-03    .12640E-03
   2  Index         1.9830        .82047        .79932E-02    .49577E-04
   3  Normalizat    1.0425        .20982        .25179E-03   -.93101E-04
   4  Prefactor     .81673        .19252        .25630E-03   -.11701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4143
  Index      = 1.98297
  Normalizat = 1.04248
  Prefactor  = 0.816727
 **********
 **   18 **HESSE 
 **********

 FCN=   5728.040     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.414        23.517        .45474E-05   -1.5003    
   2  Index         1.9830        .75151        .31973E-03   -.64777    
   3  Normalizat    1.0425        .20990        .10072E-04   -.91620    
   4  Prefactor     .81673        .19262        .10252E-04   -.99115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68021e-11
Minuit parameter uncertainties:
  1  23.5342
  2  0.756031
  3  0.210068
  4  0.192784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/765319': 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) = 5728.03954099
delta logL = 0.021579830237

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.241e+01  2.353e+01  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.983e+00  7.560e-01  0.000e+00  1.000e+01 (-1.000e+00)
353        Scale:  3.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  8.167e-01  1.928e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.042e+00  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.64
Ra Dec: 350.385 -16.318

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/765319/cmap_HighResolution_584841601_585100801_4FGL_J2321.5-1619_daily_bin1333.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-03', job_status='DONE', photon_flux_upper_limit='6.12e-08', time_completed='2021-09-29 12:17:57.745711', job_id='765319', GAL2='0.82', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1632943077.75', return_code2='0', ts='0.64', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.16e-02', ts2='0.68', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='1333' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:17:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 765319: <4FGL_J2321.5-1619_daily_bin1333> in cluster <slac> Done

Job <4FGL_J2321.5-1619_daily_bin1333> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 12:06:17 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 12:06:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 12:06:19 2021
Terminated at Wed Sep 29 12:17:58 2021
Results reported at Wed Sep 29 12:17:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1333 350.385 -16.3176 584841601 585100801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2321.5-1619 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   613.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            701 sec.

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

