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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1306
RA = 129.051, Dec = 21.6971
tmin = 577843201, tmax = 578102401
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='588288', job_status='RUN', time_executed='2021-08-30 02:19:56.454263', time_epoch_executed='1630315196.45' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588288

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588288/ft1_4FGL_J0836.2+2141_daily_bin1306.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588288/ft2_4FGL_J0836.2+2141_daily_bin1306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588288/ft1_4FGL_J0836.2+2141_daily_bin1306.fits outfile=/scratch/kocevski/588288/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1306.fits ra=129.051 dec=21.6971 rad=12.0 tmin=577843201.0 tmax=578102401.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 6.74
user 3.05
sys 3.67

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588288/ft1_filtered_4FGL_J0836.2+2141_daily_bin1306.fits" evtable="EVENTS" scfile=/scratch/kocevski/588288/ft2_4FGL_J0836.2+2141_daily_bin1306.fits sctable="SC_DATA" outfile=/scratch/kocevski/588288/ltcube_577843201_578102401_4FGL_J0836.2+2141_daily_bin1306.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/588288/ft2_4FGL_J0836.2+2141_daily_bin1306.fits
.....................!
real 15.94
user 11.61
sys 4.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588288/ft1_filtered_4FGL_J0836.2+2141_daily_bin1306.fits evtable="EVENTS" scfile=/scratch/kocevski/588288/ft2_4FGL_J0836.2+2141_daily_bin1306.fits sctable="SC_DATA" expcube=/scratch/kocevski/588288/ltcube_577843201_578102401_4FGL_J0836.2+2141_daily_bin1306.fits outfile=/scratch/kocevski/588288/expmap_577843201_578102401_4FGL_J0836.2+2141_daily_bin1306.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/588288/ltcube_577843201_578102401_4FGL_J0836.2+2141_daily_bin1306.fits
.....................!
real 195.13
user 184.98
sys 9.74

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/588288/ft1_filtered_4FGL_J0836.2+2141_daily_bin1306.fits scfile=/scratch/kocevski/588288/ft2_4FGL_J0836.2+2141_daily_bin1306.fits outfile=/scratch/kocevski/588288/cmap_577843201_578102401_4FGL_J0836.2+2141_daily_bin1306.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 3.96
user 0.37
sys 3.55

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588288/ft1_filtered_4FGL_J0836.2+2141_daily_bin1306.fits scfile=/scratch/kocevski/588288/ft2_4FGL_J0836.2+2141_daily_bin1306.fits outfile=/scratch/kocevski/588288/cmap_HighResolution_577843201_578102401_4FGL_J0836.2+2141_daily_bin1306.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 3.99
user 0.37
sys 3.57

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    73.587       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9152       1.0000         .10000E-03   10000.    
     4 'norm      '    20.026       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.944       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11138E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6650       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.544       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11993E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2130       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5000       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .44433       1.0000         .10000E-03   10000.    
    16 'norm      '    4.3544       1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.7623       1.0000         .10000E-03   10000.    
    19 'Prefactor '    60.940       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .96061       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1768       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=   8259.667     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2238 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.405        .11170E-05** at limit **
   2  Prefactor     73.565        48.582        .33532E-05    .11532E-03
   3  Prefactor     6.9077        38.882        .23776E-05    .98265E-05
   4  norm          19.989        69.736        .11038E-04    .56051E-04
   5  Prefactor     .10000E-03    8.8733        .89328E-07** at limit **
   6  Prefactor     .10000E-03    19.444        .70370E-06** at limit **
   7  Prefactor     12.941        16.140        .32511E-06    .21462E-04
   8  Prefactor     .10000E-03    64.000       -.43956E-06** at limit **
   9  norm          1.6647        1.1550        .80721E-07   -.57856E-05
  10  Prefactor     17.546        10.408        .16738E-06   -.34058E-03
  11  Prefactor     .10016E-03    7.9257        .53724E-05** at limit **
  12  Prefactor     .10000E-03    7.1396        .29517E-07** at limit **
  13  norm          1.2128        .84047       -.18942E-06    .85208E-04
  14  Prefactor     2.4983        24.553        .11621E-04    .33336E-03
  15  Prefactor     .37231        11.006       -.17214E-05    .19030E-03
  16  norm          4.3543        4.4859        .14126E-07   -.15564E-04
  17  norm          .10000E-03    11.027       -.11049E-05** at limit **
  18  norm          1.7628        2.0954        .75814E-07    .57945E-04
  19  Prefactor     60.938        47.134        .15470E-06    .26240E-05
  20  Normalizat    .96109        .17990       -.16516E-05   -.29048E-03
  21  Prefactor     1.1765        .14549        .22975E-07   -.26753E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 73.5648
  Prefactor  = 6.90769
  norm       = 19.9895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9413
  Prefactor  = 0.0001
  norm       = 1.6647
  Prefactor  = 17.5455
  Prefactor  = 0.000100165
  Prefactor  = 0.0001
  norm       = 1.21275
  Prefactor  = 2.49833
  Prefactor  = 0.372309
  norm       = 4.3543
  norm       = 0.0001
  norm       = 1.76282
  Prefactor  = 60.9379
  Normalizat = 0.961089
  Prefactor  = 1.17653
 **********
 **   18 **HESSE 
 **********

 FCN=   8259.667     FROM HESSE     STATUS=OK           319 CALLS     2557 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     73.565        48.923        .46803E-04   -1.3990    
   3  Prefactor     6.9077        38.939        .15256E-03   -1.5182    
   4  norm          19.989        70.169        .89502E-04   -1.4813    
   5  Prefactor     .10000E-03    8.8882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.941        16.147        .55667E-03   -1.4988    
   8  Prefactor     .10000E-03    66.054        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6647        1.1440        .75302E-04   -1.5450    
  10  Prefactor     17.546        10.358        .95622E-04   -1.4870    
  11  Prefactor     .10016E-03    21.110        .34863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.1437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2128        .83632        .60035E-04   -1.5488    
  14  Prefactor     2.4983        27.604        .12924E-02   -1.5392    
  15  Prefactor     .37231        164.12        .53878E-02   -1.5586    
  16  norm          4.3543        4.4865        .19067E-03   -1.5291    
  17  norm          .10000E-03    11.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7628        2.0759        .13864E-03   -1.5442    
  19  Prefactor     60.938        47.134        .51398E-04   -1.4145    
  20  Normalizat    .96109        .21013        .28157E-03   -.94346    
  21  Prefactor     1.1765        .16785        .22063E-03   -.87057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29406e-08
