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 79 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 = 7494
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J1821.6+6819_daily_bin1701
RA = 275.403, Dec = 68.3242
tmin = 680227201, tmax = 680486401
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='160467', job_status='RUN', time_executed='2022-07-26 02:04:56.415116', time_epoch_executed='1658826296.42' WHERE source_name='4FGL J1821.6+6819' and cadence='daily' and bin_id='1701'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/160467

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/160467/ft1_4FGL_J1821.6+6819_daily_bin1701.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/160467/ft2_4FGL_J1821.6+6819_daily_bin1701.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/160467/ft1_4FGL_J1821.6+6819_daily_bin1701.fits outfile=/scratch/kocevski/160467/ft1_filteredMKT_4FGL_J1821.6+6819_daily_bin1701.fits ra=275.403 dec=68.3242 rad=12.0 tmin=680227201.0 tmax=680486401.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.91
user 2.70
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/160467/ft2_4FGL_J1821.6+6819_daily_bin1701.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/160467/ft2_4FGL_J1821.6+6819_daily_bin1701.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/160467/ft1_filteredMKT_4FGL_J1821.6+6819_daily_bin1701.fits evtable="EVENTS" outfile="/scratch/kocevski/160467/ft1_filtered_4FGL_J1821.6+6819_daily_bin1701.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.15

Number of photons that the gtmktime cut: 2136

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/160467/ft1_filtered_4FGL_J1821.6+6819_daily_bin1701.fits" evtable="EVENTS" scfile=/scratch/kocevski/160467/ft2_4FGL_J1821.6+6819_daily_bin1701.fits sctable="SC_DATA" outfile=/scratch/kocevski/160467/ltcube_680227201_680486401_4FGL_J1821.6+6819_daily_bin1701.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/160467/ft2_4FGL_J1821.6+6819_daily_bin1701.fits
.....................!
real 17.24
user 16.80
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/160467/ft1_filtered_4FGL_J1821.6+6819_daily_bin1701.fits evtable="EVENTS" scfile=/scratch/kocevski/160467/ft2_4FGL_J1821.6+6819_daily_bin1701.fits sctable="SC_DATA" expcube=/scratch/kocevski/160467/ltcube_680227201_680486401_4FGL_J1821.6+6819_daily_bin1701.fits outfile=/scratch/kocevski/160467/expmap_680227201_680486401_4FGL_J1821.6+6819_daily_bin1701.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/160467/ltcube_680227201_680486401_4FGL_J1821.6+6819_daily_bin1701.fits
.....................!
real 191.98
user 186.90
sys 4.70

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 189 point sources and 0 extended sources

Setting source of interest to:
4FGL J1821.6+6819 @ 275.403 68.3242

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/160467/ft1_filtered_4FGL_J1821.6+6819_daily_bin1701.fits scfile=/scratch/kocevski/160467/ft2_4FGL_J1821.6+6819_daily_bin1701.fits outfile=/scratch/kocevski/160467/cmap_680227201_680486401_4FGL_J1821.6+6819_daily_bin1701.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=275.403 yref=68.3242 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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/160467/ft1_filtered_4FGL_J1821.6+6819_daily_bin1701.fits scfile=/scratch/kocevski/160467/ft2_4FGL_J1821.6+6819_daily_bin1701.fits outfile=/scratch/kocevski/160467/cmap_HighResolution_680227201_680486401_4FGL_J1821.6+6819_daily_bin1701.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=275.403 yref=68.3242 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.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/160467/ft1_filtered_4FGL_J1821.6+6819_daily_bin1701.fits evtable="EVENTS" scfile=/scratch/kocevski/160467/ft2_4FGL_J1821.6+6819_daily_bin1701.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/160467/Model_4FGL_J1821.6+6819_daily_bin1701.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/160467/ft1_filtered_4FGL_J1821.6+6819_daily_bin1701.fits.....................!
real 221.59
user 219.74
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/160467/ft1_filtered_4FGL_J1821.6+6819_daily_bin1701.fits', '/scratch/kocevski/160467/ft2_4FGL_J1821.6+6819_daily_bin1701.fits', expMap='/scratch/kocevski/160467/expmap_680227201_680486401_4FGL_J1821.6+6819_daily_bin1701.fits', expCube='/scratch/kocevski/160467/ltcube_680227201_680486401_4FGL_J1821.6+6819_daily_bin1701.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/160467/Model_4FGL_J1821.6+6819_daily_bin1701.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1821.6+6819'

4FGL J1821.6+6819
   Spectrum: PowerLaw
