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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin549
RA = 129.051, Dec = 21.6971
tmin = 381628801, tmax = 381888001
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='584713', job_status='RUN', time_executed='2021-08-30 02:08:55.824407', time_epoch_executed='1630314535.82' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/584713

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/584713/ft1_4FGL_J0836.2+2141_daily_bin549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/584713/ft2_4FGL_J0836.2+2141_daily_bin549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/584713/ft1_4FGL_J0836.2+2141_daily_bin549.fits outfile=/scratch/kocevski/584713/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin549.fits ra=129.051 dec=21.6971 rad=12.0 tmin=381628801.0 tmax=381888001.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 5.45
user 3.67
sys 1.37

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/584713/ft2_4FGL_J0836.2+2141_daily_bin549.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/584713/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin549.fits evtable="EVENTS" outfile="/scratch/kocevski/584713/ft1_filtered_4FGL_J0836.2+2141_daily_bin549.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.68
user 0.30
sys 1.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/584713/ft1_filtered_4FGL_J0836.2+2141_daily_bin549.fits" evtable="EVENTS" scfile=/scratch/kocevski/584713/ft2_4FGL_J0836.2+2141_daily_bin549.fits sctable="SC_DATA" outfile=/scratch/kocevski/584713/ltcube_381628801_381888001_4FGL_J0836.2+2141_daily_bin549.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/584713/ft2_4FGL_J0836.2+2141_daily_bin549.fits
.....................!
real 13.49
user 11.66
sys 1.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/584713/ft1_filtered_4FGL_J0836.2+2141_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/584713/ft2_4FGL_J0836.2+2141_daily_bin549.fits sctable="SC_DATA" expcube=/scratch/kocevski/584713/ltcube_381628801_381888001_4FGL_J0836.2+2141_daily_bin549.fits outfile=/scratch/kocevski/584713/expmap_381628801_381888001_4FGL_J0836.2+2141_daily_bin549.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/584713/ltcube_381628801_381888001_4FGL_J0836.2+2141_daily_bin549.fits
.....................!
real 194.06
user 186.20
sys 7.18

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/584713/ft1_filtered_4FGL_J0836.2+2141_daily_bin549.fits scfile=/scratch/kocevski/584713/ft2_4FGL_J0836.2+2141_daily_bin549.fits outfile=/scratch/kocevski/584713/cmap_381628801_381888001_4FGL_J0836.2+2141_daily_bin549.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=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 1.65
user 0.38
sys 1.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/584713/ft1_filtered_4FGL_J0836.2+2141_daily_bin549.fits scfile=/scratch/kocevski/584713/ft2_4FGL_J0836.2+2141_daily_bin549.fits outfile=/scratch/kocevski/584713/cmap_HighResolution_381628801_381888001_4FGL_J0836.2+2141_daily_bin549.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=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 1.64
user 0.39
sys 1.10

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/584713/ft1_filtered_4FGL_J0836.2+2141_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/584713/ft2_4FGL_J0836.2+2141_daily_bin549.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/584713/Model_4FGL_J0836.2+2141_daily_bin549.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/584713/ft1_filtered_4FGL_J0836.2+2141_daily_bin549.fits.....................!
real 60.15
user 56.87
sys 2.98

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.192       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.452       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5228       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.118       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9445       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .39079       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9954       1.0000         .10000E-03   10000.    
    16 'norm      '    4.1945       1.0000         .10000E-03   10000.    
    17 'norm      '    33.325       1.0000         .10000E-03   10000.    
    18 'norm      '    3.2575       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1918       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82829       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=   5914.091     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2156 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.308       -.47174E-06** at limit **
   2  Prefactor     45.192        47.841        .11239E-05   -.16372E-05
   3  Prefactor     .10000E-03    23.066       -.23852E-05** at limit **
   4  norm          .10000E-03    25.657        .47669E-05** at limit **
   5  Prefactor     .10000E-03    25.655        .48627E-05** at limit **
   6  Prefactor     .10000E-03    13.146        .24478E-05** at limit **
   7  Prefactor     15.452        21.692        .10353E-06   -.11624E-04
   8  Prefactor     .10000E-03    31.011       -.64299E-05** at limit **
   9  norm          2.5231        1.5408        .61995E-08   -.20671E-04
  10  Prefactor     15.118        13.598        .22164E-07   -.10922E-04
  11  Prefactor     2.9462        7.4159       -.62219E-06   -.34983E-03
  12  Prefactor     .10000E-03    13.010        .49388E-05** at limit **
  13  norm          .39108        .50337       -.33198E-07   -.49077E-03
  14  Prefactor     .10000E-03    4.8451       -.42247E-07** at limit **
  15  Prefactor     3.9976        16.665        .55188E-06   -.69727E-04
  16  norm          4.1934        8.1814       -.26993E-06   -.17537E-03
  17  norm          33.328        40.064        .48678E-05    .27180E-05
  18  norm          3.2578        2.7445       -.94659E-08    .12942E-04
  19  Prefactor     .10000E-03    13.899       -.80250E-05** at limit **
  20  Normalizat    1.1916        .19318       -.24267E-06    .16902E-04
  21  Prefactor     .82850        .15133       -.19142E-06   -.58647E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 45.1925
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.4516
  Prefactor  = 0.0001
  norm       = 2.52312
  Prefactor  = 15.1177
  Prefactor  = 2.94615
  Prefactor  = 0.0001
  norm       = 0.391084
  Prefactor  = 0.0001
  Prefactor  = 3.99762
  norm       = 4.19338
  norm       = 33.3285
  norm       = 3.25776
  Prefactor  = 0.0001
  Normalizat = 1.19156
  Prefactor  = 0.828499
 **********
 **   18 **HESSE 
 **********

 FCN=   5914.091     FROM HESSE     STATUS=OK           321 CALLS     2477 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     45.192        47.828        .59641E-04   -1.4362    
   3  Prefactor     .10000E-03    23.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    25.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.452        21.691        .10189E-03   -1.4922    
   8  Prefactor     .10000E-03    31.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5231        1.5280        .68025E-04   -1.5390    
  10  Prefactor     15.118        13.594        .10301E-03   -1.4930    
  11  Prefactor     2.9462        7.4681        .23669E-03   -1.5365    
  12  Prefactor     .10000E-03    12.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .39108        .46759        .59496E-03   -1.5583    
  14  Prefactor     .10000E-03    4.8523        .16530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.9976        16.711        .20177E-03   -1.5308    
  16  norm          4.1934        8.2115        .19677E-03   -1.5298    
  17  norm          33.328        39.994        .69414E-04   -1.4553    
  18  norm          3.2578        2.7448        .11306E-03   -1.5347    
  19  Prefactor     .10000E-03    13.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1916        .22984        .24797E-03   -.86864    
  21  Prefactor     .82850        .17931        .23603E-03   -.98686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41704e-10
