aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J0836.2+2141_weekly_bin349
RA = 129.051, Dec = 21.6971
tmin = 450057601, tmax = 450662401
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='232238', job_status='RUN', time_executed='2021-07-14 01:21:24.175825', time_epoch_executed='1626250884.18' WHERE source_name='4FGL J0836.2+2141' and cadence='weekly' and bin_id='349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232238

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232238/ft1_4FGL_J0836.2+2141_weekly_bin349.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232238/ft2_4FGL_J0836.2+2141_weekly_bin349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232238/ft1_4FGL_J0836.2+2141_weekly_bin349.fits outfile=/scratch/kocevski/232238/ft1_filteredMKT_4FGL_J0836.2+2141_weekly_bin349.fits ra=129.051 dec=21.6971 rad=12.0 tmin=450057601.0 tmax=450662401.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 7.09
user 6.22
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/232238/ft2_4FGL_J0836.2+2141_weekly_bin349.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/232238/ft1_filteredMKT_4FGL_J0836.2+2141_weekly_bin349.fits evtable="EVENTS" outfile="/scratch/kocevski/232238/ft1_filtered_4FGL_J0836.2+2141_weekly_bin349.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.52
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/232238/ft1_filtered_4FGL_J0836.2+2141_weekly_bin349.fits" evtable="EVENTS" scfile=/scratch/kocevski/232238/ft2_4FGL_J0836.2+2141_weekly_bin349.fits sctable="SC_DATA" outfile=/scratch/kocevski/232238/ltcube_450057601_450662401_4FGL_J0836.2+2141_weekly_bin349.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/232238/ft2_4FGL_J0836.2+2141_weekly_bin349.fits
.....................!
real 24.53
user 24.03
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232238/ft1_filtered_4FGL_J0836.2+2141_weekly_bin349.fits evtable="EVENTS" scfile=/scratch/kocevski/232238/ft2_4FGL_J0836.2+2141_weekly_bin349.fits sctable="SC_DATA" expcube=/scratch/kocevski/232238/ltcube_450057601_450662401_4FGL_J0836.2+2141_weekly_bin349.fits outfile=/scratch/kocevski/232238/expmap_450057601_450662401_4FGL_J0836.2+2141_weekly_bin349.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/232238/ltcube_450057601_450662401_4FGL_J0836.2+2141_weekly_bin349.fits
.....................!
real 158.29
user 152.60
sys 4.06

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/232238/ft1_filtered_4FGL_J0836.2+2141_weekly_bin349.fits scfile=/scratch/kocevski/232238/ft2_4FGL_J0836.2+2141_weekly_bin349.fits outfile=/scratch/kocevski/232238/cmap_450057601_450662401_4FGL_J0836.2+2141_weekly_bin349.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.53
user 0.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/232238/ft1_filtered_4FGL_J0836.2+2141_weekly_bin349.fits scfile=/scratch/kocevski/232238/ft2_4FGL_J0836.2+2141_weekly_bin349.fits outfile=/scratch/kocevski/232238/cmap_HighResolution_450057601_450662401_4FGL_J0836.2+2141_weekly_bin349.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.52
user 0.34
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/232238/ft1_filtered_4FGL_J0836.2+2141_weekly_bin349.fits', '/scratch/kocevski/232238/ft2_4FGL_J0836.2+2141_weekly_bin349.fits', expMap='/scratch/kocevski/232238/expmap_450057601_450662401_4FGL_J0836.2+2141_weekly_bin349.fits', expCube='/scratch/kocevski/232238/ltcube_450057601_450662401_4FGL_J0836.2+2141_weekly_bin349.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/232238/Model_4FGL_J0836.2+2141_weekly_bin349.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/232238/ft1_filtered_4FGL_J0836.2+2141_weekly_bin349.fits
Spacecraft file(s): /scratch/kocevski/232238/ft2_4FGL_J0836.2+2141_weekly_bin349.fits
Exposure map: /scratch/kocevski/232238/expmap_450057601_450662401_4FGL_J0836.2+2141_weekly_bin349.fits
Exposure cube: /scratch/kocevski/232238/ltcube_450057601_450662401_4FGL_J0836.2+2141_weekly_bin349.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/232238/Model_4FGL_J0836.2+2141_weekly_bin349.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) = 14827.0826556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.833       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    61.340       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.3901       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11632E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9205       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.485       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10048       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9385       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2005       1.0000         .10000E-03   10000.    
    13 'norm      '    2.1569       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.343       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.130       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10853E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .81943       1.0000         .10000E-03   10000.    
    19 'Prefactor '    36.729       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .98074       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0567       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14827.04     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2243 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9658        .48112E-07** at limit **
   2  Prefactor     10.836        24.268       -.15604E-06   -.41929E-05
   3  Prefactor     .10000E-03    29.751        .26089E-06** at limit **
   4  norm          61.330        49.077       -.91967E-07    .16924E-04
   5  Prefactor     8.3340        23.970       -.50367E-06    .34403E-04
   6  Prefactor     .10000E-03    15.927        .16651E-05** at limit **
   7  Prefactor     1.9189        15.363       -.95961E-06   -.27851E-04
   8  Prefactor     12.477        13.900        .11150E-06    .37346E-04
   9  norm          .10000E-03    .20166        .40845E-08** at limit **
  10  Prefactor     .14509        41.214       -.28424E-05    .37289E-05
  11  Prefactor     3.9364        4.1180       -.30917E-06   -.39408E-04
  12  Prefactor     3.2073        41.275       -.12535E-05   -.11535E-04
  13  norm          2.1567        .61044       -.71922E-08    .30617E-03
  14  Prefactor     14.342        9.6248       -.85162E-07    .21635E-04
  15  Prefactor     25.134        13.804       -.29554E-07    .55285E-04
  16  norm          .10000E-03    1.8926       -.25707E-07** at limit **
  17  norm          .10000E-03    17.562        .84980E-07** at limit **
  18  norm          .81971        .77157       -.41543E-06   -.62418E-03
  19  Prefactor     36.720        28.736       -.15669E-06    .20405E-04
  20  Normalizat    .98045        .13857        .13106E-05    .38837E-04
  21  Prefactor     1.0568        .10647       -.68859E-06    .34333E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.8357
  Prefactor  = 0.0001
  norm       = 61.3304
  Prefactor  = 8.33404
  Prefactor  = 0.0001
  Prefactor  = 1.91885
  Prefactor  = 12.4775
  norm       = 0.0001
  Prefactor  = 0.145092
  Prefactor  = 3.93641
  Prefactor  = 3.20729
  norm       = 2.15669
  Prefactor  = 14.3425
  Prefactor  = 25.1336
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.819711
  Prefactor  = 36.7201
  Normalizat = 0.980454
  Prefactor  = 1.05684
 **********
 **   18 **HESSE 
 **********

 FCN=   14827.04     FROM HESSE     STATUS=OK           329 CALLS     2572 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.836        24.264        .12173E-03   -1.5049    
   3  Prefactor     .10000E-03    30.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          61.330        49.146        .51232E-04   -1.4140    
   5  Prefactor     8.3340        24.074        .13840E-03   -1.5131    
   6  Prefactor     .10000E-03    15.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.9189        15.535        .29984E-03   -1.5431    
   8  Prefactor     12.477        13.902        .11337E-03   -1.5001    
   9  norm          .10000E-03    .20170        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .14509        3.7631        .59800E-01   -1.5632    
  11  Prefactor     3.9364        4.1054        .20327E-03   -1.5311    
  12  Prefactor     3.2073        41.217        .22648E-03   -1.5350    
  13  norm          2.1567        .60941        .46489E-04   -1.5414    
  14  Prefactor     14.342        9.6335        .10576E-03   -1.4950    
  15  Prefactor     25.134        13.891        .79910E-04   -1.4705    
  16  norm          .10000E-03    1.9253        .16360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    17.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .81971        .77545        .11761E-02   -1.5527    
  19  Prefactor     36.720        28.742        .66130E-04   -1.4495    
  20  Normalizat    .98045        .15345        .27521E-03   -.93688    
  21  Prefactor     1.0568        .11981        .22072E-03   -.90858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2101e-09
