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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin743
RA = 129.051, Dec = 21.6971
tmin = 431913601, tmax = 432172801
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='585043', job_status='RUN', time_executed='2021-08-30 02:10:32.182728', time_epoch_executed='1630314632.18' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='743'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/585043

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/585043/ft1_4FGL_J0836.2+2141_daily_bin743.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/585043/ft2_4FGL_J0836.2+2141_daily_bin743.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/585043/ft1_4FGL_J0836.2+2141_daily_bin743.fits outfile=/scratch/kocevski/585043/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin743.fits ra=129.051 dec=21.6971 rad=12.0 tmin=431913601.0 tmax=432172801.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 5.99
user 4.94
sys 1.02

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/585043/ft1_filtered_4FGL_J0836.2+2141_daily_bin743.fits" evtable="EVENTS" scfile=/scratch/kocevski/585043/ft2_4FGL_J0836.2+2141_daily_bin743.fits sctable="SC_DATA" outfile=/scratch/kocevski/585043/ltcube_431913601_432172801_4FGL_J0836.2+2141_daily_bin743.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/585043/ft2_4FGL_J0836.2+2141_daily_bin743.fits
.....................!
real 13.07
user 11.77
sys 1.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/585043/ft1_filtered_4FGL_J0836.2+2141_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/585043/ft2_4FGL_J0836.2+2141_daily_bin743.fits sctable="SC_DATA" expcube=/scratch/kocevski/585043/ltcube_431913601_432172801_4FGL_J0836.2+2141_daily_bin743.fits outfile=/scratch/kocevski/585043/expmap_431913601_432172801_4FGL_J0836.2+2141_daily_bin743.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/585043/ltcube_431913601_432172801_4FGL_J0836.2+2141_daily_bin743.fits
.....................!
real 192.18
user 185.83
sys 5.91

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/585043/ft1_filtered_4FGL_J0836.2+2141_daily_bin743.fits scfile=/scratch/kocevski/585043/ft2_4FGL_J0836.2+2141_daily_bin743.fits outfile=/scratch/kocevski/585043/cmap_431913601_432172801_4FGL_J0836.2+2141_daily_bin743.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.29
user 0.36
sys 0.92

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/585043/ft1_filtered_4FGL_J0836.2+2141_daily_bin743.fits scfile=/scratch/kocevski/585043/ft2_4FGL_J0836.2+2141_daily_bin743.fits outfile=/scratch/kocevski/585043/cmap_HighResolution_431913601_432172801_4FGL_J0836.2+2141_daily_bin743.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=129.051 yref=21.6971 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.30
user 0.37
sys 0.91

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7117       1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.234       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.285       1.0000         .10000E-03   10000.    
     4 'norm      '    66.706       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .98517       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8300       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24858E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1284       1.0000         .10000E-03   10000.    
    13 'norm      '    .92390       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.414       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    87.841       1.0000         .10000E-03   10000.    
    18 'norm      '    .33658       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .79715E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3720       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .84531       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=   6314.403     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2225 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7034        18.600        .32139E-06    .46967E-04
   2  Prefactor     45.226        53.953        .21072E-06    .45872E-05
   3  Prefactor     14.316        25.986        .10957E-06   -.29718E-05
   4  norm          66.726        120.18        .11001E-05    .11279E-04
   5  Prefactor     .10000E-03    13.606       -.25241E-07** at limit **
   6  Prefactor     1.0083        25.120       -.38065E-05    .31344E-03
   7  Prefactor     .10000E-03    14.759       -.20924E-06** at limit **
   8  Prefactor     4.8228        39.837       -.20647E-06    .14354E-04
   9  norm          .10000E-03    .78237        .18461E-06** at limit **
  10  Prefactor     .10000E-03    9.6978       -.45896E-07** at limit **
  11  Prefactor     .10002E-03    4.5742       -.23036E-05** at limit **
  12  Prefactor     8.1171        31.145        .33834E-06    .22115E-04
  13  norm          .92390        .62475        .11672E-06    .11039E-02
  14  Prefactor     .10000E-03    4.0925        .49878E-06** at limit **
  15  Prefactor     10.426        22.754       -.91646E-06   -.49715E-04
  16  norm          .10000E-03    1.9930       -.13449E-07** at limit **
  17  norm          87.946        48.967        .71135E-06    .16559E-03
  18  norm          .33577        2.8032        .29368E-05    .69205E-03
  19  Prefactor     .10003E-03    194.53        .11510E-04** at limit **
  20  Normalizat    1.3722        .20248        .14620E-05    .18502E-03
  21  Prefactor     .84539        .16136       -.17004E-05    .18282E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.70339
  Prefactor  = 45.2262
  Prefactor  = 14.3164
  norm       = 66.7258
  Prefactor  = 0.0001
  Prefactor  = 1.00827
  Prefactor  = 0.0001
  Prefactor  = 4.82278
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 8.11709
  norm       = 0.923904
  Prefactor  = 0.0001
  Prefactor  = 10.4258
  norm       = 0.0001
  norm       = 87.9461
  norm       = 0.335773
  Prefactor  = 0.00010003
  Normalizat = 1.37217
  Prefactor  = 0.845388
 **********
 **   18 **HESSE 
 **********

 FCN=   6314.403     FROM HESSE     STATUS=OK           325 CALLS     2550 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7034        18.596        .13581E-03   -1.5118    
   2  Prefactor     45.226        53.972        .59613E-04   -1.4362    
   3  Prefactor     14.316        25.986        .10597E-03   -1.4951    
   4  norm          66.726        120.58        .49141E-04   -1.4072    
   5  Prefactor     .10000E-03    13.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0083        231.95        .66926E-02   -1.5507    
   7  Prefactor     .10000E-03    14.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8228        35.275        .18305E-03   -1.5269    
   9  norm          .10000E-03    1.1107        .12716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.8991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    10.028        .27324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.1171        31.171        .14062E-03   -1.5138    
  13  norm          .92390        .60926        .50041E-03   -1.5516    
  14  Prefactor     .10000E-03    4.1005        .15704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.426        22.967        .12416E-03   -1.5062    
  16  norm          .10000E-03    1.9945        .10956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          87.946        49.185        .21434E-03   -1.3830    
  18  norm          .33577        3.0139        .26535E-03   -1.5592    
  19  Prefactor     .10003E-03    198.05        .20904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3722        .23684        .24720E-03   -.81437    
  21  Prefactor     .84539        .18851        .24880E-03   -.98076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33201e-08
