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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1006
RA = 129.051, Dec = 21.6971
tmin = 500083201, tmax = 500342401
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='586562', job_status='RUN', time_executed='2021-08-30 02:11:28.207841', time_epoch_executed='1630314688.21' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/586562

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/586562/ft1_4FGL_J0836.2+2141_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/586562/ft2_4FGL_J0836.2+2141_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/586562/ft1_4FGL_J0836.2+2141_daily_bin1006.fits outfile=/scratch/kocevski/586562/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1006.fits ra=129.051 dec=21.6971 rad=12.0 tmin=500083201.0 tmax=500342401.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 7.44
user 5.44
sys 1.86

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/586562/ft1_filtered_4FGL_J0836.2+2141_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/586562/ft2_4FGL_J0836.2+2141_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/586562/ltcube_500083201_500342401_4FGL_J0836.2+2141_daily_bin1006.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/586562/ft2_4FGL_J0836.2+2141_daily_bin1006.fits
.....................!
real 16.92
user 14.62
sys 2.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/586562/ft1_filtered_4FGL_J0836.2+2141_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/586562/ft2_4FGL_J0836.2+2141_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/586562/ltcube_500083201_500342401_4FGL_J0836.2+2141_daily_bin1006.fits outfile=/scratch/kocevski/586562/expmap_500083201_500342401_4FGL_J0836.2+2141_daily_bin1006.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/586562/ltcube_500083201_500342401_4FGL_J0836.2+2141_daily_bin1006.fits
.....................!
real 192.76
user 185.15
sys 6.16

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/586562/ft1_filtered_4FGL_J0836.2+2141_daily_bin1006.fits scfile=/scratch/kocevski/586562/ft2_4FGL_J0836.2+2141_daily_bin1006.fits outfile=/scratch/kocevski/586562/cmap_500083201_500342401_4FGL_J0836.2+2141_daily_bin1006.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 2.15
user 0.36
sys 1.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/586562/ft1_filtered_4FGL_J0836.2+2141_daily_bin1006.fits scfile=/scratch/kocevski/586562/ft2_4FGL_J0836.2+2141_daily_bin1006.fits outfile=/scratch/kocevski/586562/cmap_HighResolution_500083201_500342401_4FGL_J0836.2+2141_daily_bin1006.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 2.23
user 0.39
sys 1.71

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    78.653       1.0000         .10000E-03   10000.    
     2 'Prefactor '    62.164       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.099       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.870       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.245       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .47705       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0710       1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.572       1.0000         .10000E-03   10000.    
    16 'norm      '    7.5314       1.0000         .10000E-03   10000.    
    17 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    97.451       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2843       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78186       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=   6117.982     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2212 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     78.648        32.275       -.14770E-05   -.11562E-04
   2  Prefactor     62.156        61.124       -.82502E-05   -.26446E-05
   3  Prefactor     .10000E-03    18.886        .52128E-06** at limit **
   4  norm          .10000E-03    47.771        .48495E-04** at limit **
   5  Prefactor     .10000E-03    8.5627        .52566E-08** at limit **
   6  Prefactor     25.099        26.977       -.18850E-06    .34352E-05
   7  Prefactor     20.869        37.325       -.23196E-05    .96426E-06
   8  Prefactor     16.243        22.994       -.72633E-06    .11028E-06
   9  norm          .10000E-03    .48312        .13699E-08** at limit **
  10  Prefactor     .10000E-03    6.0095       -.85594E-07** at limit **
  11  Prefactor     .10000E-03    6.3463       -.26968E-10** at limit **
  12  Prefactor     .10000E-03    43.806       -.39973E-04** at limit **
  13  norm          .47705        .84052       -.20040E-06   -.14739E-02
  14  Prefactor     2.0686        34.947       -.12127E-05   -.88543E-04
  15  Prefactor     33.570        20.869        .11464E-06    .41470E-04
  16  norm          7.5315        5.9063       -.21605E-06    .75101E-04
  17  norm          .10000E-03    124.64       -.19098E-04** at limit **
  18  norm          .10000E-03    1.4078       -.35167E-07** at limit **
  19  Prefactor     97.440        67.472       -.91193E-05    .45421E-04
  20  Normalizat    1.2844        .19691        .15222E-05    .23307E-03
  21  Prefactor     .78177        .15513        .87130E-06    .25366E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 78.6484
  Prefactor  = 62.1556
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.0994
  Prefactor  = 20.8692
  Prefactor  = 16.2425
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.477047
  Prefactor  = 2.06856
  Prefactor  = 33.5697
  norm       = 7.53148
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 97.44
  Normalizat = 1.2844
  Prefactor  = 0.781769
 **********
 **   18 **HESSE 
 **********

 FCN=   6117.982     FROM HESSE     STATUS=OK           315 CALLS     2527 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     78.648        32.289        .45282E-04   -1.3932    
   2  Prefactor     62.156        61.253        .50893E-04   -1.4130    
   3  Prefactor     .10000E-03    18.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    47.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.5640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.099        26.977        .79958E-04   -1.4706    
   7  Prefactor     20.869        37.354        .87675E-04   -1.4794    
   8  Prefactor     16.243        22.945        .99370E-04   -1.4902    
   9  norm          .10000E-03    .49431        .10568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.0862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.4450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    43.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .47705        .72456        .77144E-03   -1.5570    
  14  Prefactor     2.0686        30.523        .28705E-03   -1.5420    
  15  Prefactor     33.570        20.938        .69159E-04   -1.4549    
  16  norm          7.5315        5.9074        .14613E-03   -1.5159    
  17  norm          .10000E-03    125.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.4330        .90604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     97.440        67.412        .40719E-04   -1.3731    
  20  Normalizat    1.2844        .23251        .24798E-03   -.84033    
  21  Prefactor     .78177        .18219        .24924E-03   -1.0040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42705e-10
