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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin809
RA = 129.051, Dec = 21.6971
tmin = 449020801, tmax = 449280001
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='586275', job_status='RUN', time_executed='2021-08-30 02:10:57.141764', time_epoch_executed='1630314657.14' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='809'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/586275

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/586275/ft1_4FGL_J0836.2+2141_daily_bin809.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/586275/ft2_4FGL_J0836.2+2141_daily_bin809.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/586275/ft1_4FGL_J0836.2+2141_daily_bin809.fits outfile=/scratch/kocevski/586275/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin809.fits ra=129.051 dec=21.6971 rad=12.0 tmin=449020801.0 tmax=449280001.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 6.42
user 5.22
sys 1.14

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/586275/ft1_filtered_4FGL_J0836.2+2141_daily_bin809.fits" evtable="EVENTS" scfile=/scratch/kocevski/586275/ft2_4FGL_J0836.2+2141_daily_bin809.fits sctable="SC_DATA" outfile=/scratch/kocevski/586275/ltcube_449020801_449280001_4FGL_J0836.2+2141_daily_bin809.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/586275/ft2_4FGL_J0836.2+2141_daily_bin809.fits
.....................!
real 14.65
user 12.52
sys 1.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/586275/ft1_filtered_4FGL_J0836.2+2141_daily_bin809.fits evtable="EVENTS" scfile=/scratch/kocevski/586275/ft2_4FGL_J0836.2+2141_daily_bin809.fits sctable="SC_DATA" expcube=/scratch/kocevski/586275/ltcube_449020801_449280001_4FGL_J0836.2+2141_daily_bin809.fits outfile=/scratch/kocevski/586275/expmap_449020801_449280001_4FGL_J0836.2+2141_daily_bin809.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/586275/ltcube_449020801_449280001_4FGL_J0836.2+2141_daily_bin809.fits
.....................!
real 193.24
user 185.31
sys 7.24

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

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

This is gtbin version HEAD
real 1.43
user 0.37
sys 1.01

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

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

This is gtbin version HEAD
real 1.43
user 0.38
sys 1.03

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61884E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    45.438       1.0000         .10000E-03   10000.    
     4 'norm      '    .24965E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19775E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .37006       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4647       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.658       1.0000         .10000E-03   10000.    
    13 'norm      '    3.5187       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5881       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0117       1.0000         .10000E-03   10000.    
    16 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.8456       1.0000         .10000E-03   10000.    
    18 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    58.358       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0571       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91420       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=   5512.049     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2181 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    77.465        .26806E-04** at limit **
   2  Prefactor     .10000E-03    43.200       -.18174E-05** at limit **
   3  Prefactor     45.386        42.168       -.33588E-05   -.49881E-04
   4  norm          .10000E-03    408.74       -.43934E-05** at limit **
   5  Prefactor     .10000E-03    14.815        .30703E-06** at limit **
   6  Prefactor     .10002E-03    124.66       -.46574E-06** at limit **
   7  Prefactor     .10000E-03    7.2998        .28548E-07** at limit **
   8  Prefactor     .10000E-03    20.745        .11998E-05** at limit **
   9  norm          .37023        .94940       -.29918E-06   -.59947E-03
  10  Prefactor     2.4565        10.376       -.78432E-05    .97050E-04
  11  Prefactor     .10000E-03    6.4778       -.21507E-06** at limit **
  12  Prefactor     27.657        36.063       -.85246E-06    .23969E-04
  13  norm          3.5187        1.1204        .92193E-07    .59632E-03
  14  Prefactor     7.5856        15.352       -.15940E-05   -.14252E-05
  15  Prefactor     9.0133        10.416       -.17810E-06    .33327E-04
  16  norm          .10000E-03    3.5708       -.13067E-07** at limit **
  17  norm          8.8430        55.984       -.11834E-05    .78839E-05
  18  norm          .10000E-03    2.1532       -.71444E-07** at limit **
  19  Prefactor     58.350        47.713       -.63426E-06    .10923E-04
  20  Normalizat    1.0573        .19552        .16812E-05    .29426E-03
  21  Prefactor     .91420        .15660        .11558E-05    .51374E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 45.3861
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.370228
  Prefactor  = 2.45645
  Prefactor  = 0.0001
  Prefactor  = 27.6565
  norm       = 3.51866
  Prefactor  = 7.5856
  Prefactor  = 9.01327
  norm       = 0.0001
  norm       = 8.84301
  norm       = 0.0001
  Prefactor  = 58.3503
  Normalizat = 1.05728
  Prefactor  = 0.9142
 **********
 **   18 **HESSE 
 **********

 FCN=   5512.049     FROM HESSE     STATUS=OK           313 CALLS     2494 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    75.874        .56424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    43.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     45.386        42.223        .29740E-03   -1.4360    
   4  norm          .10000E-03    413.03        .21466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    127.06        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.3024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .37023        .92278        .10869E-03   -1.5586    
  10  Prefactor     2.4565        10.467        .13024E-02   -1.5394    
  11  Prefactor     .10000E-03    6.5485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.657        36.092        .76177E-04   -1.4656    
  13  norm          3.5187        1.1231        .40420E-04   -1.5333    
  14  Prefactor     7.5856        15.349        .72791E-03   -1.5157    
  15  Prefactor     9.0133        10.421        .13351E-03   -1.5107    
  16  norm          .10000E-03    3.6020        .13701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.8430        55.680        .13477E-03   -1.5113    
  18  norm          .10000E-03    2.2106        .21270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     58.350        47.693        .26258E-03   -1.4179    
  20  Normalizat    1.0573        .22593        .24882E-03   -.91136    
  21  Prefactor     .91420        .18194        .22327E-03   -.95647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.07607e-10
