/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 28 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 = 7353
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1405
RA = 129.051, Dec = 21.6971
tmin = 603504001, tmax = 603763201
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='588416', job_status='RUN', time_executed='2021-08-30 02:17:56.272546', time_epoch_executed='1630315076.27' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588416

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588416/ft1_4FGL_J0836.2+2141_daily_bin1405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588416/ft2_4FGL_J0836.2+2141_daily_bin1405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588416/ft1_4FGL_J0836.2+2141_daily_bin1405.fits outfile=/scratch/kocevski/588416/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1405.fits ra=129.051 dec=21.6971 rad=12.0 tmin=603504001.0 tmax=603763201.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 2.67
user 1.91
sys 0.67

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/588416/ft2_4FGL_J0836.2+2141_daily_bin1405.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/588416/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1405.fits evtable="EVENTS" outfile="/scratch/kocevski/588416/ft1_filtered_4FGL_J0836.2+2141_daily_bin1405.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588416/ft1_filtered_4FGL_J0836.2+2141_daily_bin1405.fits" evtable="EVENTS" scfile=/scratch/kocevski/588416/ft2_4FGL_J0836.2+2141_daily_bin1405.fits sctable="SC_DATA" outfile=/scratch/kocevski/588416/ltcube_603504001_603763201_4FGL_J0836.2+2141_daily_bin1405.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/588416/ft2_4FGL_J0836.2+2141_daily_bin1405.fits
.....................!
real 9.90
user 9.02
sys 0.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588416/ft1_filtered_4FGL_J0836.2+2141_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/588416/ft2_4FGL_J0836.2+2141_daily_bin1405.fits sctable="SC_DATA" expcube=/scratch/kocevski/588416/ltcube_603504001_603763201_4FGL_J0836.2+2141_daily_bin1405.fits outfile=/scratch/kocevski/588416/expmap_603504001_603763201_4FGL_J0836.2+2141_daily_bin1405.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/588416/ltcube_603504001_603763201_4FGL_J0836.2+2141_daily_bin1405.fits
.....................!
real 141.72
user 137.20
sys 4.06

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/588416/ft1_filtered_4FGL_J0836.2+2141_daily_bin1405.fits scfile=/scratch/kocevski/588416/ft2_4FGL_J0836.2+2141_daily_bin1405.fits outfile=/scratch/kocevski/588416/cmap_603504001_603763201_4FGL_J0836.2+2141_daily_bin1405.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=129.051 yref=21.6971 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.91
user 0.30
sys 0.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588416/ft1_filtered_4FGL_J0836.2+2141_daily_bin1405.fits scfile=/scratch/kocevski/588416/ft2_4FGL_J0836.2+2141_daily_bin1405.fits outfile=/scratch/kocevski/588416/cmap_HighResolution_603504001_603763201_4FGL_J0836.2+2141_daily_bin1405.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=129.051 yref=21.6971 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.91
user 0.28
sys 0.61

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/588416/ft1_filtered_4FGL_J0836.2+2141_daily_bin1405.fits', '/scratch/kocevski/588416/ft2_4FGL_J0836.2+2141_daily_bin1405.fits', expMap='/scratch/kocevski/588416/expmap_603504001_603763201_4FGL_J0836.2+2141_daily_bin1405.fits', expCube='/scratch/kocevski/588416/ltcube_603504001_603763201_4FGL_J0836.2+2141_daily_bin1405.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/588416/Model_4FGL_J0836.2+2141_daily_bin1405.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/588416/ft1_filtered_4FGL_J0836.2+2141_daily_bin1405.fits
Spacecraft file(s): /scratch/kocevski/588416/ft2_4FGL_J0836.2+2141_daily_bin1405.fits
Exposure map: /scratch/kocevski/588416/expmap_603504001_603763201_4FGL_J0836.2+2141_daily_bin1405.fits
Exposure cube: /scratch/kocevski/588416/ltcube_603504001_603763201_4FGL_J0836.2+2141_daily_bin1405.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/588416/Model_4FGL_J0836.2+2141_daily_bin1405.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 224.372161206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 223.096345763

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57252E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.9448       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .34751       1.0000         .10000E-03   10000.    
     4 'norm      '    9.9110       1.0000         .10000E-03   10000.    
     5 'Prefactor '    132.74       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.013       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .47181E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1712       1.0000         .10000E-03   10000.    
     9 'norm      '    .10808E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12214E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    122.43       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5844       1.0000         .10000E-03   10000.    
    13 'norm      '    .12728E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7203       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1178       1.0000         .10000E-03   10000.    
    16 'norm      '    .19472       1.0000         .10000E-03   10000.    
    17 'norm      '    9.8629       1.0000         .10000E-03   10000.    
    18 'norm      '    1.0628       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.9222       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5462       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .20822       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   222.9874     FROM MIGRAD    STATUS=CONVERGED    202 CALLS      517 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.681       -.82428E-06** at limit **
   2  Prefactor     69.746        204.82       -.59997E-05   -.22387E-02
   3  Prefactor     .10001E-03    113.04       -.33499E-05** at limit **
   4  norm          91.069        504.94       -.10440E-05    .41704E-02
   5  Prefactor     149.64        62.744        .12860E-05   -.14965E-01
   6  Prefactor     .93975E-03    303.19       -.14157E-04** at limit **
   7  Prefactor     .10001E-03    195.85       -.19473E-04** at limit **
   8  Prefactor     .10002E-03    98.270        .38333E-05** at limit **
   9  norm          .10000E-03    7.8924        .71184E-06** at limit **
  10  Prefactor     .10000E-03    176.65       -.45049E-05** at limit **
  11  Prefactor     133.55        44.896        .12493E-05   -.42146E-01
  12  Prefactor     .10575E-03    328.21        .25073E-05** at limit **
  13  norm          .10000E-03    15.647        .29602E-06** at limit **
  14  Prefactor     .34380E-03    159.32       -.10307E-04** at limit **
  15  Prefactor     4.1178        1.0076         .0000         .0000    
  16  norm          .10006E-03    366.86       -.11685E-04** at limit **
  17  norm          9.8629        1.0013         .0000         .0000    
  18  norm          1.0628        1.2223         .0000         .0000    
  19  Prefactor     7.9222        1.0020         .0000         .0000    
  20  Normalizat    1.5125        1.1557       -.92124E-05   -.22009E-04
  21  Prefactor     .11708        1.2656        .26272E-04    .49523E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 69.746
  Prefactor  = 0.00010001
  norm       = 91.0686
  Prefactor  = 149.639
  Prefactor  = 0.000939753
  Prefactor  = 0.000100006
  Prefactor  = 0.000100016
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 133.554
  Prefactor  = 0.000105754
  norm       = 0.0001
  Prefactor  = 0.000343798
  Prefactor  = 4.11779
  norm       = 0.000100063
  norm       = 9.86287
  norm       = 1.06285
  Prefactor  = 7.92223
  Normalizat = 1.51253
  Prefactor  = 0.117082
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   222.9874     FROM HESSE     STATUS=FAILED        67 CALLS      584 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.506        .93054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     69.746        178.93        .33504E-02   -1.4036    
   3  Prefactor     .10001E-03    113.17        .10631E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          91.069        400.14        .31821E-02   -1.3796    
   5  Prefactor     149.64        197.14        .87377E-03   -1.3255    
   6  Prefactor     .93975E-03    387.03        .24276E-02   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    197.09        .92563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    98.272        .69865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.9000        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    181.31        .10313E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     133.55        155.76        .90937E-03   -1.3391    
  12  Prefactor     .10575E-03    329.85        .63462E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    15.677        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .34380E-03    953.84        .38696E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     540.83        536.65         .0000       -1.5302    
  16  norm          .10006E-03    .24768       -.11685E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.8629        1.0013         .0000       -1.5080    
  18  norm          1.0628        1.2223         .0000       -1.5502    
  19  Prefactor     7.9222        1.0020         .0000       -1.5145    
  20  Normalizat    1.5125        1.0357       -.92124E-05   -.77427    
  21  Prefactor     .11708        .37292        .26272E-04   -1.3540    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.48951e-09
