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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin898
RA = 129.051, Dec = 21.6971
tmin = 472089601, tmax = 472348801
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='586405', job_status='RUN', time_executed='2021-08-30 02:11:41.486164', time_epoch_executed='1630314701.49' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='898'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/586405

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/586405/ft1_4FGL_J0836.2+2141_daily_bin898.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/586405/ft2_4FGL_J0836.2+2141_daily_bin898.fits


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

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

Done.
real 7.49
user 3.25
sys 3.72

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/586405/ft1_filtered_4FGL_J0836.2+2141_daily_bin898.fits" evtable="EVENTS" scfile=/scratch/kocevski/586405/ft2_4FGL_J0836.2+2141_daily_bin898.fits sctable="SC_DATA" outfile=/scratch/kocevski/586405/ltcube_472089601_472348801_4FGL_J0836.2+2141_daily_bin898.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/586405/ft2_4FGL_J0836.2+2141_daily_bin898.fits
.....................!
real 15.68
user 11.82
sys 3.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/586405/ft1_filtered_4FGL_J0836.2+2141_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/586405/ft2_4FGL_J0836.2+2141_daily_bin898.fits sctable="SC_DATA" expcube=/scratch/kocevski/586405/ltcube_472089601_472348801_4FGL_J0836.2+2141_daily_bin898.fits outfile=/scratch/kocevski/586405/expmap_472089601_472348801_4FGL_J0836.2+2141_daily_bin898.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/586405/ltcube_472089601_472348801_4FGL_J0836.2+2141_daily_bin898.fits
.....................!
real 195.20
user 185.23
sys 9.41

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/586405/ft1_filtered_4FGL_J0836.2+2141_daily_bin898.fits scfile=/scratch/kocevski/586405/ft2_4FGL_J0836.2+2141_daily_bin898.fits outfile=/scratch/kocevski/586405/cmap_472089601_472348801_4FGL_J0836.2+2141_daily_bin898.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 3.62
user 0.37
sys 2.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/586405/ft1_filtered_4FGL_J0836.2+2141_daily_bin898.fits scfile=/scratch/kocevski/586405/ft2_4FGL_J0836.2+2141_daily_bin898.fits outfile=/scratch/kocevski/586405/cmap_HighResolution_472089601_472348801_4FGL_J0836.2+2141_daily_bin898.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 3.76
user 0.36
sys 3.06

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    26.356       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    29.565       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2032       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6209       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9946       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21960E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    62.935       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4788       1.0000         .10000E-03   10000.    
    19 'Prefactor '    116.70       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .87426       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0319       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=   6322.498     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     2163 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.627        .29401E-07** at limit **
   2  Prefactor     26.354        45.577       -.21384E-06   -.40780E-05
   3  Prefactor     .10000E-03    24.537        .21357E-06** at limit **
   4  norm          29.408        85.597       -.24429E-05   -.44710E-04
   5  Prefactor     .10000E-03    10.192        .96959E-07** at limit **
   6  Prefactor     .10000E-03    31.347        .59306E-06** at limit **
   7  Prefactor     .10000E-03    8.6829        .12022E-06** at limit **
   8  Prefactor     6.2038        9.2816       -.14779E-06   -.34929E-05
   9  norm          .10000E-03    .24364       -.35134E-07** at limit **
  10  Prefactor     8.6187        9.1470        .31608E-05    .26557E-03
  11  Prefactor     .10000E-03    2.1835        .53815E-07** at limit **
  12  Prefactor     .10000E-03    9.9880        .16808E-06** at limit **
  13  norm          1.9939        .84951        .39276E-07   -.66218E-04
  14  Prefactor     .10002E-03    8.8710        .24507E-06** at limit **
  15  Prefactor     .10000E-03    27.804        .23580E-06** at limit **
  16  norm          .10000E-03    1.8399        .36252E-07** at limit **
  17  norm          62.901        46.030        .27003E-06   -.35842E-04
  18  norm          1.4788        1.7939        .19640E-07    .16967E-04
  19  Prefactor     116.70        60.267        .14055E-06   -.93911E-05
  20  Normalizat    .87448        .18977       -.45048E-05    .95328E-04
  21  Prefactor     1.0317        .15980        .29427E-05   -.17355E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 26.3539
  Prefactor  = 0.0001
  norm       = 29.4081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.20379
  norm       = 0.0001
  Prefactor  = 8.61869
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.99394
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 62.9009
  norm       = 1.47883
  Prefactor  = 116.701
  Normalizat = 0.874481
  Prefactor  = 1.03167
 **********
 **   18 **HESSE 
 **********

 FCN=   6322.498     FROM HESSE     STATUS=OK           313 CALLS     2476 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.354        45.588        .78032E-04   -1.4681    
   3  Prefactor     .10000E-03    24.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          29.408        86.072        .36842E-03   -1.4623    
   5  Prefactor     .10000E-03    10.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.6936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.2038        9.2730        .16118E-03   -1.5210    
   9  norm          .10000E-03    .24594        .38314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.6187        9.3515        .68262E-03   -1.5121    
  11  Prefactor     .10000E-03    2.1889        .11472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.9945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9939        .82516        .44496E-04   -1.5426    
  14  Prefactor     .10002E-03    96.625        .43981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8412        .10533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          62.901        45.646        .50582E-04   -1.4120    
  18  norm          1.4788        1.7829        .11420E-03   -1.5465    
  19  Prefactor     116.70        60.269        .37245E-04   -1.3543    
  20  Normalizat    .87448        .20225        .26772E-03   -.97363    
  21  Prefactor     1.0317        .17285        .21196E-03   -.91681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38538e-10