357    Prefactor:  4.076e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  5.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/160467/ft1_filtered_4FGL_J1821.6+6819_daily_bin1701.fits
Spacecraft file(s): /scratch/kocevski/160467/ft2_4FGL_J1821.6+6819_daily_bin1701.fits
Exposure map: /scratch/kocevski/160467/expmap_680227201_680486401_4FGL_J1821.6+6819_daily_bin1701.fits
Exposure cube: /scratch/kocevski/160467/ltcube_680227201_680486401_4FGL_J1821.6+6819_daily_bin1701.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/160467/Model_4FGL_J1821.6+6819_daily_bin1701.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) = 21552.6030547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    26.809       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9540       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3891       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0907       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.315       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2444       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0064       1.0000         .10000E-03   10000.    
    14 'norm      '    6.3855       1.0000         .10000E-03   10000.    
    15 'norm      '    2.3508       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11724E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0207       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10619E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9895       1.0000         .10000E-03   10000.    
    21 'norm      '    9.0917       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.6198       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    77.252       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.2241       1.0000         .10000E-03   10000.    
    27 'norm      '    1.8560       1.0000         .10000E-03   10000.    
    28 'norm      '    5.8747       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.9192       1.0000         .10000E-03   10000.    
    31 'norm      '    .94782       1.0000         .10000E-03   10000.    
    32 'norm      '    .10379E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    4.2855       1.0000         .10000E-03   10000.    
    34 'norm      '    7.1783       1.0000         .10000E-03   10000.    
    35 'Prefactor '    15.573       1.0000         .10000E-03   10000.    
    36 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    37 'Prefactor '    .83580E-01   1.0000         .10000E-03   10000.    
    38 'Normalizat'    .96237       1.0000         .10000E-01   10.000    
    39 'Prefactor '    .97445       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   21552.44     FROM MIGRAD    STATUS=CONVERGED   1195 CALLS     5323 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.3032       -.27482E-05** at limit **
   2  Prefactor     .10000E-03    31.841       -.47816E-06** at limit **
   3  Prefactor     .10000E-03    7.3040        .56374E-05** at limit **
   4  norm          26.812        7.8800        .19175E-06   -.82547E-04
   5  norm          .10000E-03    .10660       -.16227E-07** at limit **
   6  Prefactor     1.9544        4.3738        .82310E-06   -.17905E-02
   7  Prefactor     .10000E-03    .69361       -.18582E-06** at limit **
   8  Prefactor     8.3916        8.4913        .40045E-06   -.60167E-04
   9  Prefactor     3.0911        3.3391        .13777E-06   -.14340E-02
  10  Prefactor     15.327        15.773        .35939E-05    .76498E-04
  11  Prefactor     1.2454        2.2018       -.39979E-06   -.35426E-02
  12  Prefactor     .10000E-03    13.859       -.86435E-05** at limit **
  13  Prefactor     5.0153        111.05        .77360E-05   -.32698E-05
  14  norm          6.3859        2.0363        .26622E-07   -.96326E-04
  15  norm          2.3510        .61219       -.35093E-07   -.27906E-04
  16  Prefactor     .10000E-03    11.181        .62071E-05** at limit **
  17  norm          2.0209        2.1062       -.51235E-07   -.89428E-04
  18  Prefactor     .10000E-03    16.071        .39307E-05** at limit **
  19  Prefactor     .10000E-03    69.494        .73480E-06** at limit **
  20  Prefactor     3.9903        3.8628        .22898E-06   -.13987E-02
  21  norm          9.0946        5.7243        .60701E-06   -.74050E-04
  22  Prefactor     2.6204        7.6117        .38418E-06   -.50969E-03
  23  Prefactor     .10000E-03    5.5356       -.45680E-05** at limit **
  24  Prefactor     77.333        52.319        .30205E-04    .17332E-04
  25  Prefactor     .10000E-03    16.104        .12445E-05** at limit **
  26  norm          5.2243        1.9482        .49010E-07    .54330E-04
  27  norm          1.8560        2.5542       -.70954E-07   -.80516E-04
  28  norm          5.8760        5.3921        .51252E-06   -.22728E-04
  29  Prefactor     .10000E-03    5.4574        .44360E-05** at limit **
  30  Prefactor     2.9199        2.7647       -.48354E-08   -.22726E-03
  31  norm          .94802        .59223       -.92299E-07   -.37093E-03
  32  norm          .10000E-03    7.2102       -.48000E-05** at limit **
  33  norm          4.2876        3.6868        .95276E-07   -.94042E-03
  34  norm          7.1771        6.5480       -.16375E-06   -.30762E-04
  35  Prefactor     15.585        14.204        .36617E-05   -.48029E-04
  36  norm          .10000E-03    .81906        .16529E-07** at limit **
  37  Prefactor     .37648E-01    3.5329        .50421E-06   -.23236E-03
  38  Normalizat    .96217        .12776       -.16709E-05   -.29435E-03
  39  Prefactor     .97450        .65474E-01   -.76521E-06   -.33329E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.8117
  norm       = 0.0001
  Prefactor  = 1.9544
  Prefactor  = 0.0001
  Prefactor  = 8.39165
  Prefactor  = 3.09106
  Prefactor  = 15.3271
  Prefactor  = 1.2454
  Prefactor  = 0.0001
  Prefactor  = 5.0153
  norm       = 6.3859
  norm       = 2.35098
  Prefactor  = 0.0001
  norm       = 2.02091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.99025
  norm       = 9.09456
  Prefactor  = 2.62045
  Prefactor  = 0.0001
  Prefactor  = 77.3329
  Prefactor  = 0.0001
  norm       = 5.22425
  norm       = 1.85603
  norm       = 5.87604
  Prefactor  = 0.0001
  Prefactor  = 2.91995
  norm       = 0.94802
  norm       = 0.0001
  norm       = 4.28756
  norm       = 7.17707
  Prefactor  = 15.5849
  norm       = 0.0001
  Prefactor  = 0.0376479
  Normalizat = 0.962165
  Prefactor  = 0.974497  **********
 **   18 **HESSE 
 **********

 FCN=   21552.44     FROM HESSE     STATUS=OK           958 CALLS     6281 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.3216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.3172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          26.812        7.8963        .77371E-04   -1.4672    
   5  norm          .10000E-03    .10998        .92795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9544        4.9458        .14842E-02   -1.5428    
   7  Prefactor     .10000E-03    1.2927        .22944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.3916        8.4522        .13841E-03   -1.5129    
   9  Prefactor     3.0911        3.3465        .11534E-02   -1.5356    
  10  Prefactor     15.327        15.403        .10234E-03   -1.4925    
  11  Prefactor     1.2454        3.5441        .20077E-02   -1.5485    
  12  Prefactor     .10000E-03    13.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.0153        111.13        .17973E-03   -1.5260    
  14  norm          6.3859        2.0320        .11191E-03   -1.5203    
  15  norm          2.3510        .61207        .55344E-04   -1.5401    
  16  Prefactor     .10000E-03    11.498        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0209        2.0899        .20355E-03   -1.5424    
  18  Prefactor     .10000E-03    16.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    69.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.9903        3.9630        .10096E-02   -1.5308    
  21  norm          9.0946        5.7236        .13292E-03   -1.5105    
  22  Prefactor     2.6204        7.7485        .12599E-02   -1.5384    
  23  Prefactor     .10000E-03    5.5676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     77.333        52.313        .22844E-03   -1.3947    
  25  Prefactor     .10000E-03    16.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.2243        1.9462        .12016E-03   -1.5251    
  27  norm          1.8560        2.5335        .25378E-03   -1.5435    
  28  norm          5.8760        5.3803        .16569E-03   -1.5223    
  29  Prefactor     .10000E-03    5.5546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.9199        2.7588        .22669E-03   -1.5366    
  31  norm          .94802        .59938        .85517E-04   -1.5513    
  32  norm          .10000E-03    7.2105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          4.2876        3.7099        .97307E-03   -1.5294    
  34  norm          7.1771        6.5453        .14972E-03   -1.5172    
  35  Prefactor     15.585        14.210        .10149E-03   -1.4918    
  36  norm          .10000E-03    .83099        .12961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     .37648E-01    5.2001        .10205       -1.5669    
  38  Normalizat    .96217        .14782        .35936E-03   -.94309    
  39  Prefactor     .97450        .74497E-01    .19373E-03   -.93584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77514e-08
