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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1061
RA = 129.051, Dec = 21.6971
tmin = 514339201, tmax = 514598401
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='586640', job_status='RUN', time_executed='2021-08-30 02:15:14.880235', time_epoch_executed='1630314914.88' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1061'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/586640

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/586640/ft1_4FGL_J0836.2+2141_daily_bin1061.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/586640/ft2_4FGL_J0836.2+2141_daily_bin1061.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/586640/ft1_4FGL_J0836.2+2141_daily_bin1061.fits outfile=/scratch/kocevski/586640/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1061.fits ra=129.051 dec=21.6971 rad=12.0 tmin=514339201.0 tmax=514598401.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.52
user 3.84
sys 3.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/586640/ft2_4FGL_J0836.2+2141_daily_bin1061.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/586640/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1061.fits evtable="EVENTS" outfile="/scratch/kocevski/586640/ft1_filtered_4FGL_J0836.2+2141_daily_bin1061.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 3.82
user 0.32
sys 3.22

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/586640/ft1_filtered_4FGL_J0836.2+2141_daily_bin1061.fits" evtable="EVENTS" scfile=/scratch/kocevski/586640/ft2_4FGL_J0836.2+2141_daily_bin1061.fits sctable="SC_DATA" outfile=/scratch/kocevski/586640/ltcube_514339201_514598401_4FGL_J0836.2+2141_daily_bin1061.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/586640/ft2_4FGL_J0836.2+2141_daily_bin1061.fits
.....................!
real 15.68
user 11.30
sys 3.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/586640/ft1_filtered_4FGL_J0836.2+2141_daily_bin1061.fits evtable="EVENTS" scfile=/scratch/kocevski/586640/ft2_4FGL_J0836.2+2141_daily_bin1061.fits sctable="SC_DATA" expcube=/scratch/kocevski/586640/ltcube_514339201_514598401_4FGL_J0836.2+2141_daily_bin1061.fits outfile=/scratch/kocevski/586640/expmap_514339201_514598401_4FGL_J0836.2+2141_daily_bin1061.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/586640/ltcube_514339201_514598401_4FGL_J0836.2+2141_daily_bin1061.fits
.....................!
real 197.76
user 185.87
sys 9.15

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/586640/ft1_filtered_4FGL_J0836.2+2141_daily_bin1061.fits scfile=/scratch/kocevski/586640/ft2_4FGL_J0836.2+2141_daily_bin1061.fits outfile=/scratch/kocevski/586640/cmap_514339201_514598401_4FGL_J0836.2+2141_daily_bin1061.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 3.65
user 0.37
sys 3.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/586640/ft1_filtered_4FGL_J0836.2+2141_daily_bin1061.fits scfile=/scratch/kocevski/586640/ft2_4FGL_J0836.2+2141_daily_bin1061.fits outfile=/scratch/kocevski/586640/cmap_HighResolution_514339201_514598401_4FGL_J0836.2+2141_daily_bin1061.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 3.65
user 0.36
sys 3.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10952       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .45049E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21041E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    153.16       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .94216E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    53.034       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.194       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21231E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6476       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10722E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    59.916       1.0000         .10000E-03   10000.    
    13 'norm      '    .62929       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.823       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13264E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    77.562       1.0000         .10000E-03   10000.    
    18 'norm      '    2.4337       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.5938       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0523       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94314       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=   6099.575     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     1600 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10675E-03    207.25       -.99860E-05** at limit **
   2  Prefactor     .10002E-03    155.98        .90486E-05** at limit **
   3  Prefactor     .10781E-03    32.265       -.21749E-05** at limit **
   4  norm          155.16        77.797       -.17754E-05   -.22036E-01
   5  Prefactor     .10001E-03    108.78       -.39469E-05** at limit **
   6  Prefactor     51.435        39.763        .27453E-05   -.10490E-01
   7  Prefactor     10.680        8.5809       -.24117E-06    .40376E-03
   8  Prefactor     .10000E-03    7.1155       -.26470E-08** at limit **
   9  norm          .10000E-03    .27611       -.41489E-07** at limit **
  10  Prefactor     2.6445        5.3613        .11248E-05    .17702E-03
  11  Prefactor     .10000E-03    3.9446        .49017E-06** at limit **
  12  Prefactor     59.713        6.7527        .47900E-06    .20741E-02
  13  norm          .62681        .69471        .30947E-07   -.65093E-04
  14  Prefactor     11.953        10.627       -.42434E-06   -.50401E-04
  15  Prefactor     .10000E-03    4.3627       -.53039E-06** at limit **
  16  norm          .10000E-03    2.2557        .68133E-07** at limit **
  17  norm          80.406        50.956        .25053E-05   -.61553E-02
  18  norm          2.4333        2.2567        .30122E-06    .28535E-03
  19  Prefactor     6.5438        74.722       -.92078E-06   -.84701E-02
  20  Normalizat    1.0533        .21921       -.38307E-07   -.10865E-03
  21  Prefactor     .94202        .18345       -.12035E-05   -.15570E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106755
  Prefactor  = 0.000100018
  Prefactor  = 0.000107812
  norm       = 155.158
  Prefactor  = 0.000100007
  Prefactor  = 51.4349
  Prefactor  = 10.6803
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.64449
  Prefactor  = 0.0001
  Prefactor  = 59.7127
  norm       = 0.626807
  Prefactor  = 11.953
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 80.4055
  norm       = 2.43329
  Prefactor  = 6.54379
  Normalizat = 1.05326
  Prefactor  = 0.942017
 **********
 **   18 **HESSE 
 **********

 FCN=   6099.575     FROM HESSE     STATUS=OK           365 CALLS     1965 TOTAL
                     EDM=   .88E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10675E-03    19.864        .11451       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    154.32        .92459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10781E-03    225.65        .91278E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          155.16        98.547        .81429E-03   -1.3210    
   5  Prefactor     .10001E-03    106.85        .94836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     51.435        41.974        .13769E-02   -1.4272    
   7  Prefactor     10.680        33.821        .31375E-02   -1.5054    
   8  Prefactor     .10000E-03    7.1269        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .27362        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.6445        5.3921        .62638E-02   -1.5383    
  11  Prefactor     .10000E-03    3.9140        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     59.713        42.818        .12958E-02   -1.4161    
  13  norm          .62681        .73342        .11788E-01   -1.5550    
  14  Prefactor     11.953        10.685        .29126E-02   -1.5016    
  15  Prefactor     .10000E-03    4.3600        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2561        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          80.406        51.169        .11399E-02   -1.3912    
  18  norm          2.4333        2.2629        .65575E-02   -1.5396    
  19  Prefactor     6.5438        183.23        .36382E-02   -1.5196    
  20  Normalizat    1.0533        .18747        .59091E-01   -.91267    
  21  Prefactor     .94202        .15503        .45553E-01   -.94688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.823e-06
