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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin7
RA = 129.051, Dec = 21.6971
tmin = 241142401, tmax = 241401601
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='580227', job_status='RUN', time_executed='2021-08-30 01:54:07.770456', time_epoch_executed='1630313647.77' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='7'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580227

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580227/ft1_4FGL_J0836.2+2141_daily_bin7.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580227/ft2_4FGL_J0836.2+2141_daily_bin7.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580227/ft1_4FGL_J0836.2+2141_daily_bin7.fits outfile=/scratch/kocevski/580227/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin7.fits ra=129.051 dec=21.6971 rad=12.0 tmin=241142401.0 tmax=241401601.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 11.28
user 1.31
sys 8.09

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580227/ft1_filtered_4FGL_J0836.2+2141_daily_bin7.fits" evtable="EVENTS" scfile=/scratch/kocevski/580227/ft2_4FGL_J0836.2+2141_daily_bin7.fits sctable="SC_DATA" outfile=/scratch/kocevski/580227/ltcube_241142401_241401601_4FGL_J0836.2+2141_daily_bin7.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/580227/ft2_4FGL_J0836.2+2141_daily_bin7.fits
.....................!
real 22.01
user 13.40
sys 8.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580227/ft1_filtered_4FGL_J0836.2+2141_daily_bin7.fits evtable="EVENTS" scfile=/scratch/kocevski/580227/ft2_4FGL_J0836.2+2141_daily_bin7.fits sctable="SC_DATA" expcube=/scratch/kocevski/580227/ltcube_241142401_241401601_4FGL_J0836.2+2141_daily_bin7.fits outfile=/scratch/kocevski/580227/expmap_241142401_241401601_4FGL_J0836.2+2141_daily_bin7.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/580227/ltcube_241142401_241401601_4FGL_J0836.2+2141_daily_bin7.fits
.....................!
real 200.60
user 185.10
sys 14.13

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/580227/ft1_filtered_4FGL_J0836.2+2141_daily_bin7.fits scfile=/scratch/kocevski/580227/ft2_4FGL_J0836.2+2141_daily_bin7.fits outfile=/scratch/kocevski/580227/cmap_241142401_241401601_4FGL_J0836.2+2141_daily_bin7.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 8.35
user 0.37
sys 7.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580227/ft1_filtered_4FGL_J0836.2+2141_daily_bin7.fits scfile=/scratch/kocevski/580227/ft2_4FGL_J0836.2+2141_daily_bin7.fits outfile=/scratch/kocevski/580227/cmap_HighResolution_241142401_241401601_4FGL_J0836.2+2141_daily_bin7.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 8.00
user 0.37
sys 7.46

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7201       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4242       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.803       1.0000         .10000E-03   10000.    
     9 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.584       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1667       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9827       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.104       1.0000         .10000E-03   10000.    
    16 'norm      '    10.544       1.0000         .10000E-03   10000.    
    17 'norm      '    25.952       1.0000         .10000E-03   10000.    
    18 'norm      '    1.5282       1.0000         .10000E-03   10000.    
    19 'Prefactor '    64.543       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .86519       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0317       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5696.592     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     2168 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0502         .0000    ** at limit **
   2  Prefactor     .10000E-03    22.360         .0000    ** at limit **
   3  Prefactor     6.7188        22.236         .0000        .29714E-04
   4  norm          .10000E-03    96.839         .0000    ** at limit **
   5  Prefactor     .10000E-03    7.9447         .0000    ** at limit **
   6  Prefactor     .10000E-03    18.270         .0000    ** at limit **
   7  Prefactor     5.4237        14.350         .0000        .10246E-02
   8  Prefactor     14.803        18.003         .0000       -.33020E-04
   9  norm          .10000E-03    .51157         .0000    ** at limit **
  10  Prefactor     10.584        9.6078         .0000        .19411E-02
  11  Prefactor     3.1671        5.7886         .0000        .98373E-02
  12  Prefactor     .10000E-03    10.329         .0000    ** at limit **
  13  norm          1.9828        .82669         .0000        .54677E-04
  14  Prefactor     .10000E-03    5.8768         .0000    ** at limit **
  15  Prefactor     19.107        18.105         .0000        .41851E-03
  16  norm          10.544        9.3078         .0000        .46337E-04
  17  norm          25.952        29.477         .0000       -.75647E-04
  18  norm          1.5284        2.1297         .0000        .19361E-03
  19  Prefactor     64.544        57.472         .0000       -.31443E-03
  20  Normalizat    .86504        .18608         .0000        .24804E-04
  21  Prefactor     1.0318        .15611         .0000        .21926E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.71885
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.42366
  Prefactor  = 14.8027
  norm       = 0.0001
  Prefactor  = 10.5845
  Prefactor  = 3.16705
  Prefactor  = 0.0001
  norm       = 1.98284
  Prefactor  = 0.0001
  Prefactor  = 19.107
  norm       = 10.5438
  norm       = 25.9524
  norm       = 1.52839
  Prefactor  = 64.5436
  Normalizat = 0.865035
  Prefactor  = 1.03179
 **********
 **   18 **HESSE 
 **********

 FCN=   5696.592     FROM HESSE     STATUS=OK           315 CALLS     2483 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.7188        22.234        .15479E-03   -1.5189    
   4  norm          .10000E-03    96.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.9465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.4237        14.340        .86269E-03   -1.5242    
   8  Prefactor     14.803        17.965        .10410E-03   -1.4938    
   9  norm          .10000E-03    .52698        .10484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.584        9.6026        .61577E-03   -1.5057    
  11  Prefactor     3.1671        5.7708        .11388E-02   -1.5352    
  12  Prefactor     .10000E-03    10.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9828        .82629        .42300E-04   -1.5426    
  14  Prefactor     .10000E-03    5.8942        .17866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.107        18.209        .91635E-04   -1.4833    
  16  norm          10.544        9.3110        .12339E-03   -1.5058    
  17  norm          25.952        29.474        .78636E-04   -1.4689    
  18  norm          1.5284        2.1054        .12603E-03   -1.5461    
  19  Prefactor     64.544        57.479        .49952E-04   -1.4099    
  20  Normalizat    .86504        .21543        .26420E-03   -.97700    
  21  Prefactor     1.0318        .18080        .21267E-03   -.91677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.75938e-10
