Sender: LSF System <lsf@bullet0225>
Subject: Job 172977: <4FGL_J1821.6+6636_weekly_bin313> in cluster <slac> Done

Job <4FGL_J1821.6+6636_weekly_bin313> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Jul 28 20:25:21 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 28 20:26:06 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:26:06 2021
Terminated at Wed Jul 28 21:06:31 2021
Results reported at Wed Jul 28 21:06:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1821.6+6636_weekly_bin313 275.414 66.6093 428284801 428889601 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 :                                   2313.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             331.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2424 sec.
    Turnaround time :                            2470 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 86 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 = 17212
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1821.6+6636_weekly_bin313
RA = 275.414, Dec = 66.6093
tmin = 428284801, tmax = 428889601
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='172977', job_status='RUN', time_executed='2021-07-28 20:27:42.540481', time_epoch_executed='1627529262.54' WHERE source_name='4FGL J1821.6+6636' and cadence='weekly' and bin_id='313'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/172977

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/172977/ft1_4FGL_J1821.6+6636_weekly_bin313.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/172977/ft2_4FGL_J1821.6+6636_weekly_bin313.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/172977/ft1_4FGL_J1821.6+6636_weekly_bin313.fits outfile=/scratch/kocevski/172977/ft1_filteredMKT_4FGL_J1821.6+6636_weekly_bin313.fits ra=275.414 dec=66.6093 rad=12.0 tmin=428284801.0 tmax=428889601.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 14.08
user 13.59
sys 0.44

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/172977/ft1_filtered_4FGL_J1821.6+6636_weekly_bin313.fits evtable="EVENTS" scfile=/scratch/kocevski/172977/ft2_4FGL_J1821.6+6636_weekly_bin313.fits sctable="SC_DATA" expcube=/scratch/kocevski/172977/ltcube_428284801_428889601_4FGL_J1821.6+6636_weekly_bin313.fits outfile=/scratch/kocevski/172977/expmap_428284801_428889601_4FGL_J1821.6+6636_weekly_bin313.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/172977/ltcube_428284801_428889601_4FGL_J1821.6+6636_weekly_bin313.fits
.....................!
real 192.08
user 186.70
sys 4.73

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/172977/ft1_filtered_4FGL_J1821.6+6636_weekly_bin313.fits scfile=/scratch/kocevski/172977/ft2_4FGL_J1821.6+6636_weekly_bin313.fits outfile=/scratch/kocevski/172977/cmap_428284801_428889601_4FGL_J1821.6+6636_weekly_bin313.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.62
user 0.43
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/172977/ft1_filtered_4FGL_J1821.6+6636_weekly_bin313.fits scfile=/scratch/kocevski/172977/ft2_4FGL_J1821.6+6636_weekly_bin313.fits outfile=/scratch/kocevski/172977/cmap_HighResolution_428284801_428889601_4FGL_J1821.6+6636_weekly_bin313.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.42
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3275       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.215       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.885       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.918       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.1831       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.361       1.0000         .10000E-03   10000.    
    16 'norm      '    4.2434       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.2236       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.387       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6406       1.0000         .10000E-03   10000.    
    22 'norm      '    13.660       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.8529       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .85974       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.4826       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.4458       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .25093E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    1.3013       1.0000         .10000E-03   10000.    
    34 'norm      '    2.2807       1.0000         .10000E-03   10000.    
    35 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    36 'Prefactor '    22.666       1.0000         .10000E-03   10000.    
    37 'norm      '    6.0784       1.0000         .10000E-03   10000.    
    38 'Normalizat'    1.1844       1.0000         .10000E-01   10.000    
    39 'Prefactor '    .92822       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=   14104.42     FROM MIGRAD    STATUS=CONVERGED   1164 CALLS     5223 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.418       -.42910E-05** at limit **
   2  Prefactor     .10000E-03    13.178        .73748E-07** at limit **
   3  norm          .10000E-03    6.8536       -.39670E-06** at limit **
   4  Prefactor     .10000E-03    12.405       -.28162E-05** at limit **
   5  norm          1.3275        .72852        .26936E-08   -.20315E-05
   6  Prefactor     .10000E-03    2.7019        .10961E-08** at limit **
   7  Prefactor     .10000E-03    1.0224        .10671E-07** at limit **
   8  Prefactor     17.216        14.819       -.46978E-08   -.15311E-04
   9  Prefactor     .10000E-03    3.8745        .15508E-06** at limit **
  10  Prefactor     15.885        17.093       -.12869E-06   -.63368E-05
  11  Prefactor     25.919        12.497        .41504E-07    .40369E-05
  12  Prefactor     .10000E-03    33.952       -.21525E-05** at limit **
  13  Prefactor     .10000E-03    47.940        .37653E-05** at limit **
  14  norm          6.1831        2.5572       -.43732E-07   -.26930E-04
  15  Prefactor     34.361        26.280       -.59628E-07   -.12487E-05
  16  norm          4.2435        .97968       -.26702E-09   -.90519E-04
  17  Prefactor     .10000E-03    3.2051       -.95217E-08** at limit **
  18  norm          7.2237        3.8795        .11619E-06   -.40446E-04
  19  Prefactor     15.387        14.402       -.22921E-07   -.23525E-05
  20  Prefactor     .10000E-03    32.979        .32342E-05** at limit **
  21  Prefactor     1.6407        .45862        .28941E-07   -.62325E-03
  22  norm          13.661        6.7974       -.80506E-08   -.30224E-05
  23  Prefactor     5.8539        17.347       -.15053E-06   -.85498E-05
  24  Prefactor     .85911        6.9321        .11267E-07   -.32708E-04
  25  Prefactor     7.4801        69.814       -.51561E-05   -.49837E-05
  26  Prefactor     .10000E-03    107.27       -.24285E-06** at limit **
  27  norm          4.4457        3.0813       -.46157E-07   -.81258E-04
  28  norm          .10000E-03    .75804        .37526E-10** at limit **
  29  norm          .10000E-03    2.2360       -.78234E-08** at limit **
  30  norm          .10000E-03    6.6550        .34768E-06** at limit **
  31  Prefactor     .10000E-03    11.612        .22593E-05** at limit **
  32  Prefactor     .10035E-03    1.3447        .58296E-06** at limit **
  33  norm          1.3013        .90450       -.71822E-08   -.30300E-04
  34  norm          2.2605        121.41       -.31950E-04    .43999E-05
  35  norm          .10000E-03    3.9498       -.15366E-06** at limit **
  36  Prefactor     22.667        16.782       -.31773E-06   -.40412E-04
  37  norm          6.0778        2.9665       -.61436E-07   -.35813E-03
  38  Normalizat    1.1842        .17208       -.92770E-06   -.88767E-04
  39  Prefactor     .92829        .87797E-01    .84982E-06   -.44280E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.32751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2158
  Prefactor  = 0.0001
  Prefactor  = 15.8854
  Prefactor  = 25.9188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.18313
  Prefactor  = 34.361
  norm       = 4.24346
  Prefactor  = 0.0001
  norm       = 7.2237
  Prefactor  = 15.387
  Prefactor  = 0.0001
  Prefactor  = 1.64065
  norm       = 13.6605
  Prefactor  = 5.8539
  Prefactor  = 0.859115
  Prefactor  = 7.48014
  Prefactor  = 0.0001
  norm       = 4.44572
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100346
  norm       = 1.3013
  norm       = 2.26052
  norm       = 0.0001
  Prefactor  = 22.6673
  norm       = 6.07777
  Normalizat = 1.18423
  Prefactor  = 0.928289
 **********
 **   18 **HESSE 
 **********

 FCN=   14104.42     FROM HESSE     STATUS=OK           942 CALLS     6165 TOTAL
                     EDM=   .99E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.9509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3275        .71791        .66877E-04   -1.5478    
   6  Prefactor     .10000E-03    2.7139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.0501        .23387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.216        14.828        .48265E-03   -1.4878    
   9  Prefactor     .10000E-03    3.9110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.885        17.062        .10049E-03   -1.4911    
  11  Prefactor     25.919        12.524        .78687E-04   -1.4689    
  12  Prefactor     .10000E-03    33.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    48.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.1831        2.5551        .11445E-03   -1.5211    
  15  Prefactor     34.361        26.280        .68363E-04   -1.4535    
  16  norm          4.2435        .98035        .54052E-04   -1.5296    
  17  Prefactor     .10000E-03    3.2120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.2237        3.9400        .14924E-03   -1.5170    
  19  Prefactor     15.387        14.410        .51052E-03   -1.4923    
  20  Prefactor     .10000E-03    32.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.6407        4.3877        .16494E-02   -1.5452    
  22  norm          13.661        6.7981        .10837E-03   -1.4969    
  23  Prefactor     5.8539        17.373        .16600E-03   -1.5224    
  24  Prefactor     .85911        49.242        .54490E-02   -1.5523    
  25  Prefactor     7.4801        69.845        .14661E-03   -1.5161    
  26  Prefactor     .10000E-03    107.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.4457        3.1763        .15327E-03   -1.5286    
  28  norm          .10000E-03    .75896        .10098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.2640        .17341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    6.7073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    11.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10035E-03    25.428        .25309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          1.3013        .90234        .89486E-04   -1.5480    
  34  norm          2.2605        122.01        .27187E-03   -1.5407    
  35  norm          .10000E-03    3.9557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     22.667        16.750        .84134E-04   -1.4755    
  37  norm          6.0778        2.9471        .13461E-03   -1.5215    
  38  Normalizat    1.1842        .19702        .35278E-03   -.87092    
  39  Prefactor     .92829        .10041        .20593E-03   -.95159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.87977e-08
