Sender: LSF System <lsf@bullet0231>
Subject: Job 174373: <4FGL_J1821.6+6636_weekly_bin366> in cluster <slac> Done

Job <4FGL_J1821.6+6636_weekly_bin366> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Jul 28 20:31:54 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 28 20:32:35 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:32:35 2021
Terminated at Wed Jul 28 21:50:05 2021
Results reported at Wed Jul 28 21:50:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1821.6+6636_weekly_bin366 275.414 66.6093 460339201 460944001 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 :                                   4504.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             349.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   4649 sec.
    Turnaround time :                            4691 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 112 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 = 17198
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1821.6+6636_weekly_bin366
RA = 275.414, Dec = 66.6093
tmin = 460339201, tmax = 460944001
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='174373', job_status='RUN', time_executed='2021-07-28 20:34:37.424444', time_epoch_executed='1627529677.42' WHERE source_name='4FGL J1821.6+6636' and cadence='weekly' and bin_id='366'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/174373

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/174373/ft1_4FGL_J1821.6+6636_weekly_bin366.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/174373/ft2_4FGL_J1821.6+6636_weekly_bin366.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/174373/ft1_4FGL_J1821.6+6636_weekly_bin366.fits outfile=/scratch/kocevski/174373/ft1_filteredMKT_4FGL_J1821.6+6636_weekly_bin366.fits ra=275.414 dec=66.6093 rad=12.0 tmin=460339201.0 tmax=460944001.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 7.21
user 6.85
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/174373/ft2_4FGL_J1821.6+6636_weekly_bin366.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/174373/ft1_filteredMKT_4FGL_J1821.6+6636_weekly_bin366.fits evtable="EVENTS" outfile="/scratch/kocevski/174373/ft1_filtered_4FGL_J1821.6+6636_weekly_bin366.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.56
user 0.39
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/174373/ft1_filtered_4FGL_J1821.6+6636_weekly_bin366.fits" evtable="EVENTS" scfile=/scratch/kocevski/174373/ft2_4FGL_J1821.6+6636_weekly_bin366.fits sctable="SC_DATA" outfile=/scratch/kocevski/174373/ltcube_460339201_460944001_4FGL_J1821.6+6636_weekly_bin366.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/174373/ft2_4FGL_J1821.6+6636_weekly_bin366.fits
.....................!
real 31.34
user 30.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/174373/ft1_filtered_4FGL_J1821.6+6636_weekly_bin366.fits evtable="EVENTS" scfile=/scratch/kocevski/174373/ft2_4FGL_J1821.6+6636_weekly_bin366.fits sctable="SC_DATA" expcube=/scratch/kocevski/174373/ltcube_460339201_460944001_4FGL_J1821.6+6636_weekly_bin366.fits outfile=/scratch/kocevski/174373/expmap_460339201_460944001_4FGL_J1821.6+6636_weekly_bin366.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/174373/ltcube_460339201_460944001_4FGL_J1821.6+6636_weekly_bin366.fits
.....................!
real 192.28
user 186.52
sys 5.00

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/174373/ft1_filtered_4FGL_J1821.6+6636_weekly_bin366.fits scfile=/scratch/kocevski/174373/ft2_4FGL_J1821.6+6636_weekly_bin366.fits outfile=/scratch/kocevski/174373/cmap_460339201_460944001_4FGL_J1821.6+6636_weekly_bin366.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.60
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/174373/ft1_filtered_4FGL_J1821.6+6636_weekly_bin366.fits scfile=/scratch/kocevski/174373/ft2_4FGL_J1821.6+6636_weekly_bin366.fits outfile=/scratch/kocevski/174373/cmap_HighResolution_460339201_460944001_4FGL_J1821.6+6636_weekly_bin366.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.60
user 0.43
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.175       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .99489       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9540       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4746       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.064       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11131E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11742E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.262       1.0000         .10000E-03   10000.    
    14 'norm      '    2.4294       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1357       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8349       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.9469       1.0000         .10000E-03   10000.    
    18 'norm      '    7.4788       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7013       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.778       1.0000         .10000E-03   10000.    
    22 'norm      '    3.4225       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0211       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.7383       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    14.034       1.0000         .10000E-03   10000.    
    28 'norm      '    4.0052       1.0000         .10000E-03   10000.    
    29 'norm      '    1.6688       1.0000         .10000E-03   10000.    
    30 'norm      '    8.1373       1.0000         .10000E-03   10000.    
    31 'Prefactor '    17.982       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    3.4312       1.0000         .10000E-03   10000.    
    34 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    9.7751       1.0000         .10000E-03   10000.    
    36 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    37 'norm      '    3.7203       1.0000         .10000E-03   10000.    
    38 'Normalizat'    1.0028       1.0000         .10000E-01   10.000    
    39 'Prefactor '    1.0199       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   27553.59     FROM MIGRAD    STATUS=CONVERGED   1177 CALLS     6131 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.092        32.384       -.94835E-07   -.91042E-04
   2  Prefactor     .10000E-03    7.1324        .21152E-07** at limit **
   3  norm          .10000E-03    1.5294        .38843E-07** at limit **
   4  Prefactor     .10000E-03    3.9703       -.83532E-08** at limit **
   5  norm          .99466        .52378        .74985E-07    .20552E-02
   6  Prefactor     3.9565        5.3193        .18983E-06    .16693E-03
   7  Prefactor     5.4726        2.3623        .82166E-06    .24279E-02
   8  Prefactor     13.065        10.939        .68934E-07    .12914E-03
   9  Prefactor     .10000E-03    1.3784       -.45013E-08** at limit **
  10  Prefactor     .10000E-03    44.934        .73391E-06** at limit **
  11  Prefactor     .10039E-03    3.7211       -.35448E-05** at limit **
  12  Prefactor     .10000E-03    14.419        .23385E-07** at limit **
  13  Prefactor     40.261        43.121        .34427E-06    .70386E-04
  14  norm          2.4294        1.4036        .34182E-07    .21415E-03
  15  Prefactor     9.1358        8.8388        .36090E-08    .88418E-05
  16  norm          1.8347        .66824        .38579E-07    .20112E-02
  17  Prefactor     8.9471        6.8761       -.16720E-07    .92349E-04
  18  norm          7.4788        3.0593        .57258E-07    .14471E-03
  19  Prefactor     2.7007        15.731        .63594E-05    .11678E-03
  20  Prefactor     .10000E-03    21.852        .38243E-06** at limit **
  21  Prefactor     13.778        4.8709        .20751E-07    .97304E-03
  22  norm          3.4226        3.5091        .13252E-05    .34365E-03
  23  Prefactor     2.0210        6.9673        .37521E-06    .41963E-05
  24  Prefactor     4.7379        11.592        .49794E-06    .15252E-03
  25  Prefactor     .10000E-03    19.163        .13787E-08** at limit **
  26  Prefactor     .10000E-03    17.551       -.16179E-06** at limit **
  27  norm          14.034        2.7616       -.20981E-07   -.17135E-03
  28  norm          4.0052        1.8545        .29017E-08   -.15648E-05
  29  norm          1.6690        2.1628        .12547E-06    .10887E-04
  30  norm          8.1373        6.0674        .14476E-07   -.19113E-04
  31  Prefactor     17.981        9.1817        .97978E-07    .95655E-06
  32  Prefactor     .10000E-03    .74148       -.30855E-08** at limit **
  33  norm          3.4311        .93968       -.16043E-09   -.49410E-06
  34  norm          .10000E-03    7.4362       -.15357E-07** at limit **
  35  norm          9.7749        8.0236        .99311E-08    .14500E-05
  36  Prefactor     .10000E-03    8.8867       -.38506E-07** at limit **
  37  norm          3.7204        2.0158        .30199E-07    .29919E-04
  38  Normalizat    1.0029        .12772       -.13772E-05    .48366E-03
  39  Prefactor     1.0198        .64267E-01    .34111E-06    .94743E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0924
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.994662
  Prefactor  = 3.95645
  Prefactor  = 5.47258
  Prefactor  = 13.0652
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100385
  Prefactor  = 0.0001
  Prefactor  = 40.2607
  norm       = 2.42937
  Prefactor  = 9.13579
  norm       = 1.83466
  Prefactor  = 8.94708
  norm       = 7.47883
  Prefactor  = 2.70072
  Prefactor  = 0.000100005
  Prefactor  = 13.7782
  norm       = 3.42256
  Prefactor  = 2.021
  Prefactor  = 4.7379
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 14.0339
  norm       = 4.0052
  norm       = 1.669
  norm       = 8.13734
  Prefactor  = 17.9813
  Prefactor  = 0.0001
  norm       = 3.43111
  norm       = 0.0001
  norm       = 9.77486
  Prefactor  = 0.0001
  norm       = 3.7204
  Normalizat = 1.00286
  Prefactor  = 1.01985
 **********
 **   18 **HESSE 
 **********

 FCN=   27553.59     FROM HESSE     STATUS=OK           954 CALLS     7085 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.092        32.452        .99585E-04   -1.4905    
   2  Prefactor     .10000E-03    7.1412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.5411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .99466        .50046        .76436E-04   -1.5509    
   6  Prefactor     3.9565        5.2721        .20286E-03   -1.5310    
   7  Prefactor     5.4726        2.3779        .80488E-03   -1.5240    
   8  Prefactor     13.065        10.858        .11082E-03   -1.4985    
   9  Prefactor     .10000E-03    1.3928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    45.994        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10039E-03    2.2487        .71836E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     40.261        43.167        .63172E-04   -1.4438    
  14  norm          2.4294        1.3999        .14223E-03   -1.5396    
  15  Prefactor     9.1358        8.8422        .13260E-03   -1.5103    
  16  norm          1.8347        .66611        .78422E-04   -1.5437    
  17  Prefactor     8.9471        6.8959        .13400E-03   -1.5110    
  18  norm          7.4788        3.0535        .14665E-03   -1.5161    
  19  Prefactor     2.7007        16.185        .12393E-02   -1.5379    
  20  Prefactor     .10000E-03    22.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.778        4.8674        .10791E-03   -1.4965    
  22  norm          3.4226        3.5496        .10933E-02   -1.5338    
  23  Prefactor     2.0210        6.9649        .29109E-03   -1.5424    
  24  Prefactor     4.7379        11.480        .18485E-03   -1.5273    
  25  Prefactor     .10000E-03    19.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    17.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          14.034        2.7503        .10692E-03   -1.4959    
  28  norm          4.0052        1.8548        .14990E-03   -1.5308    
  29  norm          1.6690        2.1355        .26286E-03   -1.5450    
  30  norm          8.1373        6.0421        .14055E-03   -1.5137    
  31  Prefactor     17.981        9.1806        .94449E-04   -1.4860    
  32  Prefactor     .10000E-03    .74954        .13950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          3.4311        .94079        .79747E-04   -1.5337    
  34  norm          .10000E-03    7.4423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          9.7749        8.0331        .12817E-03   -1.5083    
  36  Prefactor     .10000E-03    8.9759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  norm          3.7204        2.0247        .16590E-03   -1.5322    
  38  Normalizat    1.0029        .14348        .37621E-03   -.92935    
  39  Prefactor     1.0198        .73050E-01    .20481E-03   -.92071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3575e-09