Minuit parameter uncertainties:
  1  2.42282e-06
  2  47.8683
  3  3.65637e-06
  4  3.96226e-07
  5  3.81113e-06
  6  4.67609e-08
  7  21.7016
  8  4.10474e-05
  9  1.52801
  10  13.5963
  11  7.47045
  12  3.01748e-06
  13  0.467598
  14  8.40824e-06
  15  16.3542
  16  8.21375
  17  40.0262
  18  2.74495
  19  4.89977e-06
  20  0.230034
  21  0.17944
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.512e+01  1.360e+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:  8.285e-01  1.794e-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:  1.192e+00  2.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.69
Ra Dec: 129.051 21.697
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 7.42e-08 +/- 6.67e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.57e-05

TS (Fixed Index): 1.69
Ra Dec: 129.051 21.697
Photon Flux Upper Limit: 1.97e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.55e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/584713/likelihoodResults_381628801_381888001_4FGL_J0836.2+2141_daily_bin549.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) = 5913.91769167
delta logL = 0.173779449875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5913.91385012
delta logL = 0.177621000221

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.309       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1475       1.0000          .0000       10.000    
     3 'Normalizat'    1.1677       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84189       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=   5913.914     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      259 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.315        209.47        .28544E-02    .11882E-03
   2  Index         3.1481        6.5610        .20093        .83766E-04
   3  Normalizat    1.1676        .68157E-01    .56548E-01   -.49574E-05
   4  Prefactor     .84184        .57590E-01    .44260E-01   -.35164E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.3151
  Index      = 3.14813
  Normalizat = 1.16758
  Prefactor  = 0.841839
 **********
 **   18 **HESSE 
 **********

 FCN=   5913.914     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.315        13.106        .11418E-03   -1.5006    
   2  Index         3.1481        .78720        .72032E-02   -.37941    
   3  Normalizat    1.1676        .22642        .25006E-03   -.87611    
   4  Prefactor     .84184        .17860        .23433E-03   -.98204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32394e-11
Minuit parameter uncertainties:
  1  13.1095
  2  0.791015
  3  0.226607
  4  0.178719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/584713': 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) = 5913.91384848
delta logL = 0.177622642974

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.232e+01  1.311e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  3.148e+00  7.910e-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:  8.418e-01  1.787e-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:  1.168e+00  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.11
Ra Dec: 129.051 21.697
Photon Index (Free Index): 3.15 +/- 0.79
Photon Flux (Free Index): 9.61e-08 +/- 7.70e-08
Energy Flux (Free Index): 1.79e-05 +/- 1.42e-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/584713/cmap_HighResolution_381628801_381888001_4FGL_J0836.2+2141_daily_bin549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.55e-02', comment='SUCCESS', photon_flux='7.42e-08', energy_flux2='1.79e-05', photon_flux_error='6.67e-08', dlogl='1.78e-01', energy_flux='1.74e-05', photon_flux2='9.61e-08', job_status='DONE', time_completed='2021-08-30 02:18:50.974544', photon_index_error2='0.79', photon_index2='3.15', ts='1.69', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.97e-07', energy_flux_error2='1.42e-05', EG='1.19', time_epoch_completed='1630315130.97', return_code='0', job_id='584713', GAL2='0.84', EG2='1.17', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='7.70e-08', ts2='2.11', photon_index='2.73' WHERE bin_id='549' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:18:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 584713: <4FGL_J0836.2+2141_daily_bin549> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin549> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 02:05:50 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:05:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 02:05:51 2021
Terminated at Mon Aug 30 02:18:51 2021
Results reported at Mon Aug 30 02:18:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin549 129.051 21.6971 381628801 381888001 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 :                                   609.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            781 sec.

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

