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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1620
RA = 129.051, Dec = 21.6971
tmin = 659232001, tmax = 659491201
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='263515', job_status='RUN', time_executed='2021-12-07 19:15:50.775155', time_epoch_executed='1638933350.78' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263515

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263515/ft1_4FGL_J0836.2+2141_daily_bin1620.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263515/ft2_4FGL_J0836.2+2141_daily_bin1620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263515/ft1_4FGL_J0836.2+2141_daily_bin1620.fits outfile=/scratch/kocevski/263515/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1620.fits ra=129.051 dec=21.6971 rad=12.0 tmin=659232001.0 tmax=659491201.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 2.82
user 2.60
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263515/ft1_filtered_4FGL_J0836.2+2141_daily_bin1620.fits" evtable="EVENTS" scfile=/scratch/kocevski/263515/ft2_4FGL_J0836.2+2141_daily_bin1620.fits sctable="SC_DATA" outfile=/scratch/kocevski/263515/ltcube_659232001_659491201_4FGL_J0836.2+2141_daily_bin1620.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/263515/ft2_4FGL_J0836.2+2141_daily_bin1620.fits
.....................!
real 15.26
user 14.90
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263515/ft1_filtered_4FGL_J0836.2+2141_daily_bin1620.fits evtable="EVENTS" scfile=/scratch/kocevski/263515/ft2_4FGL_J0836.2+2141_daily_bin1620.fits sctable="SC_DATA" expcube=/scratch/kocevski/263515/ltcube_659232001_659491201_4FGL_J0836.2+2141_daily_bin1620.fits outfile=/scratch/kocevski/263515/expmap_659232001_659491201_4FGL_J0836.2+2141_daily_bin1620.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/263515/ltcube_659232001_659491201_4FGL_J0836.2+2141_daily_bin1620.fits
.....................!
real 191.54
user 186.01
sys 4.92

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/263515/ft1_filtered_4FGL_J0836.2+2141_daily_bin1620.fits scfile=/scratch/kocevski/263515/ft2_4FGL_J0836.2+2141_daily_bin1620.fits outfile=/scratch/kocevski/263515/cmap_659232001_659491201_4FGL_J0836.2+2141_daily_bin1620.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263515/ft1_filtered_4FGL_J0836.2+2141_daily_bin1620.fits scfile=/scratch/kocevski/263515/ft2_4FGL_J0836.2+2141_daily_bin1620.fits outfile=/scratch/kocevski/263515/cmap_HighResolution_659232001_659491201_4FGL_J0836.2+2141_daily_bin1620.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.920       1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.351       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.462       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.697       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.077       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.144       1.0000         .10000E-03   10000.    
     9 'norm      '    .78007       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8150       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .66990       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2138       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.494       1.0000         .10000E-03   10000.    
    16 'norm      '    5.0518       1.0000         .10000E-03   10000.    
    17 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9604       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .99302       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0593       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=   7415.780     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2233 TOTAL
                     EDM=   .67E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.919        27.514        .12887E-06   -.91003E-05
   2  Prefactor     49.346        40.954       -.15838E-06   -.12179E-04
   3  Prefactor     20.452        40.592       -.68965E-06   -.11731E-04
   4  norm          .10000E-03    29.119        .23949E-05** at limit **
   5  Prefactor     .10000E-03    10.340       -.61675E-08** at limit **
   6  Prefactor     24.697        32.031       -.85380E-07   -.16504E-04
   7  Prefactor     19.074        24.780        .73724E-07   -.81910E-05
   8  Prefactor     30.179        27.834       -.12881E-05   -.24713E-04
   9  norm          .77732        .96324        .83347E-06    .18732E-03
  10  Prefactor     .10000E-03    7.1983        .14673E-07** at limit **
  11  Prefactor     4.8149        4.6932       -.63188E-08   -.49245E-04
  12  Prefactor     .10000E-03    15.374        .14451E-06** at limit **
  13  norm          .66967        .51566       -.46368E-07   -.14786E-03
  14  Prefactor     1.2120        25.040        .26184E-05   -.80990E-04
  15  Prefactor     21.490        13.682        .18978E-06    .36429E-05
  16  norm          5.0519        4.7578       -.15969E-06   -.20706E-04
  17  norm          .10000E-03    26.637       -.24401E-05** at limit **
  18  norm          .10000E-03    .58890        .13125E-07** at limit **
  19  Prefactor     4.9069        29.446       -.11564E-05   -.10589E-04
  20  Normalizat    .99337        .17749       -.12824E-05    .24784E-04
  21  Prefactor     1.0591        .14586        .42827E-06   -.11353E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.9187
  Prefactor  = 49.3458
  Prefactor  = 20.4518
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.6965
  Prefactor  = 19.0743
  Prefactor  = 30.1792
  norm       = 0.777315
  Prefactor  = 0.0001
  Prefactor  = 4.8149
  Prefactor  = 0.0001
  norm       = 0.669673
  Prefactor  = 1.212
  Prefactor  = 21.4902
  norm       = 5.05193
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.90685
  Normalizat = 0.993367
  Prefactor  = 1.05906
 **********
 **   18 **HESSE 
 **********

 FCN=   7415.780     FROM HESSE     STATUS=OK           329 CALLS     2562 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.919        27.506        .64247E-04   -1.4459    
   2  Prefactor     49.346        40.983        .57083E-04   -1.4302    
   3  Prefactor     20.452        40.611        .88545E-04   -1.4803    
   4  norm          .10000E-03    29.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.697        32.047        .80606E-04   -1.4714    
   7  Prefactor     19.074        24.783        .91701E-04   -1.4834    
   8  Prefactor     30.179        27.824        .72975E-04   -1.4609    
   9  norm          .77732        .95878        .90792E-03   -1.5532    
  10  Prefactor     .10000E-03    7.3351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8149        4.6925        .17794E-03   -1.5269    
  12  Prefactor     .10000E-03    15.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .66967        .53272        .50237E-03   -1.5544    
  14  Prefactor     1.2120        24.567        .41026E-03   -1.5488    
  15  Prefactor     21.490        13.728        .86394E-04   -1.4780    
  16  norm          5.0519        4.7596        .17779E-03   -1.5258    
  17  norm          .10000E-03    26.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .59347        .64531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.9069        29.520        .18057E-03   -1.5265    
  20  Normalizat    .99337        .20399        .26401E-03   -.93253    
  21  Prefactor     1.0591        .16852        .22120E-03   -.90786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56222e-10