Minuit parameter uncertainties:
  1  0.0231741
  2  0.00338704
  3  0.08429
  4  98.6514
  5  0.00169946
  6  41.9982
  7  33.8819
  8  1.50492e-07
  9  4.73734e-07
  10  5.39305
  11  2.14622e-05
  12  42.8396
  13  0.733428
  14  10.6863
  15  2.40856e-05
  16  2.35001e-06
  17  51.1973
  18  2.26295
  19  69.4888
  20  0.18759
  21  0.155098
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  2.644e+00  5.393e+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.420e-01  1.551e-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.053e+00  1.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 129.051 21.697
Photon Flux Upper Limit: 8.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/586640/likelihoodResults_514339201_514598401_4FGL_J0836.2+2141_daily_bin1061.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) = 6097.96661419
delta logL = 1.60852173031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6097.82998572
delta logL = 1.7451502053

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3706       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5298       1.0000          .0000       10.000    
     3 'Normalizat'    1.0727       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92197       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=   6097.830     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      216 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3706        4.8937        .43353E-02   -.11948E-02
   2  Index         1.5298        .34735        .18892       -.37565E-05
   3  Normalizat    1.0727        .18279        .58587E-01    .63546E-04
   4  Prefactor     .92197        .15209        .45284E-01   -.25206E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.37062
  Index      = 1.52982
  Normalizat = 1.07269
  Prefactor  = 0.921967
 **********
 **   18 **HESSE 
 **********

 FCN=   6097.830     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3706        5.9999        .16012E-03   -1.5244    
   2  Index         1.5298        .48512        .73396E-02   -.76708    
   3  Normalizat    1.0727        .21774        .25909E-03   -.90633    
   4  Prefactor     .92197        .18129        .22929E-03   -.95378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.57187e-10
Minuit parameter uncertainties:
  1  6.00058
  2  0.486604
  3  0.217925
  4  0.18141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/586640': 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) = 6097.82998571
delta logL = 1.74515020612

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  5.371e+00  6.001e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  1.530e+00  4.866e-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.220e-01  1.814e-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.073e+00  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.84
Ra Dec: 129.051 21.697
Photon Index (Free Index): 1.53 +/- 0.49
Photon Flux (Free Index): 1.19e-08 +/- 1.30e-08
Energy Flux (Free Index): 3.40e-05 +/- 4.64e-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/586640/cmap_HighResolution_514339201_514598401_4FGL_J0836.2+2141_daily_bin1061.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.09e-03', comment='SUCCESS', energy_flux2='3.40e-05', dlogl='1.75e+00', photon_flux2='1.19e-08', job_status='DONE', time_completed='2021-08-30 02:25:16.871733', photon_index_error2='0.49', photon_index2='1.53', ts='0.33', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='8.99e-08', energy_flux_error2='4.64e-05', EG='1.05', time_epoch_completed='1630315516.87', return_code='0', job_id='586640', GAL2='0.92', EG2='1.07', return_code2='0', photon_flux_error2='1.30e-08', ts2='3.84', photon_index='2.73' WHERE bin_id='1061' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:25:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 586640: <4FGL_J0836.2+2141_daily_bin1061> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1061 129.051 21.6971 514339201 514598401 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 :                                   645.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            866 sec.

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

