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


Performing analysis on: 4FGL_J0836.2+2141_weekly_bin550
RA = 129.051, Dec = 21.6971
tmin = 571622401, tmax = 572227201
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='236505', job_status='RUN', time_executed='2021-07-14 01:39:53.303735', time_epoch_executed='1626251993.3' WHERE source_name='4FGL J0836.2+2141' and cadence='weekly' and bin_id='550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236505

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236505/ft1_4FGL_J0836.2+2141_weekly_bin550.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236505/ft2_4FGL_J0836.2+2141_weekly_bin550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236505/ft1_4FGL_J0836.2+2141_weekly_bin550.fits outfile=/scratch/kocevski/236505/ft1_filteredMKT_4FGL_J0836.2+2141_weekly_bin550.fits ra=129.051 dec=21.6971 rad=12.0 tmin=571622401.0 tmax=572227201.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.06
user 5.16
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/236505/ft2_4FGL_J0836.2+2141_weekly_bin550.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/236505/ft2_4FGL_J0836.2+2141_weekly_bin550.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/236505/ft1_filteredMKT_4FGL_J0836.2+2141_weekly_bin550.fits evtable="EVENTS" outfile="/scratch/kocevski/236505/ft1_filtered_4FGL_J0836.2+2141_weekly_bin550.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 1.43
user 0.38
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/236505/ft1_filtered_4FGL_J0836.2+2141_weekly_bin550.fits" evtable="EVENTS" scfile=/scratch/kocevski/236505/ft2_4FGL_J0836.2+2141_weekly_bin550.fits sctable="SC_DATA" outfile=/scratch/kocevski/236505/ltcube_571622401_572227201_4FGL_J0836.2+2141_weekly_bin550.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/236505/ft2_4FGL_J0836.2+2141_weekly_bin550.fits
.....................!
real 29.30
user 28.18
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236505/ft1_filtered_4FGL_J0836.2+2141_weekly_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/236505/ft2_4FGL_J0836.2+2141_weekly_bin550.fits sctable="SC_DATA" expcube=/scratch/kocevski/236505/ltcube_571622401_572227201_4FGL_J0836.2+2141_weekly_bin550.fits outfile=/scratch/kocevski/236505/expmap_571622401_572227201_4FGL_J0836.2+2141_weekly_bin550.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/236505/ltcube_571622401_572227201_4FGL_J0836.2+2141_weekly_bin550.fits
.....................!
real 192.80
user 185.25
sys 5.50

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

