/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 136 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 = 7476
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0836.2+2141_daily_bin98
RA = 129.051, Dec = 21.6971
tmin = 264729601, tmax = 264988801
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='581670', job_status='RUN', time_executed='2021-08-30 02:00:02.032268', time_epoch_executed='1630314002.03' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='98'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/581670

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/581670/ft1_4FGL_J0836.2+2141_daily_bin98.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/581670/ft2_4FGL_J0836.2+2141_daily_bin98.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/581670/ft1_4FGL_J0836.2+2141_daily_bin98.fits outfile=/scratch/kocevski/581670/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin98.fits ra=129.051 dec=21.6971 rad=12.0 tmin=264729601.0 tmax=264988801.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.05
user 1.26
sys 4.72

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/581670/ft2_4FGL_J0836.2+2141_daily_bin98.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/581670/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin98.fits evtable="EVENTS" outfile="/scratch/kocevski/581670/ft1_filtered_4FGL_J0836.2+2141_daily_bin98.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 5.10
user 0.34
sys 4.68

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/581670/ft1_filtered_4FGL_J0836.2+2141_daily_bin98.fits" evtable="EVENTS" scfile=/scratch/kocevski/581670/ft2_4FGL_J0836.2+2141_daily_bin98.fits sctable="SC_DATA" outfile=/scratch/kocevski/581670/ltcube_264729601_264988801_4FGL_J0836.2+2141_daily_bin98.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/581670/ft2_4FGL_J0836.2+2141_daily_bin98.fits
.....................!
real 17.70
user 12.23
sys 5.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/581670/ft1_filtered_4FGL_J0836.2+2141_daily_bin98.fits evtable="EVENTS" scfile=/scratch/kocevski/581670/ft2_4FGL_J0836.2+2141_daily_bin98.fits sctable="SC_DATA" expcube=/scratch/kocevski/581670/ltcube_264729601_264988801_4FGL_J0836.2+2141_daily_bin98.fits outfile=/scratch/kocevski/581670/expmap_264729601_264988801_4FGL_J0836.2+2141_daily_bin98.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/581670/ltcube_264729601_264988801_4FGL_J0836.2+2141_daily_bin98.fits
.....................!
real 197.12
user 186.07
sys 10.66

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/581670/ft1_filtered_4FGL_J0836.2+2141_daily_bin98.fits scfile=/scratch/kocevski/581670/ft2_4FGL_J0836.2+2141_daily_bin98.fits outfile=/scratch/kocevski/581670/cmap_264729601_264988801_4FGL_J0836.2+2141_daily_bin98.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 4.96
user 0.36
sys 4.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/581670/ft1_filtered_4FGL_J0836.2+2141_daily_bin98.fits scfile=/scratch/kocevski/581670/ft2_4FGL_J0836.2+2141_daily_bin98.fits outfile=/scratch/kocevski/581670/cmap_HighResolution_264729601_264988801_4FGL_J0836.2+2141_daily_bin98.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 5.00
user 0.38
sys 4.58

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15564E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24351E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.4762       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.837       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.813       1.0000         .10000E-03   10000.    
    13 'norm      '    .46312       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.073       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.141       1.0000         .10000E-03   10000.    
    16 'norm      '    4.6308       1.0000         .10000E-03   10000.    
    17 'norm      '    52.968       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0625       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91933       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=   7097.141     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     2526 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4181        .46230E-08** at limit **
   2  Prefactor     .10000E-03    62.730        .11123E-04** at limit **
   3  Prefactor     .10000E-03    15.650       -.47839E-06** at limit **
   4  norm          .10000E-03    44.695       -.30127E-04** at limit **
   5  Prefactor     .10000E-03    7.4166        .14511E-07** at limit **
   6  Prefactor     .10000E-03    8.1286       -.20118E-07** at limit **
   7  Prefactor     .10030E-03    20.041       -.70012E-06** at limit **
   8  Prefactor     .10000E-03    41.313        .22043E-04** at limit **
   9  norm          2.4762        1.2966       -.28390E-06   -.18080E-02
  10  Prefactor     11.834        10.294        .25313E-05   -.21223E-03
  11  Prefactor     .10000E-03    4.3114       -.68389E-07** at limit **
  12  Prefactor     27.817        31.527       -.95254E-06   -.10953E-04
  13  norm          .46311        .39494       -.23420E-07   -.20889E-03
  14  Prefactor     10.070        8.7314       -.16324E-07   -.24248E-04
  15  Prefactor     23.141        15.485       -.16565E-06   -.31336E-04
  16  norm          4.6311        4.4033        .41300E-06    .97735E-03
  17  norm          52.975        39.107        .69002E-06   -.57417E-05
  18  norm          .10000E-03    1.1445        .85903E-08** at limit **
  19  Prefactor     .10000E-03    14.216        .37166E-06** at limit **
  20  Normalizat    1.0629        .17179       -.73325E-06   -.15527E-03
  21  Prefactor     .91903        .13869        .15712E-06   -.17367E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100303
  Prefactor  = 0.0001
  norm       = 2.47617
  Prefactor  = 11.8337
  Prefactor  = 0.0001
  Prefactor  = 27.8175
  norm       = 0.463111
  Prefactor  = 10.0702
  Prefactor  = 23.1414
  norm       = 4.63109
  norm       = 52.975
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0629
  Prefactor  = 0.919025
 **********
 **   18 **HESSE 
 **********

 FCN=   7097.141     FROM HESSE     STATUS=OK           327 CALLS     2853 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    63.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    44.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.4188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.1312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10030E-03    21.989        .11659       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    41.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.4762        1.2957        .63901E-04   -1.5393    
  10  Prefactor     11.834        10.281        .11644E-03   -1.5020    
  11  Prefactor     .10000E-03    4.3720        .17073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.817        31.601        .75964E-04   -1.4653    
  13  norm          .46311        .40635        .46930E-03   -1.5572    
  14  Prefactor     10.070        8.7241        .12626E-03   -1.5073    
  15  Prefactor     23.141        15.542        .83266E-04   -1.4745    
  16  norm          4.6311        4.4322        .84659E-03   -1.5278    
  17  norm          52.975        39.114        .55109E-04   -1.4251    
  18  norm          .10000E-03    1.1983        .17598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0629        .19886        .24942E-03   -.90952    
  21  Prefactor     .91903        .16017        .22559E-03   -.95479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25339e-10
