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


Performing analysis on: 4FGL_J0821.1+1007_weekly_bin542
RA = 125.299, Dec = 10.1287
tmin = 566784001, tmax = 567388801
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='78139', job_status='RUN', time_executed='2021-07-13 16:16:14.363457', time_epoch_executed='1626218174.36' WHERE source_name='4FGL J0821.1+1007' and cadence='weekly' and bin_id='542'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/78139

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/78139/ft1_4FGL_J0821.1+1007_weekly_bin542.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/78139/ft2_4FGL_J0821.1+1007_weekly_bin542.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/78139/ft1_4FGL_J0821.1+1007_weekly_bin542.fits outfile=/scratch/kocevski/78139/ft1_filteredMKT_4FGL_J0821.1+1007_weekly_bin542.fits ra=125.299 dec=10.1287 rad=12.0 tmin=566784001.0 tmax=567388801.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.65
user 4.85
sys 0.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/78139/ft1_filtered_4FGL_J0821.1+1007_weekly_bin542.fits" evtable="EVENTS" scfile=/scratch/kocevski/78139/ft2_4FGL_J0821.1+1007_weekly_bin542.fits sctable="SC_DATA" outfile=/scratch/kocevski/78139/ltcube_566784001_567388801_4FGL_J0821.1+1007_weekly_bin542.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/78139/ft2_4FGL_J0821.1+1007_weekly_bin542.fits
.....................!
real 32.22
user 29.60
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/78139/ft1_filtered_4FGL_J0821.1+1007_weekly_bin542.fits evtable="EVENTS" scfile=/scratch/kocevski/78139/ft2_4FGL_J0821.1+1007_weekly_bin542.fits sctable="SC_DATA" expcube=/scratch/kocevski/78139/ltcube_566784001_567388801_4FGL_J0821.1+1007_weekly_bin542.fits outfile=/scratch/kocevski/78139/expmap_566784001_567388801_4FGL_J0821.1+1007_weekly_bin542.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/78139/ltcube_566784001_567388801_4FGL_J0821.1+1007_weekly_bin542.fits
.....................!
real 195.52
user 185.05
sys 4.93

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/78139/ft1_filtered_4FGL_J0821.1+1007_weekly_bin542.fits scfile=/scratch/kocevski/78139/ft2_4FGL_J0821.1+1007_weekly_bin542.fits outfile=/scratch/kocevski/78139/cmap_566784001_567388801_4FGL_J0821.1+1007_weekly_bin542.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.07
user 0.41
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/78139/ft1_filtered_4FGL_J0821.1+1007_weekly_bin542.fits scfile=/scratch/kocevski/78139/ft2_4FGL_J0821.1+1007_weekly_bin542.fits outfile=/scratch/kocevski/78139/cmap_HighResolution_566784001_567388801_4FGL_J0821.1+1007_weekly_bin542.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.67
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    142.80       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .57724E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .18790E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    110.30       1.0000         .10000E-03   10000.    
     6 'norm      '    212.50       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    23.665       1.0000         .10000E-03   10000.    
     9 'norm      '    44.689       1.0000         .10000E-03   10000.    
    10 'norm      '    4.3818       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13257E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11967E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2619       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .84352       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=   5527.437     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     2316 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     142.83        122.40        .18837E-04    .57826E-04
   2  Prefactor     .10001E-03    3.3752       -.22342E-05** at limit **
   3  norm          .10000E-03    140.83       -.10654E-04** at limit **
   4  Prefactor     .10000E-03    26.863       -.75417E-07** at limit **
   5  Prefactor     110.35        220.14        .41918E-04    .80605E-04
   6  norm          212.52        209.10        .14026E-04    .36285E-05
   7  Prefactor     .10000E-03    15.747       -.15189E-06** at limit **
   8  norm          23.664        23.204        .26382E-07   -.27612E-05
   9  norm          44.609        30.021        .87828E-05    .10830E-03
  10  norm          4.3826        5.5263       -.56575E-06   -.33696E-03
  11  Prefactor     .10001E-03    246.45       -.21694E-04** at limit **
  12  Prefactor     .10000E-03    10.350       -.85242E-08** at limit **
  13  norm          .10000E-03    .47644        .10705E-06** at limit **
  14  Prefactor     .10000E-03    1.6486        .14686E-07** at limit **
  15  norm          .10000E-03    5.3089        .73742E-07** at limit **
  16  Prefactor     .10000E-03    13.146        .78343E-07** at limit **
  17  norm          .10000E-03    2.1125        .94661E-08** at limit **
  18  Normalizat    1.2617        .21184       -.20710E-05    .36648E-03
  19  Prefactor     .84354        .16099       -.94921E-06    .23451E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 142.825
  Prefactor  = 0.000100012
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 110.347
  norm       = 212.522
  Prefactor  = 0.0001
  norm       = 23.6642
  norm       = 44.6089
  norm       = 4.38261
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.26167
  Prefactor  = 0.843538
 **********
 **   18 **HESSE 
 **********

 FCN=   5527.437     FROM HESSE     STATUS=OK           256 CALLS     2572 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     142.83        122.15        .16858E-03   -1.3312    
   2  Prefactor     .10001E-03    11.576        .25820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    146.20        .40568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     110.35        218.52        .19149E-03   -1.3603    
   6  norm          212.52        208.64        .13868E-03   -1.2782    
   7  Prefactor     .10000E-03    15.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          23.664        23.170        .82341E-04   -1.4735    
   9  norm          44.609        29.965        .59974E-04   -1.4371    
  10  norm          4.3826        5.5173        .18366E-03   -1.5289    
  11  Prefactor     .10001E-03    251.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.4080        .98165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.6512        .93224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.3801        .16724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.1243        .10553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2617        .25388        .25763E-03   -.84718    
  19  Prefactor     .84354        .19396        .23505E-03   -.98143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74476e-09
