Sender: LSF System <lsf@bullet0121>
Subject: Job 161059: <4FGL_J1821.6+6636_weekly_bin4> in cluster <slac> Done

Job <4FGL_J1821.6+6636_weekly_bin4> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Jul 28 19:40:22 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 28 19:40:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 28 19:40:50 2021
Terminated at Wed Jul 28 20:52:48 2021
Results reported at Wed Jul 28 20:52:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1821.6+6636_weekly_bin4 275.414 66.6093 241401601 242006401 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 :                                   4280.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             356.49 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   4317 sec.
    Turnaround time :                            4346 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 7 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 = 17168
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1821.6+6636_weekly_bin4
RA = 275.414, Dec = 66.6093
tmin = 241401601, tmax = 242006401
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='161059', job_status='RUN', time_executed='2021-07-28 19:41:10.511647', time_epoch_executed='1627526470.51' WHERE source_name='4FGL J1821.6+6636' and cadence='weekly' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/161059

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/161059/ft1_4FGL_J1821.6+6636_weekly_bin4.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/161059/ft2_4FGL_J1821.6+6636_weekly_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/161059/ft1_4FGL_J1821.6+6636_weekly_bin4.fits outfile=/scratch/kocevski/161059/ft1_filteredMKT_4FGL_J1821.6+6636_weekly_bin4.fits ra=275.414 dec=66.6093 rad=12.0 tmin=241401601.0 tmax=242006401.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 2.78
user 2.52
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/161059/ft1_filtered_4FGL_J1821.6+6636_weekly_bin4.fits" evtable="EVENTS" scfile=/scratch/kocevski/161059/ft2_4FGL_J1821.6+6636_weekly_bin4.fits sctable="SC_DATA" outfile=/scratch/kocevski/161059/ltcube_241401601_242006401_4FGL_J1821.6+6636_weekly_bin4.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/161059/ft2_4FGL_J1821.6+6636_weekly_bin4.fits
.....................!
real 34.85
user 34.38
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/161059/ft1_filtered_4FGL_J1821.6+6636_weekly_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/161059/ft2_4FGL_J1821.6+6636_weekly_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/161059/ltcube_241401601_242006401_4FGL_J1821.6+6636_weekly_bin4.fits outfile=/scratch/kocevski/161059/expmap_241401601_242006401_4FGL_J1821.6+6636_weekly_bin4.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/161059/ltcube_241401601_242006401_4FGL_J1821.6+6636_weekly_bin4.fits
.....................!
real 194.60
user 189.58
sys 4.44

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/161059/ft1_filtered_4FGL_J1821.6+6636_weekly_bin4.fits scfile=/scratch/kocevski/161059/ft2_4FGL_J1821.6+6636_weekly_bin4.fits outfile=/scratch/kocevski/161059/cmap_241401601_242006401_4FGL_J1821.6+6636_weekly_bin4.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.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/161059/ft1_filtered_4FGL_J1821.6+6636_weekly_bin4.fits scfile=/scratch/kocevski/161059/ft2_4FGL_J1821.6+6636_weekly_bin4.fits outfile=/scratch/kocevski/161059/cmap_HighResolution_241401601_242006401_4FGL_J1821.6+6636_weekly_bin4.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.43
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    5.2631       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .26527       1.0000         .10000E-03   10000.    
     5 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2786       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9155       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.568       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .81856       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17716E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.8089       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .85439       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.7995       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .29499       1.0000         .10000E-03   10000.    
    22 'norm      '    16.609       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16111E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13839E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    24.122       1.0000         .10000E-03   10000.    
    28 'norm      '    1.6974       1.0000         .10000E-03   10000.    
    29 'norm      '    3.8766       1.0000         .10000E-03   10000.    
    30 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    13.212       1.0000         .10000E-03   10000.    
    32 'Prefactor '    5.9698       1.0000         .10000E-03   10000.    
    33 'norm      '    1.4020       1.0000         .10000E-03   10000.    
    34 'norm      '    15.649       1.0000         .10000E-03   10000.    
    35 'norm      '    1.9974       1.0000         .10000E-03   10000.    
    36 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    37 'norm      '    1.3089       1.0000         .10000E-03   10000.    
    38 'Normalizat'    1.1694       1.0000         .10000E-01   10.000    
    39 'Prefactor '    .99583       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28570.74     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     5234 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.735        .48690E-05** at limit **
   2  Prefactor     .10000E-03    8.9144       -.11507E-05** at limit **
   3  norm          5.2626        1.5852       -.31369E-05   -.52494E-02
   4  Prefactor     .29011        3.1433       -.12240E-04   -.23153E-03
   5  norm          .10000E-03    .67812        .58409E-06** at limit **
   6  Prefactor     6.2789        3.2355       -.10670E-05    .19224E-02
   7  Prefactor     2.9115        2.2025        .18401E-05    .20223E-03
   8  Prefactor     17.566        1.0864        .41121E-06    .13124E-02
   9  Prefactor     .81983        2.5530        .21719E-06   -.61528E-04
  10  Prefactor     .86796E-02    63.797       -.93562E-04    .26464E-02
  11  Prefactor     6.8091        3.0227        .17937E-05    .39558E-03
  12  Prefactor     .10007E-03    26.393        .20798E-04** at limit **
  13  Prefactor     .10108E-03    61.548        .74211E-04** at limit **
  14  norm          .10000E-03    1.0615       -.95466E-06** at limit **
  15  Prefactor     .10000E-03    4.1080        .91208E-06** at limit **
  16  norm          .85482        .61451        .95330E-06    .36813E-04
  17  Prefactor     .10000E-03    2.6330        .12731E-06** at limit **
  18  norm          3.7991        2.2434        .12984E-06   -.18090E-03
  19  Prefactor     .10000E-03    4.8186        .62478E-06** at limit **
  20  Prefactor     .10040E-03    16.290       -.24763E-04** at limit **
  21  Prefactor     .29229        .59788        .13848E-06    .62706E-04
  22  norm          16.611        1.0979        .87055E-06    .51953E-02
  23  Prefactor     .10075E-03    11.360        .22215E-04** at limit **
  24  Prefactor     .10000E-03    6.9618        .21609E-05** at limit **
  25  Prefactor     .13354E-03    264.00       -.59069E-04** at limit **
  26  Prefactor     .10031E-03    47.568       -.70811E-04** at limit **
  27  norm          24.122        3.1553       -.12770E-06   -.79121E-04
  28  norm          1.6975        1.2104       -.11637E-06    .19697E-04
  29  norm          3.8772        2.6344        .15036E-06   -.81560E-04
  30  norm          .10000E-03    6.6130       -.16806E-05** at limit **
  31  Prefactor     13.215        1.0143        .25342E-06    .36320E-03
  32  Prefactor     5.9700        2.9942       -.23207E-07    .48415E-05
  33  norm          1.4020        .63097        .15510E-06    .71857E-05
  34  norm          15.649        1.0025        .11358E-06    .53208E-05
  35  norm          1.9976        1.0401        .34265E-06    .26977E-03
  36  Prefactor     .10000E-03    4.3086        .30340E-06** at limit **
  37  norm          1.3090        1.4200       -.14544E-06    .14682E-04
  38  Normalizat    1.1693        .13209        .18930E-06    .24857E-04
  39  Prefactor     .99586        .71228E-01    .20380E-05    .64448E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.26256
  Prefactor  = 0.290108
  norm       = 0.0001
  Prefactor  = 6.27885
  Prefactor  = 2.91148
  Prefactor  = 17.5662
  Prefactor  = 0.819825
  Prefactor  = 0.00867962
  Prefactor  = 6.80905
  Prefactor  = 0.000100073
  Prefactor  = 0.000101078
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.854823
  Prefactor  = 0.0001
  norm       = 3.7991
  Prefactor  = 0.0001
  Prefactor  = 0.000100403
  Prefactor  = 0.29229
  norm       = 16.611
  Prefactor  = 0.000100752
  Prefactor  = 0.0001
  Prefactor  = 0.000133542
  Prefactor  = 0.000100305
  norm       = 24.1225
  norm       = 1.69749
  norm       = 3.87721
  norm       = 0.0001
  Prefactor  = 13.215
  Prefactor  = 5.96999
  norm       = 1.402
  norm       = 15.649
  norm       = 1.99761
  Prefactor  = 0.0001
  norm       = 1.30898
  Normalizat = 1.16928
  Prefactor  = 0.995856
 **********
 **   18 **HESSE 
 **********

 FCN=   28570.74     FROM HESSE     STATUS=OK          1068 CALLS     6302 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.744        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.8948        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.2626        5.0987        .43801E-02   -1.5249    
   4  Prefactor     .29011        4.2094        .12726       -1.5600    
   5  norm          .10000E-03    .14861        .20468E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.2789        4.6846        .40050E-02   -1.5207    
   7  Prefactor     2.9115        2.4647        .59485E-02   -1.5367    
   8  Prefactor     17.566        9.2047        .23889E-02   -1.4869    
   9  Prefactor     .81983        2.6281        .12509E-01   -1.5527    
  10  Prefactor     .86796E-02    14.107        .13399       -1.5689    
  11  Prefactor     6.8091        4.5314        .38441E-02   -1.5186    
  12  Prefactor     .10007E-03    29.461        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10108E-03    67.495        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .43629        .39112E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.1057        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .85482        .73656        .25095E-01   -1.5523    
  17  Prefactor     .10000E-03    2.6153        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.7991        2.3486        .51771E-02   -1.5318    
  19  Prefactor     .10000E-03    4.7977        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10040E-03    21.897        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .29229        1.5020        .63877E-01   -1.5600    
  22  norm          16.611        5.3460        .24569E-02   -1.4893    
  23  Prefactor     .10075E-03    3.4338        .11030       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.9351        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .13354E-03    16.934        .23794       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10031E-03    51.843        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          24.122        3.2463        .20390E-02   -1.4725    
  28  norm          1.6975        1.2025        .80735E-02   -1.5447    
  29  norm          3.8772        2.6404        .51235E-02   -1.5314    
  30  norm          .10000E-03    6.4008        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     13.215        9.1491        .27550E-02   -1.4981    
  32  Prefactor     5.9700        3.0111        .41086E-02   -1.5219    
  33  norm          1.4020        .63452        .91591E-02   -1.5471    
  34  norm          15.649        15.885        .25312E-02   -1.4917    
  35  norm          1.9976        5.4279        .73268E-02   -1.5425    
  36  Prefactor     .10000E-03    4.2922        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  norm          1.3090        1.4352        .96383E-02   -1.5479    
  38  Normalizat    1.1693        .12666        .81319E-01   -.87557    
  39  Prefactor     .99586        .63401E-01    .46215E-01   -.92868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18673e-07
