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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1049
RA = 129.051, Dec = 21.6971
tmin = 511228801, tmax = 511488001
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='586623', job_status='RUN', time_executed='2021-08-30 02:15:17.522307', time_epoch_executed='1630314917.52' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/586623

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/586623/ft1_4FGL_J0836.2+2141_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/586623/ft2_4FGL_J0836.2+2141_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/586623/ft1_4FGL_J0836.2+2141_daily_bin1049.fits outfile=/scratch/kocevski/586623/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1049.fits ra=129.051 dec=21.6971 rad=12.0 tmin=511228801.0 tmax=511488001.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.90
user 3.23
sys 4.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/586623/ft2_4FGL_J0836.2+2141_daily_bin1049.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/586623/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1049.fits evtable="EVENTS" outfile="/scratch/kocevski/586623/ft1_filtered_4FGL_J0836.2+2141_daily_bin1049.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 4.77
user 0.33
sys 4.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/586623/ft1_filtered_4FGL_J0836.2+2141_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/586623/ft2_4FGL_J0836.2+2141_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/586623/ltcube_511228801_511488001_4FGL_J0836.2+2141_daily_bin1049.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/586623/ft2_4FGL_J0836.2+2141_daily_bin1049.fits
.....................!
real 16.86
user 11.53
sys 4.89

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/586623/ft1_filtered_4FGL_J0836.2+2141_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/586623/ft2_4FGL_J0836.2+2141_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/586623/ltcube_511228801_511488001_4FGL_J0836.2+2141_daily_bin1049.fits outfile=/scratch/kocevski/586623/expmap_511228801_511488001_4FGL_J0836.2+2141_daily_bin1049.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/586623/ltcube_511228801_511488001_4FGL_J0836.2+2141_daily_bin1049.fits
.....................!
real 197.37
user 185.93
sys 9.94

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/586623/ft1_filtered_4FGL_J0836.2+2141_daily_bin1049.fits scfile=/scratch/kocevski/586623/ft2_4FGL_J0836.2+2141_daily_bin1049.fits outfile=/scratch/kocevski/586623/cmap_511228801_511488001_4FGL_J0836.2+2141_daily_bin1049.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 4.64
user 0.35
sys 3.86

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/586623/ft1_filtered_4FGL_J0836.2+2141_daily_bin1049.fits scfile=/scratch/kocevski/586623/ft2_4FGL_J0836.2+2141_daily_bin1049.fits outfile=/scratch/kocevski/586623/cmap_HighResolution_511228801_511488001_4FGL_J0836.2+2141_daily_bin1049.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 4.64
user 0.34
sys 3.86

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.449       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.086       1.0000         .10000E-03   10000.    
     9 'norm      '    .11288E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.500       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.946       1.0000         .10000E-03   10000.    
    13 'norm      '    .58370E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.086       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .87520E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    91.506       1.0000         .10000E-03   10000.    
    18 'norm      '    1.9973       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.654       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1719       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88052       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=   6440.969     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     1964 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.102        .27363E-06** at limit **
   2  Prefactor     13.379        34.298        .18411E-04   -.77711E-05
   3  Prefactor     .10000E-03    25.831        .14614E-05** at limit **
   4  norm          .10000E-03    37.143        .37787E-05** at limit **
   5  Prefactor     .10000E-03    23.458        .14798E-06** at limit **
   6  Prefactor     .10000E-03    12.267        .49001E-06** at limit **
   7  Prefactor     .10000E-03    11.695        .18732E-06** at limit **
   8  Prefactor     30.054        21.699        .54387E-05    .27914E-03
   9  norm          .10000E-03    .49477       -.58497E-06** at limit **
  10  Prefactor     10.497        9.9624        .22056E-05    .23765E-03
  11  Prefactor     .10000E-03    3.4832       -.59383E-08** at limit **
  12  Prefactor     42.944        29.664        .67920E-05   -.37413E-05
  13  norm          .10175E-03    .32461       -.12336E-06** at limit **
  14  Prefactor     13.102        10.539        .15163E-05    .60186E-04
  15  Prefactor     .23222        10.809        .10279E-05   -.15398E-03
  16  norm          .10000E-03    3.1009        .40379E-08** at limit **
  17  norm          91.493        39.662       -.60260E-05   -.10985E-04
  18  norm          1.9950        2.5135        .13341E-07   -.54308E-03
  19  Prefactor     11.641        31.883        .41522E-06   -.93287E-05
  20  Normalizat    1.1715        .18069       -.23342E-05    .22770E-03
  21  Prefactor     .88075        .14461       -.52682E-06    .54618E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.3786
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.0538
  norm       = 0.000100001
  Prefactor  = 10.4967
  Prefactor  = 0.0001
  Prefactor  = 42.9442
  norm       = 0.000101753
  Prefactor  = 13.1024
  Prefactor  = 0.232216
  norm       = 0.0001
  norm       = 91.4931
  norm       = 1.99504
  Prefactor  = 11.6411
  Normalizat = 1.17151
  Prefactor  = 0.880748
 **********
 **   18 **HESSE 
 **********

 FCN=   6440.969     FROM HESSE     STATUS=OK           333 CALLS     2297 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.379        34.005        .10922E-03   -1.4976    
   3  Prefactor     .10000E-03    25.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    37.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.054        21.514        .73045E-04   -1.4611    
   9  norm          .10000E-03    .77773        .10549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.497        9.9019        .12365E-03   -1.5060    
  11  Prefactor     .10000E-03    3.5170        .14623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     42.944        29.528        .61173E-04   -1.4396    
  13  norm          .10175E-03    .79210        .15182E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.102        10.561        .11073E-03   -1.4984    
  15  Prefactor     .23222        14.931        .76608E-01   -1.5612    
  16  norm          .10000E-03    3.1042        .13802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          91.493        39.572        .21004E-03   -1.3792    
  18  norm          1.9950        2.4959        .13812E-03   -1.5425    
  19  Prefactor     11.641        31.877        .11735E-03   -1.5025    
  20  Normalizat    1.1715        .21567        .24230E-03   -.87488    
  21  Prefactor     .88075        .17147        .23231E-03   -.96817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75479e-09
