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


Performing analysis on: 4FGL_J1821.6+6819_monthly_bin167
RA = 275.403, Dec = 68.3242
tmin = 669859201, tmax = 672451201
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='903802', job_status='RUN', time_executed='2022-04-24 02:34:14.214828', time_epoch_executed='1650792854.21' WHERE source_name='4FGL J1821.6+6819' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/903802

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/903802/ft1_4FGL_J1821.6+6819_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/903802/ft2_4FGL_J1821.6+6819_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/903802/ft1_4FGL_J1821.6+6819_monthly_bin167.fits outfile=/scratch/kocevski/903802/ft1_filteredMKT_4FGL_J1821.6+6819_monthly_bin167.fits ra=275.403 dec=68.3242 rad=12.0 tmin=669859201.0 tmax=672451201.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 38.29
user 37.31
sys 0.88

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/903802/ft2_4FGL_J1821.6+6819_monthly_bin167.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/903802/ft1_filteredMKT_4FGL_J1821.6+6819_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/903802/ft1_filtered_4FGL_J1821.6+6819_monthly_bin167.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.88
user 0.67
sys 0.20

Number of photons that the gtmktime cut: 12361

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/903802/ft1_filtered_4FGL_J1821.6+6819_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/903802/ft2_4FGL_J1821.6+6819_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/903802/ltcube_669859201_672451201_4FGL_J1821.6+6819_monthly_bin167.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/903802/ft2_4FGL_J1821.6+6819_monthly_bin167.fits
.....................!
real 147.14
user 146.51
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/903802/ft1_filtered_4FGL_J1821.6+6819_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/903802/ft2_4FGL_J1821.6+6819_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/903802/ltcube_669859201_672451201_4FGL_J1821.6+6819_monthly_bin167.fits outfile=/scratch/kocevski/903802/expmap_669859201_672451201_4FGL_J1821.6+6819_monthly_bin167.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/903802/ltcube_669859201_672451201_4FGL_J1821.6+6819_monthly_bin167.fits
.....................!
real 194.56
user 188.75
sys 5.42

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/903802/ft1_filtered_4FGL_J1821.6+6819_monthly_bin167.fits scfile=/scratch/kocevski/903802/ft2_4FGL_J1821.6+6819_monthly_bin167.fits outfile=/scratch/kocevski/903802/cmap_669859201_672451201_4FGL_J1821.6+6819_monthly_bin167.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.83
user 0.63
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/903802/ft1_filtered_4FGL_J1821.6+6819_monthly_bin167.fits scfile=/scratch/kocevski/903802/ft2_4FGL_J1821.6+6819_monthly_bin167.fits outfile=/scratch/kocevski/903802/cmap_HighResolution_669859201_672451201_4FGL_J1821.6+6819_monthly_bin167.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.81
user 0.63
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.044       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.8426       1.0000         .10000E-03   10000.    
     5 'norm      '    .37944E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3392       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8778       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11250E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0378       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2667       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .34377E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4638       1.0000         .10000E-03   10000.    
    15 'norm      '    6.9369       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10674E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.7594       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .23603E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1179       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.6086       1.0000         .10000E-03   10000.    
    21 'norm      '    6.3933       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11856E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.2528       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.399       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.6268       1.0000         .10000E-03   10000.    
    27 'norm      '    .65387       1.0000         .10000E-03   10000.    
    28 'norm      '    2.0156       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.1081       1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.0237       1.0000         .10000E-03   10000.    
    31 'norm      '    1.3165       1.0000         .10000E-03   10000.    
    32 'norm      '    10.001       1.0000         .10000E-03   10000.    
    33 'norm      '    1.2677       1.0000         .10000E-03   10000.    
    34 'norm      '    8.7349       1.0000         .10000E-03   10000.    
    35 'Prefactor '    11.313       1.0000         .10000E-03   10000.    
    36 'norm      '    2.3957       1.0000         .10000E-03   10000.    
    37 'Prefactor '    5.6119       1.0000         .10000E-03   10000.    
    38 'Normalizat'    1.0264       1.0000         .10000E-01   10.000    
    39 'Prefactor '    1.0136       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=   125937.9     FROM MIGRAD    STATUS=CONVERGED   1200 CALLS     5315 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.044        5.2405       -.12738E-07    .13441E-04
   2  Prefactor     .10000E-03    5.2067       -.11552E-05** at limit **
   3  Prefactor     .10000E-03    2.9367       -.13915E-06** at limit **
   4  norm          3.8509        1.9378        .19159E-07   -.25514E-03
   5  norm          .37970E-01    .72807E-01   -.55940E-07    .26738E-04
   6  Prefactor     1.3357        .42328        .12714E-07   -.71742E-03
   7  Prefactor     .10000E-03    .10711        .86908E-08** at limit **
   8  Prefactor     4.8770        3.6379        .63171E-06    .22914E-03
   9  Prefactor     .10000E-03    .24077        .19923E-06** at limit **
  10  Prefactor     .10000E-03    4.3372       -.13715E-05** at limit **
  11  Prefactor     1.0367        1.2311        .53402E-07   -.15653E-03
  12  Prefactor     2.2734        6.6847       -.54261E-05   -.11085E-03
  13  Prefactor     .10000E-03    17.576        .13679E-04** at limit **
  14  norm          3.4642        .70846        .18614E-07   -.24948E-04
  15  norm          6.9372        .34362        .15586E-08    .72971E-03
  16  Prefactor     .10000E-03    .53310        .72910E-07** at limit **
  17  norm          3.7607        1.2216       -.10395E-06   -.10550E-04
  18  Prefactor     .10040E-03    1.0786       -.68154E-06** at limit **
  19  Prefactor     8.0027        16.634       -.58660E-05    .12247E-04
  20  Prefactor     9.6066        2.2145        .30720E-06    .37809E-03
  21  norm          6.3915        2.0949       -.36541E-06   -.60279E-04
  22  Prefactor     .10000E-03    1.3046       -.86996E-07** at limit **
  23  Prefactor     5.2511        4.9626       -.87104E-08   -.55808E-04
  24  Prefactor     13.293        12.159        .43456E-05    .89504E-06
  25  Prefactor     .10000E-03    4.6480        .23619E-05** at limit **
  26  norm          1.6270        .71764       -.24147E-07   -.14108E-03
  27  norm          .65398        .72103        .12118E-07   -.69855E-05
  28  norm          2.0168        2.1590       -.42334E-07   -.28876E-04
  29  Prefactor     4.1113        3.8972        .74427E-06    .14233E-05
  30  Prefactor     4.0243        1.4307       -.21458E-07   -.52137E-04
  31  norm          1.3164        .33218       -.25247E-07   -.26692E-03
  32  norm          9.9967        5.3750        .10682E-06   -.78774E-06
  33  norm          1.2680        .85658        .57775E-07    .11955E-03
  34  norm          8.7384        3.9067        .12497E-06   -.97840E-05
  35  Prefactor     11.310        5.1537        .10258E-06   -.21626E-04
  36  norm          2.3954        .89215        .88394E-08    .21618E-05
  37  Prefactor     5.6139        3.6232       -.72911E-06   -.16428E-04
  38  Normalizat    1.0264        .55883E-01   -.31403E-07    .45304E-04
  39  Prefactor     1.0136        .28372E-01   -.42479E-07    .16549E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.85087
  norm       = 0.0379697
  Prefactor  = 1.33565
  Prefactor  = 0.0001
  Prefactor  = 4.87699
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.03666
  Prefactor  = 2.27343
  Prefactor  = 0.0001
  norm       = 3.46415
  norm       = 6.93715
  Prefactor  = 0.0001
  norm       = 3.76072
  Prefactor  = 0.000100396
  Prefactor  = 8.00272
  Prefactor  = 9.60657
  norm       = 6.39151
  Prefactor  = 0.0001
  Prefactor  = 5.25108
  Prefactor  = 13.2934
  Prefactor  = 0.0001
  norm       = 1.62698
  norm       = 0.653978
  norm       = 2.01677
  Prefactor  = 4.1113
  Prefactor  = 4.02425
  norm       = 1.31643
  norm       = 9.99669
  norm       = 1.26803
  norm       = 8.73845
  Prefactor  = 11.3095
  norm       = 2.3954
  Prefactor  = 5.61386
  Normalizat = 1.02636
  Prefactor  = 1.01358
 **********
 **   18 **HESSE 
 **********

 FCN=   125937.9     FROM HESSE     STATUS=OK           982 CALLS     6297 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.044        5.2248        .11543E-03   -1.5014    
   2  Prefactor     .10000E-03    5.2094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.9664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.8509        1.9323        .10294E-02   -1.5315    
   5  norm          .37970E-01    .10482        .11846E-02   -1.5669    
   6  Prefactor     1.3357        2.3218        .18943E-02   -1.5477    
   7  Prefactor     .10000E-03    .24015        .22327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8770        3.5683        .18213E-03   -1.5266    
   9  Prefactor     .10000E-03    .39956        .59219E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0367        1.2011        .41557E-03   -1.5504    
  12  Prefactor     2.2734        6.7005        .27281E-03   -1.5406    
  13  Prefactor     .10000E-03    17.606        .21331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4642        .70777        .63885E-03   -1.5336    
  15  norm          6.9372        .34338        .44318E-04   -1.5181    
  16  Prefactor     .10000E-03    2.2163        .49179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.7607        1.2139        .20387E-03   -1.5320    
  18  Prefactor     .10040E-03    1.1335        .13076       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.0027        16.621        .14072E-03   -1.5142    
  20  Prefactor     9.6066        2.2016        .12928E-03   -1.5088    
  21  norm          6.3915        2.0944        .15874E-03   -1.5202    
  22  Prefactor     .10000E-03    1.3223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.2511        4.9194        .87689E-03   -1.5250    
  24  Prefactor     13.293        12.154        .10943E-03   -1.4979    
  25  Prefactor     .10000E-03    4.6519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.6270        .70586        .18250E-03   -1.5453    
  27  norm          .65398        .59304        .29763E-02   -1.5546    
  28  norm          2.0168        2.1070        .29155E-03   -1.5424    
  29  Prefactor     4.1113        3.8885        .19890E-03   -1.5302    
  30  Prefactor     4.0243        1.4249        .20104E-03   -1.5307    
  31  norm          1.3164        .33238        .96083E-04   -1.5478    
  32  norm          9.9967        5.3774        .12671E-03   -1.5076    
  33  norm          1.2680        .84936        .26077E-03   -1.5483    
  34  norm          8.7384        3.9024        .13562E-03   -1.5117    
  35  Prefactor     11.310        5.1453        .11911E-03   -1.5035    
  36  norm          2.3954        .89176        .19228E-03   -1.5398    
  37  Prefactor     5.6139        3.6163        .16958E-03   -1.5234    
  38  Normalizat    1.0264        .63647E-01    .36761E-03   -.92153    
  39  Prefactor     1.0136        .32185E-01    .19727E-03   -.92278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05258e-09
