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 194 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_J1921.8-1607_daily_bin1690
RA = 290.463, Dec = -16.1231
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='158038', job_status='RUN', time_executed='2022-06-23 01:13:56.414852', time_epoch_executed='1655972036.41' WHERE source_name='4FGL J1921.8-1607' and cadence='daily' and bin_id='1690'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158038

Creating custom pfile directory:
/scratch/kocevski/158038/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/158038/ft1_4FGL_J1921.8-1607_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/158038/ft2_4FGL_J1921.8-1607_daily_bin1690.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158038/ft1_4FGL_J1921.8-1607_daily_bin1690.fits outfile=/scratch/kocevski/158038/ft1_filteredMKT_4FGL_J1921.8-1607_daily_bin1690.fits ra=290.463 dec=-16.1231 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.55
user 2.33
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/158038/ft2_4FGL_J1921.8-1607_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/158038/ft1_filteredMKT_4FGL_J1921.8-1607_daily_bin1690.fits evtable="EVENTS" outfile="/scratch/kocevski/158038/ft1_filtered_4FGL_J1921.8-1607_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.50
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 156

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/158038/ft1_filtered_4FGL_J1921.8-1607_daily_bin1690.fits" evtable="EVENTS" scfile=/scratch/kocevski/158038/ft2_4FGL_J1921.8-1607_daily_bin1690.fits sctable="SC_DATA" outfile=/scratch/kocevski/158038/ltcube_677376001_677635201_4FGL_J1921.8-1607_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/158038/ft2_4FGL_J1921.8-1607_daily_bin1690.fits
.....................!
real 14.18
user 13.71
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158038/ft1_filtered_4FGL_J1921.8-1607_daily_bin1690.fits evtable="EVENTS" scfile=/scratch/kocevski/158038/ft2_4FGL_J1921.8-1607_daily_bin1690.fits sctable="SC_DATA" expcube=/scratch/kocevski/158038/ltcube_677376001_677635201_4FGL_J1921.8-1607_daily_bin1690.fits outfile=/scratch/kocevski/158038/expmap_677376001_677635201_4FGL_J1921.8-1607_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/158038/ltcube_677376001_677635201_4FGL_J1921.8-1607_daily_bin1690.fits
.....................!
real 194.22
user 187.51
sys 5.91

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/158038/ft1_filtered_4FGL_J1921.8-1607_daily_bin1690.fits scfile=/scratch/kocevski/158038/ft2_4FGL_J1921.8-1607_daily_bin1690.fits outfile=/scratch/kocevski/158038/cmap_677376001_677635201_4FGL_J1921.8-1607_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=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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158038/ft1_filtered_4FGL_J1921.8-1607_daily_bin1690.fits scfile=/scratch/kocevski/158038/ft2_4FGL_J1921.8-1607_daily_bin1690.fits outfile=/scratch/kocevski/158038/cmap_HighResolution_677376001_677635201_4FGL_J1921.8-1607_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=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.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/158038/ft1_filtered_4FGL_J1921.8-1607_daily_bin1690.fits evtable="EVENTS" scfile=/scratch/kocevski/158038/ft2_4FGL_J1921.8-1607_daily_bin1690.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/158038/Model_4FGL_J1921.8-1607_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 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/158038/ft1_filtered_4FGL_J1921.8-1607_daily_bin1690.fits.......................!
real 50.06
user 48.63
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/158038/ft1_filtered_4FGL_J1921.8-1607_daily_bin1690.fits', '/scratch/kocevski/158038/ft2_4FGL_J1921.8-1607_daily_bin1690.fits', expMap='/scratch/kocevski/158038/expmap_677376001_677635201_4FGL_J1921.8-1607_daily_bin1690.fits', expCube='/scratch/kocevski/158038/ltcube_677376001_677635201_4FGL_J1921.8-1607_daily_bin1690.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/158038/Model_4FGL_J1921.8-1607_daily_bin1690.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/158038/ft1_filtered_4FGL_J1921.8-1607_daily_bin1690.fits
Spacecraft file(s): /scratch/kocevski/158038/ft2_4FGL_J1921.8-1607_daily_bin1690.fits
Exposure map: /scratch/kocevski/158038/expmap_677376001_677635201_4FGL_J1921.8-1607_daily_bin1690.fits
Exposure cube: /scratch/kocevski/158038/ltcube_677376001_677635201_4FGL_J1921.8-1607_daily_bin1690.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/158038/Model_4FGL_J1921.8-1607_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) = 1816.89814843

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11039E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    918.11       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    35.886       1.0000         .10000E-03   10000.    
    10 'norm      '    .10496E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .64055E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9356       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10354E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10973E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .49485       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94711       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=   1816.700     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     1878 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10018E-03    9975.1       -.18952E-02** at limit **
   2  norm          920.66        1001.2        .87817E-03   -.21854E-05
   3  norm          .10000E-03    12.176        .10438E-06** at limit **
   4  Prefactor     .10000E-03    486.89       -.18449E-03** at limit **
   5  Prefactor     .10000E-03    6.0597        .24450E-06** at limit **
   6  norm          .10000E-03    62.235        .25980E-04** at limit **
   7  Prefactor     .10000E-03    166.45        .29200E-04** at limit **
   8  Prefactor     .10000E-03    114.52       -.86312E-04** at limit **
   9  norm          35.882        43.487        .16924E-07    .59054E-05
  10  norm          .10000E-03    337.30        .56923E-04** at limit **
  11  Prefactor     .10000E-03    55.730       -.28290E-04** at limit **
  12  Prefactor     .10000E-03    2073.1       -.10669E-02** at limit **
  13  Prefactor     2.9185        15.491       -.14245E-05   -.18288E-03
  14  Prefactor     .10000E-03    198.24        .95505E-04** at limit **
  15  Prefactor     .10000E-03    43.456        .37478E-05** at limit **
  16  Prefactor     .10027E-03    8.1596        .45662E-06** at limit **
  17  Prefactor     .10000E-03    75.988        .21088E-04** at limit **
  18  Normalizat    .49756        1.1302        .92933E-05    .20792E-04
  19  Prefactor     .94679        .15688       -.12679E-05    .67730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010018
  norm       = 920.656
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 35.8822
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.91848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100268
  Prefactor  = 0.0001
  Normalizat = 0.497557
  Prefactor  = 0.946794
 **********
 **   18 **HESSE 
 **********

 FCN=   1816.700     FROM HESSE     STATUS=OK           258 CALLS     2136 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10018E-03    9974.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          920.66        1001.6        .69262E-04   -.95423    
   3  norm          .10000E-03    12.176        .14529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    486.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.1457        .10237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    62.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    166.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    114.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          35.882        43.484        .66899E-04   -1.4509    
  10  norm          .10000E-03    338.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    55.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2075.4        .18840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9185        14.158        .23707E-03   -1.5366    
  14  Prefactor     .10000E-03    198.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    43.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10027E-03    92.642        .21680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    76.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .49756        .89807        .11451E-02   -1.1253    
  19  Prefactor     .94679        .13214        .12329E-03   -.94525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15606e-09
