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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1514
RA = 129.051, Dec = 21.6971
tmin = 631756801, tmax = 632016001
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='589629', job_status='RUN', time_executed='2021-08-30 02:22:01.170408', time_epoch_executed='1630315321.17' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589629

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589629/ft1_4FGL_J0836.2+2141_daily_bin1514.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589629/ft2_4FGL_J0836.2+2141_daily_bin1514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589629/ft1_4FGL_J0836.2+2141_daily_bin1514.fits outfile=/scratch/kocevski/589629/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1514.fits ra=129.051 dec=21.6971 rad=12.0 tmin=631756801.0 tmax=632016001.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.22
user 2.19
sys 4.94

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589629/ft1_filtered_4FGL_J0836.2+2141_daily_bin1514.fits" evtable="EVENTS" scfile=/scratch/kocevski/589629/ft2_4FGL_J0836.2+2141_daily_bin1514.fits sctable="SC_DATA" outfile=/scratch/kocevski/589629/ltcube_631756801_632016001_4FGL_J0836.2+2141_daily_bin1514.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/589629/ft2_4FGL_J0836.2+2141_daily_bin1514.fits
.....................!
real 19.32
user 13.49
sys 5.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589629/ft1_filtered_4FGL_J0836.2+2141_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/589629/ft2_4FGL_J0836.2+2141_daily_bin1514.fits sctable="SC_DATA" expcube=/scratch/kocevski/589629/ltcube_631756801_632016001_4FGL_J0836.2+2141_daily_bin1514.fits outfile=/scratch/kocevski/589629/expmap_631756801_632016001_4FGL_J0836.2+2141_daily_bin1514.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/589629/ltcube_631756801_632016001_4FGL_J0836.2+2141_daily_bin1514.fits
.....................!
real 198.84
user 187.16
sys 11.08

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/589629/ft1_filtered_4FGL_J0836.2+2141_daily_bin1514.fits scfile=/scratch/kocevski/589629/ft2_4FGL_J0836.2+2141_daily_bin1514.fits outfile=/scratch/kocevski/589629/cmap_631756801_632016001_4FGL_J0836.2+2141_daily_bin1514.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 5.37
user 0.38
sys 4.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589629/ft1_filtered_4FGL_J0836.2+2141_daily_bin1514.fits scfile=/scratch/kocevski/589629/ft2_4FGL_J0836.2+2141_daily_bin1514.fits outfile=/scratch/kocevski/589629/cmap_HighResolution_631756801_632016001_4FGL_J0836.2+2141_daily_bin1514.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 5.25
user 0.38
sys 4.82

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    137.65       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11366E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13423E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.454       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    142.10       1.0000         .10000E-03   10000.    
    13 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.862       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6210       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10618E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.9832       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .35557       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95437       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=   839.2402     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2178 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    502.23        .30429E-04** at limit **
   2  Prefactor     137.04        338.31       -.50059E-03    .91536E-05
   3  Prefactor     .10000E-03    6682.7       -.14887E-02** at limit **
   4  norm          .10000E-03    419.57        .13649E-03** at limit **
   5  Prefactor     .10000E-03    773.14       -.34203E-03** at limit **
   6  Prefactor     .10000E-03    651.75       -.18202E-03** at limit **
   7  Prefactor     .10000E-03    356.01        .19096E-03** at limit **
   8  Prefactor     .10000E-03    174.15       -.68382E-04** at limit **
   9  norm          11.452        9.0067       -.11440E-06    .14967E-03
  10  Prefactor     .10000E-03    26.763       -.87910E-07** at limit **
  11  Prefactor     .10000E-03    9.6718        .35199E-07** at limit **
  12  Prefactor     142.09        108.96       -.69617E-05    .31868E-04
  13  norm          .10000E-03    .82101       -.25308E-07** at limit **
  14  Prefactor     23.853        33.533       -.14237E-05    .34766E-04
  15  Prefactor     2.6307        850.07        .24763E-04   -.55145E-05
  16  norm          .10000E-03    4.3382        .29702E-08** at limit **
  17  norm          .10000E-03    77.223       -.97393E-05** at limit **
  18  norm          6.9790        13.751        .91652E-06   -.48215E-04
  19  Prefactor     .10000E-03    90.791        .20800E-04** at limit **
  20  Normalizat    .35501        .44005       -.63140E-05    .51385E-04
  21  Prefactor     .95483        .37285        .98520E-05   -.10323E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 137.04
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.452
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 142.089
  norm       = 0.0001
  Prefactor  = 23.853
  Prefactor  = 2.63074
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.97899
  Prefactor  = 0.0001
  Normalizat = 0.355014
  Prefactor  = 0.954834
 **********
 **   18 **HESSE 
 **********

 FCN=   839.2402     FROM HESSE     STATUS=OK           303 CALLS     2481 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    502.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     137.04        338.72        .17166E-03   -1.3361    
   3  Prefactor     .10000E-03    6683.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    419.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    773.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    651.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    356.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    174.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.452        9.0149        .74802E-04   -1.5031    
  10  Prefactor     .10000E-03    26.837        .14645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.6782        .88016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     142.09        108.65        .33797E-04   -1.3318    
  13  norm          .10000E-03    .82558        .25594E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.853        33.645        .82001E-04   -1.4731    
  15  Prefactor     2.6307        800.80        .25192E-03   -1.5384    
  16  norm          .10000E-03    4.3389        .58945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    77.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.9790        13.361        .12150E-03   -1.5180    
  19  Prefactor     .10000E-03    90.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .35501        .49378        .35746E-03   -1.1969    
  21  Prefactor     .95483        .43167        .18691E-03   -.94251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.62485e-10
