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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1095
RA = 129.051, Dec = 21.6971
tmin = 523152001, tmax = 523411201
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='587965', job_status='RUN', time_executed='2021-08-30 02:17:58.908536', time_epoch_executed='1630315078.91' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1095'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/587965

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/587965/ft1_4FGL_J0836.2+2141_daily_bin1095.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/587965/ft2_4FGL_J0836.2+2141_daily_bin1095.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/587965/ft1_4FGL_J0836.2+2141_daily_bin1095.fits outfile=/scratch/kocevski/587965/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1095.fits ra=129.051 dec=21.6971 rad=12.0 tmin=523152001.0 tmax=523411201.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.49
user 4.00
sys 0.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/587965/ft1_filtered_4FGL_J0836.2+2141_daily_bin1095.fits" evtable="EVENTS" scfile=/scratch/kocevski/587965/ft2_4FGL_J0836.2+2141_daily_bin1095.fits sctable="SC_DATA" outfile=/scratch/kocevski/587965/ltcube_523152001_523411201_4FGL_J0836.2+2141_daily_bin1095.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/587965/ft2_4FGL_J0836.2+2141_daily_bin1095.fits
.....................!
real 12.06
user 11.38
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/587965/ft1_filtered_4FGL_J0836.2+2141_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/587965/ft2_4FGL_J0836.2+2141_daily_bin1095.fits sctable="SC_DATA" expcube=/scratch/kocevski/587965/ltcube_523152001_523411201_4FGL_J0836.2+2141_daily_bin1095.fits outfile=/scratch/kocevski/587965/expmap_523152001_523411201_4FGL_J0836.2+2141_daily_bin1095.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/587965/ltcube_523152001_523411201_4FGL_J0836.2+2141_daily_bin1095.fits
.....................!
real 191.69
user 185.77
sys 5.32

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/587965/ft1_filtered_4FGL_J0836.2+2141_daily_bin1095.fits scfile=/scratch/kocevski/587965/ft2_4FGL_J0836.2+2141_daily_bin1095.fits outfile=/scratch/kocevski/587965/cmap_523152001_523411201_4FGL_J0836.2+2141_daily_bin1095.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.78
user 0.37
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/587965/ft1_filtered_4FGL_J0836.2+2141_daily_bin1095.fits scfile=/scratch/kocevski/587965/ft2_4FGL_J0836.2+2141_daily_bin1095.fits outfile=/scratch/kocevski/587965/cmap_HighResolution_523152001_523411201_4FGL_J0836.2+2141_daily_bin1095.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.39
sys 0.37

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.126       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18698E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    63.721       1.0000         .10000E-03   10000.    
     5 'Prefactor '    57.497       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.036       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .12882       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030       1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.145       1.0000         .10000E-03   10000.    
    12 'Prefactor '    66.804       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9662       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    19.192       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4893       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0262       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=   7607.005     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2281 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.122        24.157        .13121E-05   -.30765E-04
   2  Prefactor     .10000E-03    197.82       -.49538E-05** at limit **
   3  Prefactor     .10000E-03    54.810        .36898E-06** at limit **
   4  norm          63.857        101.86        .98244E-04   -.14618E-04
   5  Prefactor     57.487        49.134        .52502E-06   -.17676E-04
   6  Prefactor     21.040        50.333        .44172E-05   -.12747E-04
   7  Prefactor     .10000E-03    13.640        .21773E-06** at limit **
   8  Prefactor     .10000E-03    37.536        .26930E-06** at limit **
   9  norm          .13240        .71955       -.11889E-06   -.68444E-03
  10  Prefactor     .10585E-03    9.8108        .10680E-05** at limit **
  11  Prefactor     31.158        13.960        .66864E-06   -.24502E-03
  12  Prefactor     66.787        44.168        .17683E-05   -.22863E-04
  13  norm          1.9664        1.1071        .13449E-06   -.54829E-03
  14  Prefactor     .10000E-03    24.547        .26843E-06** at limit **
  15  Prefactor     .10000E-03    9.8896        .23171E-07** at limit **
  16  norm          .10000E-03    8.8916        .16449E-06** at limit **
  17  norm          19.189        45.189        .11364E-05   -.19171E-04
  18  norm          .10000E-03    .76069       -.41101E-08** at limit **
  19  Prefactor     .10000E-03    23.661        .12378E-06** at limit **
  20  Normalizat    1.4898        .21175        .98345E-06   -.38148E-03
  21  Prefactor     1.0259        .16866       -.59865E-05    .15268E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.1225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 63.8572
  Prefactor  = 57.487
  Prefactor  = 21.0403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.132404
  Prefactor  = 0.000105847
  Prefactor  = 31.1582
  Prefactor  = 66.7869
  norm       = 1.96637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 19.1892
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.48981
  Prefactor  = 1.02589
 **********
 **   18 **HESSE 
 **********

 FCN=   7607.005     FROM HESSE     STATUS=OK           323 CALLS     2604 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.122        24.173        .83294E-04   -1.4746    
   2  Prefactor     .10000E-03    204.66        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    54.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          63.857        101.81        .25136E-03   -1.4108    
   5  Prefactor     57.487        49.040        .52906E-04   -1.4190    
   6  Prefactor     21.040        50.206        .87328E-04   -1.4790    
   7  Prefactor     .10000E-03    13.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .13240        3.0273        .13369E-02   -1.5635    
  10  Prefactor     .10585E-03    17.519        .66912E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     31.158        13.983        .71796E-04   -1.4591    
  12  Prefactor     66.787        44.234        .49105E-04   -1.4072    
  13  norm          1.9664        1.1078        .29576E-04   -1.5428    
  14  Prefactor     .10000E-03    24.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.9142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.1879        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          19.189        45.246        .91425E-04   -1.4832    
  18  norm          .10000E-03    .76184        .74287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4898        .25518        .28218E-03   -.78065    
  21  Prefactor     1.0259        .20204        .26850E-03   -.91872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5389e-09
