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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1611
RA = 129.051, Dec = 21.6971
tmin = 656899201, tmax = 657158401
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='263503', job_status='RUN', time_executed='2021-12-07 19:15:50.931869', time_epoch_executed='1638933350.93' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263503

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263503/ft1_4FGL_J0836.2+2141_daily_bin1611.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263503/ft2_4FGL_J0836.2+2141_daily_bin1611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263503/ft1_4FGL_J0836.2+2141_daily_bin1611.fits outfile=/scratch/kocevski/263503/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1611.fits ra=129.051 dec=21.6971 rad=12.0 tmin=656899201.0 tmax=657158401.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.59
user 3.37
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263503/ft1_filtered_4FGL_J0836.2+2141_daily_bin1611.fits" evtable="EVENTS" scfile=/scratch/kocevski/263503/ft2_4FGL_J0836.2+2141_daily_bin1611.fits sctable="SC_DATA" outfile=/scratch/kocevski/263503/ltcube_656899201_657158401_4FGL_J0836.2+2141_daily_bin1611.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/263503/ft2_4FGL_J0836.2+2141_daily_bin1611.fits
.....................!
real 13.53
user 13.16
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263503/ft1_filtered_4FGL_J0836.2+2141_daily_bin1611.fits evtable="EVENTS" scfile=/scratch/kocevski/263503/ft2_4FGL_J0836.2+2141_daily_bin1611.fits sctable="SC_DATA" expcube=/scratch/kocevski/263503/ltcube_656899201_657158401_4FGL_J0836.2+2141_daily_bin1611.fits outfile=/scratch/kocevski/263503/expmap_656899201_657158401_4FGL_J0836.2+2141_daily_bin1611.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/263503/ltcube_656899201_657158401_4FGL_J0836.2+2141_daily_bin1611.fits
.....................!
real 190.82
user 185.57
sys 4.63

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/263503/ft1_filtered_4FGL_J0836.2+2141_daily_bin1611.fits scfile=/scratch/kocevski/263503/ft2_4FGL_J0836.2+2141_daily_bin1611.fits outfile=/scratch/kocevski/263503/cmap_656899201_657158401_4FGL_J0836.2+2141_daily_bin1611.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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263503/ft1_filtered_4FGL_J0836.2+2141_daily_bin1611.fits scfile=/scratch/kocevski/263503/ft2_4FGL_J0836.2+2141_daily_bin1611.fits outfile=/scratch/kocevski/263503/cmap_HighResolution_656899201_657158401_4FGL_J0836.2+2141_daily_bin1611.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5904       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12083E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.101       1.0000         .10000E-03   10000.    
     4 'norm      '    85.455       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15691E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.4307       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.141       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .84334       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5620       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2669       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1982       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5831       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .75392       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=   7452.733     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2173 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5888        23.620        .29502E-06   -.54944E-04
   2  Prefactor     .10015E-03    174.18        .36900E-05** at limit **
   3  Prefactor     47.106        52.760        .59379E-06    .42829E-04
   4  norm          85.461        66.344       -.35197E-06    .51163E-06
   5  Prefactor     .10000E-03    25.169        .34933E-06** at limit **
   6  Prefactor     .10015E-03    137.84        .12886E-05** at limit **
   7  Prefactor     .10000E-03    10.409       -.33867E-07** at limit **
   8  Prefactor     .10000E-03    19.436       -.74737E-08** at limit **
   9  norm          3.4306        1.5135        .76849E-07    .39093E-03
  10  Prefactor     11.142        10.126        .68276E-06    .53031E-05
  11  Prefactor     .84285        8.4508        .19601E-05   -.33212E-04
  12  Prefactor     6.5649        30.519        .11868E-05   -.71999E-05
  13  norm          1.2669        .63102        .23427E-07   -.51037E-05
  14  Prefactor     .10000E-03    3.7634       -.26460E-07** at limit **
  15  Prefactor     1.1973        38.482        .30895E-04    .19110E-04
  16  norm          .10000E-03    2.0721       -.14405E-07** at limit **
  17  norm          .10000E-03    12.283       -.46620E-06** at limit **
  18  norm          .10000E-03    1.0730       -.34998E-07** at limit **
  19  Prefactor     .10000E-03    11.928        .43936E-06** at limit **
  20  Normalizat    1.5831        .18978       -.28180E-05    .46712E-04
  21  Prefactor     .75393        .15013        .99882E-06   -.61776E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.58875
  Prefactor  = 0.000100145
  Prefactor  = 47.106
  norm       = 85.4612
  Prefactor  = 0.0001
  Prefactor  = 0.000100153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.4306
  Prefactor  = 11.1424
  Prefactor  = 0.842848
  Prefactor  = 6.56492
  norm       = 1.26687
  Prefactor  = 0.0001
  Prefactor  = 1.19732
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.5831
  Prefactor  = 0.753928
 **********
 **   18 **HESSE 
 **********

 FCN=   7452.733     FROM HESSE     STATUS=OK           313 CALLS     2486 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5888        23.585        .15632E-03   -1.5195    
   2  Prefactor     .10015E-03    178.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     47.106        52.710        .58425E-04   -1.4334    
   4  norm          85.461        66.387        .43457E-04   -1.3856    
   5  Prefactor     .10000E-03    25.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10015E-03    144.17        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.4306        1.5098        .64868E-04   -1.5338    
  10  Prefactor     11.142        10.117        .60012E-03   -1.5040    
  11  Prefactor     .84285        8.7460        .47616E-02   -1.5524    
  12  Prefactor     6.5649        30.512        .15666E-03   -1.5195    
  13  norm          1.2669        .62799        .46660E-04   -1.5483    
  14  Prefactor     .10000E-03    3.7707        .16354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1973        38.622        .20752E-02   -1.5489    
  16  norm          .10000E-03    2.0734        .12136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.0960        .87325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.5831        .22230        .23789E-03   -.75469    
  21  Prefactor     .75393        .17555        .26965E-03   -1.0145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53132e-07
