Sender: LSF System <lsf@bullet0082>
Subject: Job 173044: <4FGL_J1821.6+6636_weekly_bin347> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1821.6+6636_weekly_bin347 275.414 66.6093 448848001 449452801 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 :                                   2156.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             318.01 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2370 sec.
    Turnaround time :                            2530 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 170 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 = 17438
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1821.6+6636_weekly_bin347
RA = 275.414, Dec = 66.6093
tmin = 448848001, tmax = 449452801
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='173044', job_status='RUN', time_executed='2021-07-28 20:31:08.234282', time_epoch_executed='1627529468.23' WHERE source_name='4FGL J1821.6+6636' and cadence='weekly' and bin_id='347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/173044

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/173044/ft1_4FGL_J1821.6+6636_weekly_bin347.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/173044/ft2_4FGL_J1821.6+6636_weekly_bin347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/173044/ft1_4FGL_J1821.6+6636_weekly_bin347.fits outfile=/scratch/kocevski/173044/ft1_filteredMKT_4FGL_J1821.6+6636_weekly_bin347.fits ra=275.414 dec=66.6093 rad=12.0 tmin=448848001.0 tmax=449452801.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 12.86
user 12.27
sys 0.40

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/173044/ft2_4FGL_J1821.6+6636_weekly_bin347.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/173044/ft1_filteredMKT_4FGL_J1821.6+6636_weekly_bin347.fits evtable="EVENTS" outfile="/scratch/kocevski/173044/ft1_filtered_4FGL_J1821.6+6636_weekly_bin347.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.38
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/173044/ft1_filtered_4FGL_J1821.6+6636_weekly_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/173044/ft2_4FGL_J1821.6+6636_weekly_bin347.fits sctable="SC_DATA" expcube=/scratch/kocevski/173044/ltcube_448848001_449452801_4FGL_J1821.6+6636_weekly_bin347.fits outfile=/scratch/kocevski/173044/expmap_448848001_449452801_4FGL_J1821.6+6636_weekly_bin347.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/173044/ltcube_448848001_449452801_4FGL_J1821.6+6636_weekly_bin347.fits
.....................!
real 194.72
user 186.50
sys 5.81

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/173044/ft1_filtered_4FGL_J1821.6+6636_weekly_bin347.fits scfile=/scratch/kocevski/173044/ft2_4FGL_J1821.6+6636_weekly_bin347.fits outfile=/scratch/kocevski/173044/cmap_448848001_449452801_4FGL_J1821.6+6636_weekly_bin347.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.64
user 0.44
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/173044/ft1_filtered_4FGL_J1821.6+6636_weekly_bin347.fits scfile=/scratch/kocevski/173044/ft2_4FGL_J1821.6+6636_weekly_bin347.fits outfile=/scratch/kocevski/173044/cmap_HighResolution_448848001_449452801_4FGL_J1821.6+6636_weekly_bin347.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.59
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    7.0690       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.220       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5481       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2034       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.5222       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.351       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8113       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.0385       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0215       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.9708       1.0000         .10000E-03   10000.    
    22 'norm      '    9.0975       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.848       1.0000         .10000E-03   10000.    
    24 'Prefactor '    33.363       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.8099       1.0000         .10000E-03   10000.    
    28 'norm      '    7.2281       1.0000         .10000E-03   10000.    
    29 'norm      '    2.7776       1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    25.214       1.0000         .10000E-03   10000.    
    32 'Prefactor '    7.4560       1.0000         .10000E-03   10000.    
    33 'norm      '    5.6697       1.0000         .10000E-03   10000.    
    34 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    .10823E-02   1.0000         .10000E-03   10000.    
    36 'Prefactor '    1.8614       1.0000         .10000E-03   10000.    
    37 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    38 'Normalizat'    .90896       1.0000         .10000E-01   10.000    
    39 'Prefactor '    1.0518       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=   12184.35     FROM MIGRAD    STATUS=CONVERGED   1158 CALLS     6159 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.188        .53433E-05** at limit **
   2  Prefactor     .10000E-03    12.160        .23337E-05** at limit **
   3  norm          7.0688        5.2704       -.13321E-06    .59775E-04
   4  Prefactor     .10000E-03    9.3731        .15854E-05** at limit **
   5  norm          .10000E-03    .31118        .14620E-06** at limit **
   6  Prefactor     12.221        7.7226       -.17927E-06   -.90643E-04
   7  Prefactor     .10000E-03    2.1137        .42982E-07** at limit **
   8  Prefactor     1.5393        36.091       -.36406E-05   -.23545E-03
   9  Prefactor     5.2041        5.3863        .68475E-06   -.30464E-03
  10  Prefactor     .10001E-03    86.589       -.20310E-04** at limit **
  11  Prefactor     9.5219        8.1412       -.56315E-07   -.10138E-03
  12  Prefactor     .10000E-03    28.292       -.63284E-05** at limit **
  13  Prefactor     .10000E-03    79.531        .69715E-05** at limit **
  14  norm          .10000E-03    .77513        .39929E-08** at limit **
  15  Prefactor     40.349        26.143       -.95558E-06    .37586E-04
  16  norm          1.8116        .96698        .58670E-08    .41248E-03
  17  Prefactor     6.0373        12.652       -.40874E-06   -.71017E-04
  18  norm          4.0218        3.5637        .21569E-06   -.20446E-03
  19  Prefactor     .10000E-03    8.8370       -.17174E-05** at limit **
  20  Prefactor     .10000E-03    76.513        .16406E-04** at limit **
  21  Prefactor     2.9692        7.2564       -.15446E-05   -.52401E-03
  22  norm          9.0971        8.1853       -.36511E-06   -.85248E-04
  23  Prefactor     15.848        18.904       -.68036E-06    .65645E-05
  24  Prefactor     33.368        27.221        .13608E-05    .64278E-06
  25  Prefactor     .10000E-03    21.072        .10666E-04** at limit **
  26  Prefactor     .10000E-03    28.944       -.74534E-05** at limit **
  27  norm          7.8098        4.0282       -.14281E-06   -.69656E-04
  28  norm          7.2279        3.3894       -.16349E-06    .76917E-04
  29  norm          2.7775        2.7900        .11846E-06    .46665E-03
  30  norm          .10000E-03    2.4365       -.11566E-07** at limit **
  31  Prefactor     25.214        20.031        .32479E-05   -.30874E-04
  32  Prefactor     7.4526        6.5779        .19269E-05   -.46801E-04
  33  norm          5.6714        2.3440        .39959E-06   -.36511E-03
  34  norm          .10000E-03    14.695       -.58031E-05** at limit **
  35  norm          .10025E-03    11.641        .27373E-05** at limit **
  36  Prefactor     1.7986        80.649       -.38225E-04   -.21030E-04
  37  norm          .10000E-03    2.8287       -.86234E-06** at limit **
  38  Normalizat    .90891        .20110       -.16518E-06    .17438E-03
  39  Prefactor     1.0518        .10499        .55270E-06    .37662E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.06884
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.2209
  Prefactor  = 0.0001
  Prefactor  = 1.53927
  Prefactor  = 5.2041
  Prefactor  = 0.00010001
  Prefactor  = 9.52195
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 40.3489
  norm       = 1.81158
  Prefactor  = 6.03726
  norm       = 4.02181
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 2.96915
  norm       = 9.09714
  Prefactor  = 15.8479
  Prefactor  = 33.3675
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 7.80983
  norm       = 7.22787
  norm       = 2.77753
  norm       = 0.0001
  Prefactor  = 25.2141
  Prefactor  = 7.45256
  norm       = 5.67142
  norm       = 0.0001
  norm       = 0.000100247
  Prefactor  = 1.7986
  norm       = 0.000100003
  Normalizat = 0.90891
  Prefactor  = 1.05184
 **********
 **   18 **HESSE 
 **********

 FCN=   12184.35     FROM HESSE     STATUS=OK           942 CALLS     7101 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.0688        5.2722        .15088E-03   -1.5176    
   4  Prefactor     .10000E-03    9.4431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .40251        .10842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.221        7.6733        .11459E-03   -1.5009    
   7  Prefactor     .10000E-03    2.1660        .31294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.5393        31.499        .34242E-03   -1.5460    
   9  Prefactor     5.2041        5.3712        .17622E-03   -1.5252    
  10  Prefactor     .10001E-03    87.740        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.5219        8.1296        .12987E-03   -1.5091    
  12  Prefactor     .10000E-03    28.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    79.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .78939        .94823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     40.349        26.146        .63102E-04   -1.4437    
  16  norm          1.8116        .96286        .76088E-04   -1.5439    
  17  Prefactor     6.0373        12.673        .16339E-03   -1.5217    
  18  norm          4.0218        3.5439        .18415E-03   -1.5307    
  19  Prefactor     .10000E-03    8.8394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    76.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.9692        7.1795        .23557E-03   -1.5363    
  22  norm          9.0971        8.1810        .13288E-03   -1.5105    
  23  Prefactor     15.848        18.893        .10061E-03   -1.4912    
  24  Prefactor     33.368        26.923        .69375E-04   -1.4552    
  25  Prefactor     .10000E-03    20.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    28.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.8098        4.0273        .14030E-03   -1.5149    
  28  norm          7.2279        3.3896        .13517E-03   -1.5170    
  29  norm          2.7775        2.8022        .18051E-03   -1.5375    
  30  norm          .10000E-03    2.4374        .16827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     25.214        19.955        .79776E-04   -1.4703    
  32  Prefactor     7.4526        6.2745        .14688E-03   -1.5162    
  33  norm          5.6714        2.2774        .98140E-04   -1.5232    
  34  norm          .10000E-03    14.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          .10025E-03    77.730        .70202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     1.7986        82.482        .30541E-03   -1.5440    
  37  norm          .10000E-03    16.180        .33848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Normalizat    .90891        .22316        .39873E-03   -.96148    
  39  Prefactor     1.0518        .11662        .21349E-03   -.91021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35294e-09