Minuit parameter uncertainties:
  1  8.07637e-05
  2  180.34
  3  0.00209235
  4  386.208
  5  198.013
  6  1.14768
  7  0.00211972
  8  0.0025312
  9  5.30517e-05
  10  0.000791665
  11  156.243
  12  0.0876138
  13  2.76917e-05
  14  0.980488
  15  1.00757
  16  0.000250046
  17  1.00129
  18  1.22236
  19  1.002
  20  1.05083
  21  0.380826
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 222.987387063

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  7.917e-04  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:  1.171e-01  3.808e-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.513e+00  1.051e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 129.051 21.697
Photon Flux Upper Limit: 2.88e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.27e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/588416/likelihoodResults_603504001_603763201_4FGL_J0836.2+2141_daily_bin1405.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) = 222.98741277
delta logL = -2.5707281452e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 222.987387372
delta logL = -3.09617803396e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5981       1.0000          .0000       10.000    
     3 'Normalizat'    1.5126       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .11706       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   222.9874     FROM MIGRAD    STATUS=FAILED        93 CALLS      285 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14337E-03    737.19        .13638E-01** at limit **
   2  Index         2.8978        6.3682        .50000        .18267E-05
   3  Normalizat    1.5125        .51934E-01    .21577E-03    .50427E-04
   4  Prefactor     .11708        .34561E-01    .47391E-03    .19506E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   222.9874     FROM SIMPLEX   STATUS=UNCHANGED    127 CALLS      412 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14337E-03    737.19        .19856E-02** at limit **
   2  Index         2.8978        6.3682        .75280E-04    .18267E-05
   3  Normalizat    1.5125        .51934E-01    .28240E-05    .50427E-04
   4  Prefactor     .11708        .34561E-01    .41919E-05    .19506E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   222.9874     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      465 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6364.9        .18313E-01** at limit **
   2  Index         2.0182        5.8943        .50000        .11923E-07
   3  Normalizat    1.5125        .77506E-01    .43155E-04   -.25728E-03
   4  Prefactor     .11707        .51574E-01    .18957E-04   -.11817E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.01815
  Normalizat = 1.51253
  Prefactor  = 0.117069
 **********
 **   18 **HESSE 
 **********

 FCN=   222.9874     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      494 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9872.6        .24682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0182        6.0078        .50000       -.63897    
   3  Normalizat    1.5125        .21355        .86310E-05   -.77427    
   4  Prefactor     .11707        .14182        .37913E-05   -1.3540    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.27119e-10
Minuit parameter uncertainties:
  1  0.00704205
  2  5501.11
  3  0.213675
  4  0.142236
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588416': 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) = 222.987386964
delta logL = 9.89775799098e-08

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  7.042e-03  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.018e+00  5.501e+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:  1.171e-01  1.422e-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.513e+00  2.137e-01  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/588416/cmap_HighResolution_603504001_603763201_4FGL_J0836.2+2141_daily_bin1405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.27e-01', job_status='DONE', photon_flux_upper_limit='2.88e-06', time_completed='2021-08-30 02:22:05.685343', job_id='588416', GAL2='0.12', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1630315325.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.12', dlogl='9.90e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1405' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:22:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 588416: <4FGL_J0836.2+2141_daily_bin1405> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin1405> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 02:16:02 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:16:04 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:16:04 2021
Terminated at Mon Aug 30 02:22:06 2021
Results reported at Mon Aug 30 02:22:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1405 129.051 21.6971 603504001 603763201 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 :                                   271.44 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             438.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   361 sec.
    Turnaround time :                            364 sec.

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

