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/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 131 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 = 17171
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0821.1+1007_weekly_bin654
RA = 125.299, Dec = 10.1287
tmin = 634521601, tmax = 635126401
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='78329', job_status='RUN', time_executed='2021-07-13 16:17:53.373210', time_epoch_executed='1626218273.37' WHERE source_name='4FGL J0821.1+1007' and cadence='weekly' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/78329

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/78329/ft1_4FGL_J0821.1+1007_weekly_bin654.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/78329/ft2_4FGL_J0821.1+1007_weekly_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/78329/ft1_4FGL_J0821.1+1007_weekly_bin654.fits outfile=/scratch/kocevski/78329/ft1_filteredMKT_4FGL_J0821.1+1007_weekly_bin654.fits ra=125.299 dec=10.1287 rad=12.0 tmin=634521601.0 tmax=635126401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 7.19
user 6.16
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/78329/ft2_4FGL_J0821.1+1007_weekly_bin654.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/78329/ft2_4FGL_J0821.1+1007_weekly_bin654.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/78329/ft1_filteredMKT_4FGL_J0821.1+1007_weekly_bin654.fits evtable="EVENTS" outfile="/scratch/kocevski/78329/ft1_filtered_4FGL_J0821.1+1007_weekly_bin654.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.89
user 0.39
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/78329/ft1_filtered_4FGL_J0821.1+1007_weekly_bin654.fits" evtable="EVENTS" scfile=/scratch/kocevski/78329/ft2_4FGL_J0821.1+1007_weekly_bin654.fits sctable="SC_DATA" outfile=/scratch/kocevski/78329/ltcube_634521601_635126401_4FGL_J0821.1+1007_weekly_bin654.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/78329/ft2_4FGL_J0821.1+1007_weekly_bin654.fits
.....................!
real 29.95
user 28.64
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/78329/ft1_filtered_4FGL_J0821.1+1007_weekly_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/78329/ft2_4FGL_J0821.1+1007_weekly_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/78329/ltcube_634521601_635126401_4FGL_J0821.1+1007_weekly_bin654.fits outfile=/scratch/kocevski/78329/expmap_634521601_635126401_4FGL_J0821.1+1007_weekly_bin654.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/78329/ltcube_634521601_635126401_4FGL_J0821.1+1007_weekly_bin654.fits
.....................!
real 195.91
user 186.08
sys 5.45

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 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J0821.1+1007 @ 125.299 10.1287

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/78329/ft1_filtered_4FGL_J0821.1+1007_weekly_bin654.fits scfile=/scratch/kocevski/78329/ft2_4FGL_J0821.1+1007_weekly_bin654.fits outfile=/scratch/kocevski/78329/cmap_634521601_635126401_4FGL_J0821.1+1007_weekly_bin654.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=125.299 yref=10.1287 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 1.77
user 0.40
sys 0.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/78329/ft1_filtered_4FGL_J0821.1+1007_weekly_bin654.fits scfile=/scratch/kocevski/78329/ft2_4FGL_J0821.1+1007_weekly_bin654.fits outfile=/scratch/kocevski/78329/cmap_HighResolution_634521601_635126401_4FGL_J0821.1+1007_weekly_bin654.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=125.299 yref=10.1287 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 1.15
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/78329/ft1_filtered_4FGL_J0821.1+1007_weekly_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/78329/ft2_4FGL_J0821.1+1007_weekly_bin654.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/78329/Model_4FGL_J0821.1+1007_weekly_bin654.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/78329/ft1_filtered_4FGL_J0821.1+1007_weekly_bin654.fits.....................!
real 44.28
user 29.87
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/78329/ft1_filtered_4FGL_J0821.1+1007_weekly_bin654.fits', '/scratch/kocevski/78329/ft2_4FGL_J0821.1+1007_weekly_bin654.fits', expMap='/scratch/kocevski/78329/expmap_634521601_635126401_4FGL_J0821.1+1007_weekly_bin654.fits', expCube='/scratch/kocevski/78329/ltcube_634521601_635126401_4FGL_J0821.1+1007_weekly_bin654.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/78329/Model_4FGL_J0821.1+1007_weekly_bin654.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0821.1+1007'

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.731e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.410e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  1.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/78329/ft1_filtered_4FGL_J0821.1+1007_weekly_bin654.fits
Spacecraft file(s): /scratch/kocevski/78329/ft2_4FGL_J0821.1+1007_weekly_bin654.fits
Exposure map: /scratch/kocevski/78329/expmap_634521601_635126401_4FGL_J0821.1+1007_weekly_bin654.fits
Exposure cube: /scratch/kocevski/78329/ltcube_634521601_635126401_4FGL_J0821.1+1007_weekly_bin654.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/78329/Model_4FGL_J0821.1+1007_weekly_bin654.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) = 1832.20572038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    81.631       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.505       1.0000         .10000E-03   10000.    
     3 'norm      '    28.481       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10820E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10187E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    82.497       1.0000         .10000E-03   10000.    
    10 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.3024       1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.228       1.0000         .10000E-03   10000.    
    15 'norm      '    25.077       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11068E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1274       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1832.185     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     1924 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     81.656        122.21        .22902E-04   -.18314E-04
   2  Prefactor     10.506        7.3360       -.33624E-06   -.10597E-03
   3  norm          28.471        31.003        .13604E-05    .89858E-05
   4  Prefactor     .10000E-03    12.129        .61526E-07** at limit **
   5  Prefactor     .10000E-03    162.08        .10038E-03** at limit **
   6  norm          .10000E-03    157.02        .92176E-04** at limit **
   7  Prefactor     .10000E-03    107.73       -.11324E-03** at limit **
   8  norm          .10000E-03    26.745        .21048E-06** at limit **
   9  norm          82.489        59.352       -.15864E-05    .39513E-03
  10  norm          .10000E-03    4.5532        .16345E-06** at limit **
  11  Prefactor     .10000E-03    65.943        .10696E-04** at limit **
  12  Prefactor     .10001E-03    136.54        .49740E-04** at limit **
  13  norm          3.3025        2.5191        .12925E-06    .10664E-03
  14  Prefactor     30.223        106.33       -.76326E-05   -.59523E-05
  15  norm          25.078        19.100        .22005E-06    .82110E-05
  16  Prefactor     .10000E-03    308.21       -.11999E-03** at limit **
  17  norm          .10000E-03    325.06       -.16230E-03** at limit **
  18  Normalizat    .10000E-01    .18341        .98325E-06** at limit **
  19  Prefactor     1.1275        .16625       -.10178E-05    .19217E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 81.6565
  Prefactor  = 10.5058
  norm       = 28.4714
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 82.4893
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 3.30249
  Prefactor  = 30.2232
  norm       = 25.0778
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.1275
 **********
 **   18 **HESSE 
 **********

 FCN=   1832.185     FROM HESSE     STATUS=OK           260 CALLS     2184 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     81.656        122.48        .44455E-04   -1.3898    
   2  Prefactor     10.506        7.3457        .91597E-04   -1.5060    
   3  norm          28.471        31.029        .75070E-04   -1.4640    
   4  Prefactor     .10000E-03    12.137        .14555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    162.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    157.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    107.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    27.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          82.489        59.264        .44223E-04   -1.3889    
  10  norm          .10000E-03    4.6255        .89060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    65.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    141.28        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.3025        2.5153        .56259E-04   -1.5344    
  14  Prefactor     30.223        106.30        .72874E-04   -1.4608    
  15  norm          25.078        19.112        .79993E-04   -1.4706    
  16  Prefactor     .10000E-03    308.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    325.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .10000E-01    .21039        .98559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.1275        .15649        .17178E-03   -.88592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.0073e-10