Minuit parameter uncertainties:
  1  32.2964
  2  61.3155
  3  2.87952e-06
  4  7.48486e-06
  5  9.32227e-07
  6  26.9904
  7  37.3953
  8  22.9575
  9  1.20365e-06
  10  1.22152e-05
  11  1.49157e-05
  12  1.35528e-05
  13  0.724571
  14  15.9013
  15  20.9422
  16  5.90785
  17  0.000941629
  18  2.17731e-06
  19  67.4649
  20  0.232703
  21  0.182335
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  1.222e-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:  7.818e-01  1.823e-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.284e+00  2.327e-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: 8.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/586562/likelihoodResults_500083201_500342401_4FGL_J0836.2+2141_daily_bin1006.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) = 6117.98291548
delta logL = -0.000783002694334

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6117.98213256
delta logL = -8.03120201454e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7244       1.0000          .0000       10.000    
     3 'Normalizat'    1.2844       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78182       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=   6117.982     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10031E-03    153.26        .18142E-02** at limit **
   2  Index         2.6862        5.9518        .50000        .69468E-05
   3  Normalizat    1.2844        .24832E-01    .24798E-03    .74866E-04
   4  Prefactor     .78177        .20105E-01    .24924E-03    .63403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100314
  Index      = 2.68619
  Normalizat = 1.2844
  Prefactor  = 0.781768
 **********
 **   18 **HESSE 
 **********

 FCN=   6117.982     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10031E-03    607.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6862        8.6549        .50000       -.48111    
   3  Normalizat    1.2844        .55639E-01    .99190E-05   -.84033    
   4  Prefactor     .78177        .45047E-01    .99695E-05   -1.0040    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.56797e-08
Minuit parameter uncertainties:
  1  0.0279082
  2  1411.42
  3  0.0556417
  4  0.0450493
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/586562': 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) = 6117.98213242
delta logL = 5.70889824303e-08

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.003e-04  2.791e-02  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.686e+00  1.411e+03  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:  7.818e-01  4.505e-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.284e+00  5.564e-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/586562/cmap_HighResolution_500083201_500342401_4FGL_J0836.2+2141_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.64e-03', job_status='DONE', photon_flux_upper_limit='8.42e-08', time_completed='2021-08-30 02:21:53.525168', job_id='586562', GAL2='0.78', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1630315313.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='5.71e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1006' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:21:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0116>
Subject: Job 586562: <4FGL_J0836.2+2141_daily_bin1006> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1006 129.051 21.6971 500083201 500342401 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 :                                   645.27 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             315.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   667 sec.
    Turnaround time :                            670 sec.

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

