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


Performing analysis on: 4FGL_J1821.6+6819_monthly_bin169
RA = 275.403, Dec = 68.3242
tmin = 675043201, tmax = 677635201
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='184198', job_status='RUN', time_executed='2022-06-23 02:47:43.125850', time_epoch_executed='1655977663.13' WHERE source_name='4FGL J1821.6+6819' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/184198

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/184198/ft1_4FGL_J1821.6+6819_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/184198/ft2_4FGL_J1821.6+6819_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/184198/ft1_4FGL_J1821.6+6819_monthly_bin169.fits outfile=/scratch/kocevski/184198/ft1_filteredMKT_4FGL_J1821.6+6819_monthly_bin169.fits ra=275.403 dec=68.3242 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.80
user 26.94
sys 0.75

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/184198/ft2_4FGL_J1821.6+6819_monthly_bin169.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/184198/ft1_filteredMKT_4FGL_J1821.6+6819_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/184198/ft1_filtered_4FGL_J1821.6+6819_monthly_bin169.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.87
user 0.68
sys 0.18

Number of photons that the gtmktime cut: 17895

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/184198/ft1_filtered_4FGL_J1821.6+6819_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/184198/ft2_4FGL_J1821.6+6819_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/184198/ltcube_675043201_677635201_4FGL_J1821.6+6819_monthly_bin169.fits outfile=/scratch/kocevski/184198/expmap_675043201_677635201_4FGL_J1821.6+6819_monthly_bin169.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/184198/ltcube_675043201_677635201_4FGL_J1821.6+6819_monthly_bin169.fits
.....................!
real 193.26
user 187.78
sys 4.77

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/184198/ft1_filtered_4FGL_J1821.6+6819_monthly_bin169.fits scfile=/scratch/kocevski/184198/ft2_4FGL_J1821.6+6819_monthly_bin169.fits outfile=/scratch/kocevski/184198/cmap_675043201_677635201_4FGL_J1821.6+6819_monthly_bin169.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.81
user 0.62
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/184198/ft1_filtered_4FGL_J1821.6+6819_monthly_bin169.fits scfile=/scratch/kocevski/184198/ft2_4FGL_J1821.6+6819_monthly_bin169.fits outfile=/scratch/kocevski/184198/cmap_HighResolution_675043201_677635201_4FGL_J1821.6+6819_monthly_bin169.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.63
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0026       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .88614E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.0243       1.0000         .10000E-03   10000.    
     5 'norm      '    .73581E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10338       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .93125       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.7079       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7215       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4955       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.335       1.0000         .10000E-03   10000.    
    14 'norm      '    3.0182       1.0000         .10000E-03   10000.    
    15 'norm      '    7.4564       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6313       1.0000         .10000E-03   10000.    
    17 'norm      '    4.8744       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0280       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3938       1.0000         .10000E-03   10000.    
    21 'norm      '    7.6600       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.354       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9960       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.217       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.8701       1.0000         .10000E-03   10000.    
    26 'norm      '    1.5629       1.0000         .10000E-03   10000.    
    27 'norm      '    .40355       1.0000         .10000E-03   10000.    
    28 'norm      '    2.9173       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.5705       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.4748       1.0000         .10000E-03   10000.    
    31 'norm      '    2.8115       1.0000         .10000E-03   10000.    
    32 'norm      '    9.0095       1.0000         .10000E-03   10000.    
    33 'norm      '    3.0010       1.0000         .10000E-03   10000.    
    34 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    11.569       1.0000         .10000E-03   10000.    
    36 'norm      '    .88583       1.0000         .10000E-03   10000.    
    37 'Prefactor '    6.2142       1.0000         .10000E-03   10000.    
    38 'Normalizat'    .86928       1.0000         .10000E-01   10.000    
    39 'Prefactor '    1.1174       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.

 FCN=   181962.1     FROM MIGRAD    STATUS=CONVERGED   1157 CALLS     5377 TOTAL
                     EDM=   .31E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0025        2.5607         .0000       -.16202E-02
   2  Prefactor     .10000E-03    4.8412         .0000    ** at limit **
   3  Prefactor     .10000E-03    1.0307         .0000    ** at limit **
   4  norm          5.0244        1.8157         .0000        .30649E-02
   5  norm          .73623E-01    .80162E-01     .0000        .66574E-01
   6  Prefactor     .10000E-03    .18382         .0000    ** at limit **
   7  Prefactor     .10365        .17803         .0000        .18355E-01
   8  Prefactor     .93192        2.3971         .0000        .27923    
   9  Prefactor     .10000E-03    .20466         .0000    ** at limit **
  10  Prefactor     8.7072        5.8171         .0000        .43634E-03
  11  Prefactor     2.7214        1.7292         .0000        .11752    
  12  Prefactor     1.4931        14.103         .0000        .11620E-01
  13  Prefactor     23.335        15.867         .0000       -.23726E-03
  14  norm          3.0183        .56388         .0000        .28969E-02
  15  norm          7.4564        .30561         .0000       -.17318E-03
  16  Prefactor     1.6318        2.4526         .0000        .14134    
  17  norm          4.8744        1.0716         .0000       -.20527E-03
  18  Prefactor     5.0280        3.2622         .0000       -.18229E-02
  19  Prefactor     .10000E-03    7.0455         .0000    ** at limit **
  20  Prefactor     3.3941        1.4248         .0000        .10172E-01
  21  norm          7.6600        1.9465         .0000        .30689E-01
  22  Prefactor     11.354        3.5710         .0000       -.48432E-02
  23  Prefactor     1.9961        3.6059         .0000        .63780E-01
  24  Prefactor     13.217        12.693         .0000       -.35661E-04
  25  Prefactor     4.8705        13.478         .0000       -.12670E-03
  26  norm          1.5630        .56438         .0000        .10590E-01
  27  norm          .40367        .48214         .0000        .26768E-01
  28  norm          2.9171        1.5881         .0000        .54485E-01
  29  Prefactor     4.5709        3.4998         .0000        .34064E-01
  30  Prefactor     1.4749        1.1479         .0000        .66115E-02
  31  norm          2.8115        .35297         .0000       -.88186E-03
  32  norm          9.0096        5.6818         .0000        .90997E-04
  33  norm          3.0011        .99376         .0000        .73618E-02
  34  norm          .10000E-03    .93099         .0000    ** at limit **
  35  Prefactor     11.569        4.8776         .0000        .53708E-03
  36  norm          .88594        .59537         .0000        .19174E-01
  37  Prefactor     6.2143        3.0451         .0000        .12509E-01
  38  Normalizat    .86926        .49433E-01     .0000        .58109E-03
  39  Prefactor     1.1174        .24417E-01     .0000       -.34900E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.0025
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.02441
  norm       = 0.0736235
  Prefactor  = 0.0001
  Prefactor  = 0.103648
  Prefactor  = 0.931919
  Prefactor  = 0.0001
  Prefactor  = 8.70716
  Prefactor  = 2.72143
  Prefactor  = 1.49307
  Prefactor  = 23.335
  norm       = 3.01825
  norm       = 7.45638
  Prefactor  = 1.63183
  norm       = 4.87445
  Prefactor  = 5.02795
  Prefactor  = 0.0001
  Prefactor  = 3.39407
  norm       = 7.66004
  Prefactor  = 11.3541
  Prefactor  = 1.99613
  Prefactor  = 13.2174
  Prefactor  = 4.87049
  norm       = 1.56297
  norm       = 0.40367
  norm       = 2.91714
  Prefactor  = 4.57094
  Prefactor  = 1.47493
  norm       = 2.81149
  norm       = 9.00957
  norm       = 3.00113
  norm       = 0.0001
  Prefactor  = 11.5695
  norm       = 0.88594
  Prefactor  = 6.21427
  Normalizat = 0.86926
  Prefactor  = 1.11741
 **********
 **   18 **HESSE 
 **********

 FCN=   181962.1     FROM HESSE     STATUS=OK           980 CALLS     6357 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0025        2.5578        .23425E-03   -1.5361    
   2  Prefactor     .10000E-03    4.8443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.0568        .15594       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.0244        1.8112        .17940E-03   -1.5260    
   5  norm          .73623E-01    .10004        .11102E-02   -1.5654    
   6  Prefactor     .10000E-03    .82911        .34035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10365        .46604        .21109E-02   -1.5644    
   8  Prefactor     .93192        2.3423        .25841E-02   -1.5515    
   9  Prefactor     .10000E-03    .52030        .34600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.7072        5.7556        .13584E-03   -1.5118    
  11  Prefactor     2.7214        1.7135        .12343E-02   -1.5378    
  12  Prefactor     1.4931        12.816        .17518E-02   -1.5464    
  13  Prefactor     23.335        15.855        .82921E-04   -1.4741    
  14  norm          3.0183        .56227        .13099E-03   -1.5360    
  15  norm          7.4564        .30533        .44954E-04   -1.5162    
  16  Prefactor     1.6318        2.4500        .16554E-02   -1.5452    
  17  norm          4.8744        1.0677        .18219E-04   -1.5266    
  18  Prefactor     5.0280        3.2573        .17933E-03   -1.5259    
  19  Prefactor     .10000E-03    7.0591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.3941        1.4010        .21962E-03   -1.5339    
  21  norm          7.6600        1.9451        .72446E-03   -1.5154    
  22  Prefactor     11.354        3.5652        .11889E-03   -1.5034    
  23  Prefactor     1.9961        3.5115        .14660E-02   -1.5425    
  24  Prefactor     13.217        12.691        .11018E-03   -1.4981    
  25  Prefactor     4.8705        13.456        .18227E-03   -1.5267    
  26  norm          1.5630        .55176        .17488E-03   -1.5458    
  27  norm          .40367        .56096        .30395E-02   -1.5581    
  28  norm          2.9171        1.5623        .11893E-02   -1.5366    
  29  Prefactor     4.5709        3.4854        .94145E-03   -1.5280    
  30  Prefactor     1.4749        1.1412        .17684E-03   -1.5465    
  31  norm          2.8115        .35245        .84751E-04   -1.5373    
  32  norm          9.0096        5.6853        .13353E-03   -1.5108    
  33  norm          3.0011        .99089        .23431E-03   -1.5361    
  34  norm          .10000E-03    .95242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     11.569        4.8725        .11778E-03   -1.5028    
  36  norm          .88594        .58956        .25400E-03   -1.5520    
  37  Prefactor     6.2143        3.0427        .80518E-03   -1.5209    
  38  Normalizat    .86926        .52350E-01    .39336E-03   -.97549    
  39  Prefactor     1.1174        .26864E-01    .19230E-03   -.88912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04639e-06
