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 187 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 = 7706
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2321.5-1619_daily_bin1690
RA = 350.385, Dec = -16.3176
tmin = 677376001, tmax = 677635201
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='159576', job_status='RUN', time_executed='2022-06-23 01:20:59.674798', time_epoch_executed='1655972459.67' WHERE source_name='4FGL J2321.5-1619' and cadence='daily' and bin_id='1690'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/159576

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/159576/ft1_4FGL_J2321.5-1619_daily_bin1690.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/159576/ft2_4FGL_J2321.5-1619_daily_bin1690.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/159576/ft1_4FGL_J2321.5-1619_daily_bin1690.fits outfile=/scratch/kocevski/159576/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1690.fits ra=350.385 dec=-16.3176 rad=12.0 tmin=677376001.0 tmax=677635201.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.60
user 2.34
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/159576/ft2_4FGL_J2321.5-1619_daily_bin1690.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/159576/ft1_filteredMKT_4FGL_J2321.5-1619_daily_bin1690.fits evtable="EVENTS" outfile="/scratch/kocevski/159576/ft1_filtered_4FGL_J2321.5-1619_daily_bin1690.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 587

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/159576/ft1_filtered_4FGL_J2321.5-1619_daily_bin1690.fits" evtable="EVENTS" scfile=/scratch/kocevski/159576/ft2_4FGL_J2321.5-1619_daily_bin1690.fits sctable="SC_DATA" outfile=/scratch/kocevski/159576/ltcube_677376001_677635201_4FGL_J2321.5-1619_daily_bin1690.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/159576/ft2_4FGL_J2321.5-1619_daily_bin1690.fits
.....................!
real 14.62
user 14.09
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/159576/ft1_filtered_4FGL_J2321.5-1619_daily_bin1690.fits evtable="EVENTS" scfile=/scratch/kocevski/159576/ft2_4FGL_J2321.5-1619_daily_bin1690.fits sctable="SC_DATA" expcube=/scratch/kocevski/159576/ltcube_677376001_677635201_4FGL_J2321.5-1619_daily_bin1690.fits outfile=/scratch/kocevski/159576/expmap_677376001_677635201_4FGL_J2321.5-1619_daily_bin1690.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/159576/ltcube_677376001_677635201_4FGL_J2321.5-1619_daily_bin1690.fits
.....................!
real 194.74
user 187.08
sys 5.28

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/159576/ft1_filtered_4FGL_J2321.5-1619_daily_bin1690.fits scfile=/scratch/kocevski/159576/ft2_4FGL_J2321.5-1619_daily_bin1690.fits outfile=/scratch/kocevski/159576/cmap_677376001_677635201_4FGL_J2321.5-1619_daily_bin1690.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/159576/ft1_filtered_4FGL_J2321.5-1619_daily_bin1690.fits scfile=/scratch/kocevski/159576/ft2_4FGL_J2321.5-1619_daily_bin1690.fits outfile=/scratch/kocevski/159576/cmap_HighResolution_677376001_677635201_4FGL_J2321.5-1619_daily_bin1690.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/159576/ft1_filtered_4FGL_J2321.5-1619_daily_bin1690.fits evtable="EVENTS" scfile=/scratch/kocevski/159576/ft2_4FGL_J2321.5-1619_daily_bin1690.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/159576/Model_4FGL_J2321.5-1619_daily_bin1690.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/159576/ft1_filtered_4FGL_J2321.5-1619_daily_bin1690.fits.....................!
real 55.24
user 53.34
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.8179       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10902E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.043       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8013       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4285       1.0000         .10000E-03   10000.    
     9 'Prefactor '    97.905       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3877       1.0000         .10000E-03   10000.    
    12 'norm      '    .18667E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    25.350       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11781E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.556       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .30053E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .40217       1.0000         .10000E-03   10000.    
    20 'norm      '    13.659       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.275       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2377       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .79338       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6413.578     FROM MIGRAD    STATUS=CONVERGED    114 CALLS     2172 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10030E-03    12.792        .28880E-04** at limit **
   2  norm          3.8183        1.3381        .42023E-06    .93287E-03
   3  Prefactor     .10039E-03    22.756        .11290E-04** at limit **
   4  norm          .10000E-03    2.0130        .10031E-05** at limit **
   5  Prefactor     20.080        24.808       -.40338E-04    .11756E-02
   6  Prefactor     8.7991        1.7968        .33186E-05   -.29123E-03
   7  Prefactor     .10129E-03    12.947       -.32106E-04** at limit **
   8  Prefactor     4.4325        4.0286       -.19259E-04   -.17639E-02
   9  Prefactor     97.746        54.857       -.46690E-04    .28262E-02
  10  Prefactor     .10004E-03    14.769       -.13060E-04** at limit **
  11  Prefactor     6.3999        6.8561        .11019E-04    .95937E-03
  12  norm          .10004E-03    2.5666        .11457E-04** at limit **
  13  norm          25.349        5.9313       -.44310E-06    .12429E-02
  14  Prefactor     .10182E-03    14.421        .93157E-05** at limit **
  15  Prefactor     .10000E-03    10.235        .21574E-05** at limit **
  16  Prefactor     .10001E-03    44.414       -.10135E-04** at limit **
  17  Prefactor     41.606        18.256        .25245E-04   -.91527E-03
  18  Prefactor     .11295E-03    41.489        .41381E-04** at limit **
  19  norm          .40189        .47831        .27560E-06    .51376E-03
  20  norm          13.664        6.3296       -.21229E-05    .15805E-03
  21  Prefactor     19.278        1.4709        .12410E-05    .58595E-02
  22  Normalizat    1.2372        .24162        .16043E-04    .50353E-03
  23  Prefactor     .79381        .20180       -.40209E-05    .35065E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100298
  norm       = 3.81828
  Prefactor  = 0.000100393
  norm       = 0.0001
  Prefactor  = 20.0804
  Prefactor  = 8.7991
  Prefactor  = 0.000101295
  Prefactor  = 4.4325
  Prefactor  = 97.746
  Prefactor  = 0.000100037
  Prefactor  = 6.39989
  norm       = 0.000100036
  norm       = 25.3488
  Prefactor  = 0.000101823
  Prefactor  = 0.000100001
  Prefactor  = 0.000100014
  Prefactor  = 41.6062
  Prefactor  = 0.00011295
  norm       = 0.401892
  norm       = 13.664
  Prefactor  = 19.2776
  Normalizat = 1.2372
  Prefactor  = 0.793811
 **********
 **   18 **HESSE 
 **********

 FCN=   6413.578     FROM HESSE     STATUS=OK           434 CALLS     2606 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10030E-03    16.473        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8183        1.3419        .51642E-02   -1.5317    
   3  Prefactor     .10039E-03    24.783        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.0328        .21040E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.080        33.060        .22366E-02   -1.4811    
   6  Prefactor     8.7991        9.0065        .33777E-02   -1.5115    
   7  Prefactor     .10129E-03    18.472        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.4325        17.202        .47841E-02   -1.5287    
   9  Prefactor     97.746        60.528        .10156E-02   -1.3727    
  10  Prefactor     .10004E-03    14.973        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.3999        7.0300        .39702E-02   -1.5202    
  12  norm          .10004E-03    2.7127        .68354E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          25.349        5.9455        .19891E-02   -1.4701    
  14  Prefactor     .10182E-03    21.913        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.154        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    44.393        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     41.606        57.444        .15546E-02   -1.4417    
  18  Prefactor     .11295E-03    280.45        .10695E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .40189        .52548        .10865E-01   -1.5581    
  20  norm          13.664        6.5065        .27095E-02   -1.4969    
  21  Prefactor     19.278        7.9815        .22807E-02   -1.4830    
  22  Normalizat    1.2372        .20613        .60195E-01   -.85461    
  23  Prefactor     .79381        .17110        .63669E-01   -.99957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.079e-07