Minuit parameter uncertainties:
  1  4.74538e-07
  2  3.00081e-07
  3  4.32153e-06
  4  4.47766e-06
  5  0.717919
  6  6.2426e-07
  7  4.12619e-07
  8  14.8311
  9  1.07714e-06
  10  17.0668
  11  12.5254
  12  2.88111e-07
  13  4.53422e-06
  14  2.55516
  15  26.2886
  16  0.980356
  17  4.30764e-07
  18  3.94011
  19  14.4128
  20  6.00962e-07
  21  4.38859
  22  6.79845
  23  17.388
  24  13.0189
  25  45.7847
  26  7.11578e-06
  27  3.17639
  28  1.07027e-07
  29  1.67668e-06
  30  5.01489e-06
  31  1.15475e-05
  32  0.00593474
  33  0.902344
  34  33.2861
  35  8.87183e-07
  36  16.7535
  37  2.94721
  38  0.197143
  39  0.100432
Done.

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

Extracting fit parameters...

4FGL J1821.6+6636
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  6.010e-07  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.283e-01  1.004e-01  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.184e+00  1.971e-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.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/172977/likelihoodResults_428284801_428889601_4FGL_J1821.6+6636_weekly_bin313.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) = 14104.4175407
delta logL = -0.00014297058442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14104.4173991
delta logL = -1.38147152029e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11874E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8955       1.0000          .0000       10.000    
     3 'Normalizat'    1.1843       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92819       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=   14104.42     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      238 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6978.4        .90712E-02** at limit **
   2  Index         1.8672        5.9474        .50000        .68112E-05
   3  Normalizat    1.1842        .66797E-01    .79693E-01    .37826E-04
   4  Prefactor     .92829        .35179E-01    .45363E-01    .19994E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 1.86724
  Normalizat = 1.18423
  Prefactor  = 0.92829
 **********
 **   18 **HESSE 
 **********

 FCN=   14104.42     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6415.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8672        8.9485        .50000       -.67712    
   3  Normalizat    1.1842        .49917E-01    .35278E-03   -.87092    
   4  Prefactor     .92829        .26327E-01    .20593E-03   -.95159    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.59877e-08
Minuit parameter uncertainties:
  1  0.00592156
  2  39.0084
  3  0.0499189
  4  0.0263275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/172977': 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) = 14104.4173978
delta logL = -5.80894266022e-08

Extracting fit parameters...

4FGL J1821.6+6636
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  5.922e-03  1.000e-04  1.000e+04 ( 1.000e-15)
352        Index:  1.867e+00  3.901e+01  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.283e-01  2.633e-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.184e+00  4.992e-02  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/172977/cmap_HighResolution_428284801_428889601_4FGL_J1821.6+6636_weekly_bin313.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.83e-03', job_status='DONE', photon_flux_upper_limit='2.48e-08', time_completed='2021-07-28 21:06:30.575747', job_id='172977', GAL2='0.93', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1627531590.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-5.81e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='313' AND source_name='4FGL J1821.6+6636' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul 28 21:06:30 PDT 2021