Minuit parameter uncertainties:
  1  0.000262011
  2  5.87815e-05
  3  5.2725
  4  4.78711e-05
  5  9.73906e-06
  6  7.67393
  7  7.32101e-06
  8  13.9342
  9  5.37167
  10  0.00186371
  11  8.13053
  12  0.000220612
  13  0.000490657
  14  1.62463e-07
  15  26.1539
  16  0.962864
  17  12.6783
  18  3.54409
  19  4.08838e-05
  20  0.00107315
  21  7.18153
  22  8.18197
  23  18.8996
  24  26.9327
  25  0.000374175
  26  0.000299331
  27  4.02739
  28  3.38971
  29  2.80229
  30  7.75773e-07
  31  19.9605
  32  6.27508
  33  2.27741
  34  0.000167186
  35  0.00877439
  36  24.3951
  37  0.000466582
  38  0.223383
  39  0.116648
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.052e+00  1.166e-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:  9.089e-01  2.234e-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: 4.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/173044/likelihoodResults_448848001_449452801_4FGL_J1821.6+6636_weekly_bin347.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) = 12184.3522702
delta logL = -6.24521217105e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12184.3522078
delta logL = -3.20997060044e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8771       1.0000          .0000       10.000    
     3 'Normalizat'    .90891       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0518       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=   12184.35     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      237 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7341.3        .90712E-02** at limit **
   2  Index         1.8507        6.7974        .50000        .25970E-05
   3  Normalizat    .90891        .45888E-01    .90025E-01    .45295E-04
   4  Prefactor     1.0518        .26381E-01    .39803E-01    .14156E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 1.85075
  Normalizat = 0.90891
  Prefactor  = 1.05184
 **********
 **   18 **HESSE 
 **********

 FCN=   12184.35     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    9141.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8507        5.9215        .50000       -.68136    
   3  Normalizat    .90891        .89094E-01    .39873E-03   -.96148    
   4  Prefactor     1.0518        .51355E-01    .21349E-03   -.91021    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.22911e-08
Minuit parameter uncertainties:
  1  0.0171856
  2  52.0392
  3  0.0891082
  4  0.0513577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/173044': 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) = 12184.3522078
delta logL = -1.16287992569e-08

Extracting fit parameters...

4FGL J1821.6+6636
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  1.719e-02  1.000e-04  1.000e+04 ( 1.000e-15)
352        Index:  1.851e+00  5.204e+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:  1.052e+00  5.136e-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.089e-01  8.911e-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/173044/cmap_HighResolution_448848001_449452801_4FGL_J1821.6+6636_weekly_bin347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.02e-03', job_status='DONE', photon_flux_upper_limit='4.08e-08', time_completed='2021-07-28 21:07:38.586902', job_id='173044', GAL2='1.05', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1627531658.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-1.16e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='347' AND source_name='4FGL J1821.6+6636' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul 28 21:07:38 PDT 2021

