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


Performing analysis on: 4FGL_J0821.1+1007_weekly_bin549
RA = 125.299, Dec = 10.1287
tmin = 571017601, tmax = 571622401
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='78149', job_status='RUN', time_executed='2021-07-13 16:17:55.914890', time_epoch_executed='1626218275.91' WHERE source_name='4FGL J0821.1+1007' and cadence='weekly' and bin_id='549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/78149

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/78149/ft1_4FGL_J0821.1+1007_weekly_bin549.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/78149/ft2_4FGL_J0821.1+1007_weekly_bin549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/78149/ft1_4FGL_J0821.1+1007_weekly_bin549.fits outfile=/scratch/kocevski/78149/ft1_filteredMKT_4FGL_J0821.1+1007_weekly_bin549.fits ra=125.299 dec=10.1287 rad=12.0 tmin=571017601.0 tmax=571622401.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.31
user 5.88
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/78149/ft2_4FGL_J0821.1+1007_weekly_bin549.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/78149/ft1_filteredMKT_4FGL_J0821.1+1007_weekly_bin549.fits evtable="EVENTS" outfile="/scratch/kocevski/78149/ft1_filtered_4FGL_J0821.1+1007_weekly_bin549.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.97
user 0.41
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/78149/ft1_filtered_4FGL_J0821.1+1007_weekly_bin549.fits" evtable="EVENTS" scfile=/scratch/kocevski/78149/ft2_4FGL_J0821.1+1007_weekly_bin549.fits sctable="SC_DATA" outfile=/scratch/kocevski/78149/ltcube_571017601_571622401_4FGL_J0821.1+1007_weekly_bin549.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/78149/ft2_4FGL_J0821.1+1007_weekly_bin549.fits
.....................!
real 32.13
user 31.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/78149/ft1_filtered_4FGL_J0821.1+1007_weekly_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/78149/ft2_4FGL_J0821.1+1007_weekly_bin549.fits sctable="SC_DATA" expcube=/scratch/kocevski/78149/ltcube_571017601_571622401_4FGL_J0821.1+1007_weekly_bin549.fits outfile=/scratch/kocevski/78149/expmap_571017601_571622401_4FGL_J0821.1+1007_weekly_bin549.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/78149/ltcube_571017601_571622401_4FGL_J0821.1+1007_weekly_bin549.fits
.....................!
real 193.85
user 186.44
sys 5.11

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/78149/ft1_filtered_4FGL_J0821.1+1007_weekly_bin549.fits scfile=/scratch/kocevski/78149/ft2_4FGL_J0821.1+1007_weekly_bin549.fits outfile=/scratch/kocevski/78149/cmap_571017601_571622401_4FGL_J0821.1+1007_weekly_bin549.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.74
user 0.44
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/78149/ft1_filtered_4FGL_J0821.1+1007_weekly_bin549.fits scfile=/scratch/kocevski/78149/ft2_4FGL_J0821.1+1007_weekly_bin549.fits outfile=/scratch/kocevski/78149/cmap_HighResolution_571017601_571622401_4FGL_J0821.1+1007_weekly_bin549.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.76
user 0.43
sys 0.19

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 546.691971968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 542.064622207

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13394       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.578       1.0000         .10000E-03   10000.    
     3 'norm      '    .11618E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.982       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .90103E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    483.41       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14568E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .21997E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .21912E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .10362E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.625       1.0000         .10000E-03   10000.    
    12 'Prefactor '    491.08       1.0000         .10000E-03   10000.    
    13 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10411E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6616       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7994       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    .73386       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   542.0604     FROM MIGRAD    STATUS=CONVERGED    214 CALLS      791 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    111.47       -.14076E-05** at limit **
   2  Prefactor     32.589        16.329       -.83602E-07   -.14748E-04
   3  norm          .10000E-03    126.80       -.15613E-06** at limit **
   4  Prefactor     43.819        55.716        .63597E-06   -.11776E-04
   5  Prefactor     .10000E-03    277.47       -.12746E-05** at limit **
   6  norm          485.58        38.306       -.83387E-06   -.99819E-02
   7  Prefactor     .10000E-03    108.52       -.63689E-06** at limit **
   8  norm          .10000E-03    113.20       -.63953E-06** at limit **
   9  norm          .10000E-03    177.16       -.79206E-06** at limit **
  10  norm          .10000E-03    8.6290        .80796E-07** at limit **
  11  Prefactor     64.975        587.19       -.55672E-04    .59720E-04
  12  Prefactor     473.02        387.75        .56189E-05   -.86105E-03
  13  norm          .10000E-03    6.3668       -.72257E-07** at limit **
  14  Prefactor     .10000E-03    548.23        .51065E-05** at limit **
  15  norm          .10000E-03    28.268       -.24860E-06** at limit **
  16  Prefactor     .10014E-03    6392.7       -.50087E-06** at limit **
  17  norm          1.7994        1.0450         .0000         .0000    
  18  Normalizat    .10000E-01    2.1537       -.52061E-05** at limit **
  19  Prefactor     .73161        .20639        .12991E-06   -.10590E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 32.5886
  norm       = 0.0001
  Prefactor  = 43.819
  Prefactor  = 0.0001
  norm       = 485.58
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 64.9747
  Prefactor  = 473.02
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100135
  norm       = 1.79936
  Normalizat = 0.01
  Prefactor  = 0.731611
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   542.0604     FROM HESSE     STATUS=FAILED        73 CALLS      864 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    111.41        .96718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.589        15.598        .17551E-02   -1.4566    
   3  norm          .10000E-03    125.45        .90810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     43.819        53.577        .15113E-02   -1.4383    
   5  Prefactor     .10000E-03    276.18        .94640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          485.58        522.21        .46623E-03   -1.1264    
   7  Prefactor     .10000E-03    106.55        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    110.30        .91325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    168.53        .91321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.5486        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     64.975        373.45        .16786E-02   -1.4094    
  12  Prefactor     473.02        311.95        .46276E-03   -1.1323    
  13  norm          .10000E-03    6.2957        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    547.32        .90750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    28.225        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10014E-03    6383.3        .62460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          572.37        570.42         .0000       -1.5440    
  18  Normalizat    .10000E-01    .25674       -.52061E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .73161        1.0820        .12991E-06   -1.0230    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.35581e-11
