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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin982
RA = 129.051, Dec = 21.6971
tmin = 493862401, tmax = 494121601
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='586527', job_status='RUN', time_executed='2021-08-30 02:11:02.925810', time_epoch_executed='1630314662.93' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='982'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/586527

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/586527/ft1_4FGL_J0836.2+2141_daily_bin982.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/586527/ft2_4FGL_J0836.2+2141_daily_bin982.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/586527/ft1_4FGL_J0836.2+2141_daily_bin982.fits outfile=/scratch/kocevski/586527/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin982.fits ra=129.051 dec=21.6971 rad=12.0 tmin=493862401.0 tmax=494121601.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.94
user 3.34
sys 0.56

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/586527/ft2_4FGL_J0836.2+2141_daily_bin982.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/586527/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin982.fits evtable="EVENTS" outfile="/scratch/kocevski/586527/ft1_filtered_4FGL_J0836.2+2141_daily_bin982.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.87
user 0.31
sys 0.50

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/586527/ft1_filtered_4FGL_J0836.2+2141_daily_bin982.fits" evtable="EVENTS" scfile=/scratch/kocevski/586527/ft2_4FGL_J0836.2+2141_daily_bin982.fits sctable="SC_DATA" outfile=/scratch/kocevski/586527/ltcube_493862401_494121601_4FGL_J0836.2+2141_daily_bin982.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/586527/ft2_4FGL_J0836.2+2141_daily_bin982.fits
.....................!
real 12.31
user 11.34
sys 0.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/586527/ft1_filtered_4FGL_J0836.2+2141_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/586527/ft2_4FGL_J0836.2+2141_daily_bin982.fits sctable="SC_DATA" expcube=/scratch/kocevski/586527/ltcube_493862401_494121601_4FGL_J0836.2+2141_daily_bin982.fits outfile=/scratch/kocevski/586527/expmap_493862401_494121601_4FGL_J0836.2+2141_daily_bin982.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/586527/ltcube_493862401_494121601_4FGL_J0836.2+2141_daily_bin982.fits
.....................!
real 193.81
user 186.66
sys 6.04

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/586527/ft1_filtered_4FGL_J0836.2+2141_daily_bin982.fits scfile=/scratch/kocevski/586527/ft2_4FGL_J0836.2+2141_daily_bin982.fits outfile=/scratch/kocevski/586527/cmap_493862401_494121601_4FGL_J0836.2+2141_daily_bin982.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.07
user 0.38
sys 0.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/586527/ft1_filtered_4FGL_J0836.2+2141_daily_bin982.fits scfile=/scratch/kocevski/586527/ft2_4FGL_J0836.2+2141_daily_bin982.fits outfile=/scratch/kocevski/586527/cmap_HighResolution_493862401_494121601_4FGL_J0836.2+2141_daily_bin982.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.00
user 0.38
sys 0.51

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.020       1.0000         .10000E-03   10000.    
     2 'Prefactor '    65.886       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .24198E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    49.145       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11155E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2777       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4397       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    52.524       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0746       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .71539       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.884       1.0000         .10000E-03   10000.    
    16 'norm      '    8.9777       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10795E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .66629       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1874       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=   5338.036     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2201 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.997        19.896        .48871E-05   -.22212E-04
   2  Prefactor     65.883        47.095       -.10685E-05   -.25665E-04
   3  Prefactor     .10000E-03    17.047       -.89080E-05** at limit **
   4  norm          .10000E-03    163.39        .11722E-03** at limit **
   5  Prefactor     49.177        33.805        .52186E-05    .54582E-04
   6  Prefactor     .10000E-03    69.377       -.84372E-05** at limit **
   7  Prefactor     .10000E-03    17.073        .88347E-05** at limit **
   8  Prefactor     6.2794        20.044       -.11545E-05   -.44203E-04
   9  norm          1.4397        1.2063        .27741E-07   -.47181E-03
  10  Prefactor     .10000E-03    2.3178        .69425E-07** at limit **
  11  Prefactor     .10000E-03    2.3294        .76355E-07** at limit **
  12  Prefactor     52.529        43.380        .22100E-05   -.25865E-05
  13  norm          2.0748        .89957        .29103E-07    .12310E-03
  14  Prefactor     .71356        10.315       -.21194E-06   -.28805E-03
  15  Prefactor     12.883        13.705        .66775E-07    .53656E-04
  16  norm          8.9777        7.9175        .98186E-06   -.21855E-04
  17  norm          .10000E-03    11.607        .14832E-06** at limit **
  18  norm          .10000E-03    .70128       -.99335E-07** at limit **
  19  Prefactor     .10003E-03    225.18       -.16338E-03** at limit **
  20  Normalizat    .66635        .19642       -.24704E-06    .24203E-03
  21  Prefactor     1.1873        .16634       -.55130E-06    .30374E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.9969
  Prefactor  = 65.883
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 49.1773
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 6.27935
  norm       = 1.43967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.5289
  norm       = 2.07483
  Prefactor  = 0.713561
  Prefactor  = 12.8832
  norm       = 8.97774
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100026
  Normalizat = 0.666349
  Prefactor  = 1.18733
 **********
 **   18 **HESSE 
 **********

 FCN=   5338.036     FROM HESSE     STATUS=OK           315 CALLS     2516 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.997        19.883        .10697E-03   -1.4960    
   2  Prefactor     65.883        47.106        .49444E-04   -1.4083    
   3  Prefactor     .10000E-03    17.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    164.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     49.177        33.754        .57202E-04   -1.4304    
   6  Prefactor     .10000E-03    69.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.2794        19.989        .16021E-03   -1.5207    
   9  norm          1.4397        1.1849        .62767E-04   -1.5468    
  10  Prefactor     .10000E-03    2.3224        .10861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.3396        .10888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     52.529        43.475        .55340E-04   -1.4257    
  13  norm          2.0748        .88937        .41984E-04   -1.5420    
  14  Prefactor     .71356        34.441        .43079E-02   -1.5539    
  15  Prefactor     12.883        13.739        .11159E-03   -1.4990    
  16  norm          8.9777        7.9170        .13377E-03   -1.5109    
  17  norm          .10000E-03    11.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .70233        .59748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10003E-03    226.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .66635        .22549        .29251E-03   -1.0524    
  21  Prefactor     1.1873        .19254        .19968E-03   -.86722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12559e-09