Minuit parameter uncertainties:
  1  3.35217e-06
  2  1.35761e-05
  3  7.87703e-06
  4  7.89666
  5  8.18067e-08
  6  4.94685
  7  2.7866e-05
  8  8.45344
  9  3.34672
  10  15.407
  11  3.54465
  12  6.44848e-06
  13  47.3168
  14  2.032
  15  0.612072
  16  1.99332e-05
  17  2.08994
  18  2.42265e-05
  19  4.1755e-05
  20  3.96327
  21  5.72393
  22  7.75144
  23  4.46667e-07
  24  52.3446
  25  6.45879e-06
  26  1.94627
  27  2.5336
  28  5.38074
  29  1.2796e-05
  30  2.75892
  31  0.599388
  32  1.02805e-06
  33  3.71007
  34  6.54593
  35  14.2133
  36  2.98639e-06
  37  0.88383
  38  0.147887
  39  0.0745052DDone.

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

Extracting fit parameters...

4FGL J1821.6+6819
   Spectrum: PowerLaw
357    Prefactor:  3.990e+00  3.963e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  5.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  9.745e-01  7.451e-02  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  9.622e-01  1.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 275.403 68.324
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 2.82e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 6.70e-06 +/- 6.66e-06

TS (Fixed Index): 1.34
Ra Dec: 275.403 68.324
Photon Flux Upper Limit: 8.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/160467/likelihoodResults_680227201_680486401_4FGL_J1821.6+6819_daily_bin1701.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) = 21552.3070451
delta logL = 0.131930944273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 21552.3052728
delta logL = 0.133703210289

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6244       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2774       1.0000          .0000       10.000    
     3 'Normalizat'    .94881       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97903       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   21552.31     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      241 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6244        37.108        .62937E-02    .27464E-02
   2  Index         3.2774        3.4447        .21540        .25415E-03
   3  Normalizat    .94887        .34485E-01    .81692E-01    .69367E-04
   4  Prefactor     .97901        .18091E-01    .46004E-01    .47038E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.62438
  Index      = 3.27745
  Normalizat = 0.948866
  Prefactor  = 0.979008
 **********
 **   18 **HESSE 
 **********

 FCN=   21552.31     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6244        81.769        .19295E-03   -1.5384    
   2  Index         3.2774        6.1367        .13027E-01   -.35172    
   3  Normalizat    .94887        .16401        .36164E-03   -.94764    
   4  Prefactor     .97901        .86597E-01    .19335E-03   -.93433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34912e-06
