/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 237 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 = 7405
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0836.2+2141_daily_bin93
RA = 129.051, Dec = 21.6971
tmin = 263433601, tmax = 263692801
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='581662', job_status='RUN', time_executed='2021-08-30 02:00:17.142613', time_epoch_executed='1630314017.14' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/581662

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/581662/ft1_4FGL_J0836.2+2141_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/581662/ft2_4FGL_J0836.2+2141_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/581662/ft1_4FGL_J0836.2+2141_daily_bin93.fits outfile=/scratch/kocevski/581662/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin93.fits ra=129.051 dec=21.6971 rad=12.0 tmin=263433601.0 tmax=263692801.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 4.35
user 3.21
sys 1.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/581662/ft2_4FGL_J0836.2+2141_daily_bin93.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/581662/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin93.fits evtable="EVENTS" outfile="/scratch/kocevski/581662/ft1_filtered_4FGL_J0836.2+2141_daily_bin93.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.41
user 0.32
sys 1.04

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/581662/ft1_filtered_4FGL_J0836.2+2141_daily_bin93.fits" evtable="EVENTS" scfile=/scratch/kocevski/581662/ft2_4FGL_J0836.2+2141_daily_bin93.fits sctable="SC_DATA" outfile=/scratch/kocevski/581662/ltcube_263433601_263692801_4FGL_J0836.2+2141_daily_bin93.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/581662/ft2_4FGL_J0836.2+2141_daily_bin93.fits
.....................!
real 13.99
user 12.64
sys 1.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/581662/ft1_filtered_4FGL_J0836.2+2141_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/581662/ft2_4FGL_J0836.2+2141_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/581662/ltcube_263433601_263692801_4FGL_J0836.2+2141_daily_bin93.fits outfile=/scratch/kocevski/581662/expmap_263433601_263692801_4FGL_J0836.2+2141_daily_bin93.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/581662/ltcube_263433601_263692801_4FGL_J0836.2+2141_daily_bin93.fits
.....................!
real 194.64
user 188.28
sys 5.91

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J0836.2+2141 @ 129.051 21.6971

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/581662/ft1_filtered_4FGL_J0836.2+2141_daily_bin93.fits scfile=/scratch/kocevski/581662/ft2_4FGL_J0836.2+2141_daily_bin93.fits outfile=/scratch/kocevski/581662/cmap_263433601_263692801_4FGL_J0836.2+2141_daily_bin93.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.39
user 0.36
sys 0.98

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/581662/ft1_filtered_4FGL_J0836.2+2141_daily_bin93.fits scfile=/scratch/kocevski/581662/ft2_4FGL_J0836.2+2141_daily_bin93.fits outfile=/scratch/kocevski/581662/cmap_HighResolution_263433601_263692801_4FGL_J0836.2+2141_daily_bin93.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.44
user 0.39
sys 1.02

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6285       1.0000         .10000E-03   10000.    
     2 'Prefactor '    67.181       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3142       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10621E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.7751       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8201       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9432       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8222       1.0000         .10000E-03   10000.    
    16 'norm      '    .72906       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5100       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .66730       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=   5631.559     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2159 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6286        25.914        .58580E-06   -.76220E-05
   2  Prefactor     67.184        52.698        .58721E-06    .46446E-04
   3  Prefactor     .10000E-03    17.440       -.51793E-06** at limit **
   4  norm          .10000E-03    27.846       -.25884E-05** at limit **
   5  Prefactor     .10000E-03    32.415       -.40689E-06** at limit **
   6  Prefactor     5.3038        33.333       -.17908E-05   -.66699E-04
   7  Prefactor     .10000E-03    34.702        .36418E-05** at limit **
   8  Prefactor     .10000E-03    60.024       -.13911E-05** at limit **
   9  norm          3.7716        1.6483       -.20655E-07    .61841E-04
  10  Prefactor     1.8185        9.3027        .94956E-06   -.87153E-04
  11  Prefactor     1.9447        6.4708        .93580E-06   -.10356E-03
  12  Prefactor     .10000E-03    17.760        .20050E-06** at limit **
  13  norm          .10000E-03    .38333       -.39268E-07** at limit **
  14  Prefactor     .10000E-03    20.175        .27989E-06** at limit **
  15  Prefactor     4.8239        16.232        .40469E-06   -.11934E-04
  16  norm          .72888        8.1254        .32816E-05   -.18778E-03
  17  norm          .10000E-03    19.491        .90599E-06** at limit **
  18  norm          .10000E-03    1.2186        .62268E-08** at limit **
  19  Prefactor     .10000E-03    17.746        .72642E-07** at limit **
  20  Normalizat    1.5099        .19777       -.20277E-06   -.34738E-04
  21  Prefactor     .66734        .15779       -.35586E-06   -.39414E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.6286
  Prefactor  = 67.1843
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 5.30376
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 3.77162
  Prefactor  = 1.81854
  Prefactor  = 1.94468
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.82395
  norm       = 0.728879
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.50987
  Prefactor  = 0.667344
 **********
 **   18 **HESSE 
 **********

 FCN=   5631.559     FROM HESSE     STATUS=OK           313 CALLS     2472 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6286        25.917        .21209E-03   -1.5327    
   2  Prefactor     67.184        52.858        .48968E-04   -1.4067    
   3  Prefactor     .10000E-03    17.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    29.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.3038        34.356        .17434E-03   -1.5247    
   7  Prefactor     .10000E-03    37.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    60.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.7716        1.6400        .59224E-04   -1.5320    
  10  Prefactor     1.8185        9.3274        .30953E-03   -1.5438    
  11  Prefactor     1.9447        6.4935        .29779E-03   -1.5429    
  12  Prefactor     .10000E-03    17.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1661        .89849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8239        16.257        .18320E-03   -1.5269    
  16  norm          .72888        8.6459        .42664E-03   -1.5537    
  17  norm          .10000E-03    19.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.2333        .80888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.5099        .23166        .22246E-03   -.77501    
  21  Prefactor     .66734        .18381        .26266E-03   -1.0482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84393e-10
