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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1126
RA = 350.385, Dec = -16.3176
tmin = 531187201, tmax = 531446401
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='765007', job_status='RUN', time_executed='2021-09-29 12:07:45.434099', time_epoch_executed='1632942465.43' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/765007

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/765007/ft1_4FGL_J2321.5-1619_daily_bin1126.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/765007/ft2_4FGL_J2321.5-1619_daily_bin1126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/765007/ft1_4FGL_J2321.5-1619_daily_bin1126.fits outfile=/scratch/kocevski/765007/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1126.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=531187201.0 tmax=531446401.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 4.01
user 3.77
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/765007/ft2_4FGL_J2321.5-1619_daily_bin1126.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/765007/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1126.fits evtable="EVENTS" outfile="/scratch/kocevski/765007/ft1_filtered_4FGL_J2321.5-1619_daily_bin1126.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/765007/ft1_filtered_4FGL_J2321.5-1619_daily_bin1126.fits" evtable="EVENTS" scfile=/scratch/kocevski/765007/ft2_4FGL_J2321.5-1619_daily_bin1126.fits sctable="SC_DATA" outfile=/scratch/kocevski/765007/ltcube_531187201_531446401_4FGL_J2321.5-1619_daily_bin1126.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/765007/ft2_4FGL_J2321.5-1619_daily_bin1126.fits
.....................!
real 11.69
user 11.27
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/765007/ft1_filtered_4FGL_J2321.5-1619_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/765007/ft2_4FGL_J2321.5-1619_daily_bin1126.fits sctable="SC_DATA" expcube=/scratch/kocevski/765007/ltcube_531187201_531446401_4FGL_J2321.5-1619_daily_bin1126.fits outfile=/scratch/kocevski/765007/expmap_531187201_531446401_4FGL_J2321.5-1619_daily_bin1126.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/765007/ltcube_531187201_531446401_4FGL_J2321.5-1619_daily_bin1126.fits
.....................!
real 190.72
user 185.07
sys 5.29

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/765007/ft1_filtered_4FGL_J2321.5-1619_daily_bin1126.fits scfile=/scratch/kocevski/765007/ft2_4FGL_J2321.5-1619_daily_bin1126.fits outfile=/scratch/kocevski/765007/cmap_531187201_531446401_4FGL_J2321.5-1619_daily_bin1126.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/765007/ft1_filtered_4FGL_J2321.5-1619_daily_bin1126.fits scfile=/scratch/kocevski/765007/ft2_4FGL_J2321.5-1619_daily_bin1126.fits outfile=/scratch/kocevski/765007/cmap_HighResolution_531187201_531446401_4FGL_J2321.5-1619_daily_bin1126.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/765007/ft1_filtered_4FGL_J2321.5-1619_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/765007/ft2_4FGL_J2321.5-1619_daily_bin1126.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/765007/Model_4FGL_J2321.5-1619_daily_bin1126.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/765007/ft1_filtered_4FGL_J2321.5-1619_daily_bin1126.fits.....................!
real 46.52
user 45.13
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/765007/ft1_filtered_4FGL_J2321.5-1619_daily_bin1126.fits', '/scratch/kocevski/765007/ft2_4FGL_J2321.5-1619_daily_bin1126.fits', expMap='/scratch/kocevski/765007/expmap_531187201_531446401_4FGL_J2321.5-1619_daily_bin1126.fits', expCube='/scratch/kocevski/765007/ltcube_531187201_531446401_4FGL_J2321.5-1619_daily_bin1126.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/765007/Model_4FGL_J2321.5-1619_daily_bin1126.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/765007/ft1_filtered_4FGL_J2321.5-1619_daily_bin1126.fits
Spacecraft file(s): /scratch/kocevski/765007/ft2_4FGL_J2321.5-1619_daily_bin1126.fits
Exposure map: /scratch/kocevski/765007/expmap_531187201_531446401_4FGL_J2321.5-1619_daily_bin1126.fits
Exposure cube: /scratch/kocevski/765007/ltcube_531187201_531446401_4FGL_J2321.5-1619_daily_bin1126.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/765007/Model_4FGL_J2321.5-1619_daily_bin1126.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) = 4990.85412448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .12888       1.0000         .10000E-03   10000.    
     3 'Prefactor '    80.104       1.0000         .10000E-03   10000.    
     4 'norm      '    6.3438       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.516       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.565       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.361       1.0000         .10000E-03   10000.    
     9 'Prefactor '    63.664       1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.662       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.4619       1.0000         .10000E-03   10000.    
    14 'Prefactor '    71.558       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    64.115       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    255.26       1.0000         .10000E-03   10000.    
    19 'norm      '    .10238E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.7021       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4760       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4610       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .44053       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=   4990.840     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2589 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    19.416       -.89306E-07** at limit **
   2  norm          .12805        .98543        .38425E-06   -.44490E-03
   3  Prefactor     80.081        64.899       -.27841E-05   -.14786E-03
   4  norm          6.3457        5.0163        .81036E-06   -.41295E-03
   5  Prefactor     20.503        70.326       -.64890E-06   -.45413E-04
   6  Prefactor     .10000E-03    3.6825       -.61897E-07** at limit **
   7  Prefactor     25.566        16.513        .81134E-07   -.75211E-05
   8  Prefactor     13.358        17.775       -.90885E-07   -.17647E-04
   9  Prefactor     63.651        72.734       -.59823E-07   -.36491E-04
  10  Prefactor     38.665        35.625       -.14668E-07    .73231E-05
  11  Prefactor     .10000E-03    5.9782       -.38286E-06** at limit **
  12  norm          .10000E-03    2.0012       -.85111E-07** at limit **
  13  norm          3.4611        3.7574       -.70009E-07    .21931E-03
  14  Prefactor     71.538        98.636       -.14712E-05   -.93697E-04
  15  Prefactor     .10000E-03    18.458       -.25957E-06** at limit **
  16  Prefactor     64.122        45.476       -.53246E-06    .92401E-04
  17  Prefactor     .10000E-03    24.614        .11130E-06** at limit **
  18  Prefactor     255.22        165.07        .39286E-06   -.45544E-04
  19  norm          .10000E-03    .49639        .78672E-06** at limit **
  20  norm          9.7109        5.9006       -.11556E-05   -.98237E-03
  21  Prefactor     3.4753        5.8964        .16461E-06   -.32927E-04
  22  Normalizat    1.4612        .27078        .29355E-05   -.41695E-03
  23  Prefactor     .44043        .19996       -.38499E-05   -.97137E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.128054
  Prefactor  = 80.0813
  norm       = 6.34566
  Prefactor  = 20.5027
  Prefactor  = 0.0001
  Prefactor  = 25.5662
  Prefactor  = 13.3581
  Prefactor  = 63.6514
  Prefactor  = 38.6649
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.46111
  Prefactor  = 71.5382
  Prefactor  = 0.0001
  Prefactor  = 64.1223
  Prefactor  = 0.0001
  Prefactor  = 255.218
  norm       = 0.0001
  norm       = 9.71091
  Prefactor  = 3.47532
  Normalizat = 1.46122
  Prefactor  = 0.440432
 **********
 **   18 **HESSE 
 **********

 FCN=   4990.840     FROM HESSE     STATUS=OK           368 CALLS     2957 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .12805        1.9150        .12665E-02   -1.5636    
   3  Prefactor     80.081        64.615        .44873E-04   -1.3916    
   4  norm          6.3457        5.0445        .60358E-04   -1.5204    
   5  Prefactor     20.503        69.716        .88428E-04   -1.4802    
   6  Prefactor     .10000E-03    3.6835        .13239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.566        16.519        .79228E-04   -1.4696    
   8  Prefactor     13.358        17.869        .10958E-03   -1.4977    
   9  Prefactor     63.651        73.342        .50294E-04   -1.4111    
  10  Prefactor     38.665        35.613        .64461E-04   -1.4464    
  11  Prefactor     .10000E-03    5.9803        .16839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.0041        .97564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.4611        3.7462        .13381E-03   -1.5336    
  14  Prefactor     71.538        99.893        .47457E-04   -1.4014    
  15  Prefactor     .10000E-03    18.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     64.122        45.539        .50118E-04   -1.4105    
  17  Prefactor     .10000E-03    24.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     255.22        165.21        .12681E-03   -1.2499    
  19  norm          .10000E-03    .81917        .90325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.7109        6.2596        .12865E-03   -1.5085    
  21  Prefactor     3.4753        5.8903        .21623E-03   -1.5335    
  22  Normalizat    1.4612        .30261        .24865E-03   -.78874    
  23  Prefactor     .44043        .21730        .35048E-03   -1.1479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.18517e-10