Minuit parameter uncertainties:
  1  1.48352e-06
  2  9.6689e-06
  3  22.261
  4  2.62136e-05
  5  8.64707e-08
  6  6.45308e-06
  7  14.3492
  8  17.9716
  9  2.88246e-07
  10  9.60404
  11  5.77185
  12  1.98975e-06
  13  0.82629
  14  1.29386e-06
  15  18.2143
  16  9.31232
  17  29.4903
  18  2.10547
  19  57.5286
  20  0.215643
  21  0.180903
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.058e+01  9.604e+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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.032e+00  1.809e-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:  8.650e-01  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.74
Ra Dec: 129.051 21.697
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 5.20e-08 +/- 4.71e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 1.11e-05

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

Saving results to:
/scratch/kocevski/580227/likelihoodResults_241142401_241401601_4FGL_J0836.2+2141_daily_bin7.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5696.58725428
delta logL = 0.00496381707035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5696.58538415
delta logL = 0.00683394711086

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9984       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8290       1.0000          .0000       10.000    
     3 'Normalizat'    .86146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0340       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=   5696.585     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      229 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.001        10.991        .12672E-03   -.12534E-02
   2  Index         2.8301        .90207        .89028E-02   -.28693E-03
   3  Normalizat    .86113        .20893        .26473E-03    .78714E-03
   4  Prefactor     1.0343        .17955        .21245E-03    .86913E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0005
  Index      = 2.8301
  Normalizat = 0.861128
  Prefactor  = 1.03428
 **********
 **   18 **HESSE 
 **********

 FCN=   5696.585     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.001        10.536        .50690E-05   -1.5075    
   2  Index         2.8301        .86422        .35611E-03   -.44891    
   3  Normalizat    .86113        .20904        .52947E-04   -.97840    
   4  Prefactor     1.0343        .17957        .42490E-04   -.91595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04489e-09
Minuit parameter uncertainties:
  1  10.5381
  2  0.869607
  3  0.209236
  4  0.179679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580227': 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) = 5696.58538167
delta logL = 0.00683641993692

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e+01  1.054e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.830e+00  8.696e-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.034e+00  1.797e-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:  8.611e-01  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 129.051 21.697
Photon Index (Free Index): 2.83 +/- 0.87
Photon Flux (Free Index): 5.46e-08 +/- 5.25e-08
Energy Flux (Free Index): 1.20e-05 +/- 1.09e-05

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/580227/cmap_HighResolution_241142401_241401601_4FGL_J0836.2+2141_daily_bin7.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', photon_flux='5.20e-08', energy_flux2='1.20e-05', photon_flux_error='4.71e-08', dlogl='6.84e-03', energy_flux='1.22e-05', photon_flux2='5.46e-08', job_status='DONE', time_completed='2021-08-30 02:05:14.891761', photon_index_error2='0.87', photon_index2='2.83', ts='1.74', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.09e-05', EG='0.87', time_epoch_completed='1630314314.89', return_code='0', job_id='580227', GAL2='1.03', EG2='0.86', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='5.25e-08', ts2='1.76', photon_index='2.73' WHERE bin_id='7' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:05:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 580227: <4FGL_J0836.2+2141_daily_bin7> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin7> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 30 01:50:43 2021
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:50:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 01:50:44 2021
Terminated at Mon Aug 30 02:05:16 2021
Results reported at Mon Aug 30 02:05:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin7 129.051 21.6971 241142401 241401601 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 :                                   775.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             264.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            873 sec.

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

