/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 4 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 = 7679
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1615
RA = 129.051, Dec = 21.6971
tmin = 657936001, tmax = 658195201
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='263508', job_status='RUN', time_executed='2021-12-07 19:12:51.001273', time_epoch_executed='1638933171.0' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263508

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263508/ft1_4FGL_J0836.2+2141_daily_bin1615.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263508/ft2_4FGL_J0836.2+2141_daily_bin1615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263508/ft1_4FGL_J0836.2+2141_daily_bin1615.fits outfile=/scratch/kocevski/263508/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1615.fits ra=129.051 dec=21.6971 rad=12.0 tmin=657936001.0 tmax=658195201.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 4.11
user 3.87
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263508/ft2_4FGL_J0836.2+2141_daily_bin1615.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/263508/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1615.fits evtable="EVENTS" outfile="/scratch/kocevski/263508/ft1_filtered_4FGL_J0836.2+2141_daily_bin1615.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.51
user 0.35
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263508/ft1_filtered_4FGL_J0836.2+2141_daily_bin1615.fits evtable="EVENTS" scfile=/scratch/kocevski/263508/ft2_4FGL_J0836.2+2141_daily_bin1615.fits sctable="SC_DATA" expcube=/scratch/kocevski/263508/ltcube_657936001_658195201_4FGL_J0836.2+2141_daily_bin1615.fits outfile=/scratch/kocevski/263508/expmap_657936001_658195201_4FGL_J0836.2+2141_daily_bin1615.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/263508/ltcube_657936001_658195201_4FGL_J0836.2+2141_daily_bin1615.fits
.....................!
real 192.27
user 186.36
sys 5.24

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/263508/ft1_filtered_4FGL_J0836.2+2141_daily_bin1615.fits scfile=/scratch/kocevski/263508/ft2_4FGL_J0836.2+2141_daily_bin1615.fits outfile=/scratch/kocevski/263508/cmap_657936001_658195201_4FGL_J0836.2+2141_daily_bin1615.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263508/ft1_filtered_4FGL_J0836.2+2141_daily_bin1615.fits scfile=/scratch/kocevski/263508/ft2_4FGL_J0836.2+2141_daily_bin1615.fits outfile=/scratch/kocevski/263508/cmap_HighResolution_657936001_658195201_4FGL_J0836.2+2141_daily_bin1615.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.56
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.645       1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.178       1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.160       1.0000         .10000E-03   10000.    
     4 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .66553       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.147       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2589       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .22503E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.443       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.480       1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.9283       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .91140       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93800       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=   5671.741     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2229 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.643        17.097        .12056E-06    .16879E-04
   2  Prefactor     39.167        42.106       -.10071E-04    .51291E-05
   3  Prefactor     44.159        38.495       -.12798E-05    .12353E-04
   4  norm          .10000E-03    92.301       -.26641E-04** at limit **
   5  Prefactor     .10000E-03    15.178       -.15976E-04** at limit **
   6  Prefactor     .10000E-03    22.557       -.16153E-04** at limit **
   7  Prefactor     .10000E-03    5.7909        .16228E-06** at limit **
   8  Prefactor     .10000E-03    10.822        .14964E-05** at limit **
   9  norm          .66535        1.0156       -.12113E-06   -.24128E-03
  10  Prefactor     17.145        10.206        .13245E-06    .32017E-04
  11  Prefactor     1.2590        5.3385       -.23202E-05   -.99593E-03
  12  Prefactor     .10000E-03    15.786        .16110E-05** at limit **
  13  norm          .10008E-03    .32961       -.93701E-07** at limit **
  14  Prefactor     11.455        13.550        .71188E-06   -.42360E-04
  15  Prefactor     25.473        17.862       -.77001E-07   -.37026E-04
  16  norm          .10000E-03    8.4833        .16870E-07** at limit **
  17  norm          .10000E-03    17.440        .25493E-04** at limit **
  18  norm          1.9281        2.2273       -.10236E-06   -.17193E-03
  19  Prefactor     .10000E-03    54.517        .20371E-04** at limit **
  20  Normalizat    .91169        .17490        .85470E-06    .56357E-04
  21  Prefactor     .93779        .14505        .11548E-06    .12701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.6435
  Prefactor  = 39.1671
  Prefactor  = 44.1589
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.665347
  Prefactor  = 17.1455
  Prefactor  = 1.25902
  Prefactor  = 0.0001
  norm       = 0.000100082
  Prefactor  = 11.4548
  Prefactor  = 25.473
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.92809
  Prefactor  = 0.0001
  Normalizat = 0.911691
  Prefactor  = 0.937795
 **********
 **   18 **HESSE 
 **********

 FCN=   5671.741     FROM HESSE     STATUS=OK           325 CALLS     2554 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.643        17.098        .74856E-04   -1.4637    
   2  Prefactor     39.167        42.119        .64036E-04   -1.4455    
   3  Prefactor     44.159        38.496        .60330E-04   -1.4378    
   4  norm          .10000E-03    92.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.7922        .17701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .66535        1.0139        .47716E-04   -1.5545    
  10  Prefactor     17.145        10.208        .96723E-04   -1.4880    
  11  Prefactor     1.2590        5.4829        .33633E-03   -1.5484    
  12  Prefactor     .10000E-03    15.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10008E-03    .88811        .13813E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.455        13.622        .11843E-03   -1.5031    
  15  Prefactor     25.473        17.983        .79360E-04   -1.4698    
  16  norm          .10000E-03    8.6344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    17.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.9281        2.2171        .11724E-03   -1.5430    
  19  Prefactor     .10000E-03    54.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .91169        .20362        .24771E-03   -.96051    
  21  Prefactor     .93779        .16863        .21162E-03   -.94833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29251e-09