Minuit parameter uncertainties:
  1  7.04579e-05
  2  0.990064
  3  64.6718
  4  5.04481
  5  69.9945
  6  7.5533e-07
  7  16.5224
  8  17.8758
  9  73.4463
  10  35.6324
  11  8.08387e-06
  12  8.39056e-07
  13  3.74648
  14  100.128
  15  2.84239e-06
  16  45.5633
  17  6.21654e-05
  18  165.51
  19  9.98298e-06
  20  6.25999
  21  5.89125
  22  0.302982
  23  0.21771
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  3.866e+01  3.563e+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:  4.404e-01  2.177e-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.461e+00  3.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.05
Ra Dec: 350.385 -16.318
Photon Index (Fixed Index): 1.83 +/- 0.00
Photon Flux (Fixed Index): 3.11e-08 +/- 2.86e-08
Energy Flux (Fixed Index): 3.41e-05 +/- 3.14e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4990.55562904
delta logL = 0.28407733174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4990.53353606
delta logL = 0.306170315956

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.344       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6214       1.0000          .0000       10.000    
     3 'Normalizat'    1.3667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47903       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=   4990.534     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      366 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.357        72.688        .96171E-04   -.70060E-03
   2  Index         2.6205        2.0203        .36461E-02   -.25814E-03
   3  Normalizat    1.3680        .39899        .25509E-03   -.31732E-04
   4  Prefactor     .47826        .26082        .33663E-03    .56833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3573
  Index      = 2.62055
  Normalizat = 1.36797
  Prefactor  = 0.47826
 **********
 **   18 **HESSE 
 **********

 FCN=   4990.534     FROM HESSE     STATUS=OK            25 CALLS      391 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.357        29.018        .19234E-04   -1.4874    
   2  Index         2.6205        .84758        .14584E-03   -.49598    
   3  Normalizat    1.3680        .28835        .10204E-04   -.81559    
   4  Prefactor     .47826        .21726        .67327E-04   -1.1298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47002e-09