Minuit parameter uncertainties:
  1  122.363
  2  0.000757313
  3  0.000113031
  4  8.08738e-05
  5  220.149
  6  209.376
  7  5.44239e-05
  8  23.1791
  9  29.9748
  10  5.51793
  11  0.00326306
  12  6.99164e-07
  13  1.64838e-05
  14  2.06192e-06
  15  1.98687e-05
  16  1.93528e-05
  17  2.1956e-06
  18  0.254133
  19  0.19412
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  6.992e-07  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.435e-01  1.941e-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.262e+00  2.541e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 125.299 10.129
Photon Flux Upper Limit: 8.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/78139/likelihoodResults_566784001_567388801_4FGL_J0821.1+1007_weekly_bin542.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) = 5527.43794233
delta logL = -0.000457851681858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5527.43748457
delta logL = -8.69804352988e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4144       1.0000          .0000       10.000    
     3 'Normalizat'    1.2616       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84360       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=   5527.437     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    133.25        .18142E-02** at limit **
   2  Index         2.4354        8.4816        .50000       -.31538E-05
   3  Normalizat    1.2617        .18996E-01    .25763E-03    .48983E-05
   4  Prefactor     .84354        .14567E-01    .23505E-03    .36759E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100131
  Index      = 2.43542
  Normalizat = 1.26167
  Prefactor  = 0.84354
 **********
 **   18 **HESSE 
 **********

 FCN=   5527.437     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10013E-03    631.74        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4354        5.0819        .50000       -.53858    
   3  Normalizat    1.2617        .44318E-01    .10305E-04   -.84718    
   4  Prefactor     .84354        .33978E-01    .94020E-05   -.98143    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.46076e-09
Minuit parameter uncertainties:
  1  0.0183927
  2  1159.82
  3  0.044319
  4  0.0339791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/78139': 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) = 5527.43748447
delta logL = 1.34696165333e-08

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.001e-04  1.839e-02  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.435e+00  1.160e+03  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.435e-01  3.398e-02  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.262e+00  4.432e-02  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/78139/cmap_HighResolution_566784001_567388801_4FGL_J0821.1+1007_weekly_bin542.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.51e-03', job_status='DONE', photon_flux_upper_limit='8.42e-08', time_completed='2021-07-13 16:26:48.339282', job_id='78139', GAL2='0.84', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1626218808.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.35e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='542' AND source_name='4FGL J0821.1+1007' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 16:26:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 78139: <4FGL_J0821.1+1007_weekly_bin542> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_weekly_bin542 125.299 10.1287 566784001 567388801 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 :                                   586.15 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             242.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            984 sec.

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

