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


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1015
RA = 350.385, Dec = -16.3176
tmin = 502416001, tmax = 502675201
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='764838', job_status='RUN', time_executed='2021-09-29 12:08:05.960925', time_epoch_executed='1632942485.96' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764838

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764838/ft1_4FGL_J2321.5-1619_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764838/ft2_4FGL_J2321.5-1619_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764838/ft1_4FGL_J2321.5-1619_daily_bin1015.fits outfile=/scratch/kocevski/764838/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1015.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=502416001.0 tmax=502675201.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.54
user 3.28
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764838/ft1_filtered_4FGL_J2321.5-1619_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/764838/ft2_4FGL_J2321.5-1619_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/764838/ltcube_502416001_502675201_4FGL_J2321.5-1619_daily_bin1015.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/764838/ft2_4FGL_J2321.5-1619_daily_bin1015.fits
.....................!
real 15.41
user 15.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764838/ft1_filtered_4FGL_J2321.5-1619_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/764838/ft2_4FGL_J2321.5-1619_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/764838/ltcube_502416001_502675201_4FGL_J2321.5-1619_daily_bin1015.fits outfile=/scratch/kocevski/764838/expmap_502416001_502675201_4FGL_J2321.5-1619_daily_bin1015.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/764838/ltcube_502416001_502675201_4FGL_J2321.5-1619_daily_bin1015.fits
.....................!
real 191.09
user 185.72
sys 4.95

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/764838/ft1_filtered_4FGL_J2321.5-1619_daily_bin1015.fits scfile=/scratch/kocevski/764838/ft2_4FGL_J2321.5-1619_daily_bin1015.fits outfile=/scratch/kocevski/764838/cmap_502416001_502675201_4FGL_J2321.5-1619_daily_bin1015.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764838/ft1_filtered_4FGL_J2321.5-1619_daily_bin1015.fits scfile=/scratch/kocevski/764838/ft2_4FGL_J2321.5-1619_daily_bin1015.fits outfile=/scratch/kocevski/764838/cmap_HighResolution_502416001_502675201_4FGL_J2321.5-1619_daily_bin1015.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/764838/ft1_filtered_4FGL_J2321.5-1619_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/764838/ft2_4FGL_J2321.5-1619_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/764838/Model_4FGL_J2321.5-1619_daily_bin1015.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/764838/ft1_filtered_4FGL_J2321.5-1619_daily_bin1015.fits.....................!
real 61.52
user 60.08
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.685       1.0000         .10000E-03   10000.    
     2 'norm      '    .31236       1.0000         .10000E-03   10000.    
     3 'Prefactor '    79.526       1.0000         .10000E-03   10000.    
     4 'norm      '    7.7708       1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.589       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.296       1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.691       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8299       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15603E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.6239       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0898       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.230       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.019       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.4312       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .37400       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .81546       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78801       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=   7669.473     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2997 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.682        19.547       -.22914E-06   -.22760E-04
   2  norm          .31237        .40198        .49895E-07    .38257E-04
   3  Prefactor     79.533        43.142        .62283E-06    .39529E-04
   4  norm          7.7706        3.7731       -.76845E-08    .19884E-05
   5  Prefactor     44.572        36.599       -.17685E-05   -.19474E-03
   6  Prefactor     .10000E-03    1.8615       -.23661E-07** at limit **
   7  Prefactor     .10000E-03    8.2539       -.37621E-07** at limit **
   8  Prefactor     13.296        9.1472        .10723E-07   -.41103E-05
   9  Prefactor     30.684        54.319        .19503E-05   -.12771E-03
  10  Prefactor     3.8304        11.852        .68318E-05   -.25427E-03
  11  Prefactor     .10021E-03    7.1690        .33285E-06** at limit **
  12  norm          6.6227        6.1737        .66050E-06   -.25546E-03
  13  norm          1.0894        1.7691        .48335E-07    .51743E-04
  14  Prefactor     13.181        65.306       -.11427E-04   -.11598E-03
  15  Prefactor     24.030        20.063        .14676E-05    .17419E-03
  16  Prefactor     .10000E-03    9.9355        .18238E-06** at limit **
  17  Prefactor     .10000E-03    31.760       -.92294E-06** at limit **
  18  Prefactor     .10000E-03    18.470       -.32222E-06** at limit **
  19  norm          .10000E-03    .16958       -.29994E-06** at limit **
  20  norm          8.4313        3.9618        .93684E-06    .49317E-03
  21  Prefactor     .36702        3.9799        .16138E-07   -.10556E-03
  22  Normalizat    .81545        .15749        .14254E-05   -.41965E-04
  23  Prefactor     .78804        .13605       -.16725E-05    .17594E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.6818
  norm       = 0.312372
  Prefactor  = 79.5327
  norm       = 7.77064
  Prefactor  = 44.572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2961
  Prefactor  = 30.6842
  Prefactor  = 3.8304
  Prefactor  = 0.000100215
  norm       = 6.62272
  norm       = 1.08939
  Prefactor  = 13.181
  Prefactor  = 24.0301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.43134
  Prefactor  = 0.367018
  Normalizat = 0.815452
  Prefactor  = 0.788041
 **********
 **   18 **HESSE 
 **********

 FCN=   7669.473     FROM HESSE     STATUS=OK           382 CALLS     3379 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.682        19.551        .98053E-04   -1.4891    
   2  norm          .31237        .36832        .60984E-03   -1.5596    
   3  Prefactor     79.533        46.587        .45035E-04   -1.3922    
   4  norm          7.7706        4.0990        .51888E-04   -1.5150    
   5  Prefactor     44.572        36.869        .60040E-04   -1.4372    
   6  Prefactor     .10000E-03    1.8620        .11669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.3939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.296        9.1574        .10985E-03   -1.4979    
   9  Prefactor     30.684        47.997        .72324E-04   -1.4600    
  10  Prefactor     3.8304        11.707        .10312E-02   -1.5317    
  11  Prefactor     .10021E-03    28.099        .35994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.6227        5.9788        .15592E-03   -1.5193    
  13  norm          1.0894        1.5221        .14155E-02   -1.5499    
  14  Prefactor     13.181        69.327        .11012E-03   -1.4982    
  15  Prefactor     24.030        20.453        .81734E-04   -1.4727    
  16  Prefactor     .10000E-03    9.9830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    31.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .22682        .67145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.4313        3.9052        .55212E-03   -1.5127    
  21  Prefactor     .36702        12.969        .33265E-02   -1.5587    
  22  Normalizat    .81545        .18053        .25474E-03   -.99498    
  23  Prefactor     .78804        .15573        .24005E-03   -1.0017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37941e-08
