aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 222 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 74146
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1821.6+6819_monthly_bin168
RA = 275.403, Dec = 68.3242
tmin = 672451201, tmax = 675043201
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='644472', job_status='RUN', time_executed='2022-05-24 03:51:24.704675', time_epoch_executed='1653389484.7' WHERE source_name='4FGL J1821.6+6819' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/644472

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/644472/ft1_4FGL_J1821.6+6819_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/644472/ft2_4FGL_J1821.6+6819_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/644472/ft1_4FGL_J1821.6+6819_monthly_bin168.fits outfile=/scratch/kocevski/644472/ft1_filteredMKT_4FGL_J1821.6+6819_monthly_bin168.fits ra=275.403 dec=68.3242 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.82
user 27.98
sys 0.76

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/644472/ft2_4FGL_J1821.6+6819_monthly_bin168.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/644472/ft1_filteredMKT_4FGL_J1821.6+6819_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/644472/ft1_filtered_4FGL_J1821.6+6819_monthly_bin168.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.89
user 0.71
sys 0.17

Number of photons that the gtmktime cut: 17333

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/644472/ft1_filtered_4FGL_J1821.6+6819_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/644472/ft2_4FGL_J1821.6+6819_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/644472/ltcube_672451201_675043201_4FGL_J1821.6+6819_monthly_bin168.fits outfile=/scratch/kocevski/644472/expmap_672451201_675043201_4FGL_J1821.6+6819_monthly_bin168.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/644472/ltcube_672451201_675043201_4FGL_J1821.6+6819_monthly_bin168.fits
.....................!
real 192.51
user 186.91
sys 5.14

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/644472/ft1_filtered_4FGL_J1821.6+6819_monthly_bin168.fits scfile=/scratch/kocevski/644472/ft2_4FGL_J1821.6+6819_monthly_bin168.fits outfile=/scratch/kocevski/644472/cmap_672451201_675043201_4FGL_J1821.6+6819_monthly_bin168.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.84
user 0.66
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/644472/ft1_filtered_4FGL_J1821.6+6819_monthly_bin168.fits scfile=/scratch/kocevski/644472/ft2_4FGL_J1821.6+6819_monthly_bin168.fits outfile=/scratch/kocevski/644472/cmap_HighResolution_672451201_675043201_4FGL_J1821.6+6819_monthly_bin168.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.83
user 0.65
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7273       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.020       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6466       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8682       1.0000         .10000E-03   10000.    
     5 'norm      '    .14099       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .94380       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13653       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4822       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .44093       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10894E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13117E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4433       1.0000         .10000E-03   10000.    
    15 'norm      '    4.5485       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17986E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    3.3850       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6212       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .44122E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0076       1.0000         .10000E-03   10000.    
    21 'norm      '    8.9668       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .22295E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.7770       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.7001       1.0000         .10000E-03   10000.    
    25 'Prefactor '    23.558       1.0000         .10000E-03   10000.    
    26 'norm      '    .16230       1.0000         .10000E-03   10000.    
    27 'norm      '    1.0654       1.0000         .10000E-03   10000.    
    28 'norm      '    2.3375       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.4505       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.1685       1.0000         .10000E-03   10000.    
    31 'norm      '    3.4541       1.0000         .10000E-03   10000.    
    32 'norm      '    8.8269       1.0000         .10000E-03   10000.    
    33 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'norm      '    .26604       1.0000         .10000E-03   10000.    
    35 'Prefactor '    36.404       1.0000         .10000E-03   10000.    
    36 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
    37 'Prefactor '    13.129       1.0000         .10000E-03   10000.    
    38 'Normalizat'    1.0430       1.0000         .10000E-01   10.000    
    39 'Prefactor '    1.0445       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=   176123.5     FROM MIGRAD    STATUS=CONVERGED   1196 CALLS     6371 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7312        4.0014        .11210E-05   -.64929E-04
   2  Prefactor     11.016        9.7830        .35307E-06    .19024E-04
   3  Prefactor     8.6443        5.8999        .26157E-06    .20674E-05
   4  norm          1.8687        1.4456       -.50712E-07   -.15121E-02
   5  norm          .14087        .99355E-01    .69504E-08   -.53916E-02
   6  Prefactor     .94284        1.3011       -.29632E-07   -.54209E-04
   7  Prefactor     .13659        .20826       -.44198E-07   -.38531E-03
   8  Prefactor     4.4907        2.7537       -.16768E-07   -.24716E-03
   9  Prefactor     .10000E-03    .42949       -.16573E-07** at limit **
  10  Prefactor     .45912        1.4117       -.83644E-07   -.61447E-04
  11  Prefactor     .10000E-03    .23450       -.45713E-08** at limit **
  12  Prefactor     .10000E-03    3.6947        .23736E-07** at limit **
  13  Prefactor     .10000E-03    30.437        .93644E-05** at limit **
  14  norm          3.4432        .58363        .46818E-08   -.24520E-03
  15  norm          4.5483        .25738        .17104E-09    .18087E-02
  16  Prefactor     .10002E-03    .34101        .10833E-06** at limit **
  17  norm          3.3845        .91935        .24454E-07   -.95225E-03
  18  Prefactor     1.6074        2.3976        .40979E-07   -.31739E-03
  19  Prefactor     .10000E-03    37.997       -.58273E-05** at limit **
  20  Prefactor     4.0089        1.4909        .71580E-08   -.92062E-03
  21  norm          8.9629        1.8581        .17575E-06   -.54523E-04
  22  Prefactor     .10000E-03    .59662       -.44561E-07** at limit **
  23  Prefactor     3.7769        3.8762       -.16940E-06   -.12852E-03
  24  Prefactor     8.6736        13.313       -.71820E-05   -.11546E-03
  25  Prefactor     23.558        12.663       -.13711E-06    .90027E-05
  26  norm          .16227        .23719        .12479E-07   -.38315E-02
  27  norm          1.0650        .80413        .10650E-06   -.19138E-02
  28  norm          2.3408        1.7688       -.56961E-07   -.69575E-03
  29  Prefactor     3.4534        3.4173       -.52998E-06   -.26811E-03
  30  Prefactor     1.1691        .84025        .24315E-06   -.48891E-02
  31  norm          3.4540        .40792        .51696E-08    .14619E-02
  32  norm          8.8273        4.6822       -.94422E-07   -.81583E-05
  33  norm          .10000E-03    .13478       -.11980E-07** at limit **
  34  norm          .26726        .72549       -.18975E-06   -.65517E-03
  35  Prefactor     36.403        5.8292        .18270E-07    .28180E-03
  36  norm          .10000E-03    .10882       -.39353E-07** at limit **
  37  Prefactor     13.129        3.7699        .19450E-06    .69561E-04
  38  Normalizat    1.0430        .47076E-01   -.22697E-06    .14690E-03
  39  Prefactor     1.0445        .24110E-01    .53437E-07    .14959E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.73117
  Prefactor  = 11.0156
  Prefactor  = 8.6443
  norm       = 1.86874
  norm       = 0.140868
  Prefactor  = 0.942843
  Prefactor  = 0.136593
  Prefactor  = 4.49069
  Prefactor  = 0.0001
  Prefactor  = 0.459125
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.44318
  norm       = 4.54834
  Prefactor  = 0.000100016
  norm       = 3.38445
  Prefactor  = 1.60744
  Prefactor  = 0.0001
  Prefactor  = 4.00891
  norm       = 8.96291
  Prefactor  = 0.000100004
  Prefactor  = 3.77687
  Prefactor  = 8.6736
  Prefactor  = 23.5577
  norm       = 0.162269
  norm       = 1.06499
  norm       = 2.34085
  Prefactor  = 3.4534
  Prefactor  = 1.1691
  norm       = 3.45398
  norm       = 8.82733
  norm       = 0.0001
  norm       = 0.267261
  Prefactor  = 36.4034
  norm       = 0.0001
  Prefactor  = 13.1287
  Normalizat = 1.04299
  Prefactor  = 1.04452
 **********
 **   18 **HESSE 
 **********

 FCN=   176123.5     FROM HESSE     STATUS=OK          1004 CALLS     7375 TOTAL
                     EDM=   .48E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7312        3.9979        .24658E-03   -1.5377    
   2  Prefactor     11.016        9.7828        .12069E-03   -1.5044    
   3  Prefactor     8.6443        5.8515        .13632E-03   -1.5120    
   4  norm          1.8687        1.4791        .30476E-03   -1.5435    
   5  norm          .14087        .10768        .10010E-02   -1.5633    
   6  Prefactor     .94284        1.2917        .51862E-04   -1.5514    
   7  Prefactor     .13659        .60114        .20837E-02   -1.5634    
   8  Prefactor     4.4907        2.6923        .19018E-03   -1.5284    
   9  Prefactor     .10000E-03    .44892        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .45912        1.5776        .12041       -1.5572    
  11  Prefactor     .10000E-03    .80899        .39387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.7135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.919        .20573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4432        .58240        .12539E-03   -1.5337    
  15  norm          4.5483        .25784        .47425E-04   -1.5281    
  16  Prefactor     .10002E-03    .51113        .75579E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.3845        .91500        .19436E-03   -1.5340    
  18  Prefactor     1.6074        2.3828        .33238E-03   -1.5454    
  19  Prefactor     .10000E-03    39.310        .42436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0089        1.4775        .20145E-03   -1.5307    
  21  norm          8.9629        1.8579        .13385E-03   -1.5109    
  22  Prefactor     .10000E-03    .75813        .92057E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.7769        3.7161        .20772E-03   -1.5319    
  24  Prefactor     8.6736        13.376        .13590E-03   -1.5119    
  25  Prefactor     23.558        12.634        .82528E-04   -1.4737    
  26  norm          .16227        .32621        .23688E-02   -1.5627    
  27  norm          1.0650        .72915        .30771E-02   -1.5502    
  28  norm          2.3408        1.7295        .26819E-03   -1.5402    
  29  Prefactor     3.4534        3.4146        .21772E-03   -1.5336    
  30  Prefactor     1.1691        1.1343        .40729E-03   -1.5492    
  31  norm          3.4540        .40693        .85394E-04   -1.5336    
  32  norm          8.8273        4.6838        .13491E-03   -1.5114    
  33  norm          .10000E-03    .31029        .29673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  norm          .26726        3.2378        .57886E-02   -1.5605    
  35  Prefactor     36.403        5.8070        .66423E-04   -1.4501    
  36  norm          .10000E-03    .10237        .46237E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     13.129        3.7393        .11055E-03   -1.4983    
  38  Normalizat    1.0430        .53170E-01    .36018E-03   -.91604    
  39  Prefactor     1.0445        .27311E-01    .19680E-03   -.91260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.7691e-06