Minuit parameter uncertainties:
  1  19.4067
  2  52.8947
  3  8.29866e-05
  4  0.000544232
  5  1.88207e-05
  6  27.0201
  7  0.000807719
  8  0.000330076
  9  1.64006
  10  8.23887
  11  6.49584
  12  3.09782e-05
  13  7.44019e-06
  14  4.24901e-05
  15  16.272
  16  5.02124
  17  0.000154307
  18  1.97875e-07
  19  1.12913e-05
  20  0.231827
  21  0.183973
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.819e+00  8.239e+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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  6.673e-01  1.840e-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.510e+00  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 129.051 21.697
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/581662/likelihoodResults_263433601_263692801_4FGL_J0836.2+2141_daily_bin93.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) = 5631.54125906
delta logL = 0.0179991769701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5631.52366611
delta logL = 0.0355921311084

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47324       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4629       1.0000          .0000       10.000    
     3 'Normalizat'    1.4935       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67763       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5631.524     FROM MIGRAD    STATUS=FAILED        88 CALLS      272 TOTAL
                     EDM=   .65E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47313        193.50        .13920E-03   -.12182E-02
   2  Index         4.4629        6.2265        .89324E-02   -.19758E-03
   3  Normalizat    1.4935        .19577        .22344E-03   -.47628E-03
   4  Prefactor     .67771        .16001        .26084E-03   -.21740E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5631.524     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      360 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47313        193.50        .30339E-03   -.12182E-02
   2  Index         4.4629        6.2265        .54126E-02   -.19758E-03
   3  Normalizat    1.4935        .19577        .20691E-03   -.47628E-03
   4  Prefactor     .67771        .16001        .14045E-03   -.21740E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5631.524     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      392 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47252        8.9576        .55680E-05   -.50637E-04
   2  Index         4.4640        7.1694        .35730E-03   -.39773E-05
   3  Normalizat    1.4935        .23171        .44687E-04    .10889E-04
   4  Prefactor     .67771        .18635        .10434E-04    .16126E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.472522
  Index      = 4.46396
  Normalizat = 1.49348
  Prefactor  = 0.677714
 **********
 **   18 **HESSE 
 **********

 FCN=   5631.524     FROM HESSE     STATUS=OK            23 CALLS      415 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47252        8.2638        .11136E-05   -1.5570    
   2  Index         4.4640        7.1388        .14292E-04   -.10741    
   3  Normalizat    1.4935        .23180        .89375E-05   -.77962    
   4  Prefactor     .67771        .18640        .20867E-05   -1.0441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19863e-12
Minuit parameter uncertainties:
  1  3.95235
  2  5.91343
  3  0.231968
  4  0.186572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/581662': 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): 0
logL (Free Index) = 5631.52366571
delta logL = 0.0355925316881

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  4.725e-01  3.952e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  4.464e+00  5.913e+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:  6.777e-01  1.866e-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.493e+00  2.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/581662/cmap_HighResolution_263433601_263692801_4FGL_J0836.2+2141_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.59e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-08-30 02:10:13.299091', job_id='581662', GAL2='0.68', fit_tolerance='1e-08', EG2='1.49', EG='1.51', time_epoch_completed='1630314613.3', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='3.56e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='93' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:10:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0044>
Subject: Job 581662: <4FGL_J0836.2+2141_daily_bin93> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin93> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Aug 30 01:55:45 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:55: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 01:55:47 2021
Terminated at Mon Aug 30 02:10:14 2021
Results reported at Mon Aug 30 02:10:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin93 129.051 21.6971 263433601 263692801 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 :                                   609.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             243.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            869 sec.

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

