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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin34
RA = 129.051, Dec = 21.6971
tmin = 248140801, tmax = 248400001
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='580266', job_status='RUN', time_executed='2021-08-30 01:54:23.066750', time_epoch_executed='1630313663.07' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='34'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580266

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580266/ft1_4FGL_J0836.2+2141_daily_bin34.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580266/ft2_4FGL_J0836.2+2141_daily_bin34.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580266/ft1_4FGL_J0836.2+2141_daily_bin34.fits outfile=/scratch/kocevski/580266/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin34.fits ra=129.051 dec=21.6971 rad=12.0 tmin=248140801.0 tmax=248400001.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 1.67
user 1.22
sys 0.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580266/ft1_filtered_4FGL_J0836.2+2141_daily_bin34.fits" evtable="EVENTS" scfile=/scratch/kocevski/580266/ft2_4FGL_J0836.2+2141_daily_bin34.fits sctable="SC_DATA" outfile=/scratch/kocevski/580266/ltcube_248140801_248400001_4FGL_J0836.2+2141_daily_bin34.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/580266/ft2_4FGL_J0836.2+2141_daily_bin34.fits
.....................!
real 13.25
user 12.48
sys 0.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580266/ft1_filtered_4FGL_J0836.2+2141_daily_bin34.fits evtable="EVENTS" scfile=/scratch/kocevski/580266/ft2_4FGL_J0836.2+2141_daily_bin34.fits sctable="SC_DATA" expcube=/scratch/kocevski/580266/ltcube_248140801_248400001_4FGL_J0836.2+2141_daily_bin34.fits outfile=/scratch/kocevski/580266/expmap_248140801_248400001_4FGL_J0836.2+2141_daily_bin34.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/580266/ltcube_248140801_248400001_4FGL_J0836.2+2141_daily_bin34.fits
.....................!
real 192.15
user 187.47
sys 4.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/580266/ft1_filtered_4FGL_J0836.2+2141_daily_bin34.fits scfile=/scratch/kocevski/580266/ft2_4FGL_J0836.2+2141_daily_bin34.fits outfile=/scratch/kocevski/580266/cmap_248140801_248400001_4FGL_J0836.2+2141_daily_bin34.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 0.75
user 0.37
sys 0.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580266/ft1_filtered_4FGL_J0836.2+2141_daily_bin34.fits scfile=/scratch/kocevski/580266/ft2_4FGL_J0836.2+2141_daily_bin34.fits outfile=/scratch/kocevski/580266/cmap_HighResolution_248140801_248400001_4FGL_J0836.2+2141_daily_bin34.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 0.75
user 0.37
sys 0.34

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65122E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.937       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20932E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.134       1.0000         .10000E-03   10000.    
     9 'norm      '    5.1221       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1187       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    59.567       1.0000         .10000E-03   10000.    
    13 'norm      '    .15165       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.302       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0321       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    99.317       1.0000         .10000E-03   10000.    
    18 'norm      '    .73381       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12070E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .81561       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1625       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=   9569.797     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     1907 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10019E-03    14.611        .68427E-05** at limit **
   2  Prefactor     49.932        31.308        .79184E-06   -.11511E-04
   3  Prefactor     .10000E-03    7.4545        .15631E-07** at limit **
   4  norm          .10000E-03    30.593        .35604E-05** at limit **
   5  Prefactor     .10000E-03    50.439        .17011E-05** at limit **
   6  Prefactor     .10000E-03    14.544       -.82009E-07** at limit **
   7  Prefactor     .10000E-03    4.3445        .41252E-08** at limit **
   8  Prefactor     30.130        22.051        .40824E-06   -.30652E-04
   9  norm          5.1221        1.6296       -.93090E-08   -.13186E-03
  10  Prefactor     7.1195        8.0177        .24247E-06    .34386E-05
  11  Prefactor     .10000E-03    1.9296        .10700E-07** at limit **
  12  Prefactor     59.567        29.324        .14436E-06   -.11533E-04
  13  norm          .15121        .49033        .33716E-06    .57641E-03
  14  Prefactor     10.309        11.251       -.77095E-06   -.52748E-04
  15  Prefactor     3.0337        9.3116        .57144E-05    .48222E-03
  16  norm          .10000E-03    1.5301        .91252E-09** at limit **
  17  norm          99.297        42.728        .28276E-05    .12371E-03
  18  norm          .73359        1.6574        .29044E-06    .65109E-03
  19  Prefactor     .10000E-03    33.305       -.28351E-05** at limit **
  20  Normalizat    .81564        .15920       -.10417E-05   -.14590E-03
  21  Prefactor     1.1625        .13069       -.29183E-07   -.27039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100186
  Prefactor  = 49.9323
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.1303
  norm       = 5.12214
  Prefactor  = 7.11955
  Prefactor  = 0.0001
  Prefactor  = 59.5675
  norm       = 0.151214
  Prefactor  = 10.3094
  Prefactor  = 3.03368
  norm       = 0.0001
  norm       = 99.2965
  norm       = 0.733593
  Prefactor  = 0.000100001
  Normalizat = 0.815643
  Prefactor  = 1.16254
 **********
 **   18 **HESSE 
 **********

 FCN=   9569.797     FROM HESSE     STATUS=OK           317 CALLS     2224 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10019E-03    37.577        .51196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     49.932        31.308        .56749E-04   -1.4294    
   3  Prefactor     .10000E-03    7.4559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    30.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    52.137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.3453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.130        22.108        .72987E-04   -1.4610    
   9  norm          5.1221        1.6294        .59870E-04   -1.5255    
  10  Prefactor     7.1195        8.0060        .15035E-03   -1.5174    
  11  Prefactor     .10000E-03    1.9395        .13267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     59.567        29.354        .51984E-04   -1.4163    
  13  norm          .15121        .47570        .11043E-03   -1.5630    
  14  Prefactor     10.309        10.936        .12484E-03   -1.5066    
  15  Prefactor     3.0337        9.7882        .11652E-02   -1.5360    
  16  norm          .10000E-03    1.5307        .11818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          99.297        42.857        .20169E-03   -1.3712    
  18  norm          .73359        1.3605        .18362E-02   -1.5537    
  19  Prefactor     .10000E-03    33.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .81564        .18384        .29628E-03   -.99491    
  21  Prefactor     1.1625        .15130        .21697E-03   -.87492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86401e-09
