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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1454
RA = 129.051, Dec = 21.6971
tmin = 616204801, tmax = 616464001
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='588506', job_status='RUN', time_executed='2021-08-30 02:19:03.282601', time_epoch_executed='1630315143.28' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588506

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588506/ft1_4FGL_J0836.2+2141_daily_bin1454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588506/ft2_4FGL_J0836.2+2141_daily_bin1454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588506/ft1_4FGL_J0836.2+2141_daily_bin1454.fits outfile=/scratch/kocevski/588506/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1454.fits ra=129.051 dec=21.6971 rad=12.0 tmin=616204801.0 tmax=616464001.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.82
user 3.72
sys 1.04

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588506/ft1_filtered_4FGL_J0836.2+2141_daily_bin1454.fits" evtable="EVENTS" scfile=/scratch/kocevski/588506/ft2_4FGL_J0836.2+2141_daily_bin1454.fits sctable="SC_DATA" outfile=/scratch/kocevski/588506/ltcube_616204801_616464001_4FGL_J0836.2+2141_daily_bin1454.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/588506/ft2_4FGL_J0836.2+2141_daily_bin1454.fits
.....................!
real 12.85
user 11.53
sys 1.23

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588506/ft1_filtered_4FGL_J0836.2+2141_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/588506/ft2_4FGL_J0836.2+2141_daily_bin1454.fits sctable="SC_DATA" expcube=/scratch/kocevski/588506/ltcube_616204801_616464001_4FGL_J0836.2+2141_daily_bin1454.fits outfile=/scratch/kocevski/588506/expmap_616204801_616464001_4FGL_J0836.2+2141_daily_bin1454.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/588506/ltcube_616204801_616464001_4FGL_J0836.2+2141_daily_bin1454.fits
.....................!
real 191.23
user 185.77
sys 4.96

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/588506/ft1_filtered_4FGL_J0836.2+2141_daily_bin1454.fits scfile=/scratch/kocevski/588506/ft2_4FGL_J0836.2+2141_daily_bin1454.fits outfile=/scratch/kocevski/588506/cmap_616204801_616464001_4FGL_J0836.2+2141_daily_bin1454.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.37
sys 0.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588506/ft1_filtered_4FGL_J0836.2+2141_daily_bin1454.fits scfile=/scratch/kocevski/588506/ft2_4FGL_J0836.2+2141_daily_bin1454.fits outfile=/scratch/kocevski/588506/cmap_HighResolution_616204801_616464001_4FGL_J0836.2+2141_daily_bin1454.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.37
user 0.35
sys 1.00

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.815       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10550E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.873       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.642       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.412       1.0000         .10000E-03   10000.    
     9 'norm      '    .14423E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.647       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.928       1.0000         .10000E-03   10000.    
    13 'norm      '    .79556       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    55.050       1.0000         .10000E-03   10000.    
    16 'norm      '    12.594       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11218E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .81871       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1629       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=   3518.527     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2236 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.812        25.782        .18124E-06    .17494E-05
   2  Prefactor     .10000E-03    23.782        .84734E-06** at limit **
   3  Prefactor     .10000E-03    56.174        .75846E-06** at limit **
   4  norm          .10000E-03    76.829       -.16649E-05** at limit **
   5  Prefactor     22.956        58.013        .34524E-05    .17993E-04
   6  Prefactor     21.620        41.850       -.27438E-05    .17064E-05
   7  Prefactor     .10000E-03    21.085       -.18196E-06** at limit **
   8  Prefactor     40.462        33.131        .45338E-06    .10181E-03
   9  norm          .10002E-03    1.2762       -.85553E-06** at limit **
  10  Prefactor     16.658        13.909        .17584E-05    .14671E-03
  11  Prefactor     .10000E-03    6.5478       -.78492E-07** at limit **
  12  Prefactor     40.920        60.353       -.28315E-06    .84917E-05
  13  norm          .79556        .92232       -.22748E-07   -.10600E-03
  14  Prefactor     .10000E-03    24.796       -.91267E-06** at limit **
  15  Prefactor     55.051        27.512       -.12662E-06    .50984E-04
  16  norm          12.593        10.640       -.62382E-07    .35823E-06
  17  norm          .10000E-03    14.788       -.34209E-07** at limit **
  18  norm          .10000E-03    1.4039       -.32702E-08** at limit **
  19  Prefactor     .10000E-03    567.47       -.18324E-04** at limit **
  20  Normalizat    .81851        .27766        .41388E-05    .87437E-04
  21  Prefactor     1.1631        .22220       -.13524E-05    .25424E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8124
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.9559
  Prefactor  = 21.6203
  Prefactor  = 0.0001
  Prefactor  = 40.4625
  norm       = 0.000100021
  Prefactor  = 16.6578
  Prefactor  = 0.0001
  Prefactor  = 40.9197
  norm       = 0.795559
  Prefactor  = 0.0001
  Prefactor  = 55.0514
  norm       = 12.5931
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.81851
  Prefactor  = 1.16313
 **********
 **   18 **HESSE 
 **********

 FCN=   3518.527     FROM HESSE     STATUS=OK           315 CALLS     2551 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.812        25.792        .10406E-03   -1.4938    
   2  Prefactor     .10000E-03    23.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    56.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    76.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.956        58.094        .83754E-04   -1.4749    
   6  Prefactor     21.620        41.860        .86100E-04   -1.4778    
   7  Prefactor     .10000E-03    21.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.462        33.411        .63055E-04   -1.4435    
   9  norm          .10002E-03    14.168        .11633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.658        13.985        .98164E-04   -1.4891    
  11  Prefactor     .10000E-03    6.6045        .14826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     40.920        60.470        .62658E-04   -1.4428    
  13  norm          .79556        .87639        .58645E-03   -1.5530    
  14  Prefactor     .10000E-03    25.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     55.051        27.756        .54063E-04   -1.4223    
  16  norm          12.593        10.645        .11288E-03   -1.4998    
  17  norm          .10000E-03    14.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.4082        .68627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    579.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .81851        .31732        .29520E-03   -.99386    
  21  Prefactor     1.1631        .25744        .21539E-03   -.87474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8443e-09