Minuit parameter uncertainties:
  1  1.24628e-06
  2  5.91667e-05
  3  1.77695e-06
  4  1.84762e-05
  5  6.27505e-07
  6  4.48849e-07
  7  0.0051627
  8  0.000247744
  9  1.29569
  10  10.2822
  11  7.47745e-06
  12  31.6203
  13  0.406347
  14  8.72523
  15  15.5442
  16  4.43249
  17  39.1334
  18  7.39352e-07
  19  1.2823e-07
  20  0.199001
  21  0.160249
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.183e+01  1.028e+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:  9.190e-01  1.602e-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.063e+00  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.87
Ra Dec: 129.051 21.697
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 5.81e-08 +/- 5.04e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.19e-05

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

Saving results to:
/scratch/kocevski/581670/likelihoodResults_264729601_264988801_4FGL_J0836.2+2141_daily_bin98.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) = 7096.68746606
delta logL = 0.453318001797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7096.67874837
delta logL = 0.46203569688

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42906       1.0000         .10000E-03   10000.    
     2 'Index     '    5.6597       1.0000          .0000       10.000    
     3 'Normalizat'    .99773       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96918       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.

 FCN=   7096.679     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      293 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42917        3.6755        .79750E-02    .25924E-02
   2  Index         5.6598        3.0472        .16856        .47029E-04
   3  Normalizat    .99774        .40293E-01    .46139E-01    .14476E-04
   4  Prefactor     .96918        .34343E-01    .45881E-01    .14692E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.429168
  Index      = 5.6598
  Normalizat = 0.997735
  Prefactor  = 0.969179
 **********
 **   18 **HESSE 
 **********

 FCN=   7096.679     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      326 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42917        9.4697        .36002E-04   -1.5577    
   2  Index         5.6598        7.6305        .62164E-02    .13235    
   3  Normalizat    .99774        .17199        .25637E-03   -.93106    
   4  Prefactor     .96918        .14214        .22056E-03   -.93764    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.15013e-08
Minuit parameter uncertainties:
  1  4.03218
  2  6.44834
  3  0.172083
  4  0.142196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/581670': 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): 102
logL (Free Index) = 7096.67874815
delta logL = 0.462035915504

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  4.292e-01  4.032e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  5.660e+00  6.448e+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.692e-01  1.422e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  9.977e-01  1.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.07
Ra Dec: 129.051 21.697
Photon Index (Free Index): 5.66 +/- 6.45
Photon Flux (Free Index): 9.23e-08 +/- 6.68e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.09e-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/581670/cmap_HighResolution_264729601_264988801_4FGL_J0836.2+2141_daily_bin98.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', photon_flux='5.81e-08', energy_flux2='1.17e-05', photon_flux_error='5.04e-08', dlogl='4.62e-01', energy_flux='1.37e-05', photon_flux2='9.23e-08', job_status='DONE', time_completed='2021-08-30 02:12:08.646455', photon_index_error2='6.45', photon_index2='5.66', ts='1.87', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='1.09e-05', EG='1.06', time_epoch_completed='1630314728.65', return_code='0', job_id='581670', GAL2='0.97', EG2='1.00', return_code2='102', energy_flux_error='1.19e-05', photon_flux_error2='6.68e-08', ts2='3.07', photon_index='2.73' WHERE bin_id='98' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:12:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0136>
Subject: Job 581670: <4FGL_J0836.2+2141_daily_bin98> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin98> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Aug 30 01:55:46 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:55:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 01:55:47 2021
Terminated at Mon Aug 30 02:12:10 2021
Results reported at Mon Aug 30 02:12:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin98 129.051 21.6971 264729601 264988801 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 :                                   796.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             252.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            984 sec.

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