Minuit parameter uncertainties:
  1  122.865
  2  7.34628
  3  31.0465
  4  1.11128e-05
  5  6.20019e-05
  6  0.000150444
  7  0.000861682
  8  0.000125929
  9  59.307
  10  3.84992e-05
  11  0.000138716
  12  0.00203365
  13  2.51533
  14  106.971
  15  19.1167
  16  0.000138472
  17  5.75971e-05
  18  1.87302e-06
  19  0.15655
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  2.034e-03  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.410e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  1.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.128e+00  1.566e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  1.000e-02  1.873e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 125.299 10.129
Photon Flux Upper Limit: 2.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.98e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/78329/likelihoodResults_634521601_635126401_4FGL_J0821.1+1007_weekly_bin654.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) = 1832.18538692
delta logL = -4.48284936283e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1832.18537553
delta logL = -3.34457158715e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96022E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4099       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1275       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1832.180     FROM MIGRAD    STATUS=CONVERGED    121 CALLS      280 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8290        8640.6        .90745E-02   -.40444E-04
   2  Index         1.8336        7.5943        .32799        .35791E-05
   3  Normalizat    .10000E-01    .39906E-01    .19500    ** at limit **
   4  Prefactor     1.1257        .74512E-01    .36625E-01    .95125E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.82902
  Index      = 1.83359
  Normalizat = 0.01
  Prefactor  = 1.12568
 **********
 **   18 **HESSE 
 **********

 FCN=   1832.180     FROM HESSE     STATUS=OK            33 CALLS      313 TOTAL
                     EDM=   .57E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8290        99.171        .36298E-03   -1.6099    
   2  Index         1.8336        2.4452        .20672E-01   -.68579    
   3  Normalizat    .10000E-01    .21161        .98736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1257        .13106        .17193E-03   -.88650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68379e-13
Minuit parameter uncertainties:
  1  39.0449
  2  2.64678
  3  8.12668e-08
  4  0.131099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/78329': 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): 0
logL (Free Index) = 1832.17984902
delta logL = 0.00549306832113

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  3.829e+00  3.904e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  1.834e+00  2.647e+00  0.000e+00  1.000e+01 (-1.000e+00)
297        Scale:  1.155e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.126e+00  1.311e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  1.000e-02  8.127e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 125.299 10.129

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/78329/cmap_HighResolution_634521601_635126401_4FGL_J0821.1+1007_weekly_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.98e-02', job_status='DONE', photon_flux_upper_limit='2.56e-07', time_completed='2021-07-13 16:26:13.096015', job_id='78329', GAL2='1.13', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1626218773.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='5.49e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='654' AND source_name='4FGL J0821.1+1007' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 16:26:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 78329: <4FGL_J0821.1+1007_weekly_bin654> in cluster <slac> Done

Job <4FGL_J0821.1+1007_weekly_bin654> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Jul 13 16:10:40 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 13 16:11:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 13 16:11:52 2021
Terminated at Tue Jul 13 16:26:15 2021
Results reported at Tue Jul 13 16:26:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_weekly_bin654 125.299 10.1287 634521601 635126401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0821.1+1007 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   426.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             209.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            935 sec.

The output (if any) is above this job summary.

