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


Performing analysis on: 4FGL_J1821.6+6819_daily_bin1704
RA = 275.403, Dec = 68.3242
tmin = 681004801, tmax = 681264001
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='365958', job_status='RUN', time_executed='2022-08-04 02:35:27.750522', time_epoch_executed='1659605727.75' WHERE source_name='4FGL J1821.6+6819' and cadence='daily' and bin_id='1704'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365958

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365958/ft1_4FGL_J1821.6+6819_daily_bin1704.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365958/ft2_4FGL_J1821.6+6819_daily_bin1704.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365958/ft1_4FGL_J1821.6+6819_daily_bin1704.fits outfile=/scratch/kocevski/365958/ft1_filteredMKT_4FGL_J1821.6+6819_daily_bin1704.fits ra=275.403 dec=68.3242 rad=12.0 tmin=681004801.0 tmax=681264001.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.74
sys 0.22

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

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

Number of photons that the gtmktime cut: 2257

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/365958/ft1_filtered_4FGL_J1821.6+6819_daily_bin1704.fits" evtable="EVENTS" scfile=/scratch/kocevski/365958/ft2_4FGL_J1821.6+6819_daily_bin1704.fits sctable="SC_DATA" outfile=/scratch/kocevski/365958/ltcube_681004801_681264001_4FGL_J1821.6+6819_daily_bin1704.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/365958/ft2_4FGL_J1821.6+6819_daily_bin1704.fits
.....................!
real 15.28
user 14.85
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365958/ft1_filtered_4FGL_J1821.6+6819_daily_bin1704.fits evtable="EVENTS" scfile=/scratch/kocevski/365958/ft2_4FGL_J1821.6+6819_daily_bin1704.fits sctable="SC_DATA" expcube=/scratch/kocevski/365958/ltcube_681004801_681264001_4FGL_J1821.6+6819_daily_bin1704.fits outfile=/scratch/kocevski/365958/expmap_681004801_681264001_4FGL_J1821.6+6819_daily_bin1704.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/365958/ltcube_681004801_681264001_4FGL_J1821.6+6819_daily_bin1704.fits
.....................!
real 191.77
user 186.13
sys 5.21

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/365958/ft1_filtered_4FGL_J1821.6+6819_daily_bin1704.fits scfile=/scratch/kocevski/365958/ft2_4FGL_J1821.6+6819_daily_bin1704.fits outfile=/scratch/kocevski/365958/cmap_681004801_681264001_4FGL_J1821.6+6819_daily_bin1704.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/365958/ft1_filtered_4FGL_J1821.6+6819_daily_bin1704.fits scfile=/scratch/kocevski/365958/ft2_4FGL_J1821.6+6819_daily_bin1704.fits outfile=/scratch/kocevski/365958/cmap_HighResolution_681004801_681264001_4FGL_J1821.6+6819_daily_bin1704.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.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/365958/ft1_filtered_4FGL_J1821.6+6819_daily_bin1704.fits', '/scratch/kocevski/365958/ft2_4FGL_J1821.6+6819_daily_bin1704.fits', expMap='/scratch/kocevski/365958/expmap_681004801_681264001_4FGL_J1821.6+6819_daily_bin1704.fits', expCube='/scratch/kocevski/365958/ltcube_681004801_681264001_4FGL_J1821.6+6819_daily_bin1704.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/365958/Model_4FGL_J1821.6+6819_daily_bin1704.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/365958/ft1_filtered_4FGL_J1821.6+6819_daily_bin1704.fits
Spacecraft file(s): /scratch/kocevski/365958/ft2_4FGL_J1821.6+6819_daily_bin1704.fits
Exposure map: /scratch/kocevski/365958/expmap_681004801_681264001_4FGL_J1821.6+6819_daily_bin1704.fits
Exposure cube: /scratch/kocevski/365958/ltcube_681004801_681264001_4FGL_J1821.6+6819_daily_bin1704.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/365958/Model_4FGL_J1821.6+6819_daily_bin1704.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) = 23099.9955171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.317       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10844E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.096       1.0000         .10000E-03   10000.    
     4 'norm      '    12.465       1.0000         .10000E-03   10000.    
     5 'norm      '    .62389E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0886       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2048       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19436E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5212       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .76764       1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.976       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0176       1.0000         .10000E-03   10000.    
    15 'norm      '    3.0321       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5584       1.0000         .10000E-03   10000.    
    17 'norm      '    4.3426       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9896       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.8160       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .55990E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.1203       1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    21.887       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .49986E-01   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    2.9370       1.0000         .10000E-03   10000.    
    32 'norm      '    8.5949       1.0000         .10000E-03   10000.    
    33 'norm      '    4.9109       1.0000         .10000E-03   10000.    
    34 'norm      '    2.6026       1.0000         .10000E-03   10000.    
    35 'Prefactor '    8.8136       1.0000         .10000E-03   10000.    
    36 'norm      '    2.0152       1.0000         .10000E-03   10000.    
    37 'Prefactor '    8.0275       1.0000         .10000E-03   10000.    
    38 'Normalizat'    .88131       1.0000         .10000E-01   10.000    
    39 'Prefactor '    1.0634       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23099.94     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     5185 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.318        1.0021       -.26120E-07    .33392E-04
   2  Prefactor     .10675E-03    275.61        .12959E-04** at limit **
   3  Prefactor     22.128        10.237       -.88302E-05    .10275E-01
   4  norm          12.465        1.1974       -.60753E-06   -.22099E-02
   5  norm          .62599E-01    .46344        .53616E-06    .65718E-04
   6  Prefactor     9.0870        1.1779        .10117E-07   -.15483E-02
   7  Prefactor     1.2054        1.6714        .12736E-05    .20419E-03
   8  Prefactor     .10000E-03    3.4557        .18459E-06** at limit **
   9  Prefactor     .10000E-03    7.2635       -.86291E-06** at limit **
  10  Prefactor     6.5226        1.0087       -.11415E-06    .46222E-04
  11  Prefactor     .78939        9.5868       -.82851E-05   -.18917E-03
  12  Prefactor     39.898        13.644        .25937E-06    .26468E-02
  13  Prefactor     .10009E-03    29.277        .76085E-05** at limit **
  14  norm          1.0175        .92033       -.22895E-06   -.56369E-04
  15  norm          3.0322        .57653       -.99709E-07   -.45720E-03
  16  Prefactor     1.5612        1.4428        .27552E-05    .10533E-02
  17  norm          4.3429        2.3701       -.34577E-06   -.46855E-04
  18  Prefactor     .10000E-03    3.1212        .52344E-06** at limit **
  19  Prefactor     .10034E-03    17.239       -.15476E-04** at limit **
  20  Prefactor     4.9884        4.3703        .88405E-06    .14258E-03
  21  norm          .10000E-03    2.4603       -.26163E-06** at limit **
  22  Prefactor     9.8148        1.4245       -.12391E-05   -.19700E-02
  23  Prefactor     .10006E-03    2.5355       -.10134E-04** at limit **
  24  Prefactor     .10029E-03    14.573        .21149E-04** at limit **
  25  Prefactor     .10001E-03    16.023       -.58764E-05** at limit **
  26  norm          4.1194        2.0157       -.45290E-06   -.16200E-03
  27  norm          .10000E-03    1.7829       -.15635E-05** at limit **
  28  norm          21.885        1.0182       -.96796E-07   -.28956E-03
  29  Prefactor     .61274E-01    17.700       -.12914E-04    .73887E-03
  30  Prefactor     .10000E-03    1.7536       -.90866E-06** at limit **
  31  norm          2.9369        .97602        .14400E-06   -.85893E-04
  32  norm          8.5880        2.7509        .36578E-05   -.15542E-02
  33  norm          4.9115        3.5339       -.27077E-05   -.43206E-03
  34  norm          2.6027        1.0327        .43520E-06    .16261E-03
  35  Prefactor     8.8206        2.0523       -.21883E-05   -.67145E-04
  36  norm          2.0157        2.2713        .32386E-06    .10861E-04
  37  Prefactor     8.0311        2.8699        .35803E-05    .47107E-02
  38  Normalizat    .88116        .13575        .32348E-05   -.42857E-04
  39  Prefactor     1.0634        .72792E-01   -.50044E-06   -.94825E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.3183
  Prefactor  = 0.000106748
  Prefactor  = 22.1281
  norm       = 12.4651
  norm       = 0.0625985
  Prefactor  = 9.08703
  Prefactor  = 1.20535
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.52261
  Prefactor  = 0.789387
  Prefactor  = 39.8981
  Prefactor  = 0.00010009
  norm       = 1.01753
  norm       = 3.03218
  Prefactor  = 1.56123
  norm       = 4.34289
  Prefactor  = 0.0001
  Prefactor  = 0.000100345
  Prefactor  = 4.98843
  norm       = 0.0001
  Prefactor  = 9.81476
  Prefactor  = 0.000100055
  Prefactor  = 0.00010029
  Prefactor  = 0.000100013
  norm       = 4.11944
  norm       = 0.0001
  norm       = 21.8853
  Prefactor  = 0.0612738
  Prefactor  = 0.0001
  norm       = 2.9369
  norm       = 8.58799
  norm       = 4.91154
  norm       = 2.60273
  Prefactor  = 8.82061
  norm       = 2.01569
  Prefactor  = 8.03107
  Normalizat = 0.88116
  Prefactor  = 1.06338  **********
 **   18 **HESSE 
 **********

 FCN=   23099.94     FROM HESSE     STATUS=OK          1056 CALLS     6241 TOTAL
                     EDM=   .49E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.318        10.286        .31185E-02   -1.5065    
   2  Prefactor     .10675E-03    336.34        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.128        22.170        .21303E-02   -1.4767    
   4  norm          12.465        6.5496        .28364E-02   -1.5002    
   5  norm          .62599E-01    .22873        .20849E-01   -1.5658    
   6  Prefactor     9.0870        6.0828        .33236E-02   -1.5105    
   7  Prefactor     1.2054        1.7721        .10324E-01   -1.5488    
   8  Prefactor     .10000E-03    3.4463        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.6375        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.5226        9.9795        .39289E-02   -1.5197    
  11  Prefactor     .78939        2.9641        .90998E-01   -1.5530    
  12  Prefactor     39.898        49.260        .15849E-02   -1.4444    
  13  Prefactor     .10009E-03    29.733        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0175        1.2128        .29285E-01   -1.5506    
  15  norm          3.0322        .58154        .58259E-02   -1.5360    
  16  Prefactor     1.5612        8.3126        .85233E-02   -1.5458    
  17  norm          4.3429        2.3928        .48324E-02   -1.5291    
  18  Prefactor     .10000E-03    3.1199        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10034E-03    21.119        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.9884        4.5987        .45008E-02   -1.5261    
  21  norm          .10000E-03    2.4329        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.8148        7.1665        .31975E-02   -1.5081    
  23  Prefactor     .10006E-03    4.1246        .15178       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10029E-03    18.722        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    16.559        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.1194        2.1134        .49648E-02   -1.5302    
  27  norm          .10000E-03    1.7600        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          21.885        8.5842        .21404E-02   -1.4772    
  29  Prefactor     .61274E-01    2.6934        .13545       -1.5658    
  30  Prefactor     .10000E-03    1.7097        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          2.9369        1.0133        .59252E-02   -1.5365    
  32  norm          8.5880        20.496        .34183E-02   -1.5122    
  33  norm          4.9115        3.6013        .45375E-02   -1.5265    
  34  norm          2.6027        6.2218        .63220E-02   -1.5385    
  35  Prefactor     8.8206        13.207        .33753E-02   -1.5114    
  36  norm          2.0157        2.2725        .72895E-02   -1.5424    
  37  Prefactor     8.0311        7.6241        .35378E-02   -1.5141    
  38  Normalizat    .88116        .13765        .86602E-01   -.97125    
  39  Prefactor     1.0634        .67552E-01    .39183E-01   -.90646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90494e-07