Minuit parameter uncertainties:
  1  9.02342e-06
  2  34.0544
  3  1.88944e-05
  4  6.32164e-06
  5  1.37008e-05
  6  1.74186e-06
  7  1.20012e-05
  8  21.5197
  9  5.28726e-05
  10  9.90347
  11  4.14647e-06
  12  29.5378
  13  0.00235672
  14  10.562
  15  3.72421
  16  2.40056e-06
  17  39.583
  18  2.49606
  19  31.9236
  20  0.215832
  21  0.171579
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.050e+01  9.903e+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:  8.807e-01  1.716e-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.172e+00  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.45
Ra Dec: 129.051 21.697
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 5.15e-08 +/- 4.86e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.14e-05

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

Saving results to:
/scratch/kocevski/586623/likelihoodResults_511228801_511488001_4FGL_J0836.2+2141_daily_bin1049.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) = 6440.47271142
delta logL = 0.495923711358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6440.46702438
delta logL = 0.50161075116

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2824       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7179       1.0000          .0000       10.000    
     3 'Normalizat'    1.1288       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90620       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=   6440.467     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      269 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2818        11.165        .12334E-03   -.11248E-02
   2  Index         3.7180        1.5952        .67251E-02   -.14200E-03
   3  Normalizat    1.1288        .20863        .24608E-03   -.45677E-03
   4  Prefactor     .90619        .17236        .22937E-03   -.44381E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.28178
  Index      = 3.71801
  Normalizat = 1.12885
  Prefactor  = 0.906191
 **********
 **   18 **HESSE 
 **********

 FCN=   6440.467     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2818        8.1490        .49334E-05   -1.5248    
   2  Index         3.7180        1.1728        .26900E-03   -.25929    
   3  Normalizat    1.1288        .20871        .49215E-04   -.88831    
   4  Prefactor     .90619        .17207        .45874E-04   -.95925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20609e-10
Minuit parameter uncertainties:
  1  8.1507
  2  1.18458
  3  0.208864
  4  0.172169
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/586623': 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) = 6440.46702438
delta logL = 0.501610755819

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  5.282e+00  8.151e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  3.718e+00  1.185e+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:  9.062e-01  1.722e-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.129e+00  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.57
Ra Dec: 129.051 21.697
Photon Index (Free Index): 3.72 +/- 1.18
Photon Flux (Free Index): 8.24e-08 +/- 6.07e-08
Energy Flux (Free Index): 1.30e-05 +/- 9.59e-06

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/586623/cmap_HighResolution_511228801_511488001_4FGL_J0836.2+2141_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', photon_flux='5.15e-08', energy_flux2='1.30e-05', photon_flux_error='4.86e-08', dlogl='5.02e-01', energy_flux='1.21e-05', photon_flux2='8.24e-08', job_status='DONE', time_completed='2021-08-30 02:26:12.310944', photon_index_error2='1.18', photon_index2='3.72', ts='1.45', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='9.59e-06', EG='1.17', time_epoch_completed='1630315572.31', return_code='0', job_id='586623', GAL2='0.91', EG2='1.13', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='6.07e-08', ts2='2.57', photon_index='2.73' WHERE bin_id='1049' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:26:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 586623: <4FGL_J0836.2+2141_daily_bin1049> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin1049> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 02:10:50 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:10:53 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:10:53 2021
Terminated at Mon Aug 30 02:26:13 2021
Results reported at Mon Aug 30 02:26:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1049 129.051 21.6971 511228801 511488001 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 :                                   711.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            923 sec.

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