Minuit parameter uncertainties:
  1  24.1828
  2  0.000518916
  3  6.08178e-05
  4  102.089
  5  49.0748
  6  50.3066
  7  2.40463e-05
  8  7.63831e-05
  9  1.26582
  10  0.0202484
  11  13.9844
  12  44.2562
  13  1.10778
  14  0.000116495
  15  2.84112e-05
  16  6.0969e-05
  17  45.3275
  18  1.53599e-06
  19  2.81358e-05
  20  0.255403
  21  0.202193
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.058e-04  2.025e-02  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.026e+00  2.022e-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.490e+00  2.554e-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.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/587965/likelihoodResults_523152001_523411201_4FGL_J0836.2+2141_daily_bin1095.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) = 7607.00496984
delta logL = -4.9838272389e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7606.87078346
delta logL = 0.134181388855

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3268       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3104       1.0000          .0000       10.000    
     3 'Normalizat'    1.4408       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0497       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=   7606.871     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      423 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3245        39.598        .95382E-02    .12295E-02
   2  Index         4.3114        3.2788        .33204        .38676E-04
   3  Normalizat    1.4409        .32850E-01    .64652E-01   -.47594E-05
   4  Prefactor     1.0496        .26765E-01    .60102E-01   -.82432E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.32446
  Index      = 4.31136
  Normalizat = 1.44089
  Prefactor  = 1.0496
 **********
 **   18 **HESSE 
 **********

 FCN=   7606.871     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      456 TOTAL
                     EDM=   .49E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3245        225.79        .17878E-03   -1.5478    
   2  Index         4.3114        6.9506        .10271E-01   -.13817    
   3  Normalizat    1.4409        .23785        .28597E-03   -.79453    
   4  Prefactor     1.0496        .18672        .26579E-03   -.91094    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.85039e-07
Minuit parameter uncertainties:
  1  34.7186
  2  18.3296
  3  0.238029
  4  0.186835
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/587965': 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) = 7606.87078331
delta logL = 0.134181540857

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.324e+00  3.472e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  4.311e+00  1.833e+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.050e+00  1.868e-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.441e+00  2.380e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/587965/cmap_HighResolution_523152001_523411201_4FGL_J0836.2+2141_daily_bin1095.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.38e-07', time_completed='2021-08-30 02:29:21.808655', job_id='587965', GAL2='1.05', fit_tolerance='1e-08', EG2='1.44', EG='1.49', time_epoch_completed='1630315761.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.34e-01', ts2='0.30', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1095' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:29:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 587965: <4FGL_J0836.2+2141_daily_bin1095> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1095 129.051 21.6971 523152001 523411201 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 :                                   681.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