Minuit parameter uncertainties:
  1  3.63072e-06
  2  24.2865
  3  4.8167e-05
  4  49.178
  5  24.1018
  6  6.0849e-05
  7  10.923
  8  13.9057
  9  1.16906e-07
  10  1.47744
  11  4.10565
  12  23.0144
  13  0.609409
  14  9.63457
  15  13.893
  16  8.55256e-07
  17  3.13045e-05
  18  0.775459
  19  28.7531
  20  0.153516
  21  0.119843
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.451e-01  1.477e+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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.057e+00  1.198e-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:  9.805e-01  1.535e-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: 5.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/232238/likelihoodResults_450057601_450662401_4FGL_J0836.2+2141_weekly_bin349.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) = 14826.9014004
delta logL = 0.134078360004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14826.7830329
delta logL = 0.252445839989

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10154E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    8.9229       1.0000          .0000       10.000    
     3 'Normalizat'    .95016       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0745       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=   14826.78     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      320 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .98324E-03    .16690E-01    .10376E-02** at limit **
   2  Index         8.9459        8.7843        .38531        .21062E-03
   3  Normalizat    .95010        .18343E-01    .45539E-01    .93364E-05
   4  Prefactor     1.0744        .15284E-01    .38648E-01   -.51279E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000983244
  Index      = 8.94585
  Normalizat = 0.9501
  Prefactor  = 1.07444
 **********
 **   18 **HESSE 
 **********

 FCN=   14826.78     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      353 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .98324E-03    .11543        .53199E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.9459        6.2644        .35412E-02    .90946    
   3  Normalizat    .95010        .93930E-01    .27909E-03   -.94721    
   4  Prefactor     1.0744        .76204E-01    .21915E-03   -.90288    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.91136e-08
Minuit parameter uncertainties:
  1  0.0201941
  2  13.3227
  3  0.0939463
  4  0.0762119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232238': 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) = 14826.7830262
delta logL = 0.252452507952

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  9.832e-04  2.019e-02  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  8.946e+00  1.332e+01  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:  1.074e+00  7.621e-02  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:  9.501e-01  9.395e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/232238/cmap_HighResolution_450057601_450662401_4FGL_J0836.2+2141_weekly_bin349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-03', job_status='DONE', photon_flux_upper_limit='5.95e-08', time_completed='2021-07-14 01:35:56.856500', job_id='232238', GAL2='1.07', fit_tolerance='1e-08', EG2='0.95', EG='0.98', time_epoch_completed='1626251756.86', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.52e-01', ts2='0.55', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='349' AND source_name='4FGL J0836.2+2141' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul 14 01:35:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 232238: <4FGL_J0836.2+2141_weekly_bin349> in cluster <slac> Done

Job <4FGL_J0836.2+2141_weekly_bin349> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Jul 14 01:20:36 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 14 01:21:12 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:21:12 2021
Terminated at Wed Jul 14 01:35:58 2021
Results reported at Wed Jul 14 01:35:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_weekly_bin349 129.051 21.6971 450057601 450662401 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 :                                   859.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            922 sec.

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

