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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1153
RA = 129.051, Dec = 21.6971
tmin = 538185601, tmax = 538444801
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='588049', job_status='RUN', time_executed='2021-08-30 02:18:38.228429', time_epoch_executed='1630315118.23' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588049

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588049/ft1_4FGL_J0836.2+2141_daily_bin1153.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588049/ft2_4FGL_J0836.2+2141_daily_bin1153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588049/ft1_4FGL_J0836.2+2141_daily_bin1153.fits outfile=/scratch/kocevski/588049/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1153.fits ra=129.051 dec=21.6971 rad=12.0 tmin=538185601.0 tmax=538444801.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.02
user 5.05
sys 0.63

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588049/ft1_filtered_4FGL_J0836.2+2141_daily_bin1153.fits" evtable="EVENTS" scfile=/scratch/kocevski/588049/ft2_4FGL_J0836.2+2141_daily_bin1153.fits sctable="SC_DATA" outfile=/scratch/kocevski/588049/ltcube_538185601_538444801_4FGL_J0836.2+2141_daily_bin1153.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/588049/ft2_4FGL_J0836.2+2141_daily_bin1153.fits
.....................!
real 12.19
user 11.37
sys 0.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588049/ft1_filtered_4FGL_J0836.2+2141_daily_bin1153.fits evtable="EVENTS" scfile=/scratch/kocevski/588049/ft2_4FGL_J0836.2+2141_daily_bin1153.fits sctable="SC_DATA" expcube=/scratch/kocevski/588049/ltcube_538185601_538444801_4FGL_J0836.2+2141_daily_bin1153.fits outfile=/scratch/kocevski/588049/expmap_538185601_538444801_4FGL_J0836.2+2141_daily_bin1153.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/588049/ltcube_538185601_538444801_4FGL_J0836.2+2141_daily_bin1153.fits
.....................!
real 191.41
user 185.36
sys 5.51

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/588049/ft1_filtered_4FGL_J0836.2+2141_daily_bin1153.fits scfile=/scratch/kocevski/588049/ft2_4FGL_J0836.2+2141_daily_bin1153.fits outfile=/scratch/kocevski/588049/cmap_538185601_538444801_4FGL_J0836.2+2141_daily_bin1153.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.94
user 0.38
sys 0.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588049/ft1_filtered_4FGL_J0836.2+2141_daily_bin1153.fits scfile=/scratch/kocevski/588049/ft2_4FGL_J0836.2+2141_daily_bin1153.fits outfile=/scratch/kocevski/588049/cmap_HighResolution_538185601_538444801_4FGL_J0836.2+2141_daily_bin1153.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.94
user 0.38
sys 0.54

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.821       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    28.837       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.787       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.818       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1084       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .76069       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.649       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.3333       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .87302       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9467       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5068       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .76390       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=   4712.167     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2140 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.577       -.85836E-07** at limit **
   2  Prefactor     59.799        56.533       -.58942E-06    .74595E-05
   3  Prefactor     .10000E-03    28.781       -.15370E-06** at limit **
   4  norm          29.003        117.30        .90339E-05   -.18573E-04
   5  Prefactor     17.762        37.077       -.84669E-06    .87004E-05
   6  Prefactor     .10000E-03    27.431        .83928E-06** at limit **
   7  Prefactor     .10000E-03    16.711        .38314E-07** at limit **
   8  Prefactor     30.809        24.961       -.12872E-06   -.22528E-04
   9  norm          .10000E-03    .48688        .15983E-06** at limit **
  10  Prefactor     .10000E-03    14.333        .42595E-06** at limit **
  11  Prefactor     1.1067        21.634        .36557E-05   -.30817E-04
  12  Prefactor     .10000E-03    26.033        .26034E-06** at limit **
  13  norm          .76059        .67730        .59850E-08   -.21406E-04
  14  Prefactor     22.647        14.525        .13271E-07   -.99470E-05
  15  Prefactor     .10000E-03    8.8969        .68118E-07** at limit **
  16  norm          7.3341        8.3013       -.68583E-08    .11367E-05
  17  norm          .10000E-03    24.563        .41888E-06** at limit **
  18  norm          .87343        2.0315        .61944E-06    .56118E-03
  19  Prefactor     6.9398        133.55       -.25229E-08   -.78147E-06
  20  Normalizat    1.5073        .23620       -.18966E-05    .72787E-04
  21  Prefactor     .76352        .18829        .12413E-05   -.98988E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 59.7989
  Prefactor  = 0.0001
  norm       = 29.003
  Prefactor  = 17.7623
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.809
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.10667
  Prefactor  = 0.0001
  norm       = 0.760594
  Prefactor  = 22.6468
  Prefactor  = 0.0001
  norm       = 7.33412
  norm       = 0.0001
  norm       = 0.873431
  Prefactor  = 6.93981
  Normalizat = 1.50732
  Prefactor  = 0.763519
 **********
 **   18 **HESSE 
 **********

 FCN=   4712.167     FROM HESSE     STATUS=OK           317 CALLS     2457 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     59.799        56.467        .51874E-04   -1.4160    
   3  Prefactor     .10000E-03    28.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          29.003        114.52        .37303E-03   -1.4630    
   5  Prefactor     17.762        37.034        .94967E-04   -1.4865    
   6  Prefactor     .10000E-03    27.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.809        25.013        .72175E-04   -1.4597    
   9  norm          .10000E-03    .49384        .46644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.751        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1067        21.332        .22459E-02   -1.5498    
  12  Prefactor     .10000E-03    26.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .76059        .68940        .51184E-04   -1.5534    
  14  Prefactor     22.647        14.525        .84165E-04   -1.4756    
  15  Prefactor     .10000E-03    8.9308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.3341        8.3017        .14811E-03   -1.5166    
  17  norm          .10000E-03    24.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .87343        1.7773        .15899E-02   -1.5521    
  19  Prefactor     6.9398        133.90        .15222E-03   -1.5181    
  20  Normalizat    1.5073        .26750        .23868E-03   -.77573    
  21  Prefactor     .76352        .21502        .26320E-03   -1.0109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70046e-09
