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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1204
RA = 129.051, Dec = 21.6971
tmin = 551404801, tmax = 551664001
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='588120', job_status='RUN', time_executed='2021-08-30 02:19:19.244942', time_epoch_executed='1630315159.24' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588120

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588120/ft1_4FGL_J0836.2+2141_daily_bin1204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588120/ft2_4FGL_J0836.2+2141_daily_bin1204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588120/ft1_4FGL_J0836.2+2141_daily_bin1204.fits outfile=/scratch/kocevski/588120/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1204.fits ra=129.051 dec=21.6971 rad=12.0 tmin=551404801.0 tmax=551664001.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.57
user 3.34
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588120/ft1_filtered_4FGL_J0836.2+2141_daily_bin1204.fits" evtable="EVENTS" scfile=/scratch/kocevski/588120/ft2_4FGL_J0836.2+2141_daily_bin1204.fits sctable="SC_DATA" outfile=/scratch/kocevski/588120/ltcube_551404801_551664001_4FGL_J0836.2+2141_daily_bin1204.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/588120/ft2_4FGL_J0836.2+2141_daily_bin1204.fits
.....................!
real 11.57
user 11.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588120/ft1_filtered_4FGL_J0836.2+2141_daily_bin1204.fits evtable="EVENTS" scfile=/scratch/kocevski/588120/ft2_4FGL_J0836.2+2141_daily_bin1204.fits sctable="SC_DATA" expcube=/scratch/kocevski/588120/ltcube_551404801_551664001_4FGL_J0836.2+2141_daily_bin1204.fits outfile=/scratch/kocevski/588120/expmap_551404801_551664001_4FGL_J0836.2+2141_daily_bin1204.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/588120/ltcube_551404801_551664001_4FGL_J0836.2+2141_daily_bin1204.fits
.....................!
real 192.84
user 187.31
sys 5.11

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/588120/ft1_filtered_4FGL_J0836.2+2141_daily_bin1204.fits scfile=/scratch/kocevski/588120/ft2_4FGL_J0836.2+2141_daily_bin1204.fits outfile=/scratch/kocevski/588120/cmap_551404801_551664001_4FGL_J0836.2+2141_daily_bin1204.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588120/ft1_filtered_4FGL_J0836.2+2141_daily_bin1204.fits scfile=/scratch/kocevski/588120/ft2_4FGL_J0836.2+2141_daily_bin1204.fits outfile=/scratch/kocevski/588120/cmap_HighResolution_551404801_551664001_4FGL_J0836.2+2141_daily_bin1204.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2167       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.757       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    108.88       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10396E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15039E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3592       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.694       1.0000         .10000E-03   10000.    
     9 'norm      '    .10306E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.6828       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .68143       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.666       1.0000         .10000E-03   10000.    
    16 'norm      '    3.7585       1.0000         .10000E-03   10000.    
    17 'norm      '    9.3932       1.0000         .10000E-03   10000.    
    18 'norm      '    .99876       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.888       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1716       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94623       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=   7319.814     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     2526 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2162        15.723        .93186E-06   -.60353E-04
   2  Prefactor     21.776        41.968        .95497E-05   -.73181E-05
   3  Prefactor     .10000E-03    16.142       -.60993E-05** at limit **
   4  norm          108.92        93.456        .34986E-04   -.86326E-05
   5  Prefactor     .10000E-03    11.450       -.18995E-06** at limit **
   6  Prefactor     .10002E-03    15.626        .68487E-06** at limit **
   7  Prefactor     7.3574        13.708       -.36488E-05   -.47351E-04
   8  Prefactor     17.666        16.274        .59877E-06   -.13711E-03
   9  norm          .10000E-03    .45742        .25298E-06** at limit **
  10  Prefactor     7.6760        9.2483       -.23867E-05   -.27969E-03
  11  Prefactor     .10000E-03    6.7910        .10585E-06** at limit **
  12  Prefactor     .10000E-03    16.118        .59367E-05** at limit **
  13  norm          .68163        .48707        .57983E-07   -.41673E-04
  14  Prefactor     .10000E-03    2.6000        .11869E-06** at limit **
  15  Prefactor     16.664        16.015        .49288E-05   -.41380E-04
  16  norm          3.7587        6.3938        .27786E-05   -.20169E-03
  17  norm          9.3941        28.855        .64032E-06   -.19299E-04
  18  norm          .99772        1.5061       -.11453E-06   -.63063E-03
  19  Prefactor     15.895        28.264       -.29104E-05   -.10469E-04
  20  Normalizat    1.1716        .17700       -.18740E-06   -.25771E-03
  21  Prefactor     .94612        .14241       -.21189E-05   -.97050E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.21622
  Prefactor  = 21.7756
  Prefactor  = 0.0001
  norm       = 108.923
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 7.35741
  Prefactor  = 17.6665
  norm       = 0.0001
  Prefactor  = 7.67604
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.681628
  Prefactor  = 0.0001
  Prefactor  = 16.6642
  norm       = 3.75869
  norm       = 9.39411
  norm       = 0.997717
  Prefactor  = 15.8947
  Normalizat = 1.17163
  Prefactor  = 0.946119
 **********
 **   18 **HESSE 
 **********

 FCN=   7319.814     FROM HESSE     STATUS=OK           333 CALLS     2859 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2162        15.714        .16100E-03   -1.5209    
   2  Prefactor     21.776        41.966        .85871E-04   -1.4774    
   3  Prefactor     .10000E-03    16.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          108.92        93.402        .19273E-03   -1.3617    
   5  Prefactor     .10000E-03    11.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    18.254        .11177       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.3574        13.712        .14785E-03   -1.5165    
   8  Prefactor     17.666        16.027        .95216E-04   -1.4867    
   9  norm          .10000E-03    .75656        .10780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.6760        9.2050        .14468E-03   -1.5154    
  11  Prefactor     .10000E-03    7.0065        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .68163        .47628        .48772E-04   -1.5543    
  14  Prefactor     .10000E-03    2.6017        .13472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.664        16.178        .98109E-04   -1.4891    
  16  norm          3.7587        6.3678        .20825E-03   -1.5320    
  17  norm          9.3941        28.850        .13076E-03   -1.5095    
  18  norm          .99772        1.2375        .12495E-02   -1.5508    
  19  Prefactor     15.895        28.262        .10048E-03   -1.4910    
  20  Normalizat    1.1716        .21228        .25332E-03   -.87484    
  21  Prefactor     .94612        .16983        .23210E-03   -.94548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.7687e-10