Minuit parameter uncertainties:
  1  5.22504
  2  2.99792e-07
  3  6.42134e-07
  4  1.93236
  5  0.104822
  6  2.32193
  7  5.82082e-07
  8  3.56844
  9  3.32816e-05
  10  6.87297e-06
  11  1.20112
  12  6.70276
  13  3.44906e-05
  14  0.707772
  15  0.343383
  16  2.59911e-05
  17  1.21391
  18  0.00134055
  19  16.6306
  20  2.2016
  21  2.09445
  22  8.24904e-07
  23  4.91975
  24  12.1562
  25  4.34076e-07
  26  0.705868
  27  0.593042
  28  2.10704
  29  3.88871
  30  1.42492
  31  0.332384
  32  5.37765
  33  0.849363
  34  3.90253
  35  5.14552
  36  0.891769
  37  3.61644
  38  0.0636522
  39  0.0321856
Done.

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

Extracting fit parameters...

4FGL J1821.6+6819
   Spectrum: PowerLaw
357    Prefactor:  9.607e+00  2.202e+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.014e+00  3.219e-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:  1.026e+00  6.365e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.45
Ra Dec: 275.403 68.324
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 6.80e-08 +/- 1.56e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 3.70e-06

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) = 125937.872574
delta logL = 0.00616543191427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 125937.867673
delta logL = 0.0110659033235

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8556       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6837       1.0000          .0000       10.000    
     3 'Normalizat'    1.0278       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0130       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   125937.9     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      264 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8561        2.8706        .63821E-03   -.38363E-03
   2  Index         2.6836        .24839        .93599E-02    .18791E-03
   3  Normalizat    1.0278        .57741E-01    .36738E-03    .24756E-05
   4  Prefactor     1.0130        .30238E-01    .19731E-03    .18437E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.85612
  Index      = 2.68361
  Normalizat = 1.02782
  Prefactor  = 1.01304
 **********
 **   18 **HESSE 
 **********

 FCN=   125937.9     FROM HESSE     STATUS=OK            27 CALLS      291 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8561        2.6347        .25529E-04   -1.5080    
   2  Index         2.6836        .22769        .37439E-03   -.48169    
   3  Normalizat    1.0278        .57725E-01    .14695E-04   -.92104    
   4  Prefactor     1.0130        .30219E-01    .78926E-05   -.92296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62028e-11