Minuit parameter uncertainties:
  1  10.2879
  2  0.0958221
  3  22.178
  4  6.54996
  5  0.22873
  6  6.08318
  7  1.77214
  8  5.94653e-06
  9  5.81672e-06
  10  9.98206
  11  2.96464
  12  49.3107
  13  0.00326834
  14  1.21287
  15  0.581544
  16  7.20631
  17  2.39285
  18  7.55705e-07
  19  0.00539744
  20  4.59905
  21  2.52269e-07
  22  7.1671
  23  0.000953609
  24  0.00466013
  25  0.000910966
  26  2.11345
  27  6.03724e-06
  28  8.58472
  29  0.811863
  30  4.93327e-06
  31  1.01335
  32  20.5127
  33  3.60141
  34  6.22331
  35  13.2115
  36  2.27265
  37  7.62502
  38  0.137705
  39  0.0675571DDone.

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

Extracting fit parameters...

4FGL J1821.6+6819
   Spectrum: PowerLaw
357    Prefactor:  4.988e+00  4.599e+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:  1.063e+00  6.756e-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:  8.812e-01  1.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.77
Ra Dec: 275.403 68.324
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 3.53e-08 +/- 3.25e-08
Energy Flux (Fixed Index): 8.38e-06 +/- 7.73e-06

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