Minuit parameter uncertainties:
  1  32.4881
  2  2.0905e-05
  3  3.88119e-06
  4  9.25447e-07
  5  0.500464
  6  5.27276
  7  2.37794
  8  10.8599
  9  2.16424e-06
  10  0.000809365
  11  0.00186145
  12  8.7466e-05
  13  43.2004
  14  1.3999
  15  8.84343
  16  0.666114
  17  6.89655
  18  3.05357
  19  13.228
  20  0.000641541
  21  4.86755
  22  3.54981
  23  6.96774
  24  11.4851
  25  1.18197e-05
  26  0.000345384
  27  2.75028
  28  1.85484
  29  2.13557
  30  6.0425
  31  9.18128
  32  1.82307e-07
  33  0.940794
  34  2.11203e-05
  35  8.03397
  36  6.03814e-06
  37  2.02471
  38  0.143531
  39  0.0730568
Done.

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

Extracting fit parameters...

4FGL J1821.6+6636
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  6.415e-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.020e+00  7.306e-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.003e+00  1.435e-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: 1.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/174373/likelihoodResults_460339201_460944001_4FGL_J1821.6+6636_weekly_bin366.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) = 27553.5936291
delta logL = -0.000215383635805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 27553.5934142
delta logL = -4.58279828308e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0285       1.0000          .0000       10.000    
     3 'Normalizat'    1.0029       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0198       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=   27553.59     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      242 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5917        .90712E-02** at limit **
   2  Index         2.0026        7.7649        .50000        .10725E-04
   3  Normalizat    1.0029        .18286E-02    .84976E-01    .90458E-04
   4  Prefactor     1.0198        .10080E-02    .42156E-01    .13589E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.00263
  Normalizat = 1.00286
  Prefactor  = 1.01985
 **********
 **   18 **HESSE 
 **********

 FCN=   27553.59     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      275 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    70.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0026        7.1733        .50000       -.64284    
   3  Normalizat    1.0029        .59940E-02    .37621E-03   -.92935    
   4  Prefactor     1.0198        .33109E-02    .20480E-03   -.92071    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11744e-07
Minuit parameter uncertainties:
  1  0.000271677
  2  122.06
  3  0.00599405
  4  0.00331085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/174373': 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) = 27553.5934141
delta logL = -3.77636752091e-07

Extracting fit parameters...

4FGL J1821.6+6636
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  2.717e-04  1.000e-04  1.000e+04 ( 1.000e-15)
352        Index:  2.003e+00  1.221e+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:  1.020e+00  3.311e-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:  1.003e+00  5.994e-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/174373/cmap_HighResolution_460339201_460944001_4FGL_J1821.6+6636_weekly_bin366.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-03', job_status='DONE', photon_flux_upper_limit='1.62e-08', time_completed='2021-07-28 21:50:04.460665', job_id='174373', GAL2='1.02', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1627534204.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-3.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='366' AND source_name='4FGL J1821.6+6636' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul 28 21:50:04 PDT 2021