Minuit parameter uncertainties:
  1  23.6185
  2  0.0102221
  3  52.7626
  4  66.4445
  5  8.72315e-05
  6  0.00940971
  7  1.24715e-05
  8  2.0815e-05
  9  1.50979
  10  10.1182
  11  5.43082
  12  28.3297
  13  0.627994
  14  3.25843e-06
  15  13.6095
  16  1.10497e-06
  17  0.000115077
  18  4.69353e-06
  19  0.000127207
  20  0.222437
  21  0.175677
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
517   Normalization:  1.583e+00  2.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.72
Ra Dec: 129.051 21.697
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 5.47e-08 +/- 4.96e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.17e-05

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

Saving results to:
/scratch/kocevski/263503/likelihoodResults_656899201_657158401_4FGL_J0836.2+2141_daily_bin1611.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) = 7452.26968453
delta logL = 0.463155069053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7452.25386864
delta logL = 0.478970959182

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1103       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8336       1.0000          .0000       10.000    
     3 'Normalizat'    1.5318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78576       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=   7452.254     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      279 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1108        446.60        .12488E-03    .11455E-02
   2  Index         3.8337        6.0110        .75266E-02    .15897E-03
   3  Normalizat    1.5317        .30385        .24085E-03    .31848E-03
   4  Prefactor     .78577        .27843        .26476E-03    .26717E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.11079
  Index      = 3.83371
  Normalizat = 1.53174
  Prefactor  = 0.785769
 **********
 **   18 **HESSE 
 **********

 FCN=   7452.254     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1108        9.7667        .49951E-05   -1.5256    
   2  Index         3.8337        1.4917        .30106E-03   -.23543    
   3  Normalizat    1.5317        .22173        .48169E-04   -.76890    
   4  Prefactor     .78577        .17830        .10590E-04   -1.0026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30571e-10
Minuit parameter uncertainties:
  1  9.76974
  2  1.5161
  3  0.221871
  4  0.178433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263503': 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) = 7452.25386855
delta logL = 0.478971049242

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  5.111e+00  9.770e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  3.834e+00  1.516e+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:  7.858e-01  1.784e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  1.532e+00  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.81
Ra Dec: 129.051 21.697
Photon Index (Free Index): 3.83 +/- 1.52
Photon Flux (Free Index): 9.23e-08 +/- 6.49e-08
Energy Flux (Free Index): 1.42e-05 +/- 1.00e-05

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/263503/cmap_HighResolution_656899201_657158401_4FGL_J0836.2+2141_daily_bin1611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', photon_flux='5.47e-08', energy_flux2='1.42e-05', photon_flux_error='4.96e-08', dlogl='4.79e-01', energy_flux='1.29e-05', photon_flux2='9.23e-08', job_status='DONE', time_completed='2021-12-07 19:26:52.044457', photon_index_error2='1.52', photon_index2='3.83', ts='1.72', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='1.00e-05', EG='1.58', time_epoch_completed='1638934012.04', return_code='0', job_id='263503', GAL2='0.79', EG2='1.53', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='6.49e-08', ts2='2.81', photon_index='2.73' WHERE bin_id='1611' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 19:26:52 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 263503: <4FGL_J0836.2+2141_daily_bin1611> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin1611> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec  7 19:10:21 2021
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 19:12:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 19:12:30 2021
Terminated at Tue Dec  7 19:26:52 2021
Results reported at Tue Dec  7 19:26:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1611 129.051 21.6971 656899201 657158401 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 :                                   659.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            991 sec.

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