Saving results to:
/scratch/kocevski/365958/likelihoodResults_681004801_681264001_4FGL_J1821.6+6819_daily_bin1704.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) = 23099.928937
delta logL = 0.0146053388125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23099.9224084
delta logL = 0.021133988168

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5535       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5764       1.0000          .0000       10.000    
     3 'Normalizat'    .88427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0622       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23099.92     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      250 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5529        5.4707        .17048E-03    .14516E-02
   2  Index         2.5765        .69471        .14536E-01    .28776E-03
   3  Normalizat    .88427        .13037        .38288E-03   -.53803E-03
   4  Prefactor     1.0622        .69519E-01    .19022E-03   -.10113E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.5529
  Index      = 2.5765
  Normalizat = 0.884267
  Prefactor  = 1.06221
 **********
 **   18 **HESSE 
 **********

 FCN=   23099.92     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5529        5.1892        .68194E-05   -1.5237    
   2  Index         2.5765        .65865        .58144E-03   -.50602    
   3  Normalizat    .88427        .13044        .15315E-04   -.97015    
   4  Prefactor     1.0622        .69519E-01    .38044E-04   -.90684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99501e-09
Minuit parameter uncertainties:
  1  5.18967
  2  0.661161
  3  0.130488
  4  0.0695253
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365958': 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) = 23099.9224084
delta logL = 0.0211340146161

