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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1194
RA = 129.051, Dec = 21.6971
tmin = 548812801, tmax = 549072001
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='588105', job_status='RUN', time_executed='2021-08-30 02:18:34.346006', time_epoch_executed='1630315114.35' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1194'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588105

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588105/ft1_4FGL_J0836.2+2141_daily_bin1194.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588105/ft2_4FGL_J0836.2+2141_daily_bin1194.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588105/ft1_4FGL_J0836.2+2141_daily_bin1194.fits outfile=/scratch/kocevski/588105/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1194.fits ra=129.051 dec=21.6971 rad=12.0 tmin=548812801.0 tmax=549072001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.69
user 2.60
sys 1.07

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/588105/ft2_4FGL_J0836.2+2141_daily_bin1194.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/588105/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1194.fits evtable="EVENTS" outfile="/scratch/kocevski/588105/ft1_filtered_4FGL_J0836.2+2141_daily_bin1194.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.53
user 0.32
sys 1.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588105/ft1_filtered_4FGL_J0836.2+2141_daily_bin1194.fits" evtable="EVENTS" scfile=/scratch/kocevski/588105/ft2_4FGL_J0836.2+2141_daily_bin1194.fits sctable="SC_DATA" outfile=/scratch/kocevski/588105/ltcube_548812801_549072001_4FGL_J0836.2+2141_daily_bin1194.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/588105/ft2_4FGL_J0836.2+2141_daily_bin1194.fits
.....................!
real 14.46
user 13.03
sys 1.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588105/ft1_filtered_4FGL_J0836.2+2141_daily_bin1194.fits evtable="EVENTS" scfile=/scratch/kocevski/588105/ft2_4FGL_J0836.2+2141_daily_bin1194.fits sctable="SC_DATA" expcube=/scratch/kocevski/588105/ltcube_548812801_549072001_4FGL_J0836.2+2141_daily_bin1194.fits outfile=/scratch/kocevski/588105/expmap_548812801_549072001_4FGL_J0836.2+2141_daily_bin1194.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/588105/ltcube_548812801_549072001_4FGL_J0836.2+2141_daily_bin1194.fits
.....................!
real 191.87
user 185.04
sys 6.21

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/588105/ft1_filtered_4FGL_J0836.2+2141_daily_bin1194.fits scfile=/scratch/kocevski/588105/ft2_4FGL_J0836.2+2141_daily_bin1194.fits outfile=/scratch/kocevski/588105/cmap_548812801_549072001_4FGL_J0836.2+2141_daily_bin1194.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.53
user 0.39
sys 1.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588105/ft1_filtered_4FGL_J0836.2+2141_daily_bin1194.fits scfile=/scratch/kocevski/588105/ft2_4FGL_J0836.2+2141_daily_bin1194.fits outfile=/scratch/kocevski/588105/cmap_HighResolution_548812801_549072001_4FGL_J0836.2+2141_daily_bin1194.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.53
user 0.38
sys 1.11

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18680       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.233       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.877       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.578       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2952       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.288       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.578       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0931       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1954       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4987       1.0000         .10000E-03   10000.    
    16 'norm      '    .68410E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.0867       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .99555       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0504       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=   6803.963     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2400 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.375        .31588E-06** at limit **
   2  Prefactor     .41103        47.723       -.10760E-05   -.14366E-03
   3  Prefactor     24.170        40.268        .14937E-04    .16029E-05
   4  norm          .10000E-03    27.934       -.64586E-05** at limit **
   5  Prefactor     14.876        20.726       -.28172E-04   -.10478E-04
   6  Prefactor     .10000E-03    8.5682        .14828E-06** at limit **
   7  Prefactor     27.580        29.538       -.74287E-05    .29446E-05
   8  Prefactor     7.2725        17.543        .49408E-05   -.14723E-03
   9  norm          .10019E-03    .51638        .28470E-06** at limit **
  10  Prefactor     17.280        10.927       -.52805E-05   -.22592E-03
  11  Prefactor     .10000E-03    11.074       -.13108E-05** at limit **
  12  Prefactor     38.577        33.018       -.79197E-05    .14987E-04
  13  norm          2.0932        .77892        .31227E-07    .97426E-04
  14  Prefactor     2.1957        4.9673       -.77576E-06   -.49583E-03
  15  Prefactor     1.5043        22.161        .60825E-05   -.31651E-03
  16  norm          .10001E-03    3.7195        .14842E-07** at limit **
  17  norm          .10000E-03    12.024       -.27583E-05** at limit **
  18  norm          3.0868        2.1009       -.13605E-06   -.15778E-03
  19  Prefactor     .10000E-03    11.630        .25184E-05** at limit **
  20  Normalizat    .99538        .18275        .35083E-05   -.19139E-03
  21  Prefactor     1.0504        .14897        .30120E-06    .14165E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.411029
  Prefactor  = 24.1704
  norm       = 0.0001
  Prefactor  = 14.8756
  Prefactor  = 0.0001
  Prefactor  = 27.58
  Prefactor  = 7.27252
  norm       = 0.000100191
  Prefactor  = 17.2802
  Prefactor  = 0.0001
  Prefactor  = 38.5773
  norm       = 2.09317
  Prefactor  = 2.19574
  Prefactor  = 1.5043
  norm       = 0.000100009
  norm       = 0.0001
  norm       = 3.08681
  Prefactor  = 0.0001
  Normalizat = 0.995383
  Prefactor  = 1.05044
 **********
 **   18 **HESSE 
 **********

 FCN=   6803.963     FROM HESSE     STATUS=OK           349 CALLS     2749 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .41103        45.217        .15503       -1.5580    
   3  Prefactor     24.170        40.250        .81372E-04   -1.4724    
   4  norm          .10000E-03    27.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.876        20.757        .10384E-03   -1.4936    
   6  Prefactor     .10000E-03    8.5710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.580        29.561        .76287E-04   -1.4657    
   8  Prefactor     7.2725        17.654        .14850E-03   -1.5169    
   9  norm          .10019E-03    1.3366        .19074E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.280        10.953        .96326E-04   -1.4876    
  11  Prefactor     .10000E-03    11.501        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     38.577        33.088        .64531E-04   -1.4465    
  13  norm          2.0932        .77679        .42098E-04   -1.5419    
  14  Prefactor     2.1957        4.9400        .26811E-03   -1.5412    
  15  Prefactor     1.5043        22.130        .34986E-03   -1.5463    
  16  norm          .10001E-03    3.7864        .57185E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.0868        2.0972        .95717E-04   -1.5357    
  19  Prefactor     .10000E-03    11.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .99538        .21085        .26200E-03   -.93185    
  21  Prefactor     1.0504        .17246        .22152E-03   -.91067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57928e-09