Minuit parameter uncertainties:
  1  2.55785
  2  8.4753e-06
  3  5.2824e-05
  4  1.81124
  5  0.10004
  6  3.66375e-07
  7  0.439355
  8  2.34248
  9  6.23873e-07
  10  5.75598
  11  1.71349
  12  8.75107
  13  15.8581
  14  0.562271
  15  0.305332
  16  2.45017
  17  1.06766
  18  3.25745
  19  2.08702e-05
  20  1.40106
  21  1.94512
  22  3.56523
  23  3.51185
  24  12.6939
  25  13.4639
  26  0.55176
  27  0.560963
  28  1.56233
  29  3.48554
  30  1.14119
  31  0.352446
  32  5.68566
  33  0.990891
  34  5.1602e-07
  35  4.87267
  36  0.589568
  37  3.0428
  38  0.052353
  39  0.0268646
Done.

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

Extracting fit parameters...

4FGL J1821.6+6819
   Spectrum: PowerLaw
357    Prefactor:  3.394e+00  1.401e+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.117e+00  2.686e-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.693e-01  5.235e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.96
Ra Dec: 275.403 68.324
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 2.40e-08 +/- 9.90e-09
Energy Flux (Fixed Index): 5.70e-06 +/- 2.35e-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) = 181962.083343
delta logL = 0.00732884954778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 181962.08011
delta logL = 0.0105622450355

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2696       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7864       1.0000          .0000       10.000    
     3 'Normalizat'    .86775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1179       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=   181962.1     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      278 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2682        1.8105        .11198E-02    .41359E-03
   2  Index         2.7870        .55754        .76865E-02    .83661E-03
   3  Normalizat    .86775        .47808E-01    .39368E-03   -.77625E-04
   4  Prefactor     1.1179        .25550E-01    .19226E-03    .14002E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.26817
  Index      = 2.78701
  Normalizat = 0.867754
  Prefactor  = 1.11789
 **********
 **   18 **HESSE 
 **********

 FCN=   181962.1     FROM HESSE     STATUS=OK            27 CALLS      305 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2682        1.6007        .44790E-04   -1.5346    
   2  Index         2.7870        .49285        .15373E-02   -.45849    
   3  Normalizat    .86775        .47726E-01    .15747E-04   -.97603    
   4  Prefactor     1.1179        .25516E-01    .76906E-05   -.88897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95702e-12
