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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1041
RA = 129.051, Dec = 21.6971
tmin = 509155201, tmax = 509414401
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='586612', job_status='RUN', time_executed='2021-08-30 02:15:02.695343', time_epoch_executed='1630314902.7' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1041'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/586612

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/586612/ft1_4FGL_J0836.2+2141_daily_bin1041.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/586612/ft2_4FGL_J0836.2+2141_daily_bin1041.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/586612/ft1_4FGL_J0836.2+2141_daily_bin1041.fits outfile=/scratch/kocevski/586612/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1041.fits ra=129.051 dec=21.6971 rad=12.0 tmin=509155201.0 tmax=509414401.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.88
user 3.39
sys 0.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/586612/ft1_filtered_4FGL_J0836.2+2141_daily_bin1041.fits" evtable="EVENTS" scfile=/scratch/kocevski/586612/ft2_4FGL_J0836.2+2141_daily_bin1041.fits sctable="SC_DATA" outfile=/scratch/kocevski/586612/ltcube_509155201_509414401_4FGL_J0836.2+2141_daily_bin1041.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/586612/ft2_4FGL_J0836.2+2141_daily_bin1041.fits
.....................!
real 12.16
user 11.52
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/586612/ft1_filtered_4FGL_J0836.2+2141_daily_bin1041.fits evtable="EVENTS" scfile=/scratch/kocevski/586612/ft2_4FGL_J0836.2+2141_daily_bin1041.fits sctable="SC_DATA" expcube=/scratch/kocevski/586612/ltcube_509155201_509414401_4FGL_J0836.2+2141_daily_bin1041.fits outfile=/scratch/kocevski/586612/expmap_509155201_509414401_4FGL_J0836.2+2141_daily_bin1041.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/586612/ltcube_509155201_509414401_4FGL_J0836.2+2141_daily_bin1041.fits
.....................!
real 193.10
user 186.60
sys 5.45

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/586612/ft1_filtered_4FGL_J0836.2+2141_daily_bin1041.fits scfile=/scratch/kocevski/586612/ft2_4FGL_J0836.2+2141_daily_bin1041.fits outfile=/scratch/kocevski/586612/cmap_509155201_509414401_4FGL_J0836.2+2141_daily_bin1041.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.80
user 0.37
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/586612/ft1_filtered_4FGL_J0836.2+2141_daily_bin1041.fits scfile=/scratch/kocevski/586612/ft2_4FGL_J0836.2+2141_daily_bin1041.fits outfile=/scratch/kocevski/586612/cmap_HighResolution_509155201_509414401_4FGL_J0836.2+2141_daily_bin1041.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.80
user 0.38
sys 0.39

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    80.919       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6810       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2110       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3356       1.0000         .10000E-03   10000.    
     9 'norm      '    .10203E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.261       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3592       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3482       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.794       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.8555       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .96936       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93576       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=   6208.890     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     1955 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     80.919        27.533       -.65308E-07   -.28173E-04
   2  Prefactor     .10000E-03    27.109        .18055E-06** at limit **
   3  Prefactor     .10000E-03    154.17        .35259E-06** at limit **
   4  norm          .10000E-03    39.143       -.26520E-06** at limit **
   5  Prefactor     .10000E-03    10.328        .91839E-07** at limit **
   6  Prefactor     7.6820        21.647       -.17068E-06   -.23179E-04
   7  Prefactor     3.2106        66.114       -.49990E-06   -.12791E-04
   8  Prefactor     4.3104        23.579       -.18732E-05   -.17434E-03
   9  norm          .10000E-03    1.1343        .96154E-06** at limit **
  10  Prefactor     18.257        10.899       -.60842E-06   -.41068E-03
  11  Prefactor     .10000E-03    3.2690       -.28764E-09** at limit **
  12  Prefactor     1.3218        239.51       -.10547E-04   -.12878E-04
  13  norm          1.3482        .64468       -.63755E-08   -.66508E-04
  14  Prefactor     .10000E-03    5.7353        .10684E-06** at limit **
  15  Prefactor     10.794        19.108       -.39755E-06   -.36423E-04
  16  norm          .10000E-03    3.3520        .16885E-07** at limit **
  17  norm          4.8570        41.558       -.18022E-06   -.85767E-05
  18  norm          .10000E-03    1.1133       -.23927E-07** at limit **
  19  Prefactor     .10000E-03    17.178        .57216E-07** at limit **
  20  Normalizat    .96953        .18854        .12068E-06   -.17820E-03
  21  Prefactor     .93558        .14586       -.24396E-06   -.13214E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 80.9194
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.68203
  Prefactor  = 3.21056
  Prefactor  = 4.31042
  norm       = 0.000100001
  Prefactor  = 18.2573
  Prefactor  = 0.0001
  Prefactor  = 1.32177
  norm       = 1.34818
  Prefactor  = 0.0001
  Prefactor  = 10.794
  norm       = 0.0001
  norm       = 4.85699
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.969528
  Prefactor  = 0.935583
 **********
 **   18 **HESSE 
 **********

 FCN=   6208.890     FROM HESSE     STATUS=OK           317 CALLS     2272 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     80.919        27.539        .44649E-04   -1.3906    
   2  Prefactor     .10000E-03    27.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    157.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    39.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.6820        21.639        .14469E-03   -1.5154    
   7  Prefactor     3.2106        66.494        .22609E-03   -1.5350    
   8  Prefactor     4.3104        25.058        .19346E-03   -1.5293    
   9  norm          .10000E-03    1.7806        .14311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.257        11.123        .93726E-04   -1.4853    
  11  Prefactor     .10000E-03    3.2917        .13910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.3218        250.15        .37469E-03   -1.5478    
  13  norm          1.3482        .64738        .42135E-04   -1.5476    
  14  Prefactor     .10000E-03    5.7704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.794        19.194        .12195E-03   -1.5051    
  16  norm          .10000E-03    3.3774        .14089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.8570        41.723        .18255E-03   -1.5267    
  18  norm          .10000E-03    1.1258        .81164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .96953        .22090        .26094E-03   -.94058    
  21  Prefactor     .93558        .17138        .21819E-03   -.94909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54257e-10
