Sender: LSF System <lsf@bullet0075>
Subject: Job 174394: <4FGL_J1821.6+6636_weekly_bin384> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1821.6+6636_weekly_bin384 275.414 66.6093 471225601 471830401 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 :                                   4550.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             351.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   4597 sec.
    Turnaround time :                            4668 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 14 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 = 16996
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1821.6+6636_weekly_bin384
RA = 275.414, Dec = 66.6093
tmin = 471225601, tmax = 471830401
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='174394', job_status='RUN', time_executed='2021-07-28 20:33:36.988877', time_epoch_executed='1627529616.99' WHERE source_name='4FGL J1821.6+6636' and cadence='weekly' and bin_id='384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/174394

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/174394/ft1_4FGL_J1821.6+6636_weekly_bin384.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/174394/ft2_4FGL_J1821.6+6636_weekly_bin384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/174394/ft1_4FGL_J1821.6+6636_weekly_bin384.fits outfile=/scratch/kocevski/174394/ft1_filteredMKT_4FGL_J1821.6+6636_weekly_bin384.fits ra=275.414 dec=66.6093 rad=12.0 tmin=471225601.0 tmax=471830401.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.06
user 10.63
sys 0.38

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/174394/ft2_4FGL_J1821.6+6636_weekly_bin384.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/174394/ft1_filteredMKT_4FGL_J1821.6+6636_weekly_bin384.fits evtable="EVENTS" outfile="/scratch/kocevski/174394/ft1_filtered_4FGL_J1821.6+6636_weekly_bin384.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.55
user 0.37
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/174394/ft1_filtered_4FGL_J1821.6+6636_weekly_bin384.fits" evtable="EVENTS" scfile=/scratch/kocevski/174394/ft2_4FGL_J1821.6+6636_weekly_bin384.fits sctable="SC_DATA" outfile=/scratch/kocevski/174394/ltcube_471225601_471830401_4FGL_J1821.6+6636_weekly_bin384.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/174394/ft2_4FGL_J1821.6+6636_weekly_bin384.fits
.....................!
real 30.98
user 30.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/174394/ft1_filtered_4FGL_J1821.6+6636_weekly_bin384.fits evtable="EVENTS" scfile=/scratch/kocevski/174394/ft2_4FGL_J1821.6+6636_weekly_bin384.fits sctable="SC_DATA" expcube=/scratch/kocevski/174394/ltcube_471225601_471830401_4FGL_J1821.6+6636_weekly_bin384.fits outfile=/scratch/kocevski/174394/expmap_471225601_471830401_4FGL_J1821.6+6636_weekly_bin384.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/174394/ltcube_471225601_471830401_4FGL_J1821.6+6636_weekly_bin384.fits
.....................!
real 192.45
user 186.38
sys 5.49

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/174394/ft1_filtered_4FGL_J1821.6+6636_weekly_bin384.fits scfile=/scratch/kocevski/174394/ft2_4FGL_J1821.6+6636_weekly_bin384.fits outfile=/scratch/kocevski/174394/cmap_471225601_471830401_4FGL_J1821.6+6636_weekly_bin384.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.59
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/174394/ft1_filtered_4FGL_J1821.6+6636_weekly_bin384.fits scfile=/scratch/kocevski/174394/ft2_4FGL_J1821.6+6636_weekly_bin384.fits outfile=/scratch/kocevski/174394/cmap_HighResolution_471225601_471830401_4FGL_J1821.6+6636_weekly_bin384.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/174394/ft1_filtered_4FGL_J1821.6+6636_weekly_bin384.fits evtable="EVENTS" scfile=/scratch/kocevski/174394/ft2_4FGL_J1821.6+6636_weekly_bin384.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/174394/Model_4FGL_J1821.6+6636_weekly_bin384.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/174394/ft1_filtered_4FGL_J1821.6+6636_weekly_bin384.fits.....................!
real 301.53
user 299.40
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .17413E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7972       1.0000         .10000E-03   10000.    
     5 'norm      '    .38910E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5514       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9042       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6273       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.2094       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.5163       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.371       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4582       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.7964       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7218       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18574E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    14.659       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .91820E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    35.231       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    31.790       1.0000         .10000E-03   10000.    
    28 'norm      '    2.3942       1.0000         .10000E-03   10000.    
    29 'norm      '    2.1437       1.0000         .10000E-03   10000.    
    30 'norm      '    2.7405       1.0000         .10000E-03   10000.    
    31 'Prefactor '    16.278       1.0000         .10000E-03   10000.    
    32 'Prefactor '    2.7667       1.0000         .10000E-03   10000.    
    33 'norm      '    12.282       1.0000         .10000E-03   10000.    
    34 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    36 'Prefactor '    17.463       1.0000         .10000E-03   10000.    
    37 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    38 'Normalizat'    .99027       1.0000         .10000E-01   10.000    
    39 'Prefactor '    .96476       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=   30032.59     FROM MIGRAD    STATUS=CONVERGED   1184 CALLS     5289 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.657        .54131E-05** at limit **
   2  Prefactor     .10000E-03    6.2371       -.35445E-05** at limit **
   3  norm          .10001E-03    1.4888        .73035E-06** at limit **
   4  Prefactor     6.7988        9.5052        .55934E-08   -.16590E-03
   5  norm          .39500E-02    .10121        .94369E-08   -.24061E-04
   6  Prefactor     4.5531        3.6332        .11957E-07   -.83197E-03
   7  Prefactor     3.9048        2.0783        .13433E-07   -.19161E-03
   8  Prefactor     7.6308        7.2386        .35358E-07   -.12262E-04
   9  Prefactor     8.2116        4.1759        .44464E-07   -.47007E-03
  10  Prefactor     .10000E-03    8.1368        .20268E-05** at limit **
  11  Prefactor     .10000E-03    1.6233        .36112E-07** at limit **
  12  Prefactor     .10000E-03    10.424       -.25665E-05** at limit **
  13  Prefactor     .10000E-03    12.873       -.64988E-06** at limit **
  14  norm          8.5166        1.8753        .83405E-08    .23351E-03
  15  Prefactor     16.372        12.520        .14658E-06   -.98756E-06
  16  norm          1.4583        .50703        .34355E-08   -.12995E-03
  17  Prefactor     .10000E-03    2.0592        .41190E-08** at limit **
  18  norm          3.7961        2.2450       -.27481E-07    .25820E-03
  19  Prefactor     1.7218        3.1021       -.31596E-08   -.55243E-03
  20  Prefactor     .10000E-03    19.714       -.88449E-06** at limit **
  21  Prefactor     .10000E-03    1.2424       -.46100E-06** at limit **
  22  norm          14.659        5.4684        .45521E-08   -.91974E-05
  23  Prefactor     .19453        3.2048        .63558E-07   -.29368E-04
  24  Prefactor     35.220        16.757        .24096E-05    .29356E-03
  25  Prefactor     .10000E-03    24.608       -.58123E-05** at limit **
  26  Prefactor     .10000E-03    14.365        .36515E-05** at limit **
  27  norm          31.789        3.8836       -.27431E-06    .57187E-03
  28  norm          2.3942        1.7614        .10625E-07   -.28166E-04
  29  norm          2.1437        1.6683       -.31542E-07    .21014E-04
  30  norm          2.7405        3.8577        .63032E-06   -.49514E-05
  31  Prefactor     16.280        10.280       -.10670E-06    .96047E-05
  32  Prefactor     2.7679        2.8011       -.52732E-08   -.70127E-04
  33  norm          12.282        1.5782       -.19722E-07    .20312E-04
  34  norm          .10000E-03    7.8161       -.50412E-07** at limit **
  35  norm          .10000E-03    3.3429        .10329E-08** at limit **
  36  Prefactor     17.466        14.532        .63544E-06    .48892E-05
  37  norm          .10000E-03    .76729        .66290E-08** at limit **
  38  Normalizat    .98999        .12074       -.43043E-06   -.24882E-04
  39  Prefactor     .96481        .61019E-01   -.10713E-07   -.41290E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100012
  Prefactor  = 6.79882
  norm       = 0.00394997
  Prefactor  = 4.55308
  Prefactor  = 3.9048
  Prefactor  = 7.6308
  Prefactor  = 8.21158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.51657
  Prefactor  = 16.3723
  norm       = 1.45827
  Prefactor  = 0.0001
  norm       = 3.79609
  Prefactor  = 1.72182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.6586
  Prefactor  = 0.194532
  Prefactor  = 35.22
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.7891
  norm       = 2.39421
  norm       = 2.1437
  norm       = 2.74054
  Prefactor  = 16.2802
  Prefactor  = 2.76795
  norm       = 12.2825
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.4656
  norm       = 0.0001
  Normalizat = 0.98999
  Prefactor  = 0.96481
 **********
 **   18 **HESSE 
 **********

 FCN=   30032.59     FROM HESSE     STATUS=OK           966 CALLS     6255 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.2105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    5.9621        .39910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.7988        9.5358        .76948E-03   -1.5186    
   5  norm          .39500E-02    .18592        .18805E-01   -1.5696    
   6  Prefactor     4.5531        3.9424        .94348E-03   -1.5281    
   7  Prefactor     3.9048        2.0785        .17436E-03   -1.5313    
   8  Prefactor     7.6308        7.3058        .14521E-03   -1.5155    
   9  Prefactor     8.2116        4.1902        .69963E-03   -1.5135    
  10  Prefactor     .10000E-03    8.1556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.4932        .41889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.5166        1.8740        .10544E-03   -1.5124    
  15  Prefactor     16.372        12.520        .98989E-04   -1.4898    
  16  norm          1.4583        .50657        .70314E-04   -1.5466    
  17  Prefactor     .10000E-03    2.0731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.7961        2.2214        .18720E-03   -1.5318    
  19  Prefactor     1.7218        6.4814        .16006E-02   -1.5446    
  20  Prefactor     .10000E-03    19.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.1020        .35290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          14.659        5.4695        .10461E-03   -1.4942    
  23  Prefactor     .19453        4.1272        .92964E-01   -1.5620    
  24  Prefactor     35.220        16.613        .67516E-04   -1.4520    
  25  Prefactor     .10000E-03    24.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    14.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          31.789        3.8832        .71066E-04   -1.4580    
  28  norm          2.3942        1.7615        .19209E-03   -1.5398    
  29  norm          2.1437        1.6724        .19161E-03   -1.5415    
  30  norm          2.7405        3.8437        .24594E-03   -1.5377    
  31  Prefactor     16.280        10.275        .99271E-04   -1.4901    
  32  Prefactor     2.7679        2.8056        .24469E-03   -1.5375    
  33  norm          12.282        1.5790        .71191E-04   -1.5007    
  34  norm          .10000E-03    7.8271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          .10000E-03    3.3757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     17.466        14.547        .95842E-04   -1.4872    
  37  norm          .10000E-03    .79401        .29603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Normalizat    .98999        .13651        .38120E-03   -.93367    
  39  Prefactor     .96481        .69102E-01    .21044E-03   -.93912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13432e-09