Minuit parameter uncertainties:
  1  2.63468
  2  0.227787
  3  0.057729
  4  0.0302199
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/903802': 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) = 125937.867673
delta logL = 0.0110660793434

Extracting fit parameters...

4FGL J1821.6+6819
   Spectrum: PowerLaw
357    Prefactor:  9.856e+00  2.635e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        Index:  2.684e+00  2.278e-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.013e+00  3.022e-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:  1.028e+00  5.773e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.44
Ra Dec: 275.403 68.324
Photon Index (Free Index): 2.68 +/- 0.23
Photon Flux (Free Index): 6.70e-08 +/- 1.56e-08
Energy Flux (Free Index): 1.63e-05 +/- 3.68e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/903802/cmap_HighResolution_669859201_672451201_4FGL_J1821.6+6819_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.80e-08', energy_flux2='1.63e-05', photon_flux_error='1.56e-08', dlogl='1.11e-02', energy_flux='1.61e-05', photon_flux2='6.70e-08', job_status='DONE', time_completed='2022-04-24 06:40:47.238189', photon_index_error2='0.23', photon_index2='2.68', ts='32.45', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='3.68e-06', EG='1.03', time_epoch_completed='1650807647.24', return_code='0', job_id='903802', GAL2='1.01', EG2='1.03', return_code2='0', energy_flux_error='3.70e-06', photon_flux_error2='1.56e-08', ts2='32.44', photon_index='2.72' WHERE bin_id='167' AND source_name='4FGL J1821.6+6819' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 06:40:47 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 903802: <4FGL_J1821.6+6819_monthly_bin167> in cluster <slac> Done

Job <4FGL_J1821.6+6819_monthly_bin167> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Apr 24 02:15:27 2022
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 02:32:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 02:32:31 2022
Terminated at Sun Apr 24 06:40:48 2022
Results reported at Sun Apr 24 06:40:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1821.6+6819_monthly_bin167 275.403 68.3242 669859201 672451201 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 :                                   14751.00 sec.
    Max Memory :                                 635 MB
    Average Memory :                             487.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   14897 sec.
    Turnaround time :                            15921 sec.

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

