aklog: Couldn't determine realm of user:aklog: No credentials cache found  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 19 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 = 17403
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0836.2+2141_weekly_bin729
RA = 129.051, Dec = 21.6971
tmin = 679881601, tmax = 680486401
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='196182', job_status='RUN', time_executed='2022-07-26 02:29:39.985724', time_epoch_executed='1658827779.99' WHERE source_name='4FGL J0836.2+2141' and cadence='weekly' and bin_id='729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/196182

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/196182/ft1_4FGL_J0836.2+2141_weekly_bin729.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/196182/ft2_4FGL_J0836.2+2141_weekly_bin729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/196182/ft1_4FGL_J0836.2+2141_weekly_bin729.fits outfile=/scratch/kocevski/196182/ft1_filteredMKT_4FGL_J0836.2+2141_weekly_bin729.fits ra=129.051 dec=21.6971 rad=12.0 tmin=679881601.0 tmax=680486401.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.80
user 6.51
sys 0.27

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

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

Number of photons that the gtmktime cut: 721

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/196182/ft1_filtered_4FGL_J0836.2+2141_weekly_bin729.fits" evtable="EVENTS" scfile=/scratch/kocevski/196182/ft2_4FGL_J0836.2+2141_weekly_bin729.fits sctable="SC_DATA" outfile=/scratch/kocevski/196182/ltcube_679881601_680486401_4FGL_J0836.2+2141_weekly_bin729.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/196182/ft2_4FGL_J0836.2+2141_weekly_bin729.fits
.....................!
real 30.80
user 30.28
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/196182/ft1_filtered_4FGL_J0836.2+2141_weekly_bin729.fits evtable="EVENTS" scfile=/scratch/kocevski/196182/ft2_4FGL_J0836.2+2141_weekly_bin729.fits sctable="SC_DATA" expcube=/scratch/kocevski/196182/ltcube_679881601_680486401_4FGL_J0836.2+2141_weekly_bin729.fits outfile=/scratch/kocevski/196182/expmap_679881601_680486401_4FGL_J0836.2+2141_weekly_bin729.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/196182/ltcube_679881601_680486401_4FGL_J0836.2+2141_weekly_bin729.fits
.....................!
real 156.49
user 152.35
sys 3.72

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/196182/ft1_filtered_4FGL_J0836.2+2141_weekly_bin729.fits scfile=/scratch/kocevski/196182/ft2_4FGL_J0836.2+2141_weekly_bin729.fits outfile=/scratch/kocevski/196182/cmap_679881601_680486401_4FGL_J0836.2+2141_weekly_bin729.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.54
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/196182/ft1_filtered_4FGL_J0836.2+2141_weekly_bin729.fits scfile=/scratch/kocevski/196182/ft2_4FGL_J0836.2+2141_weekly_bin729.fits outfile=/scratch/kocevski/196182/cmap_HighResolution_679881601_680486401_4FGL_J0836.2+2141_weekly_bin729.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.51
user 0.33
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    98.243       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    726.52       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.749       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.6066       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .38918E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .85508       1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.801       1.0000         .10000E-03   10000.    
    13 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .95923E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.243       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .24626       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .78609       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.4052       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=   8127.844     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2292 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.077        .95507E-06** at limit **
   2  Prefactor     98.240        62.986       -.28845E-05    .90847E-05
   3  Prefactor     .10000E-03    170.98       -.75639E-05** at limit **
   4  norm          726.57        194.70        .19083E-04    .38960E-05
   5  Prefactor     .10000E-03    6.5687       -.34127E-07** at limit **
   6  Prefactor     .10000E-03    10.996       -.96918E-07** at limit **
   7  Prefactor     25.750        20.886        .17550E-06    .17624E-05
   8  Prefactor     .10000E-03    8.6656       -.21058E-07** at limit **
   9  norm          3.6061        1.4733        .91990E-07    .15672E-02
  10  Prefactor     .10268E-03    5.5306       -.21462E-05** at limit **
  11  Prefactor     .90417        .56006        .11595E-07   -.37127E-03
  12  Prefactor     50.794        34.748       -.11951E-05    .20125E-04
  13  norm          .10000E-03    .29089        .19744E-07** at limit **
  14  Prefactor     .10014E-03    9.1993        .11679E-05** at limit **
  15  Prefactor     36.240        18.302       -.21297E-06    .25771E-04
  16  norm          .10000E-03    2.6080       -.31832E-07** at limit **
  17  norm          .10000E-03    12.735        .85902E-07** at limit **
  18  norm          .24628        .90413        .42846E-07   -.62199E-04
  19  Prefactor     .10000E-03    15.196       -.19836E-06** at limit **
  20  Normalizat    .78644        .18680        .12203E-05    .14213E-03
  21  Prefactor     1.4048        .15650       -.15293E-05    .39081E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 98.2398
  Prefactor  = 0.0001
  norm       = 726.572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.7502
  Prefactor  = 0.0001
  norm       = 3.60607
  Prefactor  = 0.000102685
  Prefactor  = 0.904168
  Prefactor  = 50.794
  norm       = 0.0001
  Prefactor  = 0.000100136
  Prefactor  = 36.2397
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.246283
  Prefactor  = 0.0001
  Normalizat = 0.786439
  Prefactor  = 1.40484
 **********
 **   18 **HESSE 
 **********

 FCN=   8127.844     FROM HESSE     STATUS=OK           321 CALLS     2613 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     98.240        62.954        .40556E-04   -1.3722    
   3  Prefactor     .10000E-03    174.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          726.57        194.95        .77052E-04   -1.0249    
   5  Prefactor     .10000E-03    6.5702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.750        20.887        .78945E-04   -1.4693    
   8  Prefactor     .10000E-03    8.6812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.6061        1.4430        .65133E-04   -1.5328    
  10  Prefactor     .10268E-03    77.084        .37983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .90417        10.601        .25287E-02   -1.5518    
  12  Prefactor     50.794        34.766        .56267E-04   -1.4281    
  13  norm          .10000E-03    .48424        .91880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10014E-03    87.732        .51340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.240        18.369        .66570E-04   -1.4503    
  16  norm          .10000E-03    2.6125        .14219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .24628        1.2495        .15950E-02   -1.5609    
  19  Prefactor     .10000E-03    15.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .78644        .21566        .33360E-03   -1.0057    
  21  Prefactor     1.4048        .18334        .22433E-03   -.80241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.11888e-08