Minuit parameter uncertainties:
  1  18.6086
  2  54.0308
  3  26.0063
  4  121.029
  5  2.12664e-05
  6  30.7048
  7  3.02491e-05
  8  26.1077
  9  5.56718e-06
  10  1.02978e-05
  11  0.000941235
  12  31.2336
  13  0.609261
  14  2.78307e-05
  15  22.9862
  16  4.30941e-07
  17  49.2074
  18  2.01179
  19  0.00487275
  20  0.237026
  21  0.188651
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  1.030e-05  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:  8.454e-01  1.887e-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.372e+00  2.370e-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: 9.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/585043/likelihoodResults_431913601_432172801_4FGL_J0836.2+2141_daily_bin743.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) = 6314.40359954
delta logL = -0.000481495220811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6314.40311812
delta logL = -7.91278580436e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7006       1.0000          .0000       10.000    
     3 'Normalizat'    1.3721       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84546       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=   6314.403     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      270 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8843        .92004E-01** at limit **
   2  Index         1.9918        8.3365        .50000       -.21057E-06
   3  Normalizat    1.3722        .48946E-02    .24720E-03   -.75312E-03
   4  Prefactor     .84539        .39977E-02    .24880E-03   -.73367E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.99176
  Normalizat = 1.37216
  Prefactor  = 0.845387
 **********
 **   18 **HESSE 
 **********

 FCN=   6314.403     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      301 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    928.81        .34210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9918        5.9466        .50000       -.64556    
   3  Normalizat    1.3722        .32132E-01    .49440E-04   -.81437    
   4  Prefactor     .84539        .26249E-01    .49761E-04   -.98076    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.27689e-10
Minuit parameter uncertainties:
  1  0.00115744
  2  556.554
  3  0.0321327
  4  0.026249
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/585043': 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) = 6314.40311505
delta logL = 2.99665771308e-06

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  1.157e-03  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  1.992e+00  5.566e+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:  8.454e-01  2.625e-02  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.372e+00  3.213e-02  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/585043/cmap_HighResolution_431913601_432172801_4FGL_J0836.2+2141_daily_bin743.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.42e-03', job_status='DONE', photon_flux_upper_limit='9.41e-08', time_completed='2021-08-30 02:20:42.001127', job_id='585043', GAL2='0.85', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630315242.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.00e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='743' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:20:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 585043: <4FGL_J0836.2+2141_daily_bin743> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin743 129.051 21.6971 431913601 432172801 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 :                                   621.05 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             244.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            873 sec.

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