Minuit parameter uncertainties:
  1  2.03178e-05
  2  48.9494
  3  32.8336
  4  70.4612
  5  6.29659e-06
  6  5.34639e-05
  7  16.152
  8  5.6866e-05
  9  1.14398
  10  10.3587
  11  0.00373365
  12  3.44406e-06
  13  0.836324
  14  16.6182
  15  15.6752
  16  4.48685
  17  4.46674e-05
  18  2.07602
  19  47.1632
  20  0.210308
  21  0.167924
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.755e+01  1.036e+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:  1.177e+00  1.679e-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.611e-01  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.31
Ra Dec: 129.051 21.697
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 8.61e-08 +/- 5.08e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.20e-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): 102
logL (Free Index) = 8258.4060526
delta logL = 1.26095117108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8258.22165024
delta logL = 1.44535352959

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32093E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    7.6860       1.0000          .0000       10.000    
     3 'Normalizat'    .86988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2528       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=   8258.222     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      337 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31277E-01    .18875        .15846E-02    .19433E-01
   2  Index         7.7030        2.7924        .14008        .26707E-03
   3  Normalizat    .87043        .54302E-01    .66528E-01    .18096E-03
   4  Prefactor     1.2523        .46669E-01    .48673E-01    .44155E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0312768
  Index      = 7.703
  Normalizat = 0.870431
  Prefactor  = 1.25228
 **********
 **   18 **HESSE 
 **********

 FCN=   8258.222     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      368 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31277E-01    .32954        .70921E-05   -1.5673    
   2  Index         7.7030        7.4372        .59236E-02    .57115    
   3  Normalizat    .87043        .17516        .29431E-03   -.97507    
   4  Prefactor     1.2523        .14772        .21517E-03   -.84737    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.72949e-10
Minuit parameter uncertainties:
  1  0.202723
  2  4.2921
  3  0.175275
  4  0.147769
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588288': 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) = 8258.22163676
delta logL = 1.44536700997

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  3.128e-02  2.027e-01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  7.703e+00  4.292e+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:  1.252e+00  1.478e-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.704e-01  1.753e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.81
Ra Dec: 129.051 21.697
Photon Index (Free Index): 7.70 +/- 4.29
Photon Flux (Free Index): 1.31e-07 +/- 6.05e-08
Energy Flux (Free Index): 1.53e-05 +/- 7.74e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/588288/cmap_HighResolution_577843201_578102401_4FGL_J0836.2+2141_daily_bin1306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.61e-08', energy_flux2='1.53e-05', photon_flux_error='5.08e-08', dlogl='1.45e+00', energy_flux='2.02e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-08-30 02:31:12.115805', photon_index_error2='4.29', photon_index2='7.70', ts='4.31', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='7.74e-06', EG='0.96', time_epoch_completed='1630315872.12', return_code='0', job_id='588288', GAL2='1.25', EG2='0.87', return_code2='102', energy_flux_error='1.20e-05', photon_flux_error2='6.05e-08', ts2='7.81', photon_index='2.73' WHERE bin_id='1306' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:31:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0142>
Subject: Job 588288: <4FGL_J0836.2+2141_daily_bin1306> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin1306> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 02:15:53 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:15:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 02:15:54 2021
Terminated at Mon Aug 30 02:31:14 2021
Results reported at Mon Aug 30 02:31:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1306 129.051 21.6971 577843201 578102401 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 :                                   724.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

