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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1329
RA = 129.051, Dec = 21.6971
tmin = 583804801, tmax = 584064001
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='588320', job_status='RUN', time_executed='2021-08-30 02:20:05.926305', time_epoch_executed='1630315205.93' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1329'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588320

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588320/ft1_4FGL_J0836.2+2141_daily_bin1329.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588320/ft2_4FGL_J0836.2+2141_daily_bin1329.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588320/ft1_4FGL_J0836.2+2141_daily_bin1329.fits outfile=/scratch/kocevski/588320/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1329.fits ra=129.051 dec=21.6971 rad=12.0 tmin=583804801.0 tmax=584064001.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.48
user 3.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588320/ft1_filtered_4FGL_J0836.2+2141_daily_bin1329.fits" evtable="EVENTS" scfile=/scratch/kocevski/588320/ft2_4FGL_J0836.2+2141_daily_bin1329.fits sctable="SC_DATA" outfile=/scratch/kocevski/588320/ltcube_583804801_584064001_4FGL_J0836.2+2141_daily_bin1329.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/588320/ft2_4FGL_J0836.2+2141_daily_bin1329.fits
.....................!
real 11.93
user 11.56
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588320/ft1_filtered_4FGL_J0836.2+2141_daily_bin1329.fits evtable="EVENTS" scfile=/scratch/kocevski/588320/ft2_4FGL_J0836.2+2141_daily_bin1329.fits sctable="SC_DATA" expcube=/scratch/kocevski/588320/ltcube_583804801_584064001_4FGL_J0836.2+2141_daily_bin1329.fits outfile=/scratch/kocevski/588320/expmap_583804801_584064001_4FGL_J0836.2+2141_daily_bin1329.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/588320/ltcube_583804801_584064001_4FGL_J0836.2+2141_daily_bin1329.fits
.....................!
real 190.02
user 185.26
sys 4.37

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/588320/ft1_filtered_4FGL_J0836.2+2141_daily_bin1329.fits scfile=/scratch/kocevski/588320/ft2_4FGL_J0836.2+2141_daily_bin1329.fits outfile=/scratch/kocevski/588320/cmap_583804801_584064001_4FGL_J0836.2+2141_daily_bin1329.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588320/ft1_filtered_4FGL_J0836.2+2141_daily_bin1329.fits scfile=/scratch/kocevski/588320/ft2_4FGL_J0836.2+2141_daily_bin1329.fits outfile=/scratch/kocevski/588320/cmap_HighResolution_583804801_584064001_4FGL_J0836.2+2141_daily_bin1329.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.722       1.0000         .10000E-03   10000.    
     2 'Prefactor '    78.628       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16881E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    78.558       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.832       1.0000         .10000E-03   10000.    
     8 'Prefactor '    52.777       1.0000         .10000E-03   10000.    
     9 'norm      '    .10426E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.914       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10377E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1152       1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.868       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.103       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3903       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89084       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=   6531.457     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2221 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.718        23.669        .17082E-05    .21212E-04
   2  Prefactor     78.572        65.982       -.47597E-04    .41785E-05
   3  Prefactor     .10000E-03    115.83        .64034E-05** at limit **
   4  norm          78.535        108.55       -.23756E-04    .80598E-05
   5  Prefactor     .10000E-03    12.474        .30109E-07** at limit **
   6  Prefactor     .10000E-03    17.571       -.45900E-06** at limit **
   7  Prefactor     37.833        27.351       -.53686E-06    .17060E-04
   8  Prefactor     52.797        29.934        .39208E-05    .27397E-03
   9  norm          .10000E-03    .54220       -.49114E-06** at limit **
  10  Prefactor     13.915        12.065       -.97221E-06    .21148E-03
  11  Prefactor     .10000E-03    7.2407       -.12770E-06** at limit **
  12  Prefactor     .10000E-03    9.8764       -.95709E-08** at limit **
  13  norm          1.1148        .93721       -.15847E-06   -.59929E-03
  14  Prefactor     42.875        22.129       -.12141E-05    .67013E-04
  15  Prefactor     14.105        16.715       -.17199E-05    .19033E-04
  16  norm          .10000E-03    3.6844       -.29228E-07** at limit **
  17  norm          .10000E-03    22.147        .49543E-06** at limit **
  18  norm          .10000E-03    .68069        .15818E-07** at limit **
  19  Prefactor     .10000E-03    42.639       -.13446E-05** at limit **
  20  Normalizat    1.3902        .21723        .41278E-05    .61196E-04
  21  Prefactor     .89088        .16720        .14191E-05    .25252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.718
  Prefactor  = 78.572
  Prefactor  = 0.000100001
  norm       = 78.5349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.8329
  Prefactor  = 52.7966
  norm       = 0.000100001
  Prefactor  = 13.9152
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.11478
  Prefactor  = 42.8748
  Prefactor  = 14.1051
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.39025
  Prefactor  = 0.890876
 **********
 **   18 **HESSE 
 **********

 FCN=   6531.457     FROM HESSE     STATUS=OK           315 CALLS     2536 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.718        23.673        .68008E-04   -1.4529    
   2  Prefactor     78.572        66.015        .22645E-03   -1.3933    
   3  Prefactor     .10000E-03    118.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          78.535        108.72        .45309E-04   -1.3933    
   5  Prefactor     .10000E-03    12.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.833        27.362        .65162E-04   -1.4477    
   8  Prefactor     52.797        29.377        .55209E-04   -1.4253    
   9  norm          .10000E-03    .87043        .11112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.915        12.020        .10738E-03   -1.4962    
  11  Prefactor     .10000E-03    7.4421        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.8802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1148        .90794        .64500E-04   -1.5497    
  14  Prefactor     42.875        22.011        .61229E-04   -1.4397    
  15  Prefactor     14.105        16.809        .10665E-03   -1.4957    
  16  norm          .10000E-03    3.6912        .15150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    22.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .68147        .65113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    42.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3902        .26124        .26535E-03   -.80911    
  21  Prefactor     .89088        .19954        .26179E-03   -.96461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10685e-09
