/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 6 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 = 7665
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0836.2+2141_daily_bin300
RA = 129.051, Dec = 21.6971
tmin = 317088001, tmax = 317347201
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='583125', job_status='RUN', time_executed='2021-08-30 02:01:57.012306', time_epoch_executed='1630314117.01' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/583125

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/583125/ft1_4FGL_J0836.2+2141_daily_bin300.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/583125/ft2_4FGL_J0836.2+2141_daily_bin300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/583125/ft1_4FGL_J0836.2+2141_daily_bin300.fits outfile=/scratch/kocevski/583125/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin300.fits ra=129.051 dec=21.6971 rad=12.0 tmin=317088001.0 tmax=317347201.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 8.25
user 3.60
sys 4.61

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/583125/ft1_filtered_4FGL_J0836.2+2141_daily_bin300.fits" evtable="EVENTS" scfile=/scratch/kocevski/583125/ft2_4FGL_J0836.2+2141_daily_bin300.fits sctable="SC_DATA" outfile=/scratch/kocevski/583125/ltcube_317088001_317347201_4FGL_J0836.2+2141_daily_bin300.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/583125/ft2_4FGL_J0836.2+2141_daily_bin300.fits
.....................!
real 17.35
user 12.30
sys 4.99

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/583125/ft1_filtered_4FGL_J0836.2+2141_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/583125/ft2_4FGL_J0836.2+2141_daily_bin300.fits sctable="SC_DATA" expcube=/scratch/kocevski/583125/ltcube_317088001_317347201_4FGL_J0836.2+2141_daily_bin300.fits outfile=/scratch/kocevski/583125/expmap_317088001_317347201_4FGL_J0836.2+2141_daily_bin300.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/583125/ltcube_317088001_317347201_4FGL_J0836.2+2141_daily_bin300.fits
.....................!
real 197.22
user 186.03
sys 9.80

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/583125/ft1_filtered_4FGL_J0836.2+2141_daily_bin300.fits scfile=/scratch/kocevski/583125/ft2_4FGL_J0836.2+2141_daily_bin300.fits outfile=/scratch/kocevski/583125/cmap_317088001_317347201_4FGL_J0836.2+2141_daily_bin300.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.89
user 0.38
sys 4.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/583125/ft1_filtered_4FGL_J0836.2+2141_daily_bin300.fits scfile=/scratch/kocevski/583125/ft2_4FGL_J0836.2+2141_daily_bin300.fits outfile=/scratch/kocevski/583125/cmap_HighResolution_317088001_317347201_4FGL_J0836.2+2141_daily_bin300.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 4.83
user 0.37
sys 4.42

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    63.011       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16791E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.351       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6938       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    54.918       1.0000         .10000E-03   10000.    
    13 'norm      '    .53058       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.388       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.9235       1.0000         .10000E-03   10000.    
    18 'norm      '    .44964       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4065       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0490       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=   7033.582     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2187 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.610       -.51207E-06** at limit **
   2  Prefactor     62.991        59.550        .62268E-08   -.37433E-04
   3  Prefactor     .10000E-03    192.75       -.40308E-05** at limit **
   4  norm          .10000E-03    55.873        .15158E-06** at limit **
   5  Prefactor     .10000E-03    12.631        .65423E-07** at limit **
   6  Prefactor     .10000E-03    20.482        .47952E-06** at limit **
   7  Prefactor     23.354        28.106        .21812E-06   -.75069E-06
   8  Prefactor     .10000E-03    14.831       -.12661E-06** at limit **
   9  norm          1.6945        1.4572        .11172E-06    .52449E-05
  10  Prefactor     .10000E-03    7.1838        .34483E-07** at limit **
  11  Prefactor     .10000E-03    4.0797        .81349E-07** at limit **
  12  Prefactor     54.927        52.620        .52972E-06    .11908E-04
  13  norm          .53066        .60452        .10197E-06    .15220E-03
  14  Prefactor     .10000E-03    5.0912        .62452E-08** at limit **
  15  Prefactor     19.391        20.058       -.15045E-06   -.43520E-04
  16  norm          .10000E-03    5.4022        .39286E-07** at limit **
  17  norm          1.8970        68.569        .17515E-05   -.75233E-06
  18  norm          .44981        2.3675        .19043E-05   -.18273E-04
  19  Prefactor     .10000E-03    23.519       -.14530E-06** at limit **
  20  Normalizat    1.4064        .21268       -.62078E-06   -.36391E-04
  21  Prefactor     1.0490        .16485       -.24298E-06   -.55582E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 62.991
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.3535
  Prefactor  = 0.0001
  norm       = 1.69451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.9274
  norm       = 0.530663
  Prefactor  = 0.0001
  Prefactor  = 19.391
  norm       = 0.0001
  norm       = 1.89696
  norm       = 0.449811
  Prefactor  = 0.0001
  Normalizat = 1.40639
  Prefactor  = 1.049
 **********
 **   18 **HESSE 
 **********

 FCN=   7033.582     FROM HESSE     STATUS=OK           315 CALLS     2502 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     62.991        59.697        .50552E-04   -1.4119    
   3  Prefactor     .10000E-03    198.58        .40759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    55.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.354        28.113        .82892E-04   -1.4741    
   8  Prefactor     .10000E-03    14.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6945        1.4436        .88624E-04   -1.5448    
  10  Prefactor     .10000E-03    7.2608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.1272        .16541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     54.927        53.259        .54128E-04   -1.4224    
  13  norm          .53066        .57420        .67221E-03   -1.5562    
  14  Prefactor     .10000E-03    5.0974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.391        20.159        .90962E-04   -1.4827    
  16  norm          .10000E-03    5.4408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8970        68.946        .29957E-03   -1.5433    
  18  norm          .44981        2.3702        .25108E-03   -1.5574    
  19  Prefactor     .10000E-03    23.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4064        .25339        .27252E-03   -.80444    
  21  Prefactor     1.0490        .19554        .25120E-03   -.91113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32071e-11