Minuit parameter uncertainties:
  1  29.0416
  2  0.852914
  3  0.288693
  4  0.21764
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/765007': 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) = 4990.5335251
delta logL = 0.306181271299

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.736e+01  2.904e+01  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  2.621e+00  8.529e-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:  4.783e-01  2.176e-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.368e+00  2.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.66
Ra Dec: 350.385 -16.318
Photon Index (Free Index): 2.62 +/- 0.85
Photon Flux (Free Index): 1.20e-07 +/- 1.35e-07
Energy Flux (Free Index): 3.08e-05 +/- 1.98e-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/765007/cmap_HighResolution_531187201_531446401_4FGL_J2321.5-1619_daily_bin1126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.11e-08', energy_flux2='3.08e-05', photon_flux_error='2.86e-08', dlogl='3.06e-01', energy_flux='3.41e-05', photon_flux2='1.20e-07', job_status='DONE', time_completed='2021-09-29 12:19:46.003765', photon_index_error2='0.85', photon_index2='2.62', ts='6.05', fit_tolerance='1e-08', GAL='0.44', photon_index_error='0.00', energy_flux_error2='1.98e-05', EG='1.46', time_epoch_completed='1632943186.0', return_code='0', job_id='765007', GAL2='0.48', EG2='1.37', return_code2='0', energy_flux_error='3.14e-05', photon_flux_error2='1.35e-07', ts2='6.66', photon_index='1.83' WHERE bin_id='1126' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:19:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 765007: <4FGL_J2321.5-1619_daily_bin1126> in cluster <slac> Done

Job <4FGL_J2321.5-1619_daily_bin1126> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 12:05:50 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 12:05:53 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:05:53 2021
Terminated at Wed Sep 29 12:19:46 2021
Results reported at Wed Sep 29 12:19:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1126 350.385 -16.3176 531187201 531446401 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 :                                   527.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             242.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            836 sec.

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