Minuit parameter uncertainties:
  1  1.60075
  2  0.49385
  3  0.0477286
  4  0.0255159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/184198': 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) = 181962.080109
delta logL = 0.0105630878534

Extracting fit parameters...

4FGL J1821.6+6819
   Spectrum: PowerLaw
357    Prefactor:  3.268e+00  1.601e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        Index:  2.787e+00  4.939e-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.118e+00  2.552e-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.678e-01  4.773e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.03
Ra Dec: 275.403 68.324
Photon Index (Free Index): 2.79 +/- 0.49
Photon Flux (Free Index): 2.51e-08 +/- 1.20e-08
Energy Flux (Free Index): 5.67e-06 +/- 2.19e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/184198/cmap_HighResolution_675043201_677635201_4FGL_J1821.6+6819_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.40e-08', energy_flux2='5.67e-06', photon_flux_error='9.90e-09', dlogl='1.06e-02', energy_flux='5.70e-06', photon_flux2='2.51e-08', job_status='DONE', time_completed='2022-06-23 08:42:11.306306', photon_index_error2='0.49', photon_index2='2.79', ts='8.96', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='2.19e-06', EG='0.87', time_epoch_completed='1655998931.31', return_code='0', job_id='184198', GAL2='1.12', EG2='0.87', return_code2='0', energy_flux_error='2.35e-06', photon_flux_error2='1.20e-08', ts2='9.03', photon_index='2.72' WHERE bin_id='169' AND source_name='4FGL J1821.6+6819' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 08:42:11 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 184198: <4FGL_J1821.6+6819_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1821.6+6819_monthly_bin169> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Jun 23 02:45:34 2022
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:46:02 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:46:02 2022
Terminated at Thu Jun 23 08:42:12 2022
Results reported at Thu Jun 23 08:42:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1821.6+6819_monthly_bin169 275.403 68.3242 675043201 677635201 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 :                                   21209.00 sec.
    Max Memory :                                 777 MB
    Average Memory :                             568.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   21370 sec.
    Turnaround time :                            21398 sec.

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