Minuit parameter uncertainties:
  1  23.6792
  2  66.0762
  3  0.000589331
  4  109
  5  2.89374e-05
  6  5.33223e-05
  7  27.3709
  8  29.3849
  9  4.51402e-05
  10  12.0219
  11  4.63867e-05
  12  1.45516e-05
  13  0.907952
  14  22.0156
  15  16.815
  16  7.62706e-06
  17  3.13867e-05
  18  8.52224e-07
  19  8.33082e-05
  20  0.261492
  21  0.199703
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.392e+01  1.202e+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:  8.909e-01  1.997e-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.390e+00  2.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.86
Ra Dec: 129.051 21.697
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 6.83e-08 +/- 5.89e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 1.39e-05

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

Saving results to:
/scratch/kocevski/588320/likelihoodResults_583804801_584064001_4FGL_J0836.2+2141_daily_bin1329.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) = 6530.77097262
delta logL = 0.686126838996

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6530.7493497
delta logL = 0.707749761233

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4308       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0847       1.0000          .0000       10.000    
     3 'Normalizat'    1.3006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94546       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6530.749     FROM MIGRAD    STATUS=FAILED        80 CALLS      277 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4325        93.006        .10719E-03    .45073E-02
   2  Index         4.0847        7.0382        .60181E-02    .78362E-03
   3  Normalizat    1.3007        .26639        .27248E-03    .10611E-02
   4  Prefactor     .94543        .22312        .25507E-03    .97418E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6530.749     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      365 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4325        93.006        .25048E-03    .45073E-02
   2  Index         4.0847        7.0382        .15028E-02    .78362E-03
   3  Normalizat    1.3007        .26639        .41583E-03    .10611E-02
   4  Prefactor     .94543        .22312        .31303E-03    .97418E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6530.749     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      396 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4328        11.388        .42877E-05    .85907E-04
   2  Index         4.0846        1.6203        .24072E-03    .11996E-04
   3  Normalizat    1.3007        .25744        .54496E-04   -.93042E-05
   4  Prefactor     .94543        .20412        .51015E-04   -.12480E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.43277
  Index      = 4.08465
  Normalizat = 1.30065
  Prefactor  = 0.945427
 **********
 **   18 **HESSE 
 **********

 FCN=   6530.749     FROM HESSE     STATUS=OK            23 CALLS      419 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4328        11.131        .85755E-06   -1.5242    
   2  Index         4.0846        1.5851        .96289E-05   -.18411    
   3  Normalizat    1.3007        .25743        .10899E-04   -.83547    
   4  Prefactor     .94543        .20407        .10203E-04   -.94571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52867e-12
Minuit parameter uncertainties:
  1  11.1356
  2  1.61396
  3  0.257687
  4  0.204231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588320': 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) = 6530.74934955
delta logL = 0.707749913772

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  5.433e+00  1.114e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  4.085e+00  1.614e+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:  9.454e-01  2.042e-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.301e+00  2.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.52
Ra Dec: 129.051 21.697
Photon Index (Free Index): 4.08 +/- 1.61
Photon Flux (Free Index): 1.36e-07 +/- 8.69e-08
Energy Flux (Free Index): 2.00e-05 +/- 1.27e-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/588320/cmap_HighResolution_583804801_584064001_4FGL_J0836.2+2141_daily_bin1329.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', comment='SUCCESS', photon_flux='6.83e-08', energy_flux2='2.00e-05', photon_flux_error='5.89e-08', dlogl='7.08e-01', energy_flux='1.61e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-08-30 02:30:24.901392', photon_index_error2='1.61', photon_index2='4.08', ts='1.86', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.85e-07', energy_flux_error2='1.27e-05', EG='1.39', time_epoch_completed='1630315824.9', return_code='0', job_id='588320', GAL2='0.95', EG2='1.30', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='8.69e-08', ts2='3.52', photon_index='2.73' WHERE bin_id='1329' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:30:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 588320: <4FGL_J0836.2+2141_daily_bin1329> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin1329> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 02:15:55 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:15:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 02:15:56 2021
Terminated at Mon Aug 30 02:30:28 2021
Results reported at Mon Aug 30 02:30:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1329 129.051 21.6971 583804801 584064001 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 :                                   616.00 sec.
    Max Memory :                                 1187 MB
    Average Memory :                             252.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            873 sec.

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

