Sender: LSF System <lsf@bullet0026>
Subject: Job 170354: <4FGL_J1821.6+6636_weekly_bin205> in cluster <slac> Done

Job <4FGL_J1821.6+6636_weekly_bin205> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Jul 28 20:15:22 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 28 20:17:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 28 20:17:54 2021
Terminated at Wed Jul 28 20:57:45 2021
Results reported at Wed Jul 28 20:57:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1821.6+6636_weekly_bin205 275.414 66.6093 362966401 363571201 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 :                                   2296.00 sec.
    Max Memory :                                 847 MB
    Average Memory :                             326.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2392 sec.
    Turnaround time :                            2543 sec.

The output (if any) follows:

aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 58 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 = 16746
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1821.6+6636_weekly_bin205
RA = 275.414, Dec = 66.6093
tmin = 362966401, tmax = 363571201
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='170354', job_status='RUN', time_executed='2021-07-28 20:19:01.692350', time_epoch_executed='1627528741.69' WHERE source_name='4FGL J1821.6+6636' and cadence='weekly' and bin_id='205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/170354

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

Retrieving the FT1 file...

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

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

Retrieving 104 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/170354/ft1_4FGL_J1821.6+6636_weekly_bin205.fits


Retrieving the FT1 file...

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

Retrieving 104 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/170354/ft2_4FGL_J1821.6+6636_weekly_bin205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/170354/ft1_4FGL_J1821.6+6636_weekly_bin205.fits outfile=/scratch/kocevski/170354/ft1_filteredMKT_4FGL_J1821.6+6636_weekly_bin205.fits ra=275.414 dec=66.6093 rad=12.0 tmin=362966401.0 tmax=363571201.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 11.38
user 10.64
sys 0.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/170354/ft2_4FGL_J1821.6+6636_weekly_bin205.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/170354/ft1_filteredMKT_4FGL_J1821.6+6636_weekly_bin205.fits evtable="EVENTS" outfile="/scratch/kocevski/170354/ft1_filtered_4FGL_J1821.6+6636_weekly_bin205.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/170354/ft1_filtered_4FGL_J1821.6+6636_weekly_bin205.fits" evtable="EVENTS" scfile=/scratch/kocevski/170354/ft2_4FGL_J1821.6+6636_weekly_bin205.fits sctable="SC_DATA" outfile=/scratch/kocevski/170354/ltcube_362966401_363571201_4FGL_J1821.6+6636_weekly_bin205.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/170354/ft2_4FGL_J1821.6+6636_weekly_bin205.fits
.....................!
real 24.94
user 24.35
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/170354/ft1_filtered_4FGL_J1821.6+6636_weekly_bin205.fits evtable="EVENTS" scfile=/scratch/kocevski/170354/ft2_4FGL_J1821.6+6636_weekly_bin205.fits sctable="SC_DATA" expcube=/scratch/kocevski/170354/ltcube_362966401_363571201_4FGL_J1821.6+6636_weekly_bin205.fits outfile=/scratch/kocevski/170354/expmap_362966401_363571201_4FGL_J1821.6+6636_weekly_bin205.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/170354/ltcube_362966401_363571201_4FGL_J1821.6+6636_weekly_bin205.fits
.....................!
real 156.20
user 151.13
sys 4.54

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/170354/ft1_filtered_4FGL_J1821.6+6636_weekly_bin205.fits scfile=/scratch/kocevski/170354/ft2_4FGL_J1821.6+6636_weekly_bin205.fits outfile=/scratch/kocevski/170354/cmap_362966401_363571201_4FGL_J1821.6+6636_weekly_bin205.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.52
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/170354/ft1_filtered_4FGL_J1821.6+6636_weekly_bin205.fits scfile=/scratch/kocevski/170354/ft2_4FGL_J1821.6+6636_weekly_bin205.fits outfile=/scratch/kocevski/170354/cmap_HighResolution_362966401_363571201_4FGL_J1821.6+6636_weekly_bin205.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.51
user 0.36
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/170354/ft1_filtered_4FGL_J1821.6+6636_weekly_bin205.fits evtable="EVENTS" scfile=/scratch/kocevski/170354/ft2_4FGL_J1821.6+6636_weekly_bin205.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/170354/Model_4FGL_J1821.6+6636_weekly_bin205.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/170354/ft1_filtered_4FGL_J1821.6+6636_weekly_bin205.fits.....................!
real 143.15
user 140.49
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/170354/ft1_filtered_4FGL_J1821.6+6636_weekly_bin205.fits', '/scratch/kocevski/170354/ft2_4FGL_J1821.6+6636_weekly_bin205.fits', expMap='/scratch/kocevski/170354/expmap_362966401_363571201_4FGL_J1821.6+6636_weekly_bin205.fits', expCube='/scratch/kocevski/170354/ltcube_362966401_363571201_4FGL_J1821.6+6636_weekly_bin205.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/170354/Model_4FGL_J1821.6+6636_weekly_bin205.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/170354/ft1_filtered_4FGL_J1821.6+6636_weekly_bin205.fits
Spacecraft file(s): /scratch/kocevski/170354/ft2_4FGL_J1821.6+6636_weekly_bin205.fits
Exposure map: /scratch/kocevski/170354/expmap_362966401_363571201_4FGL_J1821.6+6636_weekly_bin205.fits
Exposure cube: /scratch/kocevski/170354/ltcube_362966401_363571201_4FGL_J1821.6+6636_weekly_bin205.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/170354/Model_4FGL_J1821.6+6636_weekly_bin205.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) = 17332.8905144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.0600       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.279       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2050       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5184       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .47560       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11371E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4424       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .28032       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.701       1.0000         .10000E-03   10000.    
    14 'norm      '    2.3160       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4601       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .42923E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    5.7635       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.899       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.3459       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.7506       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.0905       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    37.134       1.0000         .10000E-03   10000.    
    27 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    5.5559       1.0000         .10000E-03   10000.    
    29 'norm      '    .12495E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    11.237       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    6.2300       1.0000         .10000E-03   10000.    
    33 'norm      '    1.8845       1.0000         .10000E-03   10000.    
    34 'norm      '    12.421       1.0000         .10000E-03   10000.    
    35 'norm      '    .69291       1.0000         .10000E-03   10000.    
    36 'Prefactor '    .16279E-02   1.0000         .10000E-03   10000.    
    37 'norm      '    6.3044       1.0000         .10000E-03   10000.    
    38 'Normalizat'    .96773       1.0000         .10000E-01   10.000    
    39 'Prefactor '    .97491       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17332.87     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     5121 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10053E-03    35.329       -.41095E-05** at limit **
   2  Prefactor     .10038E-03    10.675       -.15601E-04** at limit **
   3  norm          6.0578        2.2881        .23753E-05    .90491E-03
   4  Prefactor     15.279        1.0883        .28811E-06    .17988E-04
   5  norm          1.2047        .57064       -.20761E-06   -.47682E-03
   6  Prefactor     1.5162        4.1674        .75325E-05    .96462E-03
   7  Prefactor     .47528        2.7729        .51719E-06   -.16037E-03
   8  Prefactor     .10019E-03    12.207        .13587E-04** at limit **
   9  Prefactor     3.4471        3.6863        .19264E-05   -.10772E-02
  10  Prefactor     .10006E-03    12.387       -.24942E-05** at limit **
  11  Prefactor     .29524        .85055       -.14722E-05   -.30996E-04
  12  Prefactor     .10003E-03    9.7159        .69029E-05** at limit **
  13  Prefactor     12.733        5.7904        .59051E-05   -.44654E-02
  14  norm          2.3157        1.6592       -.92128E-08    .88035E-04
  15  Prefactor     .10000E-03    5.4293        .27713E-06** at limit **
  16  norm          1.4600        .74253        .83416E-07    .60440E-04
  17  Prefactor     .10025E-03    231.05       -.73368E-05** at limit **
  18  norm          5.7649        3.1623        .43188E-06   -.36679E-03
  19  Prefactor     21.900        1.5319       -.83822E-06   -.11939E-03
  20  Prefactor     .10045E-03    15.477       -.91731E-05** at limit **
  21  Prefactor     .10000E-03    1.4369       -.37212E-06** at limit **
  22  norm          3.3444        2.8687       -.39675E-05   -.14703E-02
  23  Prefactor     4.7534        1.0752        .10990E-06    .27395E-04
  24  Prefactor     6.0806        1.0319        .13301E-06    .61188E-04
  25  Prefactor     .10015E-03    9.1868        .12626E-04** at limit **
  26  Prefactor     37.172        5.4383        .28606E-05   -.57889E-02
  27  norm          .10000E-03    2.3732        .62868E-06** at limit **
  28  norm          5.5574        2.6602        .22869E-06   -.30737E-04
  29  norm          .10000E-03    4.3540       -.64751E-09** at limit **
  30  norm          11.238        1.0182       -.67824E-07    .15647E-03
  31  Prefactor     .10000E-03    9.7947       -.73764E-06** at limit **
  32  Prefactor     6.2266        2.6295       -.39907E-06   -.27237E-02
  33  norm          1.8835        1.0569       -.27957E-07    .55520E-03
  34  norm          12.414        1.5070        .11780E-05   -.26514E-03
  35  norm          .71663        1.7969        .15164E-05   -.51260E-04
  36  Prefactor     .10208E-03    43.439        .48401E-04** at limit **
  37  norm          6.3041        2.8150       -.91030E-07    .72153E-03
  38  Normalizat    .96798        .15827       -.58472E-05   -.61332E-05
  39  Prefactor     .97481        .85823E-01    .17824E-05    .26550E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100534
  Prefactor  = 0.000100379
  norm       = 6.05781
  Prefactor  = 15.2792
  norm       = 1.2047
  Prefactor  = 1.51623
  Prefactor  = 0.475279
  Prefactor  = 0.000100194
  Prefactor  = 3.44708
  Prefactor  = 0.000100061
  Prefactor  = 0.295237
  Prefactor  = 0.000100034
  Prefactor  = 12.7326
  norm       = 2.31566
  Prefactor  = 0.0001
  norm       = 1.45998
  Prefactor  = 0.000100251
  norm       = 5.76494
  Prefactor  = 21.9004
  Prefactor  = 0.000100446
  Prefactor  = 0.0001
  norm       = 3.3444
  Prefactor  = 4.75343
  Prefactor  = 6.08065
  Prefactor  = 0.000100153
  Prefactor  = 37.1725
  norm       = 0.0001
  norm       = 5.55737
  norm       = 0.0001
  norm       = 11.2377
  Prefactor  = 0.0001
  Prefactor  = 6.22658
  norm       = 1.8835
  norm       = 12.4141
  norm       = 0.716632
  Prefactor  = 0.000102077
  norm       = 6.30414
  Normalizat = 0.96798
  Prefactor  = 0.974814
 **********
 **   18 **HESSE 
 **********

 FCN=   17332.87     FROM HESSE     STATUS=OK          1054 CALLS     6175 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10053E-03    40.815        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10038E-03    14.869        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.0578        5.0110        .40775E-02   -1.5216    
   4  Prefactor     15.279        12.814        .25616E-02   -1.4926    
   5  norm          1.2047        .58827        .10323E-01   -1.5488    
   6  Prefactor     1.5162        5.1259        .86703E-02   -1.5462    
   7  Prefactor     .47528        1.5709        .45635E-01   -1.5570    
   8  Prefactor     .10019E-03    13.859        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4471        5.5933        .54498E-02   -1.5337    
  10  Prefactor     .10006E-03    19.166        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .29524        2.9364        .10338       -1.5599    
  12  Prefactor     .10003E-03    24.612        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.733        92.691        .28100E-02   -1.4994    
  14  norm          2.3157        1.6648        .67391E-02   -1.5404    
  15  Prefactor     .10000E-03    5.4344        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4600        .75518        .89025E-02   -1.5466    
  17  Prefactor     .10025E-03    4.0250        .92355E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.7649        3.1913        .41825E-02   -1.5228    
  19  Prefactor     21.900        14.254        .21398E-02   -1.4772    
  20  Prefactor     .10045E-03    27.391        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.4286        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.3444        4.9628        .55315E-02   -1.5342    
  23  Prefactor     4.7534        11.454        .46151E-02   -1.5272    
  24  Prefactor     6.0806        12.812        .40671E-02   -1.5215    
  25  Prefactor     .10015E-03    21.633        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     37.172        46.475        .16442E-02   -1.4488    
  27  norm          .10000E-03    .95835        .41765E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          5.5574        2.6639        .42612E-02   -1.5236    
  29  norm          .10000E-03    1.7876        .62507E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          11.238        8.2381        .29878E-02   -1.5037    
  31  Prefactor     .10000E-03    9.7401        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     6.2266        4.8572        .40207E-02   -1.5209    
  33  norm          1.8835        1.1114        .75800E-03   -1.5433    
  34  norm          12.414        18.448        .28415E-02   -1.5003    
  35  norm          .71663        8.4514        .12035       -1.5539    
  36  Prefactor     .10208E-03    9.0591        .12739       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  norm          6.3041        2.9035        .39967E-02   -1.5206    
  38  Normalizat    .96798        .15502        .80818E-01   -.94111    
  39  Prefactor     .97481        .76993E-01    .45953E-01   -.93574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34008e-06
