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


Performing analysis on: 4FGL_J0821.1+1007_weekly_bin647
RA = 125.299, Dec = 10.1287
tmin = 630288001, tmax = 630892801
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='78317', job_status='RUN', time_executed='2021-07-13 16:15:59.827377', time_epoch_executed='1626218159.83' WHERE source_name='4FGL J0821.1+1007' and cadence='weekly' and bin_id='647'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/78317

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

Retrieving the FT1 file...

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

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

Retrieving 109 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/78317/ft1_4FGL_J0821.1+1007_weekly_bin647.fits


Retrieving the FT1 file...

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

Retrieving 109 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/78317/ft2_4FGL_J0821.1+1007_weekly_bin647.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/78317/ft1_4FGL_J0821.1+1007_weekly_bin647.fits outfile=/scratch/kocevski/78317/ft1_filteredMKT_4FGL_J0821.1+1007_weekly_bin647.fits ra=125.299 dec=10.1287 rad=12.0 tmin=630288001.0 tmax=630892801.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.08
user 5.79
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/78317/ft1_filtered_4FGL_J0821.1+1007_weekly_bin647.fits" evtable="EVENTS" scfile=/scratch/kocevski/78317/ft2_4FGL_J0821.1+1007_weekly_bin647.fits sctable="SC_DATA" outfile=/scratch/kocevski/78317/ltcube_630288001_630892801_4FGL_J0821.1+1007_weekly_bin647.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/78317/ft2_4FGL_J0821.1+1007_weekly_bin647.fits
.....................!
real 34.08
user 33.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/78317/ft1_filtered_4FGL_J0821.1+1007_weekly_bin647.fits evtable="EVENTS" scfile=/scratch/kocevski/78317/ft2_4FGL_J0821.1+1007_weekly_bin647.fits sctable="SC_DATA" expcube=/scratch/kocevski/78317/ltcube_630288001_630892801_4FGL_J0821.1+1007_weekly_bin647.fits outfile=/scratch/kocevski/78317/expmap_630288001_630892801_4FGL_J0821.1+1007_weekly_bin647.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/78317/ltcube_630288001_630892801_4FGL_J0821.1+1007_weekly_bin647.fits
.....................!
real 192.85
user 187.01
sys 5.14

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/78317/ft1_filtered_4FGL_J0821.1+1007_weekly_bin647.fits scfile=/scratch/kocevski/78317/ft2_4FGL_J0821.1+1007_weekly_bin647.fits outfile=/scratch/kocevski/78317/cmap_630288001_630892801_4FGL_J0821.1+1007_weekly_bin647.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.86
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/78317/ft1_filtered_4FGL_J0821.1+1007_weekly_bin647.fits scfile=/scratch/kocevski/78317/ft2_4FGL_J0821.1+1007_weekly_bin647.fits outfile=/scratch/kocevski/78317/cmap_HighResolution_630288001_630892801_4FGL_J0821.1+1007_weekly_bin647.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.41
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/78317/ft1_filtered_4FGL_J0821.1+1007_weekly_bin647.fits', '/scratch/kocevski/78317/ft2_4FGL_J0821.1+1007_weekly_bin647.fits', expMap='/scratch/kocevski/78317/expmap_630288001_630892801_4FGL_J0821.1+1007_weekly_bin647.fits', expCube='/scratch/kocevski/78317/ltcube_630288001_630892801_4FGL_J0821.1+1007_weekly_bin647.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/78317/Model_4FGL_J0821.1+1007_weekly_bin647.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/78317/ft1_filtered_4FGL_J0821.1+1007_weekly_bin647.fits
Spacecraft file(s): /scratch/kocevski/78317/ft2_4FGL_J0821.1+1007_weekly_bin647.fits
Exposure map: /scratch/kocevski/78317/expmap_630288001_630892801_4FGL_J0821.1+1007_weekly_bin647.fits
Exposure cube: /scratch/kocevski/78317/ltcube_630288001_630892801_4FGL_J0821.1+1007_weekly_bin647.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/78317/Model_4FGL_J0821.1+1007_weekly_bin647.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1951.17876255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11487E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6874       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .62230E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    342.75       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27610E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17797E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .23792E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .39521       1.0000         .10000E-03   10000.    
    17 'norm      '    .10271E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0282       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .71253       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=   1951.094     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     1913 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    193.39        .70837E-05** at limit **
   2  Prefactor     4.7034        15.026        .14847E-05    .42855E-04
   3  norm          .10000E-03    22.245        .33179E-05** at limit **
   4  Prefactor     .10000E-03    17.536        .40540E-05** at limit **
   5  Prefactor     .10014E-03    6392.0        .65214E-04** at limit **
   6  norm          342.84        616.43        .70833E-05    .48333E-05
   7  Prefactor     .10000E-03    33.829        .25957E-05** at limit **
   8  norm          .10000E-03    25.752       -.13551E-05** at limit **
   9  norm          .10000E-03    31.488        .34443E-05** at limit **
  10  norm          .10000E-03    2.3811        .10774E-07** at limit **
  11  Prefactor     .10000E-03    25.755       -.11325E-05** at limit **
  12  Prefactor     .10043E-03    230.62        .30769E-04** at limit **
  13  norm          .10000E-03    1.0806       -.42089E-07** at limit **
  14  Prefactor     .10026E-03    64.928       -.11333E-04** at limit **
  15  norm          .10000E-03    44.851       -.48367E-05** at limit **
  16  Prefactor     .50081        1368.5        .65081E-05   -.99662E-05
  17  norm          .10000E-03    21.551       -.48633E-06** at limit **
  18  Normalizat    1.0279        .30755       -.18824E-05    .12570E-04
  19  Prefactor     .71233        .22185        .87441E-06   -.75104E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 4.70337
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100139
  norm       = 342.843
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100427
  norm       = 0.000100002
  Prefactor  = 0.000100259
  norm       = 0.0001
  Prefactor  = 0.500807
  norm       = 0.0001
  Normalizat = 1.02792
  Prefactor  = 0.712331
 **********
 **   18 **HESSE 
 **********

 FCN=   1951.094     FROM HESSE     STATUS=OK           274 CALLS     2187 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    193.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.7034        14.975        .18587E-03   -1.5274    
   3  norm          .10000E-03    22.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.638        .18120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10014E-03    6400.0        .18885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          342.84        616.93        .10993E-03   -1.1983    
   7  Prefactor     .10000E-03    33.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    26.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    31.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.3907        .66589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10043E-03    314.76        .49987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.8470        .85648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10026E-03    136.15        .39685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    45.062        .32723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .50081        111.41        .11114       -1.5566    
  17  norm          .10000E-03    22.487        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0279        .35864        .23873E-03   -.92101    
  19  Prefactor     .71233        .26019        .20674E-03   -1.0305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55864e-09