Minuit parameter uncertainties:
  1  3.99827
  2  9.78422
  3  5.85194
  4  1.47913
  5  0.107685
  6  1.29171
  7  0.572901
  8  2.69232
  9  3.48203e-07
  10  1.5777
  11  3.02495e-07
  12  5.23273e-07
  13  5.45525e-05
  14  0.582404
  15  0.257842
  16  0.00018096
  17  0.915002
  18  2.38291
  19  5.25573e-05
  20  1.47749
  21  1.85789
  22  0.000110206
  23  3.71633
  24  13.3808
  25  12.6352
  26  0.326211
  27  0.729155
  28  1.72956
  29  3.41483
  30  1.13431
  31  0.406931
  32  4.68404
  33  8.68209e-07
  34  1.86025
  35  5.80705
  36  2.23023e-06
  37  3.73935
  38  0.0531725
  39  0.027311
Done.

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

Extracting fit parameters...

4FGL J1821.6+6819
   Spectrum: PowerLaw
357    Prefactor:  4.009e+00  1.477e+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.045e+00  2.731e-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.043e+00  5.317e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.74
Ra Dec: 275.403 68.324
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 2.84e-08 +/- 1.04e-08
Energy Flux (Fixed Index): 6.74e-06 +/- 2.48e-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) = 176123.424886
delta logL = 0.0463574088644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 176123.40949
delta logL = 0.0617530635209

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2827       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5988       1.0000          .0000       10.000    
     3 'Normalizat'    1.0458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0436       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=   176123.4     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      283 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2822        1.6691        .19468E-03    .14763E-03
   2  Index         2.5989        .33741        .94676E-02    .94883E-03
   3  Normalizat    1.0458        .47992E-01    .35975E-03   -.16281E-03
   4  Prefactor     1.0436        .25832E-01    .19687E-03    .29751E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.28216
  Index      = 2.5989
  Normalizat = 1.04576
  Prefactor  = 1.04358
 **********
 **   18 **HESSE 
 **********

 FCN=   176123.4     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2822        1.6260        .77871E-05   -1.5294    
   2  Index         2.5989        .32847        .18935E-02   -.50091    
   3  Normalizat    1.0458        .48012E-01    .14390E-04   -.91513    
   4  Prefactor     1.0436        .25838E-01    .78749E-05   -.91290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52569e-11