Minuit parameter uncertainties:
  1  7.00917e-05
  2  15.5997
  3  4.75623e-06
  4  53.6361
  5  1.64861e-05
  6  527.489
  7  2.4421e-05
  8  2.99818e-05
  9  0.000135995
  10  1.11073e-07
  11  314.572
  12  313.083
  13  8.576e-07
  14  0.000348193
  15  7.04588e-06
  16  0.0407667
  17  1.04503
  18  2.51097e-07
  19  1.11582
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 542.060374486

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  4.730e+02  3.131e+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.316e-01  1.116e+00  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  2.511e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.04
Ra Dec: 125.299 10.129
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.22e-06 +/- 8.08e-07
Energy Flux (Fixed Index): 3.95e-04 +/- 2.61e-04

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) = 541.789252812
delta logL = 0.271121674659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 541.788817876
delta logL = 0.271556609964

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    231.34       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9884       1.0000          .0000       10.000    
     3 'Normalizat'    .10010E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73302       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=   541.7888     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      284 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     231.52        328.87        .13304E-03    .61397E-05
   2  Index         2.9888        .85644        .19065E-03    .72824E-05
   3  Normalizat    .10000E-01    1.3910        .11660E-01** at limit **
   4  Prefactor     .73244        .19686        .16973E-03    .19582E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 231.523
  Index      = 2.98883
  Normalizat = 0.01
  Prefactor  = 0.732443
 **********
 **   18 **HESSE 
 **********

 FCN=   541.7888     FROM HESSE     STATUS=OK            23 CALLS      307 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     231.52        326.97        .26609E-04   -1.2653    
   2  Index         2.9888        .85148        .76260E-05   -.41396    
   3  Normalizat    .10000E-01    1.3919        .23320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .73244        .19649        .33946E-04   -1.0227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0606e-10
Minuit parameter uncertainties:
  1  329.603
  2  0.856471
  3  2.98298e-05
  4  0.196681
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/78149': 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) = 541.788808252
delta logL = 0.271566234353

Extracting fit parameters...

4FGL J0821.1+1007
   Spectrum: PowerLaw
295    Prefactor:  2.315e+02  3.296e+02  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.989e+00  8.565e-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.324e-01  1.967e-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  2.983e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.73
Ra Dec: 125.299 10.129
Photon Index (Free Index): 2.99 +/- 0.86
Photon Flux (Free Index): 1.75e-06 +/- 1.33e-06
Energy Flux (Free Index): 3.51e-04 +/- 2.28e-04

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/78149/cmap_HighResolution_571017601_571622401_4FGL_J0821.1+1007_weekly_bin549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.22e-06', energy_flux2='3.51e-04', photon_flux_error='8.08e-07', dlogl='2.72e-01', energy_flux='3.95e-04', photon_flux2='1.75e-06', job_status='DONE', time_completed='2021-07-13 16:25:30.222511', photon_index_error2='0.86', photon_index2='2.99', ts='5.04', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='2.28e-04', EG='0.01', time_epoch_completed='1626218730.22', return_code='101', job_id='78149', GAL2='0.73', EG2='0.01', return_code2='0', energy_flux_error='2.61e-04', photon_flux_error2='1.33e-06', ts2='5.73', photon_index='2.41' WHERE bin_id='549' AND source_name='4FGL J0821.1+1007' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 16:25:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0140>
Subject: Job 78149: <4FGL_J0821.1+1007_weekly_bin549> in cluster <slac> Done

Job <4FGL_J0821.1+1007_weekly_bin549> 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) <bullet0140>, 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:25:32 2021
Results reported at Tue Jul 13 16:25:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0821.1+1007_weekly_bin549 125.299 10.1287 571017601 571622401 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 :                                   373.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            906 sec.

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

