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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1223
RA = 129.051, Dec = 21.6971
tmin = 556329601, tmax = 556588801
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='588148', job_status='RUN', time_executed='2021-08-30 02:16:26.701947', time_epoch_executed='1630314986.7' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588148

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588148/ft1_4FGL_J0836.2+2141_daily_bin1223.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588148/ft2_4FGL_J0836.2+2141_daily_bin1223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588148/ft1_4FGL_J0836.2+2141_daily_bin1223.fits outfile=/scratch/kocevski/588148/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1223.fits ra=129.051 dec=21.6971 rad=12.0 tmin=556329601.0 tmax=556588801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.31
user 3.48
sys 0.63

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/588148/ft2_4FGL_J0836.2+2141_daily_bin1223.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/588148/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1223.fits evtable="EVENTS" outfile="/scratch/kocevski/588148/ft1_filtered_4FGL_J0836.2+2141_daily_bin1223.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.93
user 0.32
sys 0.59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588148/ft1_filtered_4FGL_J0836.2+2141_daily_bin1223.fits" evtable="EVENTS" scfile=/scratch/kocevski/588148/ft2_4FGL_J0836.2+2141_daily_bin1223.fits sctable="SC_DATA" outfile=/scratch/kocevski/588148/ltcube_556329601_556588801_4FGL_J0836.2+2141_daily_bin1223.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/588148/ft2_4FGL_J0836.2+2141_daily_bin1223.fits
.....................!
real 12.03
user 11.11
sys 0.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588148/ft1_filtered_4FGL_J0836.2+2141_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/588148/ft2_4FGL_J0836.2+2141_daily_bin1223.fits sctable="SC_DATA" expcube=/scratch/kocevski/588148/ltcube_556329601_556588801_4FGL_J0836.2+2141_daily_bin1223.fits outfile=/scratch/kocevski/588148/expmap_556329601_556588801_4FGL_J0836.2+2141_daily_bin1223.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/588148/ltcube_556329601_556588801_4FGL_J0836.2+2141_daily_bin1223.fits
.....................!
real 190.98
user 185.72
sys 4.77

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/588148/ft1_filtered_4FGL_J0836.2+2141_daily_bin1223.fits scfile=/scratch/kocevski/588148/ft2_4FGL_J0836.2+2141_daily_bin1223.fits outfile=/scratch/kocevski/588148/cmap_556329601_556588801_4FGL_J0836.2+2141_daily_bin1223.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.95
user 0.37
sys 0.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588148/ft1_filtered_4FGL_J0836.2+2141_daily_bin1223.fits scfile=/scratch/kocevski/588148/ft2_4FGL_J0836.2+2141_daily_bin1223.fits outfile=/scratch/kocevski/588148/cmap_HighResolution_556329601_556588801_4FGL_J0836.2+2141_daily_bin1223.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.96
user 0.37
sys 0.58

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6359       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.7949       1.0000         .10000E-03   10000.    
     3 'Prefactor '    49.050       1.0000         .10000E-03   10000.    
     4 'norm      '    36.386       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.079       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.3723       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4296       1.0000         .10000E-03   10000.    
    12 'Prefactor '    54.798       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6090       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    51.599       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .78690E-02   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1405       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95571       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=   2406.748     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2180 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6154        20.608        .13057E-04   -.18496E-04
   2  Prefactor     7.7897        51.377        .84286E-05   -.89877E-05
   3  Prefactor     49.053        67.943        .93363E-06   -.30195E-05
   4  norm          36.331        86.600       -.48882E-04   -.40754E-08
   5  Prefactor     .10000E-03    28.905       -.71153E-05** at limit **
   6  Prefactor     .10000E-03    37.956       -.29192E-04** at limit **
   7  Prefactor     35.051        127.54       -.37456E-04    .19371E-05
   8  Prefactor     .10000E-03    36.819        .28411E-04** at limit **
   9  norm          1.3728        2.2491       -.12053E-06   -.31974E-03
  10  Prefactor     .10000E-03    5.7921       -.85393E-07** at limit **
  11  Prefactor     2.4300        8.8942        .10778E-04   -.22300E-03
  12  Prefactor     54.826        61.167        .10066E-05   -.22109E-04
  13  norm          1.6089        1.3347       -.12742E-07   -.91782E-04
  14  Prefactor     .10000E-03    9.5995        .12943E-06** at limit **
  15  Prefactor     .10000E-03    29.022        .59310E-05** at limit **
  16  norm          .10000E-03    12.780        .99725E-07** at limit **
  17  norm          51.437        77.451       -.94172E-04   -.20051E-04
  18  norm          .10000E-03    11.554        .23909E-07** at limit **
  19  Prefactor     .10002E-03    596.26        .12125E-03** at limit **
  20  Normalizat    1.1402        .33193       -.26369E-05   -.11567E-04
  21  Prefactor     .95569        .25596        .44472E-05   -.19251E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.61539
  Prefactor  = 7.78966
  Prefactor  = 49.0533
  norm       = 36.331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.0509
  Prefactor  = 0.0001
  norm       = 1.37284
  Prefactor  = 0.0001
  Prefactor  = 2.43004
  Prefactor  = 54.8259
  norm       = 1.6089
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 51.4374
  norm       = 0.0001
  Prefactor  = 0.000100021
  Normalizat = 1.14022
  Prefactor  = 0.955688
 **********
 **   18 **HESSE 
 **********

 FCN=   2406.748     FROM HESSE     STATUS=OK           311 CALLS     2491 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6154        20.632        .15578E-03   -1.5194    
   2  Prefactor     7.7897        51.332        .14362E-03   -1.5150    
   3  Prefactor     49.053        67.951        .57258E-04   -1.4306    
   4  norm          36.331        86.713        .66439E-04   -1.4502    
   5  Prefactor     .10000E-03    28.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    37.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     35.051        127.71        .67662E-04   -1.4523    
   8  Prefactor     .10000E-03    36.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.3728        2.2104        .90637E-04   -1.5474    
  10  Prefactor     .10000E-03    5.7948        .11532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4300        8.8364        .26254E-03   -1.5396    
  12  Prefactor     54.826        61.548        .54186E-04   -1.4226    
  13  norm          1.6089        1.3402        .49811E-04   -1.5454    
  14  Prefactor     .10000E-03    9.6012        .14847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    29.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    12.906        .17129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          51.437        77.569        .27916E-03   -1.4272    
  18  norm          .10000E-03    11.555        .16290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    598.84        .18505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1402        .40097        .27923E-03   -.88471    
  21  Prefactor     .95569        .30895        .23364E-03   -.94221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6037e-10
