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


Performing analysis on: 4FGL_J1921.8-1607_daily_bin1689
RA = 290.463, Dec = -16.1231
tmin = 677116801, tmax = 677376001
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='992655', job_status='RUN', time_executed='2022-06-20 00:56:24.333806', time_epoch_executed='1655711784.33' WHERE source_name='4FGL J1921.8-1607' and cadence='daily' and bin_id='1689'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992655

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992655/ft1_4FGL_J1921.8-1607_daily_bin1689.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992655/ft2_4FGL_J1921.8-1607_daily_bin1689.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992655/ft1_4FGL_J1921.8-1607_daily_bin1689.fits outfile=/scratch/kocevski/992655/ft1_filteredMKT_4FGL_J1921.8-1607_daily_bin1689.fits ra=290.463 dec=-16.1231 rad=12.0 tmin=677116801.0 tmax=677376001.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.76
user 2.53
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/992655/ft2_4FGL_J1921.8-1607_daily_bin1689.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/992655/ft2_4FGL_J1921.8-1607_daily_bin1689.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/992655/ft1_filteredMKT_4FGL_J1921.8-1607_daily_bin1689.fits evtable="EVENTS" outfile="/scratch/kocevski/992655/ft1_filtered_4FGL_J1921.8-1607_daily_bin1689.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

Number of photons that the gtmktime cut: 91

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/992655/ft1_filtered_4FGL_J1921.8-1607_daily_bin1689.fits" evtable="EVENTS" scfile=/scratch/kocevski/992655/ft2_4FGL_J1921.8-1607_daily_bin1689.fits sctable="SC_DATA" outfile=/scratch/kocevski/992655/ltcube_677116801_677376001_4FGL_J1921.8-1607_daily_bin1689.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/992655/ft2_4FGL_J1921.8-1607_daily_bin1689.fits
.....................!
real 14.89
user 14.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992655/ft1_filtered_4FGL_J1921.8-1607_daily_bin1689.fits evtable="EVENTS" scfile=/scratch/kocevski/992655/ft2_4FGL_J1921.8-1607_daily_bin1689.fits sctable="SC_DATA" expcube=/scratch/kocevski/992655/ltcube_677116801_677376001_4FGL_J1921.8-1607_daily_bin1689.fits outfile=/scratch/kocevski/992655/expmap_677116801_677376001_4FGL_J1921.8-1607_daily_bin1689.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/992655/ltcube_677116801_677376001_4FGL_J1921.8-1607_daily_bin1689.fits
.....................!
real 197.21
user 191.73
sys 5.09

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
Extended source HESS J1809-193 in ROI with RadialDisk spatial model.
Extended source HESS J1813-178 in ROI with RadialDisk spatial model.
Extended source HESS J1825-137 in ROI with RadialGaussian spatial model.
Extended source G24.7+0.6 in ROI with RadialDisk spatial model.
Extended source W 41 in ROI with RadialGaussian spatial model.
Extended source FGES J1836.5-0651 in ROI with RadialDisk spatial model.
Extended source FGES J1838.9-0704 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Extended source HESS J1841-055 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HESSJ1841-055.fits is the correct path to the extended template.
Extended source W 28 in ROI with RadialDisk spatial model.
Extended source HESS J1804-216 in ROI with RadialDisk spatial model.
Extended source W 30 in ROI with RadialDisk spatial model.
Extended source HESS J1808-204 in ROI with RadialDisk spatial model.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W44.fits is the correct path to the extended template.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Added 373 point sources and 16 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1921.8-1607 @ 290.463 -16.1231

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/992655/ft1_filtered_4FGL_J1921.8-1607_daily_bin1689.fits scfile=/scratch/kocevski/992655/ft2_4FGL_J1921.8-1607_daily_bin1689.fits outfile=/scratch/kocevski/992655/cmap_677116801_677376001_4FGL_J1921.8-1607_daily_bin1689.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=290.463 yref=-16.1231 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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992655/ft1_filtered_4FGL_J1921.8-1607_daily_bin1689.fits scfile=/scratch/kocevski/992655/ft2_4FGL_J1921.8-1607_daily_bin1689.fits outfile=/scratch/kocevski/992655/cmap_HighResolution_677116801_677376001_4FGL_J1921.8-1607_daily_bin1689.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=290.463 yref=-16.1231 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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/992655/ft1_filtered_4FGL_J1921.8-1607_daily_bin1689.fits evtable="EVENTS" scfile=/scratch/kocevski/992655/ft2_4FGL_J1921.8-1607_daily_bin1689.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/992655/Model_4FGL_J1921.8-1607_daily_bin1689.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 FGES J1836.5-0651
adding source FGES J1838.9-0704
adding source G24.7+0.6
adding source GAL_V02
adding source HESS J1804-216
adding source HESS J1808-204
adding source HESS J1809-193
adding source HESS J1813-178
adding source HESS J1825-137
adding source HESS J1841-055
adding source HESS J1857+026
adding source Kes 73
adding source Kes 79
adding source W 28
adding source W 30
adding source W 41
adding source W 44
Working on...
/scratch/kocevski/992655/ft1_filtered_4FGL_J1921.8-1607_daily_bin1689.fits.......................!
real 30.09
user 28.74
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/992655/ft1_filtered_4FGL_J1921.8-1607_daily_bin1689.fits', '/scratch/kocevski/992655/ft2_4FGL_J1921.8-1607_daily_bin1689.fits', expMap='/scratch/kocevski/992655/expmap_677116801_677376001_4FGL_J1921.8-1607_daily_bin1689.fits', expCube='/scratch/kocevski/992655/ltcube_677116801_677376001_4FGL_J1921.8-1607_daily_bin1689.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/992655/Model_4FGL_J1921.8-1607_daily_bin1689.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1921.8-1607'