Minuit parameter uncertainties:
  1  0.000200222
  2  1.26589e-05
  3  5.09915
  4  2.20996
  5  4.0565e-07
  6  4.68486
  7  2.46476
  8  9.20541
  9  2.62844
  10  0.695964
  11  4.53163
  12  0.00293685
  13  0.0170757
  14  1.11041e-06
  15  1.30839e-05
  16  0.73657
  17  6.43282e-07
  18  2.34864
  19  2.58541e-06
  20  0.00594052
  21  1.32498
  22  5.34612
  23  0.00321347
  24  3.05504e-05
  25  0.0476787
  26  0.00796238
  27  3.24635
  28  1.20254
  29  2.64046
  30  3.77237e-05
  31  9.15012
  32  3.0112
  33  0.634526
  34  15.8888
  35  5.42921
  36  2.53732e-05
  37  1.43521
  38  0.126696
  39  0.0634057
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  9.959e-01  6.341e-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.169e+00  1.267e-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.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/161059/likelihoodResults_241401601_242006401_4FGL_J1821.6+6636_weekly_bin4.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) = 28570.7426709
delta logL = -0.000217517375859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 28570.7424537
delta logL = -3.06295987684e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9655       1.0000          .0000       10.000    
     3 'Normalizat'    1.1693       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99586       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=   28570.74     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    8.2302        .90712E-02** at limit **
   2  Index         1.9388        5.1752        .50000        .10335E-04
   3  Normalizat    1.1693        .20114E-02    .81319E-01   -.64281E-03
   4  Prefactor     .99586        .11054E-02    .46215E-01   -.60927E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100022
  Index      = 1.93882
  Normalizat = 1.16928
  Prefactor  = 0.995857
 **********
 **   18 **HESSE 
 **********

 FCN=   28570.74     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      270 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    59.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9388        7.0525        .50000       -.65889    
   3  Normalizat    1.1693        .54087E-02    .36000E-03   -.87557    
   4  Prefactor     .99586        .29771E-02    .21140E-03   -.92868    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.8511e-08
Minuit parameter uncertainties:
  1  0.00228213
  2  85.166
  3  0.00540869
  4  0.00297712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/161059': 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) = 28570.7424536
delta logL = -2.33991158893e-07

Extracting fit parameters...

4FGL J1821.6+6636
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  2.282e-03  1.000e-04  1.000e+04 ( 1.000e-15)
352        Index:  1.939e+00  8.517e+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.959e-01  2.977e-03  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.169e+00  5.409e-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/161059/cmap_HighResolution_241401601_242006401_4FGL_J1821.6+6636_weekly_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-03', job_status='DONE', photon_flux_upper_limit='1.57e-08', time_completed='2021-07-28 20:52:46.825001', job_id='161059', GAL2='1.00', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1627530766.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='-2.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.83' WHERE bin_id='4' AND source_name='4FGL J1821.6+6636' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul 28 20:52:46 PDT 2021