Minuit parameter uncertainties:
  1  0.127161
  2  1022.8
  3  4.87739e-06
  4  7.0727e-05
  5  9.76373e-06
  6  4.78302e-06
  7  4.5619e-06
  8  1.06119e-05
  9  43.5226
  10  0.000317553
  11  2.54019e-06
  12  0.00342988
  13  12.861
  14  0.000253337
  15  1.36271e-05
  16  0.00997864
  17  0.000132919
  18  0.926409
  19  0.132183
Done.

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

Extracting fit parameters...

4FGL J1921.8-1607
   Spectrum: LogParabola
1050         norm:  3.588e+01  4.352e+01  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:  9.468e-01  1.322e-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.976e-01  9.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.81
Ra Dec: 290.463 -16.123
Photon Index (Fixed Index): 1.70 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 1.39e-07
Energy Flux (Fixed Index): 2.14e-04 +/- 2.60e-04

TS (Fixed Index): 1.81
Ra Dec: 290.463 -16.123
Photon Flux Upper Limit: 6.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/158038/likelihoodResults_677376001_677635201_4FGL_J1921.8-1607_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): 0
logL (Free Index) = 1816.45013335
delta logL = 0.249698289615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1816.40908018
delta logL = 0.290751456738

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    50.951       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0807       1.0000          .0000       5.0000    
     3 'Normalizat'    .50127       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94672       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=   1816.409     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      215 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          50.938        58.266       -.48702E-05    .10635E-05
   2  alpha         1.0802        .74614       -.36580E-04    .12713E-05
   3  Normalizat    .50134        .97990        .40004E-05    .14222E-04
   4  Prefactor     .94666        .14910       -.22445E-06    .29364E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 50.9385
  alpha      = 1.08021
  Normalizat = 0.501343
  Prefactor  = 0.946661
 **********
 **   18 **HESSE 
 **********

 FCN=   1816.409     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          50.938        58.202        .56184E-04   -1.4279    
   2  alpha         1.0802        .74321        .14347E-01   -.60397    
   3  Normalizat    .50134        .87201        .11410E-02   -1.1235    
   4  Prefactor     .94666        .13207        .12326E-03   -.94529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52701e-11
Minuit parameter uncertainties:
  1  58.2674
  2  0.760395
  3  0.897619
  4  0.132113
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158038': 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) = 1816.40907979
delta logL = 0.290751853775

Extracting fit parameters...

4FGL J1921.8-1607
   Spectrum: LogParabola
1050         norm:  5.094e+01  5.827e+01  1.000e-04  1.000e+04 ( 1.000e-13)
1051        alpha:  1.080e+00  7.604e-01  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:  9.467e-01  1.321e-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:  5.013e-01  8.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.40
Ra Dec: 290.463 -16.123
Photon Index (Free Index): 1.08 +/- 0.76
Photon Flux (Free Index): 8.39e-08 +/- 9.77e-08
Energy Flux (Free Index): 7.79e-04 +/- 1.48e-03

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/158038/cmap_HighResolution_677376001_677635201_4FGL_J1921.8-1607_daily_bin1690.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-03', comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='7.79e-04', photon_flux_error='1.39e-07', dlogl='2.91e-01', energy_flux='2.14e-04', photon_flux2='8.39e-08', job_status='DONE', time_completed='2022-06-23 01:23:10.406743', photon_index_error2='0.76', photon_index2='1.08', ts='1.81', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='6.28e-07', energy_flux_error2='1.48e-03', EG='0.50', time_epoch_completed='1655972590.41', return_code='0', job_id='158038', GAL2='0.95', EG2='0.50', return_code2='0', energy_flux_error='2.60e-04', photon_flux_error2='9.77e-08', ts2='2.40', photon_index='1.70' WHERE bin_id='1690' AND source_name='4FGL J1921.8-1607' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jun 23 01:23:10 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 158038: <4FGL_J1921.8-1607_daily_bin1690> in cluster <slac> Done

Job <4FGL_J1921.8-1607_daily_bin1690> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jun 23 01:10:16 2022
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 01:10:32 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:10:32 2022
Terminated at Thu Jun 23 01:23:11 2022
Results reported at Thu Jun 23 01:23:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1921.8-1607_daily_bin1690 290.463 -16.1231 677376001 677635201 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 :                                   556.00 sec.
    Max Memory :                                 1263 MB
    Average Memory :                             264.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            775 sec.

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