4FGL J1921.8-1607
   Spectrum: LogParabola
1050         norm:  1.069e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
1051        alpha:  1.702e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
1052         beta:  9.151e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
1053           Eb:  3.232e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/992655/ft1_filtered_4FGL_J1921.8-1607_daily_bin1689.fits
Spacecraft file(s): /scratch/kocevski/992655/ft2_4FGL_J1921.8-1607_daily_bin1689.fits
Exposure map: /scratch/kocevski/992655/expmap_677116801_677376001_4FGL_J1921.8-1607_daily_bin1689.fits
Exposure cube: /scratch/kocevski/992655/ltcube_677116801_677376001_4FGL_J1921.8-1607_daily_bin1689.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/992655/Model_4FGL_J1921.8-1607_daily_bin1689.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) = 1103.30377132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60781E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.778       1.0000         .10000E-03   10000.    
     3 'norm      '    .18513E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.238       1.0000         .10000E-03   10000.    
     6 'norm      '    .15881E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15594E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18227E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10196E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    121.50       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .43879E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11566E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    77.913       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.664       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.096       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .49764       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .65233       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1399E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1103.277     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     1940 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    6560.8       -.41349E-04** at limit **
   2  norm          15.691        97.802        .10601E-06    .78087E-04
   3  norm          .10004E-03    16.117       -.73518E-05** at limit **
   4  Prefactor     .10001E-03    278.57        .61585E-05** at limit **
   5  Prefactor     17.239        15.207       -.39538E-07   -.64792E-05
   6  norm          .10000E-03    125.70       -.19869E-06** at limit **
   7  Prefactor     .10000E-03    396.07        .85453E-06** at limit **
   8  Prefactor     .10000E-03    339.24       -.32772E-05** at limit **
   9  norm          .10000E-03    21.764        .22401E-06** at limit **
  10  norm          .10000E-03    34.144       -.17436E-06** at limit **
  11  Prefactor     121.51        90.856        .24107E-06    .10998E-03
  12  Prefactor     .10000E-03    76.468       -.33224E-06** at limit **
  13  Prefactor     .10004E-03    17.288       -.97592E-06** at limit **
  14  Prefactor     .10000E-03    44.897        .36682E-07** at limit **
  15  Prefactor     77.897        101.66       -.31847E-05   -.12350E-04
  16  Prefactor     12.665        8.4579       -.37928E-06   -.53413E-04
  17  Prefactor     25.125        62.447       -.54072E-06    .82067E-05
  18  Normalizat    .49583        1.1155        .31272E-04    .13909E-03
  19  Prefactor     .65253        .21540       -.16982E-05    .49161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100122
  norm       = 15.6909
  norm       = 0.000100042
  Prefactor  = 0.000100008
  Prefactor  = 17.2389
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 121.512
  Prefactor  = 0.0001
  Prefactor  = 0.000100037
  Prefactor  = 0.0001
  Prefactor  = 77.8967
  Prefactor  = 12.6654
  Prefactor  = 25.1251
  Normalizat = 0.495832
  Prefactor  = 0.652531
 **********
 **   18 **HESSE 
 **********

 FCN=   1103.277     FROM HESSE     STATUS=OK           260 CALLS     2200 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    6553.8        .21057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.691        97.730        .10083E-03   -1.4916    
   3  norm          .10004E-03    22.345        .21928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    279.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.239        15.252        .96466E-04   -1.4877    
   6  norm          .10000E-03    125.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    396.21        .20440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    341.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    21.764        .15141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    34.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     121.51        89.186        .18256E-03   -1.3499    
  12  Prefactor     .10000E-03    76.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10004E-03    98.477        .25538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    44.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     77.897        98.935        .45495E-04   -1.3940    
  16  Prefactor     12.665        8.5217        .59240E-04   -1.4996    
  17  Prefactor     25.125        61.876        .79964E-04   -1.4705    
  18  Normalizat    .49583        1.0766        .80486E-03   -1.1261    
  19  Prefactor     .65253        .20067        .13058E-03   -1.0542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1475e-09