Minuit parameter uncertainties:
  1  20.6545
  2  40.0428
  3  68.0585
  4  87.0158
  5  1.0426e-05
  6  1.76448e-05
  7  128.725
  8  8.64736e-06
  9  2.21048
  10  4.25264e-06
  11  8.84119
  12  61.6191
  13  1.3402
  14  3.17705e-05
  15  2.41635e-05
  16  2.5737e-05
  17  77.7218
  18  9.97929e-06
  19  0.00719701
  20  0.402048
  21  0.309524
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  4.253e-06  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.557e-01  3.095e-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.140e+00  4.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/588148/likelihoodResults_556329601_556588801_4FGL_J0836.2+2141_daily_bin1223.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): 102
logL (Free Index) = 2406.74881746
delta logL = -0.000792839451606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2406.74802464
delta logL = -1.56151145347e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7220       1.0000          .0000       10.000    
     3 'Normalizat'    1.1401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95575       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=   2406.748     FROM MIGRAD    STATUS=FAILED        88 CALLS      241 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10142E-03    281.96        .11571E-02** at limit **
   2  Index         2.6143        7.1576        .50000        .10730E-04
   3  Normalizat    1.1402        .59669E-01    .27923E-03   -.88960E-05
   4  Prefactor     .95569        .46413E-01    .23363E-03   -.37712E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2406.748     FROM SIMPLEX   STATUS=UNCHANGED    137 CALLS      378 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10142E-03    281.96        .43453E-03** at limit **
   2  Index         2.6143        7.1576        .44711E-04    .10730E-04
   3  Normalizat    1.1402        .59669E-01    .18260E-05   -.88960E-05
   4  Prefactor     .95569        .46413E-01    .16949E-05   -.37712E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2406.748     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      418 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1455.9        .23142E-03** at limit **
   2  Index         2.3121        8.8163        .50000       -.69576E-08
   3  Normalizat    1.1402        .31917        .11169E-04    .30739E-04
   4  Prefactor     .95569        .24838        .93453E-05    .41118E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.31211
  Normalizat = 1.14022
  Prefactor  = 0.955693
 **********
 **   18 **HESSE 
 **********

 FCN=   2406.748     FROM HESSE     STATUS=OK            29 CALLS      447 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6088        .46284E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3121        5.9098        .50000       -.56756    
   3  Normalizat    1.1402        .38890        .22339E-05   -.88471    
   4  Prefactor     .95569        .30273        .18691E-05   -.94221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11863e-11
Minuit parameter uncertainties:
  1  5.12556e-05
  2  183.775
  3  0.389882
  4  0.303266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588148': 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) = 2406.74802392
delta logL = 7.01571480022e-07

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  5.126e-05  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.312e+00  1.838e+02  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.557e-01  3.033e-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.140e+00  3.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 129.051 21.697

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/588148/cmap_HighResolution_556329601_556588801_4FGL_J0836.2+2141_daily_bin1223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', job_status='DONE', photon_flux_upper_limit='1.52e-07', time_completed='2021-08-30 02:23:30.064981', job_id='588148', GAL2='0.96', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630315410.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='7.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1223' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:23:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 588148: <4FGL_J0836.2+2141_daily_bin1223> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1223 129.051 21.6971 556329601 556588801 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 :                                   428.47 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             312.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   464 sec.
    Turnaround time :                            465 sec.

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

