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

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


Waiting 76 seconds before starting...
Proceeding.

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

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

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

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

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


Performing analysis on: 4FGL_J1821.6+6636_monthly_bin168
RA = 275.414, Dec = 66.6093
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='644470', job_status='RUN', time_executed='2022-05-24 03:48:56.851150', time_epoch_executed='1653389336.85' WHERE source_name='4FGL J1821.6+6636' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/644470

Creating custom pfile directory:
/scratch/kocevski/644470/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/644470/ft1_4FGL_J1821.6+6636_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/644470/ft2_4FGL_J1821.6+6636_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/644470/ft1_4FGL_J1821.6+6636_monthly_bin168.fits outfile=/scratch/kocevski/644470/ft1_filteredMKT_4FGL_J1821.6+6636_monthly_bin168.fits ra=275.414 dec=66.6093 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.87
user 28.28
sys 0.51

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

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

Number of photons that the gtmktime cut: 16700

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/644470/ft1_filtered_4FGL_J1821.6+6636_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/644470/ft2_4FGL_J1821.6+6636_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/644470/ltcube_672451201_675043201_4FGL_J1821.6+6636_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/644470/ft2_4FGL_J1821.6+6636_monthly_bin168.fits
.....................!
real 148.43
user 147.15
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/644470/ft1_filtered_4FGL_J1821.6+6636_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/644470/ft2_4FGL_J1821.6+6636_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/644470/ltcube_672451201_675043201_4FGL_J1821.6+6636_monthly_bin168.fits outfile=/scratch/kocevski/644470/expmap_672451201_675043201_4FGL_J1821.6+6636_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/644470/ltcube_672451201_675043201_4FGL_J1821.6+6636_monthly_bin168.fits
.....................!
real 192.98
user 186.90
sys 5.66

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

Setting source of interest to:
4FGL J1821.6+6636 @ 275.414 66.6093

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/644470/ft1_filtered_4FGL_J1821.6+6636_monthly_bin168.fits scfile=/scratch/kocevski/644470/ft2_4FGL_J1821.6+6636_monthly_bin168.fits outfile=/scratch/kocevski/644470/cmap_672451201_675043201_4FGL_J1821.6+6636_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.414 yref=66.6093 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/644470/ft1_filtered_4FGL_J1821.6+6636_monthly_bin168.fits scfile=/scratch/kocevski/644470/ft2_4FGL_J1821.6+6636_monthly_bin168.fits outfile=/scratch/kocevski/644470/cmap_HighResolution_672451201_675043201_4FGL_J1821.6+6636_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.414 yref=66.6093 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.90
user 0.65
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/644470/ft1_filtered_4FGL_J1821.6+6636_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/644470/ft2_4FGL_J1821.6+6636_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/644470/Model_4FGL_J1821.6+6636_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/644470/ft1_filtered_4FGL_J1821.6+6636_monthly_bin168.fits....................!
real 1673.09
user 1666.61
sys 2.57

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/644470/ft1_filtered_4FGL_J1821.6+6636_monthly_bin168.fits', '/scratch/kocevski/644470/ft2_4FGL_J1821.6+6636_monthly_bin168.fits', expMap='/scratch/kocevski/644470/expmap_672451201_675043201_4FGL_J1821.6+6636_monthly_bin168.fits', expCube='/scratch/kocevski/644470/ltcube_672451201_675043201_4FGL_J1821.6+6636_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/644470/Model_4FGL_J1821.6+6636_monthly_bin168.xml', optimizer='MINUIT')

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

4FGL J1821.6+6636
   Spectrum: PowerLaw