Minuit parameter uncertainties:
  1  0.00934718
  2  0.00474756
  3  5.01131
  4  12.8166
  5  0.588268
  6  5.1274
  7  1.57107
  8  0.00328394
  9  5.59411
  10  0.00216589
  11  1.862
  12  0.00183573
  13  68.8585
  14  1.66485
  15  1.31505e-05
  16  0.755188
  17  0.00200993
  18  3.19141
  19  14.2565
  20  0.00699253
  21  1.88282e-05
  22  4.96343
  23  11.4591
  24  12.8175
  25  0.00363588
  26  46.5204
  27  1.31429e-05
  28  2.66399
  29  1.22068e-05
  30  8.23893
  31  2.51978e-05
  32  4.85749
  33  1.11139
  34  18.4563
  35  4.92254
  36  0.00867578
  37  2.90356
  38  0.155094
  39  0.0770018
Done.

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

Extracting fit parameters...

4FGL J1821.6+6636
   Spectrum: PowerLaw
351    Prefactor:  1.004e-04  6.993e-03  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:  9.748e-01  7.700e-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:  9.680e-01  1.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 275.414 66.609
Photon Flux Upper Limit: 2.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/170354/likelihoodResults_362966401_363571201_4FGL_J1821.6+6636_weekly_bin205.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) = 17332.8740588
delta logL = -0.000173876491317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 17332.8738854
delta logL = -4.29594365414e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9942       1.0000          .0000       10.000    
     3 'Normalizat'    .96798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97481       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=   17332.87     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      241 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7717        .90712E-02** at limit **
   2  Index         1.9582        8.8606        .50000        .11941E-04
   3  Normalizat    .96798        .23701E-02    .80818E-01    .54853E-04
   4  Prefactor     .97481        .13235E-02    .45952E-01   -.37893E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.95817
  Normalizat = 0.967981
  Prefactor  = 0.974813
 **********
 **   18 **HESSE 
 **********

 FCN=   17332.87     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      274 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    83.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9582        5.1584        .50000       -.65400    
   3  Normalizat    .96798        .69464E-02    .35775E-03   -.94111    
   4  Prefactor     .97481        .38860E-02    .19811E-03   -.93574    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.51061e-07
Minuit parameter uncertainties:
  1  0.000673701
  2  124.359
  3  0.00694638
  4  0.00388599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/170354': 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) = 17332.8738853
delta logL = -3.14048520522e-07

Extracting fit parameters...

4FGL J1821.6+6636
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  6.737e-04  1.000e-04  1.000e+04 ( 1.000e-15)
352        Index:  1.958e+00  1.244e+02  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:  9.748e-01  3.886e-03  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:  9.680e-01  6.946e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/170354/cmap_HighResolution_362966401_363571201_4FGL_J1821.6+6636_weekly_bin205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-03', job_status='DONE', photon_flux_upper_limit='2.06e-08', time_completed='2021-07-28 20:57:44.475547', job_id='170354', GAL2='0.97', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1627531064.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-3.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='205' AND source_name='4FGL J1821.6+6636' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul 28 20:57:44 PDT 2021