Minuit parameter uncertainties:
  1  0.00442929
  2  1.34188
  3  0.00624124
  4  7.28769e-07
  5  33.0903
  6  9.00784
  7  0.00978487
  8  17.2217
  9  60.5659
  10  0.00148957
  11  7.03086
  12  0.000626246
  13  5.9456
  14  0.0126466
  15  0.000182755
  16  0.00157331
  17  57.5205
  18  0.121102
  19  0.525491
  20  6.50681
  21  7.98195
  22  0.206266
  23  0.171219
Done.

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

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  1.490e-03  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.938e-01  1.712e-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.237e+00  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/159576/likelihoodResults_677376001_677635201_4FGL_J2321.5-1619_daily_bin1690.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): 102
logL (Free Index) = 6413.57875829
delta logL = -0.000317464540785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6413.57844077
delta logL = 5.59666659683e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9273       1.0000          .0000       10.000    
     3 'Normalizat'    1.2372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79381       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=   6413.578     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    215.95        .90712E-02** at limit **
   2  Index         1.9357        8.9316        .50000       -.45939E-05
   3  Normalizat    1.2372        .19064E-01    .60196E-01    .12292E-04
   4  Prefactor     .79381        .16623E-01    .63669E-01    .21973E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.9357
  Normalizat = 1.2372
  Prefactor  = 0.793812
 **********
 **   18 **HESSE 
 **********

 FCN=   6413.578     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    506.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9357        6.1132        .50000       -.65968    
   3  Normalizat    1.2372        .29919E-01    .26623E-03   -.85461    
   4  Prefactor     .79381        .26074E-01    .28163E-03   -.99957    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.08578e-10
Minuit parameter uncertainties:
  1  3.4845e-07
  2  22.8834
  3  0.0299195
  4  0.0260747
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/159576': 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) = 6413.57844072
delta logL = 1.00413672044e-07

Extracting fit parameters...

4FGL J2321.5-1619
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  3.485e-07  1.000e-04  1.000e+04 ( 1.000e-14)
352        Index:  1.936e+00  2.288e+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:  7.938e-01  2.607e-02  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.237e+00  2.992e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/159576/cmap_HighResolution_677376001_677635201_4FGL_J2321.5-1619_daily_bin1690.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.37e-03', job_status='DONE', photon_flux_upper_limit='4.57e-08', time_completed='2022-06-23 01:31:16.784318', job_id='159576', GAL2='0.79', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1655973076.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='1690' AND source_name='4FGL J2321.5-1619' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jun 23 01:31:16 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 159576: <4FGL_J2321.5-1619_daily_bin1690> in cluster <slac> Done

Job <4FGL_J2321.5-1619_daily_bin1690> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Jun 23 01:15:23 2022
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 01:17:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 01:17:43 2022
Terminated at Thu Jun 23 01:31:17 2022
Results reported at Thu Jun 23 01:31:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.5-1619_daily_bin1690 350.385 -16.3176 677376001 677635201 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.58 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            954 sec.

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