Extracting fit parameters...

4FGL J1821.6+6819
   Spectrum: PowerLaw
357    Prefactor:  5.553e+00  5.190e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        Index:  2.576e+00  6.612e-01  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:  1.062e+00  6.953e-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:  8.843e-01  1.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.81
Ra Dec: 275.403 68.324
Photon Index (Free Index): 2.58 +/- 0.66
Photon Flux (Free Index): 3.34e-08 +/- 3.03e-08
Energy Flux (Free Index): 8.94e-06 +/- 7.99e-06

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/365958/cmap_HighResolution_681004801_681264001_4FGL_J1821.6+6819_daily_bin1704.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.24e-03', comment='SUCCESS', photon_flux='3.53e-08', energy_flux2='8.94e-06', photon_flux_error='3.25e-08', dlogl='2.11e-02', energy_flux='8.38e-06', photon_flux2='3.34e-08', job_status='DONE', time_completed='2022-08-04 03:35:35.989787', photon_index_error2='0.66', photon_index2='2.58', ts='1.77', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='9.18e-08', energy_flux_error2='7.99e-06', EG='0.88', time_epoch_completed='1659609335.99', return_code='0', job_id='365958', GAL2='1.06', EG2='0.88', return_code2='0', energy_flux_error='7.73e-06', photon_flux_error2='3.03e-08', ts2='1.81', photon_index='2.72' WHERE bin_id='1704' AND source_name='4FGL J1821.6+6819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug  4 03:35:36 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 365979: <4FGL_J1821.6+6819_daily_bin1704> in cluster <slac> Done

Job <4FGL_J1821.6+6819_daily_bin1704> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug  4 00:07:43 2022
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug  4 02:34:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug  4 02:34:13 2022
Terminated at Thu Aug  4 03:35:35 2022
Results reported at Thu Aug  4 03:35:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1821.6+6819_daily_bin1704 275.403 68.3242 681004801 681264001 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 :                                   3598.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             350.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3684 sec.
    Turnaround time :                            12472 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 365958: <4FGL_J1821.6+6819_daily_bin1704> in cluster <slac> Done

Job <4FGL_J1821.6+6819_daily_bin1704> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug  4 00:07:42 2022
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug  4 02:34:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug  4 02:34:00 2022
Terminated at Thu Aug  4 03:35:36 2022
Results reported at Thu Aug  4 03:35:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1821.6+6819_daily_bin1704 275.403 68.3242 681004801 681264001 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 :                                   3605.11 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             353.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3696 sec.
    Turnaround time :                            12474 sec.

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