Minuit parameter uncertainties:
  1  4.46338e-05
  2  8.62787
  3  40.2951
  4  7.73712e-06
  5  20.7672
  6  4.55022e-05
  7  29.5766
  8  17.6671
  9  0.00100976
  10  10.954
  11  0.000142685
  12  33.1042
  13  0.776795
  14  4.94088
  15  11.5443
  16  0.000361393
  17  1.76836e-05
  18  2.0972
  19  1.23378e-05
  20  0.211027
  21  0.172555
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.728e+01  1.095e+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.050e+00  1.726e-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.954e-01  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.86
Ra Dec: 129.051 21.697
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 8.48e-08 +/- 5.37e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 1.26e-05

TS (Fixed Index): 3.86
Ra Dec: 129.051 21.697
Photon Flux Upper Limit: 1.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.45e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/588105/likelihoodResults_548812801_549072001_4FGL_J0836.2+2141_daily_bin1194.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): 0
logL (Free Index) = 6803.54862212
delta logL = 0.414418913138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6803.52292772
delta logL = 0.44011331716

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.713       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3001       1.0000          .0000       10.000    
     3 'Normalizat'    .96392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0693       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=   6803.523     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      260 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.712        11.195        .11705E-03    .52040E-03
   2  Index         3.3005        .73061        .60048E-02    .12850E-03
   3  Normalizat    .96392        .20365        .26558E-03   -.29715E-03
   4  Prefactor     1.0693        .17264        .21977E-03   -.32783E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7122
  Index      = 3.30045
  Normalizat = 0.963921
  Prefactor  = 1.06934
 **********
 **   18 **HESSE 
 **********

 FCN=   6803.523     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.712        10.211        .46821E-05   -1.5023    
   2  Index         3.3005        .66617        .24019E-03   -.34682    
   3  Normalizat    .96392        .20388        .53116E-04   -.94249    
   4  Prefactor     1.0693        .17271        .43954E-04   -.90453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83208e-10
Minuit parameter uncertainties:
  1  10.213
  2  0.668422
  3  0.204039
  4  0.172805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588105': 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) = 6803.52292743
delta logL = 0.440113598806

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.171e+01  1.021e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  3.300e+00  6.684e-01  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.069e+00  1.728e-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.639e-01  2.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.85
Ra Dec: 129.051 21.697
Photon Index (Free Index): 3.30 +/- 0.67
Photon Flux (Free Index): 1.09e-07 +/- 6.16e-08
Energy Flux (Free Index): 1.93e-05 +/- 1.08e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/588105/cmap_HighResolution_548812801_549072001_4FGL_J0836.2+2141_daily_bin1194.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-02', comment='SUCCESS', photon_flux='8.48e-08', energy_flux2='1.93e-05', photon_flux_error='5.37e-08', dlogl='4.40e-01', energy_flux='1.99e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-08-30 02:29:28.571610', photon_index_error2='0.67', photon_index2='3.30', ts='3.86', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.84e-07', energy_flux_error2='1.08e-05', EG='1.00', time_epoch_completed='1630315768.57', return_code='0', job_id='588105', GAL2='1.07', EG2='0.96', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='6.16e-08', ts2='4.85', photon_index='2.73' WHERE bin_id='1194' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:29:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 588105: <4FGL_J0836.2+2141_daily_bin1194> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin1194> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 02:15:43 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:15:44 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:44 2021
Terminated at Mon Aug 30 02:29:29 2021
Results reported at Mon Aug 30 02:29:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1194 129.051 21.6971 548812801 549072001 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 :                                   667.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            826 sec.

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

