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


Performing analysis on: 4FGL_J1921.8-1607_daily_bin1703
RA = 290.463, Dec = -16.1231
tmin = 680745601, tmax = 681004801
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='322745', job_status='RUN', time_executed='2022-08-01 01:19:17.105769', time_epoch_executed='1659341957.11' WHERE source_name='4FGL J1921.8-1607' and cadence='daily' and bin_id='1703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/322745

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/322745/ft1_4FGL_J1921.8-1607_daily_bin1703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/322745/ft2_4FGL_J1921.8-1607_daily_bin1703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/322745/ft1_4FGL_J1921.8-1607_daily_bin1703.fits outfile=/scratch/kocevski/322745/ft1_filteredMKT_4FGL_J1921.8-1607_daily_bin1703.fits ra=290.463 dec=-16.1231 rad=12.0 tmin=680745601.0 tmax=681004801.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.99
user 2.77
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/322745/ft2_4FGL_J1921.8-1607_daily_bin1703.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/322745/ft1_filteredMKT_4FGL_J1921.8-1607_daily_bin1703.fits evtable="EVENTS" outfile="/scratch/kocevski/322745/ft1_filtered_4FGL_J1921.8-1607_daily_bin1703.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.55
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 90

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/322745/ft1_filtered_4FGL_J1921.8-1607_daily_bin1703.fits" evtable="EVENTS" scfile=/scratch/kocevski/322745/ft2_4FGL_J1921.8-1607_daily_bin1703.fits sctable="SC_DATA" outfile=/scratch/kocevski/322745/ltcube_680745601_681004801_4FGL_J1921.8-1607_daily_bin1703.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/322745/ft2_4FGL_J1921.8-1607_daily_bin1703.fits
.....................!
real 15.53
user 14.96
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/322745/ft1_filtered_4FGL_J1921.8-1607_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/322745/ft2_4FGL_J1921.8-1607_daily_bin1703.fits sctable="SC_DATA" expcube=/scratch/kocevski/322745/ltcube_680745601_681004801_4FGL_J1921.8-1607_daily_bin1703.fits outfile=/scratch/kocevski/322745/expmap_680745601_681004801_4FGL_J1921.8-1607_daily_bin1703.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/322745/ltcube_680745601_681004801_4FGL_J1921.8-1607_daily_bin1703.fits
.....................!
real 192.29
user 186.68
sys 4.78

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/322745/ft1_filtered_4FGL_J1921.8-1607_daily_bin1703.fits scfile=/scratch/kocevski/322745/ft2_4FGL_J1921.8-1607_daily_bin1703.fits outfile=/scratch/kocevski/322745/cmap_680745601_681004801_4FGL_J1921.8-1607_daily_bin1703.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/322745/ft1_filtered_4FGL_J1921.8-1607_daily_bin1703.fits scfile=/scratch/kocevski/322745/ft2_4FGL_J1921.8-1607_daily_bin1703.fits outfile=/scratch/kocevski/322745/cmap_HighResolution_680745601_681004801_4FGL_J1921.8-1607_daily_bin1703.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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/322745/ft1_filtered_4FGL_J1921.8-1607_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/322745/ft2_4FGL_J1921.8-1607_daily_bin1703.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/322745/Model_4FGL_J1921.8-1607_daily_bin1703.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/322745/ft1_filtered_4FGL_J1921.8-1607_daily_bin1703.fits.......................!
real 42.41
user 39.97
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/322745/ft1_filtered_4FGL_J1921.8-1607_daily_bin1703.fits', '/scratch/kocevski/322745/ft2_4FGL_J1921.8-1607_daily_bin1703.fits', expMap='/scratch/kocevski/322745/expmap_680745601_681004801_4FGL_J1921.8-1607_daily_bin1703.fits', expCube='/scratch/kocevski/322745/ltcube_680745601_681004801_4FGL_J1921.8-1607_daily_bin1703.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/322745/Model_4FGL_J1921.8-1607_daily_bin1703.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/322745/ft1_filtered_4FGL_J1921.8-1607_daily_bin1703.fits
Spacecraft file(s): /scratch/kocevski/322745/ft2_4FGL_J1921.8-1607_daily_bin1703.fits
Exposure map: /scratch/kocevski/322745/expmap_680745601_681004801_4FGL_J1921.8-1607_daily_bin1703.fits
Exposure cube: /scratch/kocevski/322745/ltcube_680745601_681004801_4FGL_J1921.8-1607_daily_bin1703.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/322745/Model_4FGL_J1921.8-1607_daily_bin1703.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 991.769258025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 991.384979507

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0222       1.0000         .10000E-03   10000.    
     2 'norm      '    .10231E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10273E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .67602E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.6922       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2842       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20479E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .74464E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .22418       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8261       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2838       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2463       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9661       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1626       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0720       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9053       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    .64550       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   991.3613     FROM MIGRAD    STATUS=CONVERGED    160 CALLS      356 TOTAL
                     EDM=   .83E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    546.28        .72749E-02** at limit **
   2  norm          .10000E-03    11.829        .90712E-02** at limit **
   3  norm          .10000E-03    5.9347        .90712E-02** at limit **
   4  Prefactor     .10000E-03    127.72        .93556E-02** at limit **
   5  Prefactor     .10000E-03    10.530        .90712E-02** at limit **
   6  norm          .10000E-03    180.53        .52546E-02** at limit **
   7  Prefactor     .10000E-03    277.20        .43712E-02** at limit **
   8  Prefactor     .10000E-03    51.706        .10104E-01** at limit **
   9  norm          .10000E-03    82.941        .92992E-02** at limit **
  10  norm          .10000E-03    58.667        .10087E-01** at limit **
  11  Prefactor     1.8261        1.0435         .0000         .0000    
  12  Prefactor     7.2838        1.0024         .0000         .0000    
  13  Prefactor     2.2463        1.0272         .0000         .0000    
  14  Prefactor     5.9661        1.0036         .0000         .0000    
  15  Prefactor     9.1626        1.0015         .0000         .0000    
  16  Prefactor     1.0720        1.2126         .0000         .0000    
  17  Prefactor     1.9053        1.0394         .0000         .0000    
  18  Normalizat    .10000E-01    .25505       -.11482E-04** at limit **
  19  Prefactor     .64566        .99472        .21021E-05    .80257E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.82615
  Prefactor  = 7.2838
  Prefactor  = 2.24634
  Prefactor  = 5.96606
  Prefactor  = 9.16265
  Prefactor  = 1.07204
  Prefactor  = 1.90534
  Normalizat = 0.01
  Prefactor  = 0.645663
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   991.3613     FROM HESSE     STATUS=FAILED        29 CALLS      385 TOTAL
                     EDM=   .83E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    546.28        .72749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    11.829        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.9347        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    127.72        .93556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.530        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    180.53        .52546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    277.20        .43712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    51.706        .10104E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    82.941        .92992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    58.667        .10087E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     571.91        569.93         .0000       -1.5438    
  12  Prefactor     7.2838        1.0024         .0000       -1.5168    
  13  Prefactor     2.2463        1.0272         .0000       -1.5408    
  14  Prefactor     5.9661        1.0036         .0000       -1.5219    
  15  Prefactor     9.1626        1.0015         .0000       -1.5102    
  16  Prefactor     1.0720        1.2126         .0000       -1.5501    
  17  Prefactor     1.9053        1.0394         .0000       -1.5432    
  18  Normalizat    .10000E-01    .25505       -.11482E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .64566        .99472        .21021E-05   -1.0570    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.32111e-15
