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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1003
RA = 129.051, Dec = 21.6971
tmin = 499305601, tmax = 499564801
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='586558', job_status='RUN', time_executed='2021-08-30 02:13:23.820180', time_epoch_executed='1630314803.82' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/586558

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/586558/ft1_4FGL_J0836.2+2141_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/586558/ft2_4FGL_J0836.2+2141_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/586558/ft1_4FGL_J0836.2+2141_daily_bin1003.fits outfile=/scratch/kocevski/586558/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1003.fits ra=129.051 dec=21.6971 rad=12.0 tmin=499305601.0 tmax=499564801.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 13.46
user 5.10
sys 8.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/586558/ft2_4FGL_J0836.2+2141_daily_bin1003.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/586558/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1003.fits evtable="EVENTS" outfile="/scratch/kocevski/586558/ft1_filtered_4FGL_J0836.2+2141_daily_bin1003.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 8.76
user 0.34
sys 8.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/586558/ft1_filtered_4FGL_J0836.2+2141_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/586558/ft2_4FGL_J0836.2+2141_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/586558/ltcube_499305601_499564801_4FGL_J0836.2+2141_daily_bin1003.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/586558/ft2_4FGL_J0836.2+2141_daily_bin1003.fits
.....................!
real 22.06
user 12.65
sys 9.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/586558/ft1_filtered_4FGL_J0836.2+2141_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/586558/ft2_4FGL_J0836.2+2141_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/586558/ltcube_499305601_499564801_4FGL_J0836.2+2141_daily_bin1003.fits outfile=/scratch/kocevski/586558/expmap_499305601_499564801_4FGL_J0836.2+2141_daily_bin1003.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/586558/ltcube_499305601_499564801_4FGL_J0836.2+2141_daily_bin1003.fits
.....................!
real 201.41
user 185.24
sys 15.09

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/586558/ft1_filtered_4FGL_J0836.2+2141_daily_bin1003.fits scfile=/scratch/kocevski/586558/ft2_4FGL_J0836.2+2141_daily_bin1003.fits outfile=/scratch/kocevski/586558/cmap_499305601_499564801_4FGL_J0836.2+2141_daily_bin1003.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 8.43
user 0.39
sys 7.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/586558/ft1_filtered_4FGL_J0836.2+2141_daily_bin1003.fits scfile=/scratch/kocevski/586558/ft2_4FGL_J0836.2+2141_daily_bin1003.fits outfile=/scratch/kocevski/586558/cmap_HighResolution_499305601_499564801_4FGL_J0836.2+2141_daily_bin1003.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 8.44
user 0.39
sys 7.97

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.533       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .42980       1.0000         .10000E-03   10000.    
     4 'norm      '    45.008       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.425       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.726       1.0000         .10000E-03   10000.    
     9 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.154       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .60752       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.4663       1.0000         .10000E-03   10000.    
    17 'norm      '    37.166       1.0000         .10000E-03   10000.    
    18 'norm      '    2.3184       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0264       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91858       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=   4801.997     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2218 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.537        14.120        .89992E-05    .18683E-04
   2  Prefactor     .10000E-03    16.153       -.13145E-06** at limit **
   3  Prefactor     .10004E-03    32.809       -.17233E-05** at limit **
   4  norm          44.983        79.993       -.25216E-04    .33653E-06
   5  Prefactor     .10000E-03    21.569       -.24659E-06** at limit **
   6  Prefactor     35.423        47.099       -.21721E-06   -.19744E-05
   7  Prefactor     .10000E-03    62.224       -.35767E-05** at limit **
   8  Prefactor     16.725        15.395       -.16640E-05   -.90286E-04
   9  norm          .10000E-03    .76127        .36286E-06** at limit **
  10  Prefactor     10.153        9.7252       -.29203E-05   -.19319E-03
  11  Prefactor     .10000E-03    3.3765        .42667E-07** at limit **
  12  Prefactor     .10000E-03    89.721        .48200E-05** at limit **
  13  norm          .60751        .58242        .14790E-07   -.14200E-03
  14  Prefactor     .10000E-03    5.9770        .21884E-07** at limit **
  15  Prefactor     .10000E-03    6.1768        .51072E-07** at limit **
  16  norm          9.4661        6.7621        .70401E-06    .81967E-04
  17  norm          37.162        33.674       -.11324E-05   -.64833E-06
  18  norm          2.3183        2.1802        .15573E-07    .14735E-03
  19  Prefactor     .10000E-03    23.294       -.18457E-06** at limit **
  20  Normalizat    1.0261        .19648        .10775E-06   -.37784E-04
  21  Prefactor     .91885        .16605        .76282E-06   -.57096E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5367
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  norm       = 44.9833
  Prefactor  = 0.0001
  Prefactor  = 35.4234
  Prefactor  = 0.0001
  Prefactor  = 16.7249
  norm       = 0.0001
  Prefactor  = 10.1528
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.607513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.46613
  norm       = 37.1616
  norm       = 2.31832
  Prefactor  = 0.0001
  Normalizat = 1.02614
  Prefactor  = 0.918849
 **********
 **   18 **HESSE 
 **********

 FCN=   4801.997     FROM HESSE     STATUS=OK           325 CALLS     2543 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.537        14.108        .10888E-03   -1.4972    
   2  Prefactor     .10000E-03    16.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10004E-03    37.927        .12708       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          44.983        79.916        .59761E-04   -1.4366    
   5  Prefactor     .10000E-03    21.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     35.423        47.161        .67332E-04   -1.4517    
   7  Prefactor     .10000E-03    62.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.725        15.266        .97932E-04   -1.4890    
   9  norm          .10000E-03    1.5171        .11479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.153        9.6782        .12574E-03   -1.5071    
  11  Prefactor     .10000E-03    3.3955        .12433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    90.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .60751        .56508        .49961E-03   -1.5552    
  14  Prefactor     .10000E-03    5.9883        .16543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.1877        .16820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.4661        6.7674        .13025E-03   -1.5093    
  17  norm          37.162        33.672        .65740E-04   -1.4488    
  18  norm          2.3183        2.1910        .96765E-04   -1.5403    
  19  Prefactor     .10000E-03    23.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0261        .22993        .24424E-03   -.92160    
  21  Prefactor     .91885        .19483        .21867E-03   -.95486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78479e-10