Minuit parameter uncertainties:
  1  29.3414
  2  8.74915
  3  0.164098
  4  0.0866097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/160467': 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) = 21552.3052727
delta logL = 0.13370334612

Extracting fit parameters...

4FGL J1821.6+6819
   Spectrum: PowerLaw
357    Prefactor:  2.624e+00  2.934e+01  1.000e-04  1.000e+04 ( 1.000e-12)
358        Index:  3.277e+00  8.749e+00  0.000e+00  1.000e+01 (-1.000e+00)
359        Scale:  5.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  9.790e-01  8.661e-02  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  9.489e-01  1.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.65
Ra Dec: 275.403 68.324
Photon Index (Free Index): 3.28 +/- 8.75
Photon Flux (Free Index): 3.77e-08 +/- 3.70e-08
Energy Flux (Free Index): 6.71e-06 +/- 1.80e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/160467/cmap_HighResolution_680227201_680486401_4FGL_J1821.6+6819_daily_bin1701.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.48e-03', comment='SUCCESS', photon_flux='2.82e-08', energy_flux2='6.71e-06', photon_flux_error='2.80e-08', dlogl='1.34e-01', energy_flux='6.70e-06', photon_flux2='3.77e-08', job_status='DONE', time_completed='2022-07-26 03:02:22.933909', photon_index_error2='8.75', photon_index2='3.28', ts='1.34', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='8.22e-08', energy_flux_error2='1.80e-05', EG='0.96', time_epoch_completed='1658829742.93', return_code='0', job_id='160467', GAL2='0.98', EG2='0.95', return_code2='0', energy_flux_error='6.66e-06', photon_flux_error2='3.70e-08', ts2='1.65', photon_index='2.72' WHERE bin_id='1701' AND source_name='4FGL J1821.6+6819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 26 03:02:22 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 160468: <4FGL_J1821.6+6819_daily_bin1701> in cluster <slac> Done

Job <4FGL_J1821.6+6819_daily_bin1701> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jul 26 00:07:02 2022
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 26 02:03:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 26 02:03:29 2022
Terminated at Tue Jul 26 03:01:07 2022
Results reported at Tue Jul 26 03:01:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1821.6+6819_daily_bin1701 275.403 68.3242 680227201 680486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1821.6+6819 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3437.17 sec.
    Max Memory :                                 1140 MB
    Average Memory :                             353.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3457 sec.
    Turnaround time :                            10445 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 160467: <4FGL_J1821.6+6819_daily_bin1701> in cluster <slac> Done

Job <4FGL_J1821.6+6819_daily_bin1701> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Jul 26 00:07:02 2022
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 26 02:03:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 26 02:03:28 2022
Terminated at Tue Jul 26 03:02:23 2022
Results reported at Tue Jul 26 03:02:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1821.6+6819_daily_bin1701 275.403 68.3242 680227201 680486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1821.6+6819 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3445.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             350.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   3535 sec.
    Turnaround time :                            10521 sec.

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