Minuit parameter uncertainties:
  1  7.41884e-05
  2  59.7537
  3  0.00108397
  4  0.000152981
  5  1.61868e-05
  6  0.000175083
  7  28.1287
  8  3.6155e-05
  9  1.44364
  10  1.93595e-06
  11  2.18835e-06
  12  53.305
  13  0.57421
  14  4.04095e-07
  15  20.1665
  16  2.41789e-06
  17  22.9005
  18  2.06498
  19  7.15534e-05
  20  0.253617
  21  0.195668
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  1.936e-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:  1.049e+00  1.957e-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.406e+00  2.536e-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: 9.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/583125/likelihoodResults_317088001_317347201_4FGL_J0836.2+2141_daily_bin300.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) = 7033.58290405
delta logL = -0.000656234777125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7033.58224877
delta logL = -9.54742972681e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7521       1.0000          .0000       10.000    
     3 'Normalizat'    1.4061       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0492       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=   7033.582     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      264 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    .14118        .69542E-01** at limit **
   2  Index         3.7063        6.8356        .50000        .37264E-06
   3  Normalizat    1.4064        .14728E-02    .27252E-03   -.11569E-02
   4  Prefactor     1.0490        .12015E-02    .25120E-03   -.13259E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Index      = 3.70632
  Normalizat = 1.40639
  Prefactor  = 1.049
 **********
 **   18 **HESSE 
 **********

 FCN=   7033.582     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      295 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    90.688        .21505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.7063        8.0606        .50000       -.26171    
   3  Normalizat    1.4064        .13295E-01    .54504E-04   -.80444    
   4  Prefactor     1.0490        .10846E-01    .50240E-04   -.91113    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.23106e-09
Minuit parameter uncertainties:
  1  0.00182964
  2  323.685
  3  0.0132954
  4  0.0108458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/583125': 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) = 7033.58224452
delta logL = 3.29873364535e-06

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  1.830e-03  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  3.706e+00  3.237e+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:  1.049e+00  1.085e-02  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.406e+00  1.330e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/583125/cmap_HighResolution_317088001_317347201_4FGL_J0836.2+2141_daily_bin300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.41e-03', job_status='DONE', photon_flux_upper_limit='9.40e-08', time_completed='2021-08-30 02:13:31.947099', job_id='583125', GAL2='1.05', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1630314811.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.30e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='300' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:13:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 583125: <4FGL_J0836.2+2141_daily_bin300> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin300> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 30 02:00:26 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:00:28 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:00:28 2021
Terminated at Mon Aug 30 02:13:33 2021
Results reported at Mon Aug 30 02:13:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin300 129.051 21.6971 317088001 317347201 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 :                                   758.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            787 sec.

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