351    Prefactor:  6.650e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-15)
352        Index:  1.833e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  4.696e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/644470/ft1_filtered_4FGL_J1821.6+6636_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/644470/ft2_4FGL_J1821.6+6636_monthly_bin168.fits
Exposure map: /scratch/kocevski/644470/expmap_672451201_675043201_4FGL_J1821.6+6636_monthly_bin168.fits
Exposure cube: /scratch/kocevski/644470/ltcube_672451201_675043201_4FGL_J1821.6+6636_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/644470/Model_4FGL_J1821.6+6636_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) = 170202.882261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.375       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.7502       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7985       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11745E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .14267       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .93676       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5294       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4647       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11418E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4546       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.4418       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .30503E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.4027       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6425       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10625E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.0050       1.0000         .10000E-03   10000.    
    22 'norm      '    10.094       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.8621       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.3871       1.0000         .10000E-03   10000.    
    26 'Prefactor '    23.913       1.0000         .10000E-03   10000.    
    27 'norm      '    .17077       1.0000         .10000E-03   10000.    
    28 'norm      '    2.4020       1.0000         .10000E-03   10000.    
    29 'norm      '    1.0841       1.0000         .10000E-03   10000.    
    30 'norm      '    2.4383       1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.6819       1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.2723       1.0000         .10000E-03   10000.    
    33 'norm      '    3.4697       1.0000         .10000E-03   10000.    
    34 'norm      '    9.0197       1.0000         .10000E-03   10000.    
    35 'norm      '    .37897       1.0000         .10000E-03   10000.    
    36 'Prefactor '    37.840       1.0000         .10000E-03   10000.    
    37 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    38 'Normalizat'    1.0668       1.0000         .10000E-01   10.000    
    39 'Prefactor '    1.0236       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   170202.8     FROM MIGRAD    STATUS=CONVERGED   1196 CALLS     6341 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.373        10.691         .0000       -.38478E-03
   2  Prefactor     8.7503        5.9140         .0000        .41118E-02
   3  norm          1.7988        1.4612         .0000        .25290    
   4  Prefactor     .10000E-03    .43894         .0000    ** at limit **
   5  norm          .14267        .10315         .0000        .36693E-01
   6  Prefactor     .93655        1.2938         .0000        .76633E-02
   7  Prefactor     .10000E-03    .13518         .0000    ** at limit **
   8  Prefactor     4.5295        2.7543         .0000        .38598E-01
   9  Prefactor     .10000E-03    .40641         .0000    ** at limit **
  10  Prefactor     1.4655        5.6482         .0000        .33211E-01
  11  Prefactor     .10000E-03    .22003         .0000    ** at limit **
  12  Prefactor     .10000E-03    3.6107         .0000    ** at limit **
  13  Prefactor     .10000E-03    12.636         .0000    ** at limit **
  14  norm          3.4547        .58425         .0000        .22477E-02
  15  Prefactor     .10000E-03    1.1525         .0000    ** at limit **
  16  norm          4.4418        .34208         .0000        .84624E-03
  17  Prefactor     .10001E-03    .31474         .0000    ** at limit **
  18  norm          3.4027        .92177         .0000        .69014E-02
  19  Prefactor     1.6416        2.4214         .0000        .47066E-01
  20  Prefactor     .10000E-03    43.675         .0000    ** at limit **
  21  Prefactor     4.0053        1.4932         .0000        .73673E-02
  22  norm          10.094        1.8338         .0000        .26376E-01
  23  Prefactor     .10000E-03    .60088         .0000    ** at limit **
  24  Prefactor     3.8613        3.8966         .0000        .32582E-01
  25  Prefactor     9.3763        13.458         .0000       -.88489E-03
  26  Prefactor     23.902        12.737         .0000       -.24557E-02
  27  norm          .17088        .26139         .0000        .31346E-01
  28  norm          2.4021        .62556         .0000       -.56708E-03
  29  norm          1.0841        .75730         .0000        .12632E-01
  30  norm          2.4385        1.7762         .0000        .10157    
  31  Prefactor     3.6810        3.4420         .0000        .40857E-01
  32  Prefactor     1.2745        1.1375         .0000        .49971E-03
  33  norm          3.4698        .40981         .0000       -.19486E-03
  34  norm          9.0197        4.7377         .0000        .29768E-04
  35  norm          .38059        .88581         .0000        .11267E-01
  36  Prefactor     37.839        5.9160         .0000       -.35199E-03
  37  norm          .10000E-03    .11447         .0000    ** at limit **
  38  Normalizat    1.0668        .48272E-01     .0000        .34825E-03
  39  Prefactor     1.0236        .25313E-01     .0000        .47111E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.3734
  Prefactor  = 8.75033
  norm       = 1.79877
  Prefactor  = 0.0001
  norm       = 0.142674
  Prefactor  = 0.936546
  Prefactor  = 0.0001
  Prefactor  = 4.52955
  Prefactor  = 0.0001
  Prefactor  = 1.46554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.45465
  Prefactor  = 0.0001
  norm       = 4.44182
  Prefactor  = 0.000100008
  norm       = 3.40266
  Prefactor  = 1.64164
  Prefactor  = 0.000100001
  Prefactor  = 4.00528
  norm       = 10.0938
  Prefactor  = 0.0001
  Prefactor  = 3.86134
  Prefactor  = 9.37628
  Prefactor  = 23.9021
  norm       = 0.170882
  norm       = 2.40209
  norm       = 1.08414
  norm       = 2.43846
  Prefactor  = 3.68103
  Prefactor  = 1.27452
  norm       = 3.4698
  norm       = 9.01967
  norm       = 0.380588
  Prefactor  = 37.839
  norm       = 0.0001
  Normalizat = 1.06683
  Prefactor  = 1.0236
 **********
 **   18 **HESSE 
 **********

 FCN=   170202.8     FROM HESSE     STATUS=OK           994 CALLS     7335 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.373        10.691        .11387E-03   -1.5004    
   2  Prefactor     8.7503        5.8635        .67752E-03   -1.5116    
   3  norm          1.7988        1.4527        .15587E-02   -1.5440    
   4  Prefactor     .10000E-03    5.2487        .52686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .14267        .10795        .99235E-03   -1.5632    
   6  Prefactor     .93655        1.2846        .25881E-03   -1.5514    
   7  Prefactor     .10000E-03    .75929        .27642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.5295        2.6919        .94582E-03   -1.5282    
   9  Prefactor     .10000E-03    .42374        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4655        5.3677        .17767E-02   -1.5466    
  11  Prefactor     .10000E-03    .83261        .37321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.6289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4547        .58287        .12318E-03   -1.5336    
  15  Prefactor     .10000E-03    1.1611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.4418        .34033        .62886E-04   -1.5286    
  17  Prefactor     .10001E-03    .51301        .73928E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.4027        .91549        .19069E-03   -1.5339    
  19  Prefactor     1.6416        2.3999        .16482E-02   -1.5452    
  20  Prefactor     .10000E-03    45.113        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.0053        1.4746        .20152E-03   -1.5308    
  22  norm          10.094        1.8331        .63061E-03   -1.5072    
  23  Prefactor     .10000E-03    .76988        .90741E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.8613        3.7214        .10267E-02   -1.5315    
  25  Prefactor     9.3763        13.459        .13080E-03   -1.5095    
  26  Prefactor     23.902        12.704        .81914E-04   -1.4730    
  27  norm          .17088        .32970        .23349E-02   -1.5625    
  28  norm          2.4021        .62609        .16231E-03   -1.5398    
  29  norm          1.0841        .73207        .27839E-03   -1.5500    
  30  norm          2.4385        1.7525        .13101E-02   -1.5396    
  31  Prefactor     3.6810        3.4293        .10524E-02   -1.5324    
  32  Prefactor     1.2745        1.1377        .39429E-04   -1.5482    
  33  norm          3.4698        .40797        .83939E-04   -1.5335    
  34  norm          9.0197        4.7399        .13345E-03   -1.5107    
  35  norm          .38059        2.4090        .55945E-02   -1.5585    
  36  Prefactor     37.839        5.8925        .65155E-04   -1.4477    
  37  norm          .10000E-03    .10838        .46097E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Normalizat    1.0668        .53805E-01    .34967E-03   -.90824    
  39  Prefactor     1.0236        .28919E-01    .20047E-03   -.91947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10662e-06