Minuit parameter uncertainties:
  1  14.111
  2  1.14191e-07
  3  0.00252791
  4  80.1076
  5  3.23334e-06
  6  47.2109
  7  1.92106e-05
  8  15.2692
  9  4.53104e-05
  10  9.67968
  11  6.41704e-06
  12  0.000146557
  13  0.56509
  14  8.0494e-07
  15  8.66681e-07
  16  6.76794
  17  33.689
  18  2.19106
  19  4.74859e-07
  20  0.230151
  21  0.194974
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.015e+01  9.680e+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:  9.188e-01  1.950e-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.026e+00  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 129.051 21.697
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 4.98e-08 +/- 4.75e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 1.12e-05

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

Saving results to:
/scratch/kocevski/586558/likelihoodResults_499305601_499564801_4FGL_J0836.2+2141_daily_bin1003.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) = 4801.49116851
delta logL = 0.505883500938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4801.49108977
delta logL = 0.505962231758

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.106       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1469       1.0000          .0000       10.000    
     3 'Normalizat'    1.0422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90260       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=   4801.491     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      235 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.057        21.038        .24950E-02    .56101E-03
   2  Index         2.1470        .73208        .18317       -.24607E-05
   3  Normalizat    1.0423        .19340        .41108E-01    .78754E-05
   4  Prefactor     .90265        .16674        .45038E-01    .74864E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0574
  Index      = 2.147
  Normalizat = 1.04226
  Prefactor  = 0.90265
 **********
 **   18 **HESSE 
 **********

 FCN=   4801.491     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .63E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.057        12.709        .49900E-03   -1.4906    
   2  Index         2.1470        .49408        .72591E-02   -.60724    
   3  Normalizat    1.0423        .22551        .24246E-03   -.91628    
   4  Prefactor     .90265        .19276        .22019E-03   -.96049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.26338e-13
Minuit parameter uncertainties:
  1  12.7109
  2  0.495276
  3  0.225716
  4  0.192911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/586558': 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) = 4801.49108258
delta logL = 0.50596943077

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.606e+01  1.271e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.147e+00  4.953e-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.027e-01  1.929e-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.042e+00  2.257e-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): 2.15 +/- 0.50
Photon Flux (Free Index): 4.60e-08 +/- 3.93e-08
Energy Flux (Free Index): 2.29e-05 +/- 2.37e-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/586558/cmap_HighResolution_499305601_499564801_4FGL_J0836.2+2141_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', photon_flux='4.98e-08', energy_flux2='2.29e-05', photon_flux_error='4.75e-08', dlogl='5.06e-01', energy_flux='1.17e-05', photon_flux2='4.60e-08', job_status='DONE', time_completed='2021-08-30 02:24:22.276180', photon_index_error2='0.50', photon_index2='2.15', ts='1.55', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='2.37e-05', EG='1.03', time_epoch_completed='1630315462.28', return_code='0', job_id='586558', GAL2='0.90', EG2='1.04', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='3.93e-08', ts2='2.57', photon_index='2.73' WHERE bin_id='1003' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:24:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 586558: <4FGL_J0836.2+2141_daily_bin1003> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1003 129.051 21.6971 499305601 499564801 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 :                                   780.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

