/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 171 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 = 7479
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0836.2+2141_daily_bin69
RA = 129.051, Dec = 21.6971
tmin = 257212801, tmax = 257472001
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='581627', job_status='RUN', time_executed='2021-08-30 01:59:05.375865', time_epoch_executed='1630313945.38' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='69'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/581627

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/581627/ft1_4FGL_J0836.2+2141_daily_bin69.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/581627/ft2_4FGL_J0836.2+2141_daily_bin69.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/581627/ft1_4FGL_J0836.2+2141_daily_bin69.fits outfile=/scratch/kocevski/581627/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin69.fits ra=129.051 dec=21.6971 rad=12.0 tmin=257212801.0 tmax=257472001.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 3.85
user 2.10
sys 0.94

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/581627/ft1_filtered_4FGL_J0836.2+2141_daily_bin69.fits" evtable="EVENTS" scfile=/scratch/kocevski/581627/ft2_4FGL_J0836.2+2141_daily_bin69.fits sctable="SC_DATA" outfile=/scratch/kocevski/581627/ltcube_257212801_257472001_4FGL_J0836.2+2141_daily_bin69.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/581627/ft2_4FGL_J0836.2+2141_daily_bin69.fits
.....................!
real 17.62
user 16.18
sys 1.18

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/581627/ft1_filtered_4FGL_J0836.2+2141_daily_bin69.fits evtable="EVENTS" scfile=/scratch/kocevski/581627/ft2_4FGL_J0836.2+2141_daily_bin69.fits sctable="SC_DATA" expcube=/scratch/kocevski/581627/ltcube_257212801_257472001_4FGL_J0836.2+2141_daily_bin69.fits outfile=/scratch/kocevski/581627/expmap_257212801_257472001_4FGL_J0836.2+2141_daily_bin69.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/581627/ltcube_257212801_257472001_4FGL_J0836.2+2141_daily_bin69.fits
.....................!
real 191.13
user 185.34
sys 5.09

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J0836.2+2141 @ 129.051 21.6971

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/581627/ft1_filtered_4FGL_J0836.2+2141_daily_bin69.fits scfile=/scratch/kocevski/581627/ft2_4FGL_J0836.2+2141_daily_bin69.fits outfile=/scratch/kocevski/581627/cmap_257212801_257472001_4FGL_J0836.2+2141_daily_bin69.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.26
user 0.37
sys 0.88

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/581627/ft1_filtered_4FGL_J0836.2+2141_daily_bin69.fits scfile=/scratch/kocevski/581627/ft2_4FGL_J0836.2+2141_daily_bin69.fits outfile=/scratch/kocevski/581627/cmap_HighResolution_257212801_257472001_4FGL_J0836.2+2141_daily_bin69.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.36
user 0.39
sys 0.90

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7837       1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.585       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.846       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.991       1.0000         .10000E-03   10000.    
     9 'norm      '    .68234       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0923       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12431E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    60.481       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2112       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.404       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.402       1.0000         .10000E-03   10000.    
    16 'norm      '    .33062       1.0000         .10000E-03   10000.    
    17 'norm      '    42.023       1.0000         .10000E-03   10000.    
    18 'norm      '    3.7163       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.747       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0814       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0173       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=   9344.432     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2227 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7841        10.871        .19537E-05    .14690E-03
   2  Prefactor     36.576        35.401        .48876E-06    .45509E-05
   3  Prefactor     .10000E-03    9.2191       -.29348E-07** at limit **
   4  norm          .10000E-03    24.915       -.14498E-05** at limit **
   5  Prefactor     .10000E-03    22.550        .12916E-05** at limit **
   6  Prefactor     .10000E-03    7.4430       -.90275E-07** at limit **
   7  Prefactor     30.836        23.706        .34408E-06   -.44428E-05
   8  Prefactor     20.027        21.857        .78655E-06    .18139E-04
   9  norm          .67830        .97705       -.58639E-06   -.92939E-04
  10  Prefactor     7.1031        7.8796        .69979E-06    .84251E-04
  11  Prefactor     .10000E-03    3.4410        .16761E-06** at limit **
  12  Prefactor     60.473        31.528        .26775E-06    .85099E-05
  13  norm          1.2112        .75901        .27760E-08   -.75566E-05
  14  Prefactor     20.402        13.405       -.78350E-07    .83563E-05
  15  Prefactor     14.395        14.756       -.11962E-06    .10119E-04
  16  norm          .32077        5.0521        .11046E-05   -.31959E-03
  17  norm          42.018        28.869        .17198E-06    .34161E-05
  18  norm          3.7159        2.4486       -.33348E-08    .13369E-04
  19  Prefactor     11.746        25.487        .31884E-07    .22799E-06
  20  Normalizat    1.0817        .16476        .56646E-06   -.22278E-04
  21  Prefactor     1.0171        .13256       -.31973E-06    .73822E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.78408
  Prefactor  = 36.5761
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.8359
  Prefactor  = 20.0275
  norm       = 0.678305
  Prefactor  = 7.10306
  Prefactor  = 0.000100002
  Prefactor  = 60.4728
  norm       = 1.21118
  Prefactor  = 20.4017
  Prefactor  = 14.3948
  norm       = 0.320766
  norm       = 42.0182
  norm       = 3.71585
  Prefactor  = 11.7464
  Normalizat = 1.08173
  Prefactor  = 1.01708
 **********
 **   18 **HESSE 
 **********

 FCN=   9344.432     FROM HESSE     STATUS=OK           333 CALLS     2560 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7841        11.852        .15665E-02   -1.5441    
   2  Prefactor     36.576        35.418        .66259E-04   -1.4498    
   3  Prefactor     .10000E-03    9.2232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    24.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.4468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.836        23.690        .72142E-04   -1.4597    
   8  Prefactor     20.027        22.020        .89580E-04   -1.4813    
   9  norm          .67830        .98557        .10518E-02   -1.5543    
  10  Prefactor     7.1031        7.9455        .15063E-03   -1.5175    
  11  Prefactor     .10000E-03    17.761        .33879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     60.473        31.589        .51592E-04   -1.4151    
  13  norm          1.2112        .74242        .59669E-04   -1.5488    
  14  Prefactor     20.402        13.353        .88669E-04   -1.4804    
  15  Prefactor     14.395        14.822        .10554E-03   -1.4949    
  16  norm          .32077        13.600        .35243E-02   -1.5595    
  17  norm          42.018        28.865        .61839E-04   -1.4411    
  18  norm          3.7159        2.4477        .11871E-03   -1.5322    
  19  Prefactor     11.746        25.488        .11688E-03   -1.5022    
  20  Normalizat    1.0817        .19472        .26826E-03   -.90341    
  21  Prefactor     1.0171        .15668        .23220E-03   -.92162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.33053e-09