Minuit parameter uncertainties:
  1  0.00104156
  2  14.9867
  3  0.000175735
  4  0.00019199
  5  0.0415628
  6  629.406
  7  0.000173842
  8  4.84134e-05
  9  0.000221219
  10  7.49149e-08
  11  6.1481e-05
  12  0.0233027
  13  0.000124419
  14  0.0119117
  15  0.000137624
  16  14.9662
  17  2.76822e-05
  18  0.35949
  19  0.260636
Done.

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

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.004e-04  2.330e-02  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:  7.123e-01  2.606e-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.028e+00  3.595e-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: 2.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.61e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/78317/likelihoodResults_630288001_630892801_4FGL_J0821.1+1007_weekly_bin647.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) = 1951.09360886
delta logL = -1.46184943333e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1951.09360885
delta logL = -1.46150480305e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96360E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4102       1.0000          .0000       10.000    
     3 'Normalizat'    1.0279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71234       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=   1950.833     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      271 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1038        55.525        .90712E-02    .20094E-03
   2  Index         4.1926        7.0090        .10376        .46925E-04
   3  Normalizat    .93948        .82282E-01    .42378E-01    .95815E-06
   4  Prefactor     .75275        .60474E-01    .42565E-01    .24890E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.10384
  Index      = 4.19257
  Normalizat = 0.939485
  Prefactor  = 0.752745
 **********
 **   18 **HESSE 
 **********

 FCN=   1950.833     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      304 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1038        120.59        .66741E-04   -1.5498    
   2  Index         4.1926        6.6066        .51149E-02   -.16220    
   3  Normalizat    .93948        .34189        .24834E-03   -.95086    
   4  Prefactor     .75275        .24784        .20155E-03   -1.0149    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.99538e-07
Minuit parameter uncertainties:
  1  23.1219
  2  10.0916
  3  0.342684
  4  0.248208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/78317': 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) = 1950.83340163
delta logL = 0.260192607297

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  1.104e+00  2.312e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  4.193e+00  1.009e+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:  7.527e-01  2.482e-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:  9.395e-01  3.427e-01  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/78317/cmap_HighResolution_630288001_630892801_4FGL_J0821.1+1007_weekly_bin647.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.61e-02', job_status='DONE', photon_flux_upper_limit='2.08e-07', time_completed='2021-07-13 16:23:29.898708', job_id='78317', GAL2='0.75', fit_tolerance='1e-08', EG2='0.94', EG='1.03', time_epoch_completed='1626218609.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='2.60e-01', ts2='0.59', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='647' AND source_name='4FGL J0821.1+1007' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 16:23:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 78317: <4FGL_J0821.1+1007_weekly_bin647> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_weekly_bin647 125.299 10.1287 630288001 630892801 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 :                                   438.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             167.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            771 sec.

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

