/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 4 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 = 7559
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0836.2+2141_daily_bin351
RA = 129.051, Dec = 21.6971
tmin = 330307201, tmax = 330566401
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='583199', job_status='RUN', time_executed='2021-08-30 02:02:42.885488', time_epoch_executed='1630314162.89' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='351'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/583199

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/583199/ft1_4FGL_J0836.2+2141_daily_bin351.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/583199/ft2_4FGL_J0836.2+2141_daily_bin351.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/583199/ft1_4FGL_J0836.2+2141_daily_bin351.fits outfile=/scratch/kocevski/583199/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin351.fits ra=129.051 dec=21.6971 rad=12.0 tmin=330307201.0 tmax=330566401.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 12.30
user 3.61
sys 8.55

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/583199/ft2_4FGL_J0836.2+2141_daily_bin351.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/583199/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin351.fits evtable="EVENTS" outfile="/scratch/kocevski/583199/ft1_filtered_4FGL_J0836.2+2141_daily_bin351.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 7.93
user 0.34
sys 7.50

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/583199/ft1_filtered_4FGL_J0836.2+2141_daily_bin351.fits evtable="EVENTS" scfile=/scratch/kocevski/583199/ft2_4FGL_J0836.2+2141_daily_bin351.fits sctable="SC_DATA" expcube=/scratch/kocevski/583199/ltcube_330307201_330566401_4FGL_J0836.2+2141_daily_bin351.fits outfile=/scratch/kocevski/583199/expmap_330307201_330566401_4FGL_J0836.2+2141_daily_bin351.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/583199/ltcube_330307201_330566401_4FGL_J0836.2+2141_daily_bin351.fits
.....................!
real 200.17
user 186.07
sys 13.70

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/583199/ft1_filtered_4FGL_J0836.2+2141_daily_bin351.fits scfile=/scratch/kocevski/583199/ft2_4FGL_J0836.2+2141_daily_bin351.fits outfile=/scratch/kocevski/583199/cmap_330307201_330566401_4FGL_J0836.2+2141_daily_bin351.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 7.91
user 0.38
sys 7.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/583199/ft1_filtered_4FGL_J0836.2+2141_daily_bin351.fits scfile=/scratch/kocevski/583199/ft2_4FGL_J0836.2+2141_daily_bin351.fits outfile=/scratch/kocevski/583199/cmap_HighResolution_330307201_330566401_4FGL_J0836.2+2141_daily_bin351.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 8.01
user 0.40
sys 7.52

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6869       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.2879       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2172       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.155       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.786       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    20.302       1.0000         .10000E-03   10000.    
    18 'norm      '    2.7374       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.9567       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0318       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0908       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=   6501.176     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2169 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.016        .12426E-05** at limit **
   2  Prefactor     .10000E-03    68.803       -.42696E-04** at limit **
   3  Prefactor     .10000E-03    25.991       -.65792E-05** at limit **
   4  norm          .10000E-03    54.700        .41407E-04** at limit **
   5  Prefactor     8.6862        20.842       -.23193E-06   -.11397E-04
   6  Prefactor     .10000E-03    10.280        .16999E-05** at limit **
   7  Prefactor     9.2869        19.348       -.25319E-06   -.15337E-04
   8  Prefactor     .10000E-03    12.251       -.86991E-05** at limit **
   9  norm          .10000E-03    .43590       -.56680E-07** at limit **
  10  Prefactor     .10000E-03    8.0416       -.15469E-06** at limit **
  11  Prefactor     .10000E-03    2.4343        .16536E-06** at limit **
  12  Prefactor     .10000E-03    13.567        .72784E-05** at limit **
  13  norm          1.2173        .85337        .66259E-07   -.62306E-03
  14  Prefactor     10.155        12.641        .39847E-07   -.30262E-04
  15  Prefactor     15.790        20.690        .73737E-06   -.15055E-04
  16  norm          .10000E-03    1.8235        .15479E-06** at limit **
  17  norm          20.302        27.500       -.65170E-06   -.32540E-05
  18  norm          2.7376        2.2913        .70538E-09   -.14759E-04
  19  Prefactor     7.9556        40.332       -.25263E-05   -.86932E-05
  20  Normalizat    1.0317        .18633       -.33595E-06    .10072E-03
  21  Prefactor     1.0909        .15257        .11529E-06    .84567E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.68621
  Prefactor  = 0.0001
  Prefactor  = 9.28691
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.21728
  Prefactor  = 10.155
  Prefactor  = 15.79
  norm       = 0.0001
  norm       = 20.3016
  norm       = 2.73758
  Prefactor  = 7.95564
  Normalizat = 1.03166
  Prefactor  = 1.09088
 **********
 **   18 **HESSE 
 **********

 FCN=   6501.176     FROM HESSE     STATUS=OK           315 CALLS     2484 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    68.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    54.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.6862        20.835        .13600E-03   -1.5118    
   6  Prefactor     .10000E-03    10.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.2869        19.343        .13150E-03   -1.5098    
   8  Prefactor     .10000E-03    12.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .44596        .10384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.2253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.4426        .12284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2173        .83458        .56727E-04   -1.5487    
  14  Prefactor     10.155        12.640        .12574E-03   -1.5071    
  15  Prefactor     15.790        20.845        .10081E-03   -1.4913    
  16  norm          .10000E-03    1.8239        .10633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          20.302        27.503        .88892E-04   -1.4807    
  18  norm          2.7376        2.2875        .10842E-03   -1.5377    
  19  Prefactor     7.9556        40.360        .14214E-03   -1.5144    
  20  Normalizat    1.0317        .22056        .26940E-03   -.91977    
  21  Prefactor     1.0909        .18059        .21898E-03   -.89759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32576e-11