Setting source of interest to:
4FGL J0836.2+2141 @ 129.051 21.6971

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/236505/ft1_filtered_4FGL_J0836.2+2141_weekly_bin550.fits scfile=/scratch/kocevski/236505/ft2_4FGL_J0836.2+2141_weekly_bin550.fits outfile=/scratch/kocevski/236505/cmap_571622401_572227201_4FGL_J0836.2+2141_weekly_bin550.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=129.051 yref=21.6971 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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236505/ft1_filtered_4FGL_J0836.2+2141_weekly_bin550.fits scfile=/scratch/kocevski/236505/ft2_4FGL_J0836.2+2141_weekly_bin550.fits outfile=/scratch/kocevski/236505/cmap_HighResolution_571622401_572227201_4FGL_J0836.2+2141_weekly_bin550.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=129.051 yref=21.6971 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.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/236505/ft1_filtered_4FGL_J0836.2+2141_weekly_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/236505/ft2_4FGL_J0836.2+2141_weekly_bin550.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/236505/Model_4FGL_J0836.2+2141_weekly_bin550.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/236505/ft1_filtered_4FGL_J0836.2+2141_weekly_bin550.fits............!
real 15.72
user 13.77
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/236505/ft1_filtered_4FGL_J0836.2+2141_weekly_bin550.fits', '/scratch/kocevski/236505/ft2_4FGL_J0836.2+2141_weekly_bin550.fits', expMap='/scratch/kocevski/236505/expmap_571622401_572227201_4FGL_J0836.2+2141_weekly_bin550.fits', expCube='/scratch/kocevski/236505/ltcube_571622401_572227201_4FGL_J0836.2+2141_weekly_bin550.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/236505/Model_4FGL_J0836.2+2141_weekly_bin550.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0836.2+2141'

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  2.336e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.731e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  5.085e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/236505/ft1_filtered_4FGL_J0836.2+2141_weekly_bin550.fits
Spacecraft file(s): /scratch/kocevski/236505/ft2_4FGL_J0836.2+2141_weekly_bin550.fits
Exposure map: /scratch/kocevski/236505/expmap_571622401_572227201_4FGL_J0836.2+2141_weekly_bin550.fits
Exposure cube: /scratch/kocevski/236505/ltcube_571622401_572227201_4FGL_J0836.2+2141_weekly_bin550.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/236505/Model_4FGL_J0836.2+2141_weekly_bin550.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) = 160.244662884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12361E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .63100E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .57777E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    252.71       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13605       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .49441       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18564       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .50044E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    68.316       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23805       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .43705E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .58439E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .15031       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0485       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1178       1.0000         .10000E-03   10000.    
    16 'norm      '    .11038E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.8629       1.0000         .10000E-03   10000.    
    18 'norm      '    1.0628       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.9222       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .49711       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .36431       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   158.2883     FROM MIGRAD    STATUS=CONVERGED    154 CALLS      547 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.429       -.62210E-07** at limit **
   2  Prefactor     .10000E-03    113.34        .67931E-05** at limit **
   3  Prefactor     .10035E-03    226.78       -.47098E-03** at limit **
   4  norm          253.69        28.191        .34569E-04   -.82622E-02
   5  Prefactor     .10001E-03    264.65        .91519E-03** at limit **
   6  Prefactor     .13558E-03    290.51       -.41943E-03** at limit **
   7  Prefactor     .16554E-03    1661.6        .29837E-02** at limit **
   8  Prefactor     .11138E-03    433.47        .99537E-03** at limit **
   9  norm          68.355        2.9782        .40275E-05   -.89334E-03
  10  Prefactor     .13121E-03    1126.8       -.17963E-02** at limit **
  11  Prefactor     .10000E-03    187.42       -.90374E-06** at limit **
  12  Prefactor     .10000E-03    183.51        .23807E-04** at limit **
  13  norm          .18229E-03    136.54       -.33155E-03** at limit **
  14  Prefactor     .12020E-03    6734.0       -.15449E-02** at limit **
  15  Prefactor     4.1178        1.0076         .0000         .0000    
  16  norm          .10000E-03    43.242        .12008E-06** at limit **
  17  norm          9.8629        1.0013         .0000         .0000    
  18  norm          1.0628        1.2223         .0000         .0000    
  19  Prefactor     7.9222        1.0020         .0000         .0000    
  20  Normalizat    .49810        .84342        .55901E-04   -.14390E-03
  21  Prefactor     .36379        .59838       -.56739E-04   -.13408E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.00010035
  norm       = 253.686
  Prefactor  = 0.000100006
  Prefactor  = 0.000135581
  Prefactor  = 0.000165537
  Prefactor  = 0.000111381
  norm       = 68.3546
  Prefactor  = 0.000131208
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000182287
  Prefactor  = 0.000120202
  Prefactor  = 4.11779
  norm       = 0.0001
  norm       = 9.86287
  norm       = 1.06285
  Prefactor  = 7.92223
  Normalizat = 0.498101
  Prefactor  = 0.363789
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   158.2883     FROM HESSE     STATUS=FAILED        67 CALLS      614 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.428        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    113.25        .94317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10035E-03    227.84        .93080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          253.69        384.59        .63716E-03   -1.2509    
   5  Prefactor     .10001E-03    278.84        .96818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .13558E-03    430.26        .11248E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .16554E-03    1668.4        .99119E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11138E-03    437.30        .92703E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          68.355        69.647        .12141E-02   -1.4053    
  10  Prefactor     .13121E-03    1129.0        .10150E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    187.50        .10611E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    183.44        .93112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .18229E-03    337.11        .97484E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .12020E-03    6741.7        .44740E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     540.83        536.65         .0000       -1.5302    
  16  norm          .10000E-03    .20571        .12008E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.8629        1.0013         .0000       -1.5080    
  18  norm          1.0628        1.2223         .0000       -1.5502    
  19  Prefactor     7.9222        1.0020         .0000       -1.5145    
  20  Normalizat    .49810        .82896        .55901E-04   -1.1250    
  21  Prefactor     .36379        .68987       -.56739E-04   -1.1870    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.05886e-09
