aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 190 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 = 7327
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1697
RA = 350.385, Dec = -16.3176
tmin = 679190401, tmax = 679449601
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='857743', job_status='RUN', time_executed='2022-07-14 00:39:16.931593', time_epoch_executed='1657784356.93' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1697'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/857743

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/857743/ft1_4FGL_J2321.5-1619_daily_bin1697.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/857743/ft2_4FGL_J2321.5-1619_daily_bin1697.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/857743/ft1_4FGL_J2321.5-1619_daily_bin1697.fits outfile=/scratch/kocevski/857743/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1697.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=679190401.0 tmax=679449601.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.43
user 3.22
sys 0.20

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

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

Number of photons that the gtmktime cut: 491

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/857743/ft1_filtered_4FGL_J2321.5-1619_daily_bin1697.fits" evtable="EVENTS" scfile=/scratch/kocevski/857743/ft2_4FGL_J2321.5-1619_daily_bin1697.fits sctable="SC_DATA" outfile=/scratch/kocevski/857743/ltcube_679190401_679449601_4FGL_J2321.5-1619_daily_bin1697.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/857743/ft2_4FGL_J2321.5-1619_daily_bin1697.fits
.....................!
real 11.61
user 11.25
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/857743/ft1_filtered_4FGL_J2321.5-1619_daily_bin1697.fits evtable="EVENTS" scfile=/scratch/kocevski/857743/ft2_4FGL_J2321.5-1619_daily_bin1697.fits sctable="SC_DATA" expcube=/scratch/kocevski/857743/ltcube_679190401_679449601_4FGL_J2321.5-1619_daily_bin1697.fits outfile=/scratch/kocevski/857743/expmap_679190401_679449601_4FGL_J2321.5-1619_daily_bin1697.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/857743/ltcube_679190401_679449601_4FGL_J2321.5-1619_daily_bin1697.fits
.....................!
real 190.47
user 185.04
sys 5.10

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/857743/ft1_filtered_4FGL_J2321.5-1619_daily_bin1697.fits scfile=/scratch/kocevski/857743/ft2_4FGL_J2321.5-1619_daily_bin1697.fits outfile=/scratch/kocevski/857743/cmap_679190401_679449601_4FGL_J2321.5-1619_daily_bin1697.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/857743/ft1_filtered_4FGL_J2321.5-1619_daily_bin1697.fits scfile=/scratch/kocevski/857743/ft2_4FGL_J2321.5-1619_daily_bin1697.fits outfile=/scratch/kocevski/857743/cmap_HighResolution_679190401_679449601_4FGL_J2321.5-1619_daily_bin1697.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/857743/ft1_filtered_4FGL_J2321.5-1619_daily_bin1697.fits evtable="EVENTS" scfile=/scratch/kocevski/857743/ft2_4FGL_J2321.5-1619_daily_bin1697.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/857743/Model_4FGL_J2321.5-1619_daily_bin1697.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/857743/ft1_filtered_4FGL_J2321.5-1619_daily_bin1697.fits.....................!
real 48.55
user 47.25
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11158E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.8472       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5097       1.0000         .10000E-03   10000.    
     4 'norm      '    .91756       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.268       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.820       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5794       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1832       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .65845E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.5289       1.0000         .10000E-03   10000.    
    14 'Prefactor '    58.991       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.554       1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.827       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15253E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .42860       1.0000         .10000E-03   10000.    
    20 'norm      '    6.6478       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.3599       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0755       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .70845       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=   5493.696     FROM MIGRAD    STATUS=CONVERGED    914 CALLS     2959 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    17.088        .18142E-02** at limit **
   2  norm          2.8477        1.2312        .51244E-04   -.29174E-03
   3  Prefactor     1.3981        263.74        .34815E-03    .29095E-04
   4  norm          .92095        3.0260        .83819E-04    .37706E-03
   5  Prefactor     31.336        41.636        .71655E-04    .66795E-04
   6  Prefactor     17.824        12.536        .94879E-04   -.77406E-04
   7  Prefactor     3.5791        6.1182        .10680E-02   -.13264E-03
   8  Prefactor     .10000E-03    4.3650        .15102E-02** at limit **
   9  Prefactor     .10000E-03    31.472        .18142E-02** at limit **
  10  Prefactor     9.1802        20.871        .13225E-03   -.49857E-05
  11  Prefactor     .10000E-03    33.947        .33505E-02** at limit **
  12  norm          .10000E-03    1.2402        .80556E-03** at limit **
  13  norm          3.5291        3.2062        .11833E-03   -.68212E-05
  14  Prefactor     59.009        57.584        .52236E-04   -.14800E-04
  15  Prefactor     .10000E-03    25.649        .18142E-02** at limit **
  16  Prefactor     11.548        25.495        .11786E-03   -.77170E-06
  17  Prefactor     32.914        31.417        .34968E-03   -.74776E-05
  18  Prefactor     .10000E-03    47.083        .18142E-02** at limit **
  19  norm          .42865        .41587        .42175E-04    .60920E-04
  20  norm          6.6471        4.4074        .11395E-03   -.21450E-04
  21  Prefactor     7.3637        6.6572        .73921E-03   -.65009E-04
  22  Normalizat    1.0754        .22889        .23532E-03   -.53385E-04
  23  Prefactor     .70856        .19541        .25340E-03   -.94933E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.8477
  Prefactor  = 1.39811
  norm       = 0.920952
  Prefactor  = 31.3361
  Prefactor  = 17.8237
  Prefactor  = 3.57908
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.18024
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.52912
  Prefactor  = 59.0094
  Prefactor  = 0.0001
  Prefactor  = 11.548
  Prefactor  = 32.9138
  Prefactor  = 0.0001
  norm       = 0.428647
  norm       = 6.64709
  Prefactor  = 7.36366
  Normalizat = 1.07537
  Prefactor  = 0.708556
 **********
 **   18 **HESSE 
 **********

 FCN=   5493.696     FROM HESSE     STATUS=OK           350 CALLS     3309 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    17.088        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8477        1.2301        .20498E-05   -1.5370    
   3  Prefactor     1.3981        244.37        .13926E-04   -1.5471    
   4  norm          .92095        2.9283        .33527E-05   -1.5516    
   5  Prefactor     31.336        41.604        .28662E-05   -1.4588    
   6  Prefactor     17.824        12.537        .37951E-05   -1.4863    
   7  Prefactor     3.5791        6.1172        .42721E-04   -1.5330    
   8  Prefactor     .10000E-03    4.3653        .30204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.476        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.1802        20.870        .52902E-05   -1.5102    
  11  Prefactor     .10000E-03    34.996        .13402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.2402        .16111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.5291        3.2059        .47333E-05   -1.5332    
  14  Prefactor     59.009        57.565        .20894E-05   -1.4170    
  15  Prefactor     .10000E-03    25.653        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.548        25.493        .47142E-05   -1.5028    
  17  Prefactor     32.914        31.417        .13987E-04   -1.4560    
  18  Prefactor     .10000E-03    47.083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .42865        .41586        .16870E-05   -1.5577    
  20  norm          6.6471        4.4072        .45580E-05   -1.5192    
  21  Prefactor     7.3637        6.6562        .29568E-04   -1.5165    
  22  Normalizat    1.0754        .22889        .94127E-05   -.90546    
  23  Prefactor     .70856        .19557        .10136E-04   -1.0319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50991e-11
