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 = 17147
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0821.1+1007_weekly_bin548
RA = 125.299, Dec = 10.1287
tmin = 570412801, tmax = 571017601
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='78148', job_status='RUN', time_executed='2021-07-13 16:11:07.792293', time_epoch_executed='1626217867.79' WHERE source_name='4FGL J0821.1+1007' and cadence='weekly' and bin_id='548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/78148

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/78148/ft1_4FGL_J0821.1+1007_weekly_bin548.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/78148/ft2_4FGL_J0821.1+1007_weekly_bin548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/78148/ft1_4FGL_J0821.1+1007_weekly_bin548.fits outfile=/scratch/kocevski/78148/ft1_filteredMKT_4FGL_J0821.1+1007_weekly_bin548.fits ra=125.299 dec=10.1287 rad=12.0 tmin=570412801.0 tmax=571017601.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 6.81
user 6.38
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/78148/ft1_filtered_4FGL_J0821.1+1007_weekly_bin548.fits" evtable="EVENTS" scfile=/scratch/kocevski/78148/ft2_4FGL_J0821.1+1007_weekly_bin548.fits sctable="SC_DATA" outfile=/scratch/kocevski/78148/ltcube_570412801_571017601_4FGL_J0821.1+1007_weekly_bin548.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/78148/ft2_4FGL_J0821.1+1007_weekly_bin548.fits
.....................!
real 35.11
user 34.52
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/78148/ft1_filtered_4FGL_J0821.1+1007_weekly_bin548.fits evtable="EVENTS" scfile=/scratch/kocevski/78148/ft2_4FGL_J0821.1+1007_weekly_bin548.fits sctable="SC_DATA" expcube=/scratch/kocevski/78148/ltcube_570412801_571017601_4FGL_J0821.1+1007_weekly_bin548.fits outfile=/scratch/kocevski/78148/expmap_570412801_571017601_4FGL_J0821.1+1007_weekly_bin548.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/78148/ltcube_570412801_571017601_4FGL_J0821.1+1007_weekly_bin548.fits
.....................!
real 193.59
user 186.66
sys 5.72

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/78148/ft1_filtered_4FGL_J0821.1+1007_weekly_bin548.fits scfile=/scratch/kocevski/78148/ft2_4FGL_J0821.1+1007_weekly_bin548.fits outfile=/scratch/kocevski/78148/cmap_570412801_571017601_4FGL_J0821.1+1007_weekly_bin548.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 0.61
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/78148/ft1_filtered_4FGL_J0821.1+1007_weekly_bin548.fits scfile=/scratch/kocevski/78148/ft2_4FGL_J0821.1+1007_weekly_bin548.fits outfile=/scratch/kocevski/78148/cmap_HighResolution_570412801_571017601_4FGL_J0821.1+1007_weekly_bin548.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 0.59
user 0.43
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/78148/ft1_filtered_4FGL_J0821.1+1007_weekly_bin548.fits', '/scratch/kocevski/78148/ft2_4FGL_J0821.1+1007_weekly_bin548.fits', expMap='/scratch/kocevski/78148/expmap_570412801_571017601_4FGL_J0821.1+1007_weekly_bin548.fits', expCube='/scratch/kocevski/78148/ltcube_570412801_571017601_4FGL_J0821.1+1007_weekly_bin548.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/78148/Model_4FGL_J0821.1+1007_weekly_bin548.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/78148/ft1_filtered_4FGL_J0821.1+1007_weekly_bin548.fits
Spacecraft file(s): /scratch/kocevski/78148/ft2_4FGL_J0821.1+1007_weekly_bin548.fits
Exposure map: /scratch/kocevski/78148/expmap_570412801_571017601_4FGL_J0821.1+1007_weekly_bin548.fits
Exposure cube: /scratch/kocevski/78148/ltcube_570412801_571017601_4FGL_J0821.1+1007_weekly_bin548.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/78148/Model_4FGL_J0821.1+1007_weekly_bin548.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) = 6460.55580878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.407       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12174E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.706       1.0000         .10000E-03   10000.    
     5 'Prefactor '    57.272       1.0000         .10000E-03   10000.    
     6 'norm      '    82.475       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    29.846       1.0000         .10000E-03   10000.    
     9 'norm      '    .44424       1.0000         .10000E-03   10000.    
    10 'norm      '    3.6482       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1261       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.858       1.0000         .10000E-03   10000.    
    13 'norm      '    .33149       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1978       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .86900       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=   6460.518     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     1919 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.405        38.906        .13263E-05   -.29930E-05
   2  Prefactor     .10000E-03    1.8294        .25389E-06** at limit **
   3  norm          .10000E-03    10.004       -.99267E-06** at limit **
   4  Prefactor     15.708        12.861        .11525E-05    .11781E-03
   5  Prefactor     57.349        150.24       -.12762E-04    .46115E-04
   6  norm          82.474        92.305       -.27203E-06    .10491E-05
   7  Prefactor     .10000E-03    12.030        .10615E-05** at limit **
   8  norm          29.846        20.340       -.24688E-07    .45946E-04
   9  norm          .46132        72.566        .15922E-04   -.36036E-04
  10  norm          3.6482        4.2119       -.57970E-06    .21908E-03
  11  Prefactor     9.1240        24.666        .74559E-06    .34189E-04
  12  Prefactor     21.858        15.227       -.14660E-06    .77634E-04
  13  norm          .33199        .86246       -.35938E-06    .55628E-03
  14  Prefactor     .10000E-03    2.2820       -.35178E-07** at limit **
  15  norm          .10000E-03    2.0198        .50494E-07** at limit **
  16  Prefactor     .10000E-03    22.365       -.11705E-05** at limit **
  17  norm          .10000E-03    2.9711       -.73037E-08** at limit **
  18  Normalizat    1.1979        .19375        .15683E-05    .43945E-03
  19  Prefactor     .86898        .14865        .20781E-05    .22941E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.405
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 15.7076
  Prefactor  = 57.3489
  norm       = 82.4735
  Prefactor  = 0.0001
  norm       = 29.8455
  norm       = 0.461323
  norm       = 3.64816
  Prefactor  = 9.12398
  Prefactor  = 21.858
  norm       = 0.331989
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.19788
  Prefactor  = 0.868982
 **********
 **   18 **HESSE 
 **********

 FCN=   6460.518     FROM HESSE     STATUS=OK           272 CALLS     2191 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.405        38.869        .62295E-04   -1.4420    
   2  Prefactor     .10000E-03    5.3900        .19516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.708        12.830        .10106E-03   -1.4915    
   5  Prefactor     57.349        149.09        .26505E-03   -1.4192    
   6  norm          82.474        92.338        .44229E-04   -1.3889    
   7  Prefactor     .10000E-03    12.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          29.846        20.322        .73338E-04   -1.4615    
   9  norm          .46132        74.394        .49807E-02   -1.5572    
  10  norm          3.6482        4.1911        .16688E-03   -1.5326    
  11  Prefactor     9.1240        24.612        .13267E-03   -1.5104    
  12  Prefactor     21.858        15.245        .85674E-04   -1.4773    
  13  norm          .33199        1.1162        .11127E-02   -1.5593    
  14  Prefactor     .10000E-03    2.2875        .11857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0218        .11155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.9742        .13531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1979        .23127        .26295E-03   -.86668    
  19  Prefactor     .86898        .17408        .23065E-03   -.97234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02924e-08