Minuit parameter uncertainties:
  1  1.62604
  2  0.328774
  3  0.0480137
  4  0.0258386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/644472': 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) = 176123.40949
delta logL = 0.0617531586322

Extracting fit parameters...

4FGL J1821.6+6819
   Spectrum: PowerLaw
357    Prefactor:  4.282e+00  1.626e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        Index:  2.599e+00  3.288e-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.044e+00  2.584e-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.046e+00  4.801e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.82
Ra Dec: 275.403 68.324
Photon Index (Free Index): 2.60 +/- 0.33
Photon Flux (Free Index): 2.64e-08 +/- 1.10e-08
Energy Flux (Free Index): 6.93e-06 +/- 2.49e-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/644472/cmap_HighResolution_672451201_675043201_4FGL_J1821.6+6819_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.84e-08', energy_flux2='6.93e-06', photon_flux_error='1.04e-08', dlogl='6.18e-02', energy_flux='6.74e-06', photon_flux2='2.64e-08', job_status='DONE', time_completed='2022-05-24 10:21:14.596058', photon_index_error2='0.33', photon_index2='2.60', ts='10.74', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='2.49e-06', EG='1.04', time_epoch_completed='1653412874.6', return_code='0', job_id='644472', GAL2='1.04', EG2='1.05', return_code2='0', energy_flux_error='2.48e-06', photon_flux_error2='1.10e-08', ts2='10.82', photon_index='2.72' WHERE bin_id='168' AND source_name='4FGL J1821.6+6819' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 10:21:14 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 644472: <4FGL_J1821.6+6819_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1821.6+6819_monthly_bin168> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue May 24 03:45:25 2022
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:47:34 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 03:47:34 2022
Terminated at Tue May 24 10:21:16 2022
Results reported at Tue May 24 10:21:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1821.6+6819_monthly_bin168 275.403 68.3242 672451201 675043201 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 :                                   23332.00 sec.
    Max Memory :                                 639 MB
    Average Memory :                             558.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   23621 sec.
    Turnaround time :                            23751 sec.

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