Minuit parameter uncertainties:
  1  27.5431
  2  4.63401e-06
  3  2.4951e-05
  4  2.04283e-05
  5  3.22205e-06
  6  21.6609
  7  29.2589
  8  20.7984
  9  7.46677e-05
  10  11.1241
  11  6.99166e-06
  12  36.5215
  13  0.647379
  14  4.0841e-06
  15  19.205
  16  3.04086e-07
  17  28.4973
  18  3.10593e-07
  19  3.18023e-06
  20  0.221104
  21  0.171481
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  9.356e-01  1.715e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  9.695e-01  2.211e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.43
Ra Dec: 129.051 21.697
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 8.96e-08 +/- 5.45e-08
Energy Flux (Fixed Index): 2.11e-05 +/- 1.28e-05

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) = 6208.14457594
delta logL = 0.745583431172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6208.13190134
delta logL = 0.75825803208

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7276       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9037       1.0000          .0000       10.000    
     3 'Normalizat'    .88325       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99015       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=   6208.132     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      274 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7137        59.308        .36063E-02    .17424E-03
   2  Index         3.9056        3.5591        .13178        .11091E-03
   3  Normalizat    .88259        .72751E-01    .44687E-01    .28832E-05
   4  Prefactor     .99057        .59364E-01    .46144E-01   -.31975E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.7137
  Index      = 3.90564
  Normalizat = 0.882588
  Prefactor  = 0.990567
 **********
 **   18 **HESSE 
 **********

 FCN=   6208.132     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      307 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7137        82.788        .99034E-04   -1.5152    
   2  Index         3.9056        6.8637        .52419E-02   -.22066    
   3  Normalizat    .88259        .23465        .27160E-03   -.97075    
   4  Prefactor     .99057        .20515        .21290E-03   -.93045    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.79764e-07
Minuit parameter uncertainties:
  1  50.6304
  2  5.28038
  3  0.234925
  4  0.205312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/586612': 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) = 6208.13189637
delta logL = 0.758263002382

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  7.714e+00  5.063e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  3.906e+00  5.280e+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.906e-01  2.053e-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:  8.826e-01  2.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.36
Ra Dec: 129.051 21.697
Photon Index (Free Index): 3.91 +/- 5.28
Photon Flux (Free Index): 1.53e-07 +/- 8.22e-08
Energy Flux (Free Index): 2.32e-05 +/- 2.04e-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/586612/cmap_HighResolution_509155201_509414401_4FGL_J0836.2+2141_daily_bin1041.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.96e-08', energy_flux2='2.32e-05', photon_flux_error='5.45e-08', dlogl='7.58e-01', energy_flux='2.11e-05', photon_flux2='1.53e-07', job_status='DONE', time_completed='2021-08-30 02:23:52.960946', photon_index_error2='5.28', photon_index2='3.91', ts='4.43', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='2.04e-05', EG='0.97', time_epoch_completed='1630315432.96', return_code='0', job_id='586612', GAL2='0.99', EG2='0.88', return_code2='102', energy_flux_error='1.28e-05', photon_flux_error2='8.22e-08', ts2='6.36', photon_index='2.73' WHERE bin_id='1041' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:23:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 586612: <4FGL_J0836.2+2141_daily_bin1041> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1041 129.051 21.6971 509155201 509414401 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 :                                   532.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            783 sec.

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