Minuit parameter uncertainties:
  1  9.83519e-06
  2  45.6484
  3  2.31686e-05
  4  86.4389
  5  2.45819e-06
  6  4.44603e-05
  7  5.5474e-06
  8  9.2751
  9  1.43595e-06
  10  9.35305
  11  1.58191e-06
  12  1.72491e-05
  13  0.825168
  14  0.00274704
  15  7.69569e-05
  16  4.90439e-07
  17  45.6715
  18  1.78297
  19  60.3006
  20  0.20243
  21  0.172943
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  8.619e+00  9.353e+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.032e+00  1.729e-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.745e-01  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 129.051 21.697
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 4.23e-08 +/- 4.59e-08
Energy Flux (Fixed Index): 9.94e-06 +/- 1.08e-05

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

Saving results to:
/scratch/kocevski/586405/likelihoodResults_472089601_472348801_4FGL_J0836.2+2141_daily_bin898.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) = 6321.94152843
delta logL = 0.555997051384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6321.88915653
delta logL = 0.608368948964

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.983       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9364       1.0000          .0000       10.000    
     3 'Normalizat'    .90422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0082       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=   6321.889     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 16.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.986        10.980        .28063E-05   -.34265E-03
   2  Index         1.9364        .57463        .23320E-04    .16970E-04
   3  Normalizat    .90404        .17169       -.17968E-05   -.40693E-03
   4  Prefactor     1.0084        .14630        .36657E-06   -.45343E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9858
  Index      = 1.93641
  Normalizat = 0.904038
  Prefactor  = 1.00836
 **********
 **   18 **HESSE 
 **********

 FCN=   6321.889     FROM HESSE     STATUS=OK            29 CALLS      240 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.986        10.777        .11572E-03   -1.5015    
   2  Index         1.9364        .56571        .80092E-02   -.65950    
   3  Normalizat    .90404        .19957        .26373E-03   -.96318    
   4  Prefactor     1.0084        .17035        .21388E-03   -.92451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35751e-09
Minuit parameter uncertainties:
  1  10.7785
  2  0.567657
  3  0.199732
  4  0.170436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/586405': 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) = 6321.88915595
delta logL = 0.608369529627

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.199e+01  1.078e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  1.936e+00  5.677e-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.008e+00  1.704e-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.040e-01  1.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.27
Ra Dec: 129.051 21.697
Photon Index (Free Index): 1.94 +/- 0.57
Photon Flux (Free Index): 2.98e-08 +/- 3.17e-08
Energy Flux (Free Index): 2.42e-05 +/- 2.88e-05

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/586405/cmap_HighResolution_472089601_472348801_4FGL_J0836.2+2141_daily_bin898.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', photon_flux='4.23e-08', energy_flux2='2.42e-05', photon_flux_error='4.59e-08', dlogl='6.08e-01', energy_flux='9.94e-06', photon_flux2='2.98e-08', job_status='DONE', time_completed='2021-08-30 02:22:21.943429', photon_index_error2='0.57', photon_index2='1.94', ts='1.05', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='2.88e-05', EG='0.87', time_epoch_completed='1630315341.94', return_code='0', job_id='586405', GAL2='1.01', EG2='0.90', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='3.17e-08', ts2='2.27', photon_index='2.73' WHERE bin_id='898' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:22:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 586405: <4FGL_J0836.2+2141_daily_bin898> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin898> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 02:10:36 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:10:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 02:10:37 2021
Terminated at Mon Aug 30 02:22:23 2021
Results reported at Mon Aug 30 02:22:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin898 129.051 21.6971 472089601 472348801 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 :                                   682.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            707 sec.

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