Minuit parameter uncertainties:
  1  0.0412322
  2  78.5091
  3  0.00193252
  4  0.00303225
  5  15.2549
  6  8.75885e-05
  7  0.000422947
  8  0.000139461
  9  2.508e-05
  10  2.40349e-05
  11  89.2845
  12  0.000148205
  13  0.00380952
  14  4.93411e-06
  15  99.1452
  16  8.52256
  17  62.0343
  18  1.12762
  19  0.200894
Done.

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

Extracting fit parameters...

4FGL J1921.8-1607
   Spectrum: LogParabola
1050         norm:  1.000e-04  2.508e-05  1.000e-04  1.000e+04 ( 1.000e-13)
1051        alpha:  1.702e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
1052         beta:  9.151e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
1053           Eb:  3.232e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1349    Prefactor:  6.525e-01  2.009e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1350        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1351        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1338   Normalization:  4.958e-01  1.128e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 290.463 -16.123
Photon Flux Upper Limit: 3.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.20e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992655/likelihoodResults_677116801_677376001_4FGL_J1921.8-1607_daily_bin1689.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) = 1103.27765511
delta logL = -0.000218291103238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1103.27743872
delta logL = -1.89975526155e-06

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 'alpha     '    3.2144       1.0000          .0000       5.0000    
     3 'Normalizat'    .49580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65253       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1399E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1103.277     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      252 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4627        .26200E-01** at limit **
   2  alpha         3.2147        4.0429        .43507       -.46112E-06
   3  Normalizat    .49578        .12075E-01    .18148       -.53781E-04
   4  Prefactor     .65253        .22517E-02    .29550E-01   -.30906E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 3.21474
  Normalizat = 0.495783
  Prefactor  = 0.652535
 **********
 **   18 **HESSE 
 **********

 FCN=   1103.277     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      285 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    247.45        .15486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.2147        3.3795        .50000        .28994    
   3  Normalizat    .49578        .11123        .80489E-03   -1.1261    
   4  Prefactor     .65253        .20824E-01    .13058E-03   -1.0542    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.65175e-09
Minuit parameter uncertainties:
  1  0.0018167
  2  719.095
  3  0.111278
  4  0.0208247
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992655': 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) = 1103.27743872
delta logL = -1.89954562302e-06

Extracting fit parameters...

4FGL J1921.8-1607
   Spectrum: LogParabola
1050         norm:  1.000e-04  1.817e-03  1.000e-04  1.000e+04 ( 1.000e-13)
1051        alpha:  3.215e+00  7.191e+02  0.000e+00  5.000e+00 ( 1.000e+00)
1052         beta:  9.151e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
1053           Eb:  3.232e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1349    Prefactor:  6.525e-01  2.082e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1350        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1351        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1338   Normalization:  4.958e-01  1.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 290.463 -16.123

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/992655/cmap_HighResolution_677116801_677376001_4FGL_J1921.8-1607_daily_bin1689.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.20e-04', job_status='DONE', photon_flux_upper_limit='3.84e-07', time_completed='2022-06-20 01:04:29.186124', job_id='992655', GAL2='0.65', fit_tolerance='1e-08', EG2='0.50', EG='0.50', time_epoch_completed='1655712269.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='-1.90e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.70' WHERE bin_id='1689' AND source_name='4FGL J1921.8-1607' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jun 20 01:04:29 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 992655: <4FGL_J1921.8-1607_daily_bin1689> in cluster <slac> Done

Job <4FGL_J1921.8-1607_daily_bin1689> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Jun 20 00:55:14 2022
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jun 20 00:55:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jun 20 00:55:24 2022
Terminated at Mon Jun 20 01:04:30 2022
Results reported at Mon Jun 20 01:04:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1921.8-1607_daily_bin1689 290.463 -16.1231 677116801 677376001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1921.8-1607 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   487.35 sec.
    Max Memory :                                 1099 MB
    Average Memory :                             310.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   545 sec.
    Turnaround time :                            556 sec.

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

