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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1369
RA = 129.051, Dec = 21.6971
tmin = 594172801, tmax = 594432001
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='588368', job_status='RUN', time_executed='2021-08-30 02:20:11.427288', time_epoch_executed='1630315211.43' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1369'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588368

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588368/ft1_4FGL_J0836.2+2141_daily_bin1369.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588368/ft2_4FGL_J0836.2+2141_daily_bin1369.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588368/ft1_4FGL_J0836.2+2141_daily_bin1369.fits outfile=/scratch/kocevski/588368/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1369.fits ra=129.051 dec=21.6971 rad=12.0 tmin=594172801.0 tmax=594432001.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 4.49
user 3.92
sys 0.53

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588368/ft1_filtered_4FGL_J0836.2+2141_daily_bin1369.fits" evtable="EVENTS" scfile=/scratch/kocevski/588368/ft2_4FGL_J0836.2+2141_daily_bin1369.fits sctable="SC_DATA" outfile=/scratch/kocevski/588368/ltcube_594172801_594432001_4FGL_J0836.2+2141_daily_bin1369.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/588368/ft2_4FGL_J0836.2+2141_daily_bin1369.fits
.....................!
real 12.32
user 11.63
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588368/ft1_filtered_4FGL_J0836.2+2141_daily_bin1369.fits evtable="EVENTS" scfile=/scratch/kocevski/588368/ft2_4FGL_J0836.2+2141_daily_bin1369.fits sctable="SC_DATA" expcube=/scratch/kocevski/588368/ltcube_594172801_594432001_4FGL_J0836.2+2141_daily_bin1369.fits outfile=/scratch/kocevski/588368/expmap_594172801_594432001_4FGL_J0836.2+2141_daily_bin1369.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/588368/ltcube_594172801_594432001_4FGL_J0836.2+2141_daily_bin1369.fits
.....................!
real 190.63
user 184.83
sys 5.39

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/588368/ft1_filtered_4FGL_J0836.2+2141_daily_bin1369.fits scfile=/scratch/kocevski/588368/ft2_4FGL_J0836.2+2141_daily_bin1369.fits outfile=/scratch/kocevski/588368/cmap_594172801_594432001_4FGL_J0836.2+2141_daily_bin1369.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.05
user 0.37
sys 0.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588368/ft1_filtered_4FGL_J0836.2+2141_daily_bin1369.fits scfile=/scratch/kocevski/588368/ft2_4FGL_J0836.2+2141_daily_bin1369.fits outfile=/scratch/kocevski/588368/cmap_HighResolution_594172801_594432001_4FGL_J0836.2+2141_daily_bin1369.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.87
user 0.38
sys 0.47

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.001       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.082       1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.595       1.0000         .10000E-03   10000.    
     4 'norm      '    7.7671       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .89953       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9372       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4180       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8486       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9653       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2881       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0898       1.0000         .10000E-03   10000.    
    18 'norm      '    1.8178       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .65961       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3017       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=   5909.506     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2183 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.000        21.270       -.13522E-05   -.64943E-05
   2  Prefactor     20.075        40.789       -.11053E-04   -.74444E-06
   3  Prefactor     35.595        37.105       -.29608E-06    .19675E-05
   4  norm          7.7696        73.919        .72478E-05   -.38331E-05
   5  Prefactor     .10000E-03    7.2074        .10119E-05** at limit **
   6  Prefactor     .10000E-03    9.7689        .30861E-05** at limit **
   7  Prefactor     .10000E-03    25.681        .11655E-04** at limit **
   8  Prefactor     .10000E-03    8.2043       -.29761E-05** at limit **
   9  norm          .89931        1.1643       -.21923E-06   -.10035E-02
  10  Prefactor     2.9368        8.4544       -.10228E-05   -.27717E-03
  11  Prefactor     4.4179        5.7909       -.49913E-06   -.29793E-03
  12  Prefactor     5.8490        12.711       -.51736E-06   -.40227E-04
  13  norm          1.9652        .91065        .19753E-07    .27384E-03
  14  Prefactor     .10000E-03    5.1531        .67586E-07** at limit **
  15  Prefactor     4.2842        13.970       -.88893E-06   -.50928E-04
  16  norm          .10000E-03    2.1125       -.14915E-07** at limit **
  17  norm          2.0576        46.726       -.59334E-04   -.42619E-04
  18  norm          1.8171        2.5586       -.27332E-06   -.50844E-03
  19  Prefactor     .10000E-03    19.719       -.87588E-05** at limit **
  20  Normalizat    .65981        .19279        .17780E-05    .10549E-03
  21  Prefactor     1.3015        .16492        .11096E-05    .16100E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.0004
  Prefactor  = 20.0755
  Prefactor  = 35.5954
  norm       = 7.7696
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.89931
  Prefactor  = 2.93675
  Prefactor  = 4.41793
  Prefactor  = 5.849
  norm       = 1.96518
  Prefactor  = 0.0001
  Prefactor  = 4.28418
  norm       = 0.0001
  norm       = 2.0576
  norm       = 1.81713
  Prefactor  = 0.0001
  Normalizat = 0.659815
  Prefactor  = 1.30153
 **********
 **   18 **HESSE 
 **********

 FCN=   5909.506     FROM HESSE     STATUS=OK           321 CALLS     2504 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.000        21.269        .97136E-04   -1.4883    
   2  Prefactor     20.075        40.811        .89379E-04   -1.4812    
   3  Prefactor     35.595        37.100        .67171E-04   -1.4514    
   4  norm          7.7696        74.012        .14388E-03   -1.5150    
   5  Prefactor     .10000E-03    7.2089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.7739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.2151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .89931        1.0714        .86248E-03   -1.5518    
  10  Prefactor     2.9368        8.3181        .23700E-03   -1.5365    
  11  Prefactor     4.4179        5.7800        .19159E-03   -1.5288    
  12  Prefactor     5.8490        12.702        .16606E-03   -1.5224    
  13  norm          1.9652        .90580        .47164E-04   -1.5428    
  14  Prefactor     .10000E-03    5.1611        .17039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2842        14.047        .19455E-03   -1.5294    
  16  norm          .10000E-03    2.1132        .10912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0576        47.704        .28558E-03   -1.5421    
  18  norm          1.8171        2.5378        .14113E-03   -1.5438    
  19  Prefactor     .10000E-03    19.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .65981        .22013        .30098E-03   -1.0550    
  21  Prefactor     1.3015        .18969        .19905E-03   -.83262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52023e-10