Minuit parameter uncertainties:
  1  8.53647e-05
  2  3.30835e-09
  3  7.80988e-09
  4  4.68913e-06
  5  2.3155e-08
  6  1.02979e-05
  7  3.22841e-05
  8  5.7474e-07
  9  5.90675e-06
  10  6.8674e-07
  11  1.0435
  12  1.00237
  13  1.02721
  14  1.00355
  15  1.0015
  16  1.21259
  17  1.03941
  18  5.98042e-09
  19  1.0241
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 991.361316343

Extracting fit parameters...

4FGL J1921.8-1607
   Spectrum: LogParabola
1050         norm:  1.000e-04  5.907e-06  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.457e-01  1.024e+00  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:  1.000e-02  5.980e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 290.463 -16.123
Photon Flux Upper Limit: 1.59e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/322745/likelihoodResults_680745601_681004801_4FGL_J1921.8-1607_daily_bin1703.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) = 991.361375283
delta logL = -5.89400409581e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 991.361317773
delta logL = -1.42978274198e-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     '    2.3836       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64566       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   991.3613     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      301 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    6338.9        .17790E-01** at limit **
   2  alpha         1.0851        2.6924        .16483        .54522E-07
   3  Normalizat    .10000E-01    .46274E-01    .17702E-01** at limit **
   4  Prefactor     .64565        .19697E-01    .10864E-03   -.38250E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100006
  alpha      = 1.08512
  Normalizat = 0.01
  Prefactor  = 0.645651
 **********
 **   18 **HESSE 
 **********

 FCN=   991.3613     FROM HESSE     STATUS=OK            23 CALLS      324 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    208.94        .33780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.0851        4.4014        .65933E-02   -.60159    
   3  Normalizat    .10000E-01    .87361        .35403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .64565        .86787E-01    .21728E-04   -1.0570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97498e-08
Minuit parameter uncertainties:
  1  0.00221297
  2  1446.57
  3  3.56895e-05
  4  0.0868046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/322745': 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) = 991.361316165
delta logL = 1.77337483365e-07

Extracting fit parameters...

4FGL J1921.8-1607
   Spectrum: LogParabola
1050         norm:  1.000e-04  2.213e-03  1.000e-04  1.000e+04 ( 1.000e-13)
1051        alpha:  1.085e+00  1.447e+03  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.457e-01  8.680e-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:  1.000e-02  3.569e-05  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/322745/cmap_HighResolution_680745601_681004801_4FGL_J1921.8-1607_daily_bin1703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-03', job_status='DONE', photon_flux_upper_limit='1.59e-06', time_completed='2022-08-01 01:26:27.868693', job_id='322745', GAL2='0.65', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1659342387.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.65', dlogl='1.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.70' WHERE bin_id='1703' AND source_name='4FGL J1921.8-1607' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug  1 01:26:27 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 322745: <4FGL_J1921.8-1607_daily_bin1703> in cluster <slac> Done

Job <4FGL_J1921.8-1607_daily_bin1703> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug  1 01:15:13 2022
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug  1 01:15:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug  1 01:15:27 2022
Terminated at Mon Aug  1 01:26:28 2022
Results reported at Mon Aug  1 01:26:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1921.8-1607_daily_bin1703 290.463 -16.1231 680745601 681004801 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 :                                   431.09 sec.
    Max Memory :                                 1263 MB
    Average Memory :                             301.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            675 sec.

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