Minuit parameter uncertainties:
  1  10.6922
  2  5.86387
  3  1.45271
  4  4.47768e-05
  5  0.10795
  6  1.28461
  7  1.84019e-06
  8  2.692
  9  6.58551e-08
  10  5.36945
  11  1.20675e-06
  12  4.95086e-06
  13  3.51801e-06
  14  0.582873
  15  2.97916e-07
  16  0.340328
  17  0.00012797
  18  0.915498
  19  2.40005
  20  0.000502542
  21  1.47465
  22  1.83307
  23  9.67175e-06
  24  3.72159
  25  13.4632
  26  12.7056
  27  0.329699
  28  0.626088
  29  0.732079
  30  1.75257
  31  3.42952
  32  1.13775
  33  0.407969
  34  4.74013
  35  1.91488
  36  5.89258
  37  6.40977e-07
  38  0.0538079
  39  0.0289192
Done.

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

Extracting fit parameters...

4FGL J1821.6+6636
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  5.025e-04  1.000e-04  1.000e+04 ( 1.000e-15)
352        Index:  1.833e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  4.696e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.024e+00  2.892e-02  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.067e+00  5.381e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 275.414 66.609
Photon Flux Upper Limit: 5.72e-09 ph cm-2 s-1
Energy Flux Upper Limit: 4.23e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/644470/likelihoodResults_672451201_675043201_4FGL_J1821.6+6636_monthly_bin168.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 170202.846876
delta logL = -0.000105698272819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 170202.846771
delta logL = -4.67931386083e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   170202.8     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      240 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    .42320E-02    .37916    ** at limit **
   2  Index         1.6148        5.6617        .50000        .71886E-05
   3  Normalizat    1.0668        .34740E-04    .78994E-01   -.37101E-03
   4  Prefactor     1.0236        .19649E-04    .41799E-01   -.14986E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100042
  Index      = 1.61485
  Normalizat = 1.06683
  Prefactor  = 1.0236
 **********
 **   18 **HESSE 
 **********

 FCN=   170202.8     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      281 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    .42320E-02    .37916       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6148        5.6617        .50000       -.74372    
   3  Normalizat    1.0668        .34666E-04    .34967E-03   -.90824    
   4  Prefactor     1.0236        .19640E-04    .20047E-03   -.91947    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.25062e-11