Minuit parameter uncertainties:
  1  4.26556e-05
  2  0.000780268
  3  0.0179211
  4  388.531
  5  0.00270073
  6  0.249271
  7  0.681264
  8  0.142146
  9  69.7301
  10  0.382858
  11  0.000302247
  12  0.000682628
  13  0.335006
  14  0.567473
  15  1.00757
  16  2.02148e-06
  17  1.00129
  18  1.22236
  19  1.002
  20  0.850929
  21  0.706516
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.312e-04  3.829e-01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.731e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  5.085e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  3.638e-01  7.065e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  4.981e-01  8.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 129.051 21.697
Photon Flux Upper Limit: 1.15e-05 ph cm-2 s-1
Energy Flux Upper Limit: 9.04e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/236505/likelihoodResults_571622401_572227201_4FGL_J0836.2+2141_weekly_bin550.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): 0
logL (Free Index) = 158.28826057
delta logL = -4.04574552704e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 158.288260569
delta logL = -4.04536660881e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   158.2883     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      194 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1113.1        .90713E-02** at limit **
   2  Index         2.7793        6.3864        .50000       -.39997E-06
   3  Normalizat    .49812        .66999        .39526E-01    .19548E-04
   4  Prefactor     .36378        .47632        .37727E-01    .12201E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.77933
  Normalizat = 0.498121
  Prefactor  = 0.363782
 **********
 **   18 **HESSE 
 **********

 FCN=   158.2883     FROM HESSE     STATUS=OK            31 CALLS      225 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    841.46        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7793        6.3758        .50000       -.46021    
   3  Normalizat    .49812        .75915        .22656E-03   -1.1250    
   4  Prefactor     .36378        .54055        .18317E-03   -1.1870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83754e-11
Minuit parameter uncertainties:
  1  0.00141714
  2  4.50354
  3  0.775823
  4  0.54836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236505': 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) = 158.288256506
delta logL = 1.78844743459e-08

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  1.417e-03  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.779e+00  4.504e+00  0.000e+00  1.000e+01 (-1.000e+00)
300        Scale:  5.085e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  3.638e-01  5.484e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  4.981e-01  7.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 129.051 21.697

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/236505/cmap_HighResolution_571622401_572227201_4FGL_J0836.2+2141_weekly_bin550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.04e-01', job_status='DONE', photon_flux_upper_limit='1.15e-05', time_completed='2021-07-14 01:46:04.223939', job_id='236505', GAL2='0.36', fit_tolerance='1e-08', EG2='0.50', EG='0.50', time_epoch_completed='1626252364.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.36', dlogl='1.79e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='550' AND source_name='4FGL J0836.2+2141' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul 14 01:46:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 236505: <4FGL_J0836.2+2141_weekly_bin550> in cluster <slac> Done

Job <4FGL_J0836.2+2141_weekly_bin550> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jul 14 01:37:18 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 14 01:37:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 14 01:37:20 2021
Terminated at Wed Jul 14 01:46:05 2021
Results reported at Wed Jul 14 01:46:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_weekly_bin550 129.051 21.6971 571622401 572227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0836.2+2141 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   355.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             329.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   524 sec.
    Turnaround time :                            527 sec.

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