Minuit parameter uncertainties:
  1  17.1006
  2  42.1511
  3  38.5179
  4  0.000109629
  5  8.74075e-06
  6  3.28458e-05
  7  2.83038e-07
  8  1.94275e-06
  9  1.01393
  10  10.2088
  11  5.25536
  12  5.07386e-06
  13  0.000541278
  14  13.6257
  15  17.9872
  16  7.2617e-06
  17  2.91743e-05
  18  2.21717
  19  9.31191e-05
  20  0.203793
  21  0.168727
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.715e+01  1.021e+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:  9.378e-01  1.687e-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.117e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.17
Ra Dec: 129.051 21.697
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 8.42e-08 +/- 5.00e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 1.18e-05

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) = 5671.72547334
delta logL = 0.0151693598682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5671.71401684
delta logL = 0.0266258568699

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.349       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8854       1.0000          .0000       10.000    
     3 'Normalizat'    .90345       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94357       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5671.714     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      235 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.347        13.204        .10223E-03    .10381E-02
   2  Index         2.8856        .74350        .66478E-02    .23645E-03
   3  Normalizat    .90343        .19853        .24870E-03   -.38360E-03
   4  Prefactor     .94360        .16931        .21106E-03   -.54281E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3475
  Index      = 2.88557
  Normalizat = 0.903426
  Prefactor  = 0.943603
 **********
 **   18 **HESSE 
 **********

 FCN=   5671.714     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.347        12.451        .40893E-05   -1.4924    
   2  Index         2.8856        .70070        .26591E-03   -.43663    
   3  Normalizat    .90343        .19850        .49739E-04   -.96340    
   4  Prefactor     .94360        .16920        .42213E-04   -.94634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09918e-09
Minuit parameter uncertainties:
  1  12.4534
  2  0.703524
  3  0.198664
  4  0.169299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263508': 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) = 5671.71401679
delta logL = 0.0266259040727

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.535e+01  1.245e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.886e+00  7.035e-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:  9.436e-01  1.693e-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.034e-01  1.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.24
Ra Dec: 129.051 21.697
Photon Index (Free Index): 2.89 +/- 0.70
Photon Flux (Free Index): 8.90e-08 +/- 5.45e-08
Energy Flux (Free Index): 1.89e-05 +/- 1.16e-05

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/263508/cmap_HighResolution_657936001_658195201_4FGL_J0836.2+2141_daily_bin1615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.42e-08', energy_flux2='1.89e-05', photon_flux_error='5.00e-08', dlogl='2.66e-02', energy_flux='1.98e-05', photon_flux2='8.90e-08', job_status='DONE', time_completed='2021-12-07 19:21:44.554200', photon_index_error2='0.70', photon_index2='2.89', ts='4.17', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.16e-05', EG='0.91', time_epoch_completed='1638933704.55', return_code='0', job_id='263508', GAL2='0.94', EG2='0.90', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='5.45e-08', ts2='4.24', photon_index='2.73' WHERE bin_id='1615' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 19:21:44 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 263508: <4FGL_J0836.2+2141_daily_bin1615> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin1615> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec  7 19:10:22 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 19:12:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 19:12:41 2021
Terminated at Tue Dec  7 19:21:45 2021
Results reported at Tue Dec  7 19:21:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1615 129.051 21.6971 657936001 658195201 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 :                                   532.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             337.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   543 sec.
    Turnaround time :                            683 sec.

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