Minuit parameter uncertainties:
  1  19.5588
  2  0.368322
  3  46.6087
  4  4.09919
  5  36.8875
  6  8.20151e-07
  7  1.94009e-06
  8  9.15838
  9  48.057
  10  11.7145
  11  0.00491338
  12  5.97935
  13  1.52211
  14  60.5682
  15  20.4593
  16  8.59441e-06
  17  0.000209768
  18  4.9386e-05
  19  4.77206e-06
  20  3.90532
  21  4.36389
  22  0.180664
  23  0.155812
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  3.830e+00  1.171e+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:  7.880e-01  1.558e-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:  8.155e-01  1.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/764838/likelihoodResults_502416001_502675201_4FGL_J2321.5-1619_daily_bin1015.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) = 7668.85699418
delta logL = 0.616113160439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7668.7487899
delta logL = 0.724317440404

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10064E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    5.4307       1.0000          .0000       10.000    
     3 'Normalizat'    .74432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83081       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.

 FCN=   7668.749     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      432 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .85919E-03    .10887E-01    .51091E-03** at limit **
   2  Index         5.4782        1.5647        .68966E-01    .28980E-03
   3  Normalizat    .74418        .30514E-01    .42879E-01   -.27570E-04
   4  Prefactor     .83106        .28527E-01    .44117E-01   -.93875E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000859194
  Index      = 5.47816
  Normalizat = 0.744176
  Prefactor  = 0.831058
 **********
 **   18 **HESSE 
 **********

 FCN=   7668.749     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      467 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .85919E-03    .33500E-01    .22805E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.4782        3.2183        .34948E-02    .95778E-01
   3  Normalizat    .74418        .11796        .26520E-03   -1.0217    
   4  Prefactor     .83106        .10785        .23431E-03   -.98593    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.33956e-08
Minuit parameter uncertainties:
  1  0.0100862
  2  3.49967
  3  0.118
  4  0.107881
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764838': 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) = 7668.74874691
delta logL = 0.724360429982

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  8.592e-04  1.009e-02  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  5.478e+00  3.500e+00  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.311e-01  1.079e-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:  7.442e-01  1.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.74
Ra Dec: 350.385 -16.318
Photon Index (Free Index): 5.48 +/- 3.50
Photon Flux (Free Index): 5.58e-08 +/- 4.46e-08
Energy Flux (Free Index): 7.17e-06 +/- 6.05e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/764838/cmap_HighResolution_502416001_502675201_4FGL_J2321.5-1619_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.67e-03', comment='SUCCESS', energy_flux2='7.17e-06', dlogl='7.24e-01', photon_flux2='5.58e-08', job_status='DONE', time_completed='2021-09-29 12:21:59.205731', photon_index_error2='3.50', photon_index2='5.48', ts='0.14', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='3.61e-08', energy_flux_error2='6.05e-06', EG='0.82', time_epoch_completed='1632943319.21', return_code='0', job_id='764838', GAL2='0.83', EG2='0.74', return_code2='102', photon_flux_error2='4.46e-08', ts2='1.74', photon_index='1.83' WHERE bin_id='1015' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 12:21:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 764838: <4FGL_J2321.5-1619_daily_bin1015> in cluster <slac> Done

Job <4FGL_J2321.5-1619_daily_bin1015> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 12:05:36 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 12:05:37 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:37 2021
Terminated at Wed Sep 29 12:21:59 2021
Results reported at Wed Sep 29 12:21:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1015 350.385 -16.3176 502416001 502675201 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 :                                   762.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            983 sec.

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