Minuit parameter uncertainties:
  1  27.5147
  2  41.0064
  3  40.666
  4  0.000118857
  5  1.66934e-06
  6  32.0692
  7  24.7962
  8  27.8364
  9  0.958794
  10  1.95388e-05
  11  4.69288
  12  1.21406e-05
  13  0.532719
  14  10.918
  15  13.7303
  16  4.75995
  17  5.94633e-05
  18  6.62545e-08
  19  24.0882
  20  0.204146
  21  0.1686
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  1.954e-05  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.059e+00  1.686e-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.934e-01  2.041e-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: 7.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263515/likelihoodResults_659232001_659491201_4FGL_J0836.2+2141_daily_bin1620.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) = 7415.78043979
delta logL = -0.00064989443581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7415.77978996
delta logL = -6.39238351141e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7515       1.0000          .0000       10.000    
     3 'Normalizat'    .99340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0591       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=   7415.780     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      199 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1094.9        .90712E-02** at limit **
   2  Index         2.7731        5.4312        .50000       -.27176E-04
   3  Normalizat    .99337        .69093E-01    .46084E-01    .21610E-03
   4  Prefactor     1.0591        .58274E-01    .39407E-01    .17411E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.7731
  Normalizat = 0.993367
  Prefactor  = 1.05906
 **********
 **   18 **HESSE 
 **********

 FCN=   7415.780     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7731        5.7145        .50000       -.46160    
   3  Normalizat    .99337        .19141        .26401E-03   -.93253    
   4  Prefactor     1.0591        .16592        .22120E-03   -.90786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28043e-10
Minuit parameter uncertainties:
  1  0.000549424
  2  8.32642
  3  0.191541
  4  0.166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263515': 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) = 7415.77978964
delta logL = 2.53795406024e-07

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  5.494e-04  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.773e+00  8.326e+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:  1.059e+00  1.660e-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.934e-01  1.915e-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/263515/cmap_HighResolution_659232001_659491201_4FGL_J0836.2+2141_daily_bin1620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.06e-03', job_status='DONE', photon_flux_upper_limit='7.69e-08', time_completed='2021-12-07 19:26:44.405875', job_id='263515', GAL2='1.06', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1638934004.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1620' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 19:26:44 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 263515: <4FGL_J0836.2+2141_daily_bin1620> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin1620> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec  7 19:10:22 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 19:12:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 19:12:57 2021
Terminated at Tue Dec  7 19:26:45 2021
Results reported at Tue Dec  7 19:26:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1620 129.051 21.6971 659232001 659491201 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 :                                   652.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            983 sec.

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