Minuit parameter uncertainties:
  1  25.8111
  2  2.16025e-07
  3  3.29988e-05
  4  4.29524e-05
  5  58.2381
  6  41.9167
  7  1.79607e-05
  8  33.4262
  9  0.00108395
  10  13.9881
  11  1.90644e-05
  12  60.5606
  13  0.8764
  14  4.3268e-05
  15  27.7624
  16  10.6465
  17  5.01598e-06
  18  1.8552e-06
  19  0.00142644
  20  0.318038
  21  0.257721
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.666e+01  1.399e+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.163e+00  2.577e-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.185e-01  3.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.19
Ra Dec: 129.051 21.697
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 8.18e-08 +/- 6.86e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.61e-05

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

Saving results to:
/scratch/kocevski/588506/likelihoodResults_616204801_616464001_4FGL_J0836.2+2141_daily_bin1454.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) = 3518.24719637
delta logL = 0.279791211643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3518.19197617
delta logL = 0.335011417462

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.842       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0924       1.0000          .0000       10.000    
     3 'Normalizat'    .86194       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1311       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=   3518.192     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      240 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.837        18.129        .85704E-04    .11354E-03
   2  Index         2.0919        .65605        .74088E-02    .36987E-04
   3  Normalizat    .86197        .29824        .28841E-03    .42791E-03
   4  Prefactor     1.1313        .25417        .21792E-03    .58509E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.8368
  Index      = 2.09194
  Normalizat = 0.861967
  Prefactor  = 1.13129
 **********
 **   18 **HESSE 
 **********

 FCN=   3518.192     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.837        18.175        .17141E-04   -1.4773    
   2  Index         2.0919        .65768        .29635E-03   -.62071    
   3  Normalizat    .86197        .29851        .57682E-04   -.97810    
   4  Prefactor     1.1313        .25435        .43585E-04   -.88473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23261e-10
Minuit parameter uncertainties:
  1  18.1796
  2  0.660576
  3  0.299085
  4  0.254625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588506': 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) = 3518.19197493
delta logL = 0.335012651628

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  2.184e+01  1.818e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.092e+00  6.606e-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.131e+00  2.546e-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.620e-01  2.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.86
Ra Dec: 129.051 21.697
Photon Index (Free Index): 2.09 +/- 0.66
Photon Flux (Free Index): 6.00e-08 +/- 6.00e-08
Energy Flux (Free Index): 3.35e-05 +/- 4.04e-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/588506/cmap_HighResolution_616204801_616464001_4FGL_J0836.2+2141_daily_bin1454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.86e-02', comment='SUCCESS', photon_flux='8.18e-08', energy_flux2='3.35e-05', photon_flux_error='6.86e-08', dlogl='3.35e-01', energy_flux='1.92e-05', photon_flux2='6.00e-08', job_status='DONE', time_completed='2021-08-30 02:27:08.655250', photon_index_error2='0.66', photon_index2='2.09', ts='3.19', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='2.36e-07', energy_flux_error2='4.04e-05', EG='0.82', time_epoch_completed='1630315628.66', return_code='0', job_id='588506', GAL2='1.13', EG2='0.86', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='6.00e-08', ts2='3.86', photon_index='2.73' WHERE bin_id='1454' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:27:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 588506: <4FGL_J0836.2+2141_daily_bin1454> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin1454> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 02:16:08 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:16:09 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:16:09 2021
Terminated at Mon Aug 30 02:27:09 2021
Results reported at Mon Aug 30 02:27:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1454 129.051 21.6971 616204801 616464001 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 :                                   496.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             228.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            661 sec.

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