Minuit parameter uncertainties:
  1  4.28179e-06
  2  343.705
  3  6.12978e-05
  4  0.000436792
  5  4.53041e-05
  6  7.61494e-05
  7  2.55293e-05
  8  3.58104e-05
  9  9.016
  10  9.06811e-06
  11  5.79544e-06
  12  108.798
  13  2.67544e-06
  14  33.6714
  15  93.0801
  16  2.90264e-06
  17  0.000154101
  18  13.3666
  19  0.00013337
  20  0.500015
  21  0.433234
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  9.068e-06  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.548e-01  4.332e-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:  3.550e-01  5.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/589629/likelihoodResults_631756801_632016001_4FGL_J0836.2+2141_daily_bin1514.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 839.240333453
delta logL = -0.000176609722189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 839.240158581
delta logL = -1.73740829723e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10526E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4007       1.0000          .0000       10.000    
     3 'Normalizat'    .35500       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95485       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=   839.2402     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      287 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    189.17        .10971E-01** at limit **
   2  Index         2.3751        5.2417        .50000        .99203E-07
   3  Normalizat    .35500        .26069E-01    .35747E-03   -.52555E-05
   4  Prefactor     .95484        .22023E-01    .18690E-03   -.13399E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Index      = 2.3751
  Normalizat = 0.355001
  Prefactor  = 0.954845
 **********
 **   18 **HESSE 
 **********

 FCN=   839.2402     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      316 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1208.1        .15470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3751        8.4080        .50000       -.55269    
   3  Normalizat    .35500        .69714E-01    .14299E-04   -1.1970    
   4  Prefactor     .95484        .58904E-01    .37381E-04   -.94250    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88053e-09
Minuit parameter uncertainties:
  1  0.00670583
  2  2127.59
  3  0.069731
  4  0.0589075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589629': 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): 102
logL (Free Index) = 839.240156649
delta logL = 1.94476456272e-07

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  6.706e-03  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.375e+00  2.128e+03  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.548e-01  5.891e-02  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:  3.550e-01  6.973e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 129.051 21.697

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/589629/cmap_HighResolution_631756801_632016001_4FGL_J0836.2+2141_daily_bin1514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.49e-02', job_status='DONE', photon_flux_upper_limit='4.42e-07', time_completed='2021-08-30 02:29:01.871703', job_id='589629', GAL2='0.95', fit_tolerance='1e-08', EG2='0.36', EG='0.36', time_epoch_completed='1630315741.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1514' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:29:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 589629: <4FGL_J0836.2+2141_daily_bin1514> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin1514> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 30 02:20:27 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:20:30 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:20:30 2021
Terminated at Mon Aug 30 02:29:03 2021
Results reported at Mon Aug 30 02:29:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1514 129.051 21.6971 631756801 632016001 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 :                                   491.53 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   512 sec.
    Turnaround time :                            516 sec.

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