Minuit parameter uncertainties:
  1  15.7243
  2  42.0226
  3  1.26499e-05
  4  93.5289
  5  1.23107e-05
  6  0.00130894
  7  13.7175
  8  16.031
  9  1.85283e-05
  10  9.20669
  11  4.56431e-05
  12  1.35127e-05
  13  0.47628
  14  1.96972e-06
  15  16.1822
  16  6.36897
  17  28.8927
  18  1.23752
  19  28.2862
  20  0.212436
  21  0.169926
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  7.676e+00  9.207e+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.461e-01  1.699e-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.172e+00  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.90
Ra Dec: 129.051 21.697
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/588120/likelihoodResults_551404801_551664001_4FGL_J0836.2+2141_daily_bin1204.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) = 7319.1165983
delta logL = 0.697198010754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7319.10295854
delta logL = 0.710837769628

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8905       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5372       1.0000          .0000       10.000    
     3 'Normalizat'    1.1095       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98368       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=   7319.103     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      318 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8945        21.596        .75657E-02    .79085E-03
   2  Index         4.5373        3.4739        .19714        .12091E-03
   3  Normalizat    1.1096        .47145E-01    .58607E-01    .21581E-06
   4  Prefactor     .98368        .39279E-01    .46063E-01    .47583E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.89447
  Index      = 4.53726
  Normalizat = 1.10958
  Prefactor  = 0.983679
 **********
 **   18 **HESSE 
 **********

 FCN=   7319.103     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      351 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8945        48.965        .81505E-04   -1.5433    
   2  Index         4.5373        7.2675        .67668E-02   -.92681E-01
   3  Normalizat    1.1096        .20114        .25919E-03   -.89445    
   4  Prefactor     .98368        .16676        .22812E-03   -.93276    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.98085e-10
Minuit parameter uncertainties:
  1  19.2798
  2  7.50839
  3  0.201274
  4  0.166847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588120': 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) = 7319.10295272
delta logL = 0.710843583532

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.894e+00  1.928e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  4.537e+00  7.508e+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.837e-01  1.668e-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.110e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.48
Ra Dec: 129.051 21.697
Photon Index (Free Index): 4.54 +/- 7.51
Photon Flux (Free Index): 8.62e-08 +/- 6.42e-08
Energy Flux (Free Index): 1.20e-05 +/- 1.40e-05

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/588120/cmap_HighResolution_551404801_551664001_4FGL_J0836.2+2141_daily_bin1204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', energy_flux2='1.20e-05', dlogl='7.11e-01', photon_flux2='8.62e-08', job_status='DONE', time_completed='2021-08-30 02:30:25.398742', photon_index_error2='7.51', photon_index2='4.54', ts='0.90', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='1.40e-05', EG='1.17', time_epoch_completed='1630315825.4', return_code='0', job_id='588120', GAL2='0.98', EG2='1.11', return_code2='102', photon_flux_error2='6.42e-08', ts2='2.48', photon_index='2.73' WHERE bin_id='1204' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:30:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 588120: <4FGL_J0836.2+2141_daily_bin1204> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1204 129.051 21.6971 551404801 551664001 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 :                                   663.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            883 sec.

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