Minuit parameter uncertainties:
  1  4.97777e-06
  2  56.5176
  3  1.44899e-05
  4  115.403
  5  37.0822
  6  2.3866e-05
  7  4.79096e-06
  8  25.0215
  9  2.39373e-07
  10  3.86744e-06
  11  9.72114
  12  4.16628e-06
  13  0.689407
  14  14.5269
  15  7.90501e-07
  16  8.30299
  17  1.81101e-05
  18  1.77743
  19  61.1252
  20  0.267755
  21  0.215254
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  7.635e-01  2.153e-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.507e+00  2.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/588049/likelihoodResults_538185601_538444801_4FGL_J0836.2+2141_daily_bin1153.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) = 4712.1677838
delta logL = -0.00032354292216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4712.1674603
delta logL = -4.78457877762e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7093       1.0000          .0000       10.000    
     3 'Normalizat'    1.5072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76362       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4712.167     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      265 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1914.9        .36285E-02** at limit **
   2  Index         2.1770        5.9891        .50000       -.11098E-06
   3  Normalizat    1.5073        .63796E-01    .23868E-03   -.22809E-03
   4  Prefactor     .76352        .52402E-01    .26320E-03   -.20405E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.17698
  Normalizat = 1.50731
  Prefactor  = 0.763521
 **********
 **   18 **HESSE 
 **********

 FCN=   4712.167     FROM HESSE     STATUS=OK            29 CALLS      294 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    56.053        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1770        7.3311        .50000       -.59995    
   3  Normalizat    1.5073        .25698        .47735E-04   -.77573    
   4  Prefactor     .76352        .21096        .10528E-04   -1.0109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41463e-10
Minuit parameter uncertainties:
  1  0.00033682
  2  219.479
  3  0.257201
  4  0.211184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588049': 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) = 4712.16745922
delta logL = 1.03614002001e-06

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  3.368e-04  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.177e+00  2.195e+02  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:  7.635e-01  2.112e-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.507e+00  2.572e-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/588049/cmap_HighResolution_538185601_538444801_4FGL_J0836.2+2141_daily_bin1153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.24e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-08-30 02:27:31.352628', job_id='588049', GAL2='0.76', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1630315651.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.04e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1153' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:27:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 588049: <4FGL_J0836.2+2141_daily_bin1153> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin1153> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 02:15:37 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:15:39 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:15:39 2021
Terminated at Mon Aug 30 02:27:31 2021
Results reported at Mon Aug 30 02:27:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1153 129.051 21.6971 538185601 538444801 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 :                                   537.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             252.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            714 sec.

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