Minuit parameter uncertainties:
  1  9.1992
  2  35.4379
  3  4.22759e-07
  4  4.3704e-06
  5  2.01447e-05
  6  3.02381e-07
  7  23.6972
  8  22.0291
  9  0.985592
  10  7.94671
  11  0.000379939
  12  31.5975
  13  0.742422
  14  13.3552
  15  14.8254
  16  4.17757
  17  28.8749
  18  2.44778
  19  25.5113
  20  0.194848
  21  0.156753
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  7.103e+00  7.947e+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:  1.017e+00  1.568e-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.082e+00  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.00
Ra Dec: 129.051 21.697
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 3.49e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 8.20e-06 +/- 9.17e-06

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

Saving results to:
/scratch/kocevski/581627/likelihoodResults_257212801_257472001_4FGL_J0836.2+2141_daily_bin69.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) = 9344.42669034
delta logL = 0.00571490902075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9344.42433769
delta logL = 0.00806755519261

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5412       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8619       1.0000          .0000       10.000    
     3 'Normalizat'    1.0778       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0198       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=   9344.424     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      238 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5449        209.08        .39228E-02    .30779E-03
   2  Index         2.8637        6.2575        .22443        .10129E-03
   3  Normalizat    1.0779        .52220E-01    .60748E-01    .23547E-04
   4  Prefactor     1.0197        .45006E-01    .42164E-01    .76933E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.54485
  Index      = 2.86372
  Normalizat = 1.07794
  Prefactor  = 1.01967
 **********
 **   18 **HESSE 
 **********

 FCN=   9344.424     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5449        9.7361        .15691E-03   -1.5196    
   2  Index         2.8637        1.1873        .13094E-01   -.44145    
   3  Normalizat    1.0779        .18670        .26867E-03   -.90463    
   4  Prefactor     1.0197        .15543        .23195E-03   -.92077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4919e-11
Minuit parameter uncertainties:
  1  9.73844
  2  1.20137
  3  0.186812
  4  0.155497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/581627': 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) = 9344.42433429
delta logL = 0.0080709584272

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  6.545e+00  9.738e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.864e+00  1.201e+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:  1.020e+00  1.555e-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.078e+00  1.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 129.051 21.697
Photon Index (Free Index): 2.86 +/- 1.20
Photon Flux (Free Index): 3.70e-08 +/- 4.17e-08
Energy Flux (Free Index): 7.96e-06 +/- 9.32e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/581627/cmap_HighResolution_257212801_257472001_4FGL_J0836.2+2141_daily_bin69.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.89e-03', comment='SUCCESS', photon_flux='3.49e-08', energy_flux2='7.96e-06', photon_flux_error='3.90e-08', dlogl='8.07e-03', energy_flux='8.20e-06', photon_flux2='3.70e-08', job_status='DONE', time_completed='2021-08-30 02:11:42.443605', photon_index_error2='1.20', photon_index2='2.86', ts='1.00', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='9.32e-06', EG='1.08', time_epoch_completed='1630314702.44', return_code='0', job_id='581627', GAL2='1.02', EG2='1.08', return_code2='0', energy_flux_error='9.17e-06', photon_flux_error2='4.17e-08', ts2='1.02', photon_index='2.73' WHERE bin_id='69' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:11:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 581627: <4FGL_J0836.2+2141_daily_bin69> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin69> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Aug 30 01:55:42 2021
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:55:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 01:55:43 2021
Terminated at Mon Aug 30 02:11:43 2021
Results reported at Mon Aug 30 02:11:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin69 129.051 21.6971 257212801 257472001 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 :                                   765.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            961 sec.

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