Minuit parameter uncertainties:
  1  8.22359e-05
  2  62.997
  3  0.00022305
  4  195.138
  5  6.71754e-07
  6  2.88219e-06
  7  20.8932
  8  4.15418e-08
  9  1.44303
  10  0.0288099
  11  6.19299
  12  34.7799
  13  3.41775e-06
  14  0.00691936
  15  18.372
  16  1.28497e-06
  17  9.51238e-07
  18  1.1093
  19  2.55689e-06
  20  0.215896
  21  0.183421
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.027e-04  2.881e-02  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.405e+00  1.834e-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:  7.864e-01  2.159e-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.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/196182/likelihoodResults_679881601_680486401_4FGL_J0836.2+2141_weekly_bin729.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) = 8127.84427109
delta logL = -6.04934775765e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8127.84427074
delta logL = -6.01400533924e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95964E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7302       1.0000          .0000       10.000    
     3 'Normalizat'    .78626       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4050       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8127.814     FROM MIGRAD    STATUS=CONVERGED    206 CALLS      375 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2098        10.164        .18150E-02    .18728E-04
   2  Index         2.0534        1.4107        .13800E-01   -.39906E-05
   3  Normalizat    .78672        .20514        .33353E-03   -.44311E-06
   4  Prefactor     1.4009        .18009        .22459E-03    .11642E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.2098
  Index      = 2.05336
  Normalizat = 0.786723
  Prefactor  = 1.40089
 **********
 **   18 **HESSE 
 **********

 FCN=   8127.814     FROM HESSE     STATUS=OK            27 CALLS      402 TOTAL
                     EDM=   .19E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2098        10.323        .72601E-04   -1.5411    
   2  Index         2.0534        1.4230        .55199E-03   -.63023    
   3  Normalizat    .78672        .20531        .13341E-04   -1.0056    
   4  Prefactor     1.4009        .18020        .89837E-05   -.80355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91447e-14
Minuit parameter uncertainties:
  1  9.55466
  2  1.45423
  3  0.205515
  4  0.180286
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/196182': 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) = 8127.8139633
delta logL = 0.0302473012125

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  2.210e+00  9.555e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.053e+00  1.454e+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:  1.401e+00  1.803e-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:  7.867e-01  2.055e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/196182/cmap_HighResolution_679881601_680486401_4FGL_J0836.2+2141_weekly_bin729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.90e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2022-07-26 02:40:16.499604', job_id='196182', GAL2='1.40', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1658828416.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='3.02e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='729' AND source_name='4FGL J0836.2+2141' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 26 02:40:16 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 196182: <4FGL_J0836.2+2141_weekly_bin729> in cluster <slac> Done

Job <4FGL_J0836.2+2141_weekly_bin729> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Jul 26 02:25:39 2022
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 26 02:29:12 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 26 02:29:12 2022
Terminated at Tue Jul 26 02:40:16 2022
Results reported at Tue Jul 26 02:40:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_weekly_bin729 129.051 21.6971 679881601 680486401 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 :                                   635.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             318.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            877 sec.

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