Minuit parameter uncertainties:
  1  6.20963e-06
  2  9.13394e-07
  3  0.000537557
  4  9.53788
  5  0.0535079
  6  3.94262
  7  2.07852
  8  7.3067
  9  4.19035
  10  2.05117e-07
  11  8.28974e-06
  12  5.14735e-07
  13  1.16227e-06
  14  1.87397
  15  12.5219
  16  0.506576
  17  8.55761e-07
  18  2.22144
  19  6.48401
  20  2.09654e-06
  21  8.52218e-05
  22  5.46972
  23  1.79174
  24  16.6154
  25  2.74285e-06
  26  4.4808e-06
  27  3.88324
  28  1.76151
  29  1.67248
  30  3.84406
  31  10.2759
  32  2.80576
  33  1.57904
  34  2.85925e-07
  35  3.49841e-07
  36  14.5497
  37  3.56479e-07
  38  0.136561
  39  0.0691082
Done.

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

Extracting fit parameters...

4FGL J1821.6+6636
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  2.097e-06  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.648e-01  6.911e-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.900e-01  1.366e-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.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/174394/likelihoodResults_471225601_471830401_4FGL_J1821.6+6636_weekly_bin384.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) = 30032.5902282
delta logL = -0.000241644738708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 30032.5899877
delta logL = -1.11445842776e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10486E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0684       1.0000          .0000       10.000    
     3 'Normalizat'    .98999       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96481       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   30032.59     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      279 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10236E-03    1.1067        .18142E-01** at limit **
   2  Index         1.9963        6.2462        .50000        .18333E-04
   3  Normalizat    .98999        .78544E-03    .38120E-03   -.15866E-04
   4  Prefactor     .96481        .43171E-03    .21044E-03    .52078E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102355
  Index      = 1.99629
  Normalizat = 0.98999
  Prefactor  = 0.96481
 **********
 **   18 **HESSE 
 **********

 FCN=   30032.59     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10236E-03    29.771        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9963        8.5994        .50000       -.64443    
   3  Normalizat    .98999        .40809E-02    .15248E-04   -.93367    
   4  Prefactor     .96481        .22430E-02    .84176E-05   -.93912    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04845e-09
Minuit parameter uncertainties:
  1  0.0167553
  2  119.021
  3  0.00408094
  4  0.00224304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/174394': 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) = 30032.5899872
delta logL = -6.6714710556e-07

Extracting fit parameters...

4FGL J1821.6+6636
   Spectrum: PowerLaw
351    Prefactor:  1.024e-04  1.676e-02  1.000e-04  1.000e+04 ( 1.000e-15)
352        Index:  1.996e+00  1.190e+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.648e-01  2.243e-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.900e-01  4.081e-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/174394/cmap_HighResolution_471225601_471830401_4FGL_J1821.6+6636_weekly_bin384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-03', job_status='DONE', photon_flux_upper_limit='1.48e-08', time_completed='2021-07-28 21:49:48.636650', job_id='174394', GAL2='0.96', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1627534188.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-6.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='384' AND source_name='4FGL J1821.6+6636' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul 28 21:49:48 PDT 2021