Minuit parameter uncertainties:
  1  3.62647e-06
  2  0.000183342
  3  6.8564e-06
  4  1.07186e-05
  5  20.8524
  6  1.94587e-06
  7  19.3563
  8  1.09785e-05
  9  9.41284e-07
  10  4.22398e-06
  11  3.82318e-09
  12  2.41231e-06
  13  0.834588
  14  12.6438
  15  20.8547
  16  2.54454e-08
  17  27.5198
  18  2.28756
  19  35.8761
  20  0.220756
  21  0.180689
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  4.224e-06  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.091e+00  1.807e-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.032e+00  2.208e-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.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/583199/likelihoodResults_330307201_330566401_4FGL_J0836.2+2141_daily_bin351.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) = 6501.17676327
delta logL = -0.000579491698772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6501.17618594
delta logL = -2.16683110921e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6978       1.0000          .0000       10.000    
     3 'Normalizat'    1.0312       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0912       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=   6501.176     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      260 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5521        .68786E-01** at limit **
   2  Index         2.3730        7.9445        .50000        .24786E-06
   3  Normalizat    1.0317        .31797E-02    .26941E-03    .14635E-02
   4  Prefactor     1.0909        .26644E-02    .21898E-03    .19494E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.37296
  Normalizat = 1.03166
  Prefactor  = 1.09088
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    126.68        .36588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3730        5.3984        .50000       -.55319    
   3  Normalizat    1.0317        .16059E-01    .53881E-04   -.91977    
   4  Prefactor     1.0909        .13456E-01    .43797E-04   -.89759    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.13819e-10
Minuit parameter uncertainties:
  1  0.000178763
  2  373.464
  3  0.0160592
  4  0.0134564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/583199': 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) = 6501.17618232
delta logL = 1.45760441228e-06

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  1.788e-04  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.373e+00  3.735e+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.091e+00  1.346e-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.032e+00  1.606e-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/583199/cmap_HighResolution_330307201_330566401_4FGL_J0836.2+2141_daily_bin351.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.75e-03', job_status='DONE', photon_flux_upper_limit='8.56e-08', time_completed='2021-08-30 02:14:30.903032', job_id='583199', GAL2='1.09', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630314870.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.46e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='351' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:14:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 583199: <4FGL_J0836.2+2141_daily_bin351> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin351> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 30 02:00:31 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:00:33 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:00:33 2021
Terminated at Mon Aug 30 02:14:33 2021
Results reported at Mon Aug 30 02:14:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin351 129.051 21.6971 330307201 330566401 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 :                                   819.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            842 sec.

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