Minuit parameter uncertainties:
  1  21.2782
  2  40.8679
  3  37.1236
  4  48.0379
  5  3.99942e-06
  6  7.45248e-06
  7  9.2147e-05
  8  2.07058e-06
  9  1.07142
  10  8.32141
  11  5.78077
  12  12.7083
  13  0.905802
  14  1.56849e-05
  15  14.0579
  16  9.25874e-07
  17  19.832
  18  2.53798
  19  2.95479e-05
  20  0.220421
  21  0.189786
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  2.937e+00  8.321e+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.302e+00  1.898e-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:  6.598e-01  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/588368/likelihoodResults_594172801_594432001_4FGL_J0836.2+2141_daily_bin1369.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) = 5909.24658733
delta logL = 0.259893910339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5909.09286747
delta logL = 0.413613771298

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20208E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9996       1.0000          .0000       10.000    
     3 'Normalizat'    .63407       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3215       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=   5909.093     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      486 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20168E-03    .23407E-01    .32897E-03** at limit **
   2  Index        10.0000        8.4193        .50000    ** at limit **
   3  Normalizat    .63416        .74916E-01    .69252E-01    .12594E-03
   4  Prefactor     1.3216        .62810E-01    .32244E-01    .25707E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000201684
  Index      = 10
  Normalizat = 0.634158
  Prefactor  = 1.32164
 **********
 **   18 **HESSE 
 **********

 FCN=   5909.093     FROM HESSE     STATUS=OK            35 CALLS      521 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20168E-03    .29542E-03    .18876E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.2564        .50000        1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .63416        .21031        .30650E-03   -1.0655    
   4  Prefactor     1.3216        .18829        .19775E-03   -.82666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61921e-10
Minuit parameter uncertainties:
  1  0.000295419
  2  0.000949825
  3  0.210571
  4  0.188391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588368': 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) = 5909.09286099
delta logL = 0.413620247647

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  2.017e-04  2.954e-04  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  1.000e+01  9.498e-04  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.322e+00  1.884e-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:  6.342e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 129.051 21.697
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 2.67e-08 +/- 3.79e-08
Energy Flux (Free Index): 2.99e-06 +/- 4.27e-06

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/588368/cmap_HighResolution_594172801_594432001_4FGL_J0836.2+2141_daily_bin1369.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.45e-03', comment='SUCCESS', energy_flux2='2.99e-06', dlogl='4.14e-01', photon_flux2='2.67e-08', job_status='DONE', time_completed='2021-08-30 02:30:08.625827', photon_index_error2='0.00', photon_index2='10.00', ts='0.15', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='4.27e-06', EG='0.66', time_epoch_completed='1630315808.63', return_code='0', job_id='588368', GAL2='1.32', EG2='0.63', return_code2='0', photon_flux_error2='3.79e-08', ts2='1.01', photon_index='2.73' WHERE bin_id='1369' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:30:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 588368: <4FGL_J0836.2+2141_daily_bin1369> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1369 129.051 21.6971 594172801 594432001 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 :                                   597.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             217.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            851 sec.

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