Minuit parameter uncertainties:
  1  38.8932
  2  0.000304772
  3  6.10947e-05
  4  12.8327
  5  150.08
  6  92.4994
  7  5.23814e-05
  8  20.3263
  9  11.7302
  10  4.19143
  11  24.6391
  12  15.248
  13  1.11627
  14  9.99806e-06
  15  4.30239e-06
  16  6.56271e-05
  17  4.94278e-06
  18  0.231468
  19  0.174196
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  2.186e+01  1.525e+01  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:  8.690e-01  1.742e-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.198e+00  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.59
Ra Dec: 125.299 10.129
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 5.64e-08 +/- 3.93e-08
Energy Flux (Fixed Index): 1.82e-05 +/- 1.27e-05

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): 0
logL (Free Index) = 6460.29760768
delta logL = 0.220635486432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6460.17467484
delta logL = 0.343568333973

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6460.175     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      252 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.158        23.284        .70667E-04    .25740E-05
   2  Index         1.9258        .52516        .85144E-02    .40765E-05
   3  Normalizat    1.2241        .22631        .26049E-03    .27496E-04
   4  Prefactor     .85386        .17200        .23241E-03   -.24850E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.158
  Index      = 1.92578
  Normalizat = 1.22409
  Prefactor  = 0.853858
 **********
 **   18 **HESSE 
 **********

 FCN=   6460.175     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.158        23.082        .28267E-05   -1.4573    
   2  Index         1.9258        .52047        .34057E-03   -.66219    
   3  Normalizat    1.2241        .22645        .10419E-04   -.85862    
   4  Prefactor     .85386        .17213        .92963E-05   -.97773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11364e-11
Minuit parameter uncertainties:
  1  23.0884
  2  0.521995
  3  0.22663
  4  0.172235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/78148': 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) = 6460.17467462
delta logL = 0.343568552358

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  3.216e+01  2.309e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  1.926e+00  5.220e-01  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:  8.539e-01  1.722e-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.224e+00  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.27
Ra Dec: 125.299 10.129
Photon Index (Free Index): 1.93 +/- 0.52
Photon Flux (Free Index): 3.86e-08 +/- 3.47e-08
Energy Flux (Free Index): 3.23e-05 +/- 3.51e-05

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/78148/cmap_HighResolution_570412801_571017601_4FGL_J0821.1+1007_weekly_bin548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.64e-08', energy_flux2='3.23e-05', photon_flux_error='3.93e-08', dlogl='3.44e-01', energy_flux='1.82e-05', photon_flux2='3.86e-08', job_status='DONE', time_completed='2021-07-13 16:21:20.394222', photon_index_error2='0.52', photon_index2='1.93', ts='4.59', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='3.51e-05', EG='1.20', time_epoch_completed='1626218480.39', return_code='0', job_id='78148', GAL2='0.85', EG2='1.22', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='3.47e-08', ts2='5.27', photon_index='2.41' WHERE bin_id='548' AND source_name='4FGL J0821.1+1007' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 16:21:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 78148: <4FGL_J0821.1+1007_weekly_bin548> in cluster <slac> Done

Job <4FGL_J0821.1+1007_weekly_bin548> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Jul 13 16:10:26 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 13 16:10:38 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:10:38 2021
Terminated at Tue Jul 13 16:21:21 2021
Results reported at Tue Jul 13 16:21:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_weekly_bin548 125.299 10.1287 570412801 571017601 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 :                                   595.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             339.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            655 sec.

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