Minuit parameter uncertainties:
  1  8.80732e-07
  2  1.23007
  3  37.1214
  4  2.92873
  5  41.6427
  6  12.5384
  7  6.11824
  8  3.2934e-07
  9  7.50079e-07
  10  20.8864
  11  3.07973e-05
  12  6.04015e-07
  13  3.20605
  14  57.6196
  15  0.000140413
  16  25.5175
  17  31.4325
  18  1.55144e-07
  19  0.415861
  20  4.40743
  21  6.65688
  22  0.229104
  23  0.195757
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  9.180e+00  2.089e+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.086e-01  1.958e-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.075e+00  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/857743/likelihoodResults_679190401_679449601_4FGL_J2321.5-1619_daily_bin1697.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) = 5493.53234153
delta logL = 0.16354409973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5493.51565838
delta logL = 0.180227244387

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9423       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7846       1.0000          .0000       10.000    
     3 'Normalizat'    1.0454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72262       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5493.516     FROM MIGRAD    STATUS=FAILED        84 CALLS      294 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9407        259.67        .16818E-03   -.25266E-02
   2  Index         2.7847        5.9388        .64290E-02   -.67676E-03
   3  Normalizat    1.0454        .26393        .23820E-03   -.88274E-03
   4  Prefactor     .72265        .19764        .25105E-03   -.91644E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5493.516     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      378 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9407        259.67        .14692E-03   -.25266E-02
   2  Index         2.7847        5.9388        .96006E-03   -.67676E-03
   3  Normalizat    1.0454        .26393        .27884E-03   -.88274E-03
   4  Prefactor     .72265        .19764        .24621E-03   -.91644E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5493.516     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      410 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9399        13.220        .67272E-05    .27377E-04
   2  Index         2.7849        1.6987        .25716E-03    .73386E-05
   3  Normalizat    1.0454        .22185        .47639E-04    .11116E-03
   4  Prefactor     .72265        .19247        .50211E-04    .19789E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.93991
  Index      = 2.78489
  Normalizat = 1.0454
  Prefactor  = 0.722652
 **********
 **   18 **HESSE 
 **********

 FCN=   5493.516     FROM HESSE     STATUS=OK            23 CALLS      433 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9399        12.335        .13454E-05   -1.5365    
   2  Index         2.7849        1.6431        .10286E-04   -.45897    
   3  Normalizat    1.0454        .22138        .95279E-05   -.91525    
   4  Prefactor     .72265        .19222        .10042E-04   -1.0265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28179e-11
Minuit parameter uncertainties:
  1  12.0479
  2  1.68232
  3  0.221575
  4  0.192392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/857743': 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) = 5493.51565832
delta logL = 0.180227305587

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  2.940e+00  1.205e+01  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  2.785e+00  1.682e+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:  7.227e-01  1.924e-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.045e+00  2.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
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/857743/cmap_HighResolution_679190401_679449601_4FGL_J2321.5-1619_daily_bin1697.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-03', job_status='DONE', photon_flux_upper_limit='5.94e-08', time_completed='2022-07-14 00:49:36.138501', job_id='857743', GAL2='0.72', fit_tolerance='1e-08', EG2='1.05', EG='1.08', time_epoch_completed='1657784976.14', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='1.80e-01', ts2='0.64', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='1697' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jul 14 00:49:36 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 857743: <4FGL_J2321.5-1619_daily_bin1697> in cluster <slac> Done

Job <4FGL_J2321.5-1619_daily_bin1697> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jul 14 00:35:56 2022
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul 14 00:35:58 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jul 14 00:35:58 2022
Terminated at Thu Jul 14 00:49:36 2022
Results reported at Thu Jul 14 00:49:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1697 350.385 -16.3176 679190401 679449601 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 :                                   621.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            820 sec.

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