Minuit parameter uncertainties:
  1  0.00528569
  2  31.3185
  3  6.44038e-07
  4  0.000130246
  5  6.41291e-05
  6  5.93859e-06
  7  5.79924e-07
  8  22.1138
  9  1.62941
  10  8.00721
  11  8.70636e-07
  12  29.3609
  13  0.475708
  14  10.9384
  15  9.79335
  16  3.78216e-07
  17  42.8707
  18  1.36052
  19  0.000287668
  20  0.183985
  21  0.151357
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  7.120e+00  8.007e+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:  1.163e+00  1.514e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  8.156e-01  1.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 129.051 21.697
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 3.49e-08 +/- 3.93e-08
Energy Flux (Fixed Index): 8.22e-06 +/- 9.24e-06

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

Saving results to:
/scratch/kocevski/580266/likelihoodResults_248140801_248400001_4FGL_J0836.2+2141_daily_bin34.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) = 9569.53669252
delta logL = 0.26061370145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9569.53519258
delta logL = 0.262113638508

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8642       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4128       1.0000          .0000       10.000    
     3 'Normalizat'    .79360       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1754       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9569.535     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      261 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8613        93.813        .45597E-02    .12431E-02
   2  Index         3.4134        6.6642        .21307        .12783E-03
   3  Normalizat    .79398        .46422E-01    .67761E-01    .11048E-03
   4  Prefactor     1.1753        .39432E-01    .35239E-01    .15319E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.8613
  Index      = 3.41344
  Normalizat = 0.793977
  Prefactor  = 1.17526
 **********
 **   18 **HESSE 
 **********

 FCN=   9569.535     FROM HESSE     STATUS=OK            31 CALLS      292 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8613        8.2811        .17996E-03   -1.5267    
   2  Index         3.4134        1.2637        .98516E-02   -.32289    
   3  Normalizat    .79398        .18025        .29981E-03   -1.0029    
   4  Prefactor     1.1753        .15254        .21593E-03   -.87096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47919e-10
Minuit parameter uncertainties:
  1  8.28301
  2  1.27917
  3  0.180386
  4  0.152597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580266': 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) = 9569.53518861
delta logL = 0.262117611803

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  4.861e+00  8.283e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  3.413e+00  1.279e+00  0.000e+00  1.000e+01 (-1.000e+00)
300        Scale:  5.085e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.175e+00  1.526e-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:  7.940e-01  1.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 129.051 21.697
Photon Index (Free Index): 3.41 +/- 1.28
Photon Flux (Free Index): 5.20e-08 +/- 4.68e-08
Energy Flux (Free Index): 8.86e-06 +/- 8.29e-06

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.89e-03', comment='SUCCESS', photon_flux='3.49e-08', energy_flux2='8.86e-06', photon_flux_error='3.93e-08', dlogl='2.62e-01', energy_flux='8.22e-06', photon_flux2='5.20e-08', job_status='DONE', time_completed='2021-08-30 02:06:18.374802', photon_index_error2='1.28', photon_index2='3.41', ts='1.01', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='8.29e-06', EG='0.82', time_epoch_completed='1630314378.37', return_code='0', job_id='580266', GAL2='1.18', EG2='0.79', return_code2='0', energy_flux_error='9.24e-06', photon_flux_error2='4.68e-08', ts2='1.59', photon_index='2.73' WHERE bin_id='34' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:06:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 580266: <4FGL_J0836.2+2141_daily_bin34> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin34> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 30 01:50:46 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:50:48 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:50:48 2021
Terminated at Mon Aug 30 02:06:19 2021
Results reported at Mon Aug 30 02:06:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin34 129.051 21.6971 248140801 248400001 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 :                                   713.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            933 sec.

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

