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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin735
RA = 129.051, Dec = 21.6971
tmin = 429840001, tmax = 430099201
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='585029', job_status='RUN', time_executed='2021-08-30 02:06:35.198461', time_epoch_executed='1630314395.2' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/585029

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/585029/ft1_4FGL_J0836.2+2141_daily_bin735.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/585029/ft2_4FGL_J0836.2+2141_daily_bin735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/585029/ft1_4FGL_J0836.2+2141_daily_bin735.fits outfile=/scratch/kocevski/585029/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin735.fits ra=129.051 dec=21.6971 rad=12.0 tmin=429840001.0 tmax=430099201.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 6.16
user 5.62
sys 0.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/585029/ft1_filtered_4FGL_J0836.2+2141_daily_bin735.fits" evtable="EVENTS" scfile=/scratch/kocevski/585029/ft2_4FGL_J0836.2+2141_daily_bin735.fits sctable="SC_DATA" outfile=/scratch/kocevski/585029/ltcube_429840001_430099201_4FGL_J0836.2+2141_daily_bin735.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/585029/ft2_4FGL_J0836.2+2141_daily_bin735.fits
.....................!
real 12.86
user 12.17
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/585029/ft1_filtered_4FGL_J0836.2+2141_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/585029/ft2_4FGL_J0836.2+2141_daily_bin735.fits sctable="SC_DATA" expcube=/scratch/kocevski/585029/ltcube_429840001_430099201_4FGL_J0836.2+2141_daily_bin735.fits outfile=/scratch/kocevski/585029/expmap_429840001_430099201_4FGL_J0836.2+2141_daily_bin735.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/585029/ltcube_429840001_430099201_4FGL_J0836.2+2141_daily_bin735.fits
.....................!
real 190.27
user 185.31
sys 4.45

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/585029/ft1_filtered_4FGL_J0836.2+2141_daily_bin735.fits scfile=/scratch/kocevski/585029/ft2_4FGL_J0836.2+2141_daily_bin735.fits outfile=/scratch/kocevski/585029/cmap_429840001_430099201_4FGL_J0836.2+2141_daily_bin735.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.81
user 0.36
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/585029/ft1_filtered_4FGL_J0836.2+2141_daily_bin735.fits scfile=/scratch/kocevski/585029/ft2_4FGL_J0836.2+2141_daily_bin735.fits outfile=/scratch/kocevski/585029/cmap_HighResolution_429840001_430099201_4FGL_J0836.2+2141_daily_bin735.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.82
user 0.38
sys 0.43

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/585029/ft1_filtered_4FGL_J0836.2+2141_daily_bin735.fits', '/scratch/kocevski/585029/ft2_4FGL_J0836.2+2141_daily_bin735.fits', expMap='/scratch/kocevski/585029/expmap_429840001_430099201_4FGL_J0836.2+2141_daily_bin735.fits', expCube='/scratch/kocevski/585029/ltcube_429840001_430099201_4FGL_J0836.2+2141_daily_bin735.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/585029/Model_4FGL_J0836.2+2141_daily_bin735.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/585029/ft1_filtered_4FGL_J0836.2+2141_daily_bin735.fits
Spacecraft file(s): /scratch/kocevski/585029/ft2_4FGL_J0836.2+2141_daily_bin735.fits
Exposure map: /scratch/kocevski/585029/expmap_429840001_430099201_4FGL_J0836.2+2141_daily_bin735.fits
Exposure cube: /scratch/kocevski/585029/ltcube_429840001_430099201_4FGL_J0836.2+2141_daily_bin735.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/585029/Model_4FGL_J0836.2+2141_daily_bin735.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4506.2072504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41578E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8855       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.528       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .40015       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3924       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.9741       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7476       1.0000         .10000E-03   10000.    
    16 'norm      '    9.7795       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.4571       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .87111       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4506.045     FROM MIGRAD    STATUS=CONVERGED    771 CALLS     2256 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10693E-03    19.305        .78308E-01** at limit **
   2  Prefactor     .10000E-03    65.127        .18142E-02** at limit **
   3  Prefactor     .10000E-03    33.149        .18142E-02** at limit **
   4  norm          .10001E-03    45.274        .18142E-02** at limit **
   5  Prefactor     9.8519        33.005        .12745E-03   -.44066E-04
   6  Prefactor     .10000E-03    33.747        .18142E-02** at limit **
   7  Prefactor     29.527        24.746        .73731E-04   -.14957E-04
   8  Prefactor     .10000E-03    75.921        .36285E-03** at limit **
   9  norm          .40008        1.0008        .10385E-03   -.15490E-03
  10  Prefactor     9.3916        8.9725        .13077E-03   -.42687E-04
  11  Prefactor     .10000E-03    2.4761        .10304E-02** at limit **
  12  Prefactor     .10000E-03    33.683        .18142E-02** at limit **
  13  norm          2.9740        1.1182        .41561E-04   -.23716E-03
  14  Prefactor     .10000E-03    15.761        .18142E-02** at limit **
  15  Prefactor     1.7465        25.419        .31721E-03   -.38025E-04
  16  norm          9.7788        10.338        .12814E-03   -.14550E-04
  17  norm          .10000E-03    19.368        .18142E-02** at limit **
  18  norm          3.4571        2.8871        .10151E-03    .50240E-04
  19  Prefactor     .10000E-03    61.098        .18142E-02** at limit **
  20  Normalizat    .87111        .23740        .26864E-03   -.22121E-03
  21  Prefactor     1.1630        .20518        .20875E-03   -.19475E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106933
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 9.85193
  Prefactor  = 0.000100004
  Prefactor  = 29.5266
  Prefactor  = 0.000100001
  norm       = 0.400076
  Prefactor  = 9.39158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.97405
  Prefactor  = 0.0001
  Prefactor  = 1.74649
  norm       = 9.7788
  norm       = 0.0001
  norm       = 3.45708
  Prefactor  = 0.0001
  Normalizat = 0.871108
  Prefactor  = 1.16301
 **********
 **   18 **HESSE 
 **********

 FCN=   4506.045     FROM HESSE     STATUS=OK           305 CALLS     2561 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10693E-03    18.060        .82004E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    65.149        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    33.153        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10001E-03    45.275        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.8519        32.993        .50979E-05   -1.5080    
   6  Prefactor     .10000E-03    33.750        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.527        24.746        .14746E-04   -1.4621    
   8  Prefactor     .10000E-03    75.924        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .40008        1.0007        .41540E-05   -1.5581    
  10  Prefactor     9.3916        8.9721        .52306E-05   -1.5095    
  11  Prefactor     .10000E-03    2.4761        .20607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.686        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.9740        1.1181        .16624E-05   -1.5363    
  14  Prefactor     .10000E-03    15.767        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7465        25.404        .12689E-04   -1.5444    
  16  norm          9.7788        10.338        .51256E-05   -1.5082    
  17  norm          .10000E-03    19.369        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.4571        2.8871        .20302E-04   -1.5336    
  19  Prefactor     .10000E-03    61.111        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .87111        .23755        .10745E-04   -.97483    
  21  Prefactor     1.1630        .20533        .41750E-04   -.87477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89041e-10