Minuit parameter uncertainties:
  1  19.8924
  2  47.1325
  3  1.97646e-05
  4  0.00064331
  5  33.7666
  6  0.000870634
  7  2.25881e-05
  8  20.0101
  9  1.18491
  10  8.34761e-07
  11  6.02382e-07
  12  43.5013
  13  0.889372
  14  9.92012
  15  13.7419
  16  7.91796
  17  1.39316e-05
  18  4.18414e-07
  19  0.00485037
  20  0.225802
  21  0.192656
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  8.348e-07  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.187e+00  1.927e-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.663e-01  2.258e-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: 5.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/586527/likelihoodResults_493862401_494121601_4FGL_J0836.2+2141_daily_bin982.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) = 5338.03815567
delta logL = -0.00202541689487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5338.03613004
delta logL = 2.21737536776e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7147       1.0000          .0000       10.000    
     3 'Normalizat'    .66635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1873       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=   5338.036     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      246 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.573        .10979E-01** at limit **
   2  Index         2.1353        6.0089        .50000        .30550E-06
   3  Normalizat    .66635        .14556E-01    .29251E-03   -.13214E-04
   4  Prefactor     1.1873        .13009E-01    .19968E-03   -.10453E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.13525
  Normalizat = 0.666348
  Prefactor  = 1.18733
 **********
 **   18 **HESSE 
 **********

 FCN=   5338.036     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    236.17        .12195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1353        5.2715        .50000       -.61010    
   3  Normalizat    .66635        .45244E-01    .11700E-04   -1.0524    
   4  Prefactor     1.1873        .40437E-01    .39935E-04   -.86722    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.60709e-09
Minuit parameter uncertainties:
  1  3.41795e-05
  2  883.834
  3  0.045246
  4  0.040438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/586527': 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) = 5338.03612581
delta logL = 4.44887609774e-06

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  3.418e-05  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.135e+00  8.838e+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:  1.187e+00  4.044e-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:  6.663e-01  4.525e-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/586527/cmap_HighResolution_493862401_494121601_4FGL_J0836.2+2141_daily_bin982.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-03', job_status='DONE', photon_flux_upper_limit='5.76e-08', time_completed='2021-08-30 02:20:26.223213', job_id='586527', GAL2='1.19', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1630315226.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='4.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='982' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:20:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 586527: <4FGL_J0836.2+2141_daily_bin982> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin982 129.051 21.6971 493862401 494121601 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 :                                   564.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             330.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   581 sec.
    Turnaround time :                            583 sec.

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