Minuit parameter uncertainties:
  1  0.000743666
  2  3.343e-05
  3  42.2505
  4  0.00197053
  5  5.08196e-05
  6  0.00289133
  7  5.8955e-07
  8  0.000254326
  9  0.922814
  10  10.1441
  11  4.15784e-06
  12  36.1205
  13  1.1231
  14  15.3569
  15  10.4227
  16  2.93319e-06
  17  44.44
  18  8.99225e-06
  19  47.7245
  20  0.226133
  21  0.182059
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  2.456e+00  1.014e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.731e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  5.085e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  9.142e-01  1.821e-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.057e+00  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/586275/likelihoodResults_449020801_449280001_4FGL_J0836.2+2141_daily_bin809.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) = 5510.47459471
delta logL = 1.57392409952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5510.2609178
delta logL = 1.78760100899

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61628E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    8.6208       1.0000          .0000       10.000    
     3 'Normalizat'    .93715       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98573       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=   5510.261     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      305 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61291E-02    .64208E-01    .94497E-03   -.12242E-01
   2  Index         8.6259        7.6676        .18966       -.19517E-04
   3  Normalizat    .93723        .55187E-01    .45375E-01    .32711E-04
   4  Prefactor     .98570        .46739E-01    .46088E-01    .66628E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00612914
  Index      = 8.6259
  Normalizat = 0.937228
  Prefactor  = 0.985698
 **********
 **   18 **HESSE 
 **********

 FCN=   5510.261     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      338 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61291E-02    .12603        .36097E-04   -1.5692    
   2  Index         8.6259        8.7548        .82634E-03    .81130    
   3  Normalizat    .93723        .19725        .26186E-03   -.95164    
   4  Prefactor     .98570        .16324        .21598E-03   -.93208    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.08023e-10
Minuit parameter uncertainties:
  1  0.0551319
  2  5.8554
  3  0.197399
  4  0.163322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/586275': 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) = 5510.26090946
delta logL = 1.78760934682

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  6.129e-03  5.513e-02  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  8.626e+00  5.855e+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.857e-01  1.633e-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:  9.372e-01  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.95
Ra Dec: 129.051 21.697
Photon Index (Free Index): 8.63 +/- 5.86
Photon Flux (Free Index): 1.02e-07 +/- 6.55e-08
Energy Flux (Free Index): 1.16e-05 +/- 8.07e-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/586275/cmap_HighResolution_449020801_449280001_4FGL_J0836.2+2141_daily_bin809.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.57e-03', comment='SUCCESS', energy_flux2='1.16e-05', dlogl='1.79e+00', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-08-30 02:20:57.942789', photon_index_error2='5.86', photon_index2='8.63', ts='0.07', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='8.07e-06', EG='1.06', time_epoch_completed='1630315257.94', return_code='0', job_id='586275', GAL2='0.99', EG2='0.94', return_code2='102', photon_flux_error2='6.55e-08', ts2='3.95', photon_index='2.73' WHERE bin_id='809' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:20:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 586275: <4FGL_J0836.2+2141_daily_bin809> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin809 129.051 21.6971 449020801 449280001 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 :                                   606.47 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             333.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            632 sec.

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