Minuit parameter uncertainties:
  1  2.66394e-05
  2  4.30608
  3  3.46661e-05
  4  1.96399e-05
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/644470': 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): 102
logL (Free Index) = 170202.84677
delta logL = 7.22648110241e-07

Extracting fit parameters...

4FGL J1821.6+6636
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  2.664e-05  1.000e-04  1.000e+04 ( 1.000e-15)
352        Index:  1.615e+00  4.306e+00  0.000e+00  1.000e+01 (-1.000e+00)
353        Scale:  4.696e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.024e+00  1.964e-05  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.067e+00  3.467e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 275.414 66.609

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/644470/cmap_HighResolution_672451201_675043201_4FGL_J1821.6+6636_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.23e-04', job_status='DONE', photon_flux_upper_limit='5.72e-09', time_completed='2022-05-24 11:20:06.418104', job_id='644470', GAL2='1.02', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1653416406.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='7.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='168' AND source_name='4FGL J1821.6+6636' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 11:20:06 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 644470: <4FGL_J1821.6+6636_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1821.6+6636_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) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:47:31 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:31 2022
Terminated at Tue May 24 11:20:08 2022
Results reported at Tue May 24 11:20:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1821.6+6636_monthly_bin168 275.414 66.6093 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1821.6+6636 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   26974.00 sec.
    Max Memory :                                 1100 MB
    Average Memory :                             548.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   27156 sec.
    Turnaround time :                            27283 sec.

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