Minuit parameter uncertainties:
  1  0.0223859
  2  0.000297483
  3  0.000125557
  4  0.00102959
  5  33.0538
  6  0.000719586
  7  24.7548
  8  0.000464317
  9  1.00071
  10  8.9734
  11  1.03218e-05
  12  6.64782e-05
  13  1.11813
  14  8.41543e-05
  15  13.3283
  16  10.3397
  17  5.06996e-05
  18  2.88722
  19  4.40858e-05
  20  0.237832
  21  0.205472
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.163e+00  2.055e-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.711e-01  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.67
Ra Dec: 129.051 21.697
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 4.61e-08 +/- 4.40e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 1.04e-05

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

Saving results to:
/scratch/kocevski/585029/likelihoodResults_429840001_430099201_4FGL_J0836.2+2141_daily_bin735.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) = 4505.92168396
delta logL = 0.123494819852

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4505.90207673
delta logL = 0.14310205784

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.274       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2597       1.0000          .0000       10.000    
     3 'Normalizat'    .88908       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1513       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4505.902     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      245 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.269        10.481        .59658E-03   -.42686E-05
   2  Index         2.2592        .77926        .97097E-02   -.46835E-05
   3  Normalizat    .88914        .23075        .26617E-03   -.80171E-04
   4  Prefactor     1.1513        .20352        .20960E-03   -.46744E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2691
  Index      = 2.25922
  Normalizat = 0.889144
  Prefactor  = 1.15126
 **********
 **   18 **HESSE 
 **********

 FCN=   4505.902     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.269        10.469        .23863E-04   -1.5036    
   2  Index         2.2592        .77822        .38839E-03   -.58016    
   3  Normalizat    .88914        .23089        .10647E-04   -.96843    
   4  Prefactor     1.1513        .20364        .41920E-04   -.87845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76396e-11
Minuit parameter uncertainties:
  1  10.4706
  2  0.782781
  3  0.231144
  4  0.203781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/585029': 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) = 4505.90207645
delta logL = 0.143102334262

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.127e+01  1.047e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.259e+00  7.828e-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.151e+00  2.038e-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.891e-01  2.311e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.95
Ra Dec: 129.051 21.697
Photon Index (Free Index): 2.26 +/- 0.78
Photon Flux (Free Index): 3.53e-08 +/- 3.97e-08
Energy Flux (Free Index): 1.43e-05 +/- 1.64e-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/585029/cmap_HighResolution_429840001_430099201_4FGL_J0836.2+2141_daily_bin735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', photon_flux='4.61e-08', energy_flux2='1.43e-05', photon_flux_error='4.40e-08', dlogl='1.43e-01', energy_flux='1.08e-05', photon_flux2='3.53e-08', job_status='DONE', time_completed='2021-08-30 02:15:35.386716', photon_index_error2='0.78', photon_index2='2.26', ts='1.67', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.64e-05', EG='0.87', time_epoch_completed='1630314935.39', return_code='0', job_id='585029', GAL2='1.15', EG2='0.89', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='3.97e-08', ts2='1.95', photon_index='2.73' WHERE bin_id='735' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:15:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 585029: <4FGL_J0836.2+2141_daily_bin735> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin735 129.051 21.6971 429840001 430099201 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 :                                   541.26 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             287.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   566 sec.
    Turnaround time :                            570 sec.

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

