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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin37
RA = 129.051, Dec = 21.6971
tmin = 248918401, tmax = 249177601
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='581579', job_status='RUN', time_executed='2021-08-30 01:59:58.830308', time_epoch_executed='1630313998.83' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/581579

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/581579/ft1_4FGL_J0836.2+2141_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/581579/ft2_4FGL_J0836.2+2141_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/581579/ft1_4FGL_J0836.2+2141_daily_bin37.fits outfile=/scratch/kocevski/581579/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin37.fits ra=129.051 dec=21.6971 rad=12.0 tmin=248918401.0 tmax=249177601.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.71
user 1.76
sys 0.92

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/581579/ft2_4FGL_J0836.2+2141_daily_bin37.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/581579/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin37.fits evtable="EVENTS" outfile="/scratch/kocevski/581579/ft1_filtered_4FGL_J0836.2+2141_daily_bin37.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 1.30
user 0.33
sys 0.92

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/581579/ft1_filtered_4FGL_J0836.2+2141_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/581579/ft2_4FGL_J0836.2+2141_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/581579/ltcube_248918401_249177601_4FGL_J0836.2+2141_daily_bin37.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/581579/ft2_4FGL_J0836.2+2141_daily_bin37.fits
.....................!
real 14.56
user 13.32
sys 1.18

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/581579/ft1_filtered_4FGL_J0836.2+2141_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/581579/ft2_4FGL_J0836.2+2141_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/581579/ltcube_248918401_249177601_4FGL_J0836.2+2141_daily_bin37.fits outfile=/scratch/kocevski/581579/expmap_248918401_249177601_4FGL_J0836.2+2141_daily_bin37.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/581579/ltcube_248918401_249177601_4FGL_J0836.2+2141_daily_bin37.fits
.....................!
real 193.11
user 186.32
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/581579/ft1_filtered_4FGL_J0836.2+2141_daily_bin37.fits scfile=/scratch/kocevski/581579/ft2_4FGL_J0836.2+2141_daily_bin37.fits outfile=/scratch/kocevski/581579/cmap_248918401_249177601_4FGL_J0836.2+2141_daily_bin37.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 1.28
user 0.37
sys 0.89

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/581579/ft1_filtered_4FGL_J0836.2+2141_daily_bin37.fits scfile=/scratch/kocevski/581579/ft2_4FGL_J0836.2+2141_daily_bin37.fits outfile=/scratch/kocevski/581579/cmap_HighResolution_248918401_249177601_4FGL_J0836.2+2141_daily_bin37.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 1.31
user 0.38
sys 0.92

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.970       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.786       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.737       1.0000         .10000E-03   10000.    
     9 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9684       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0758       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.289       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    86.140       1.0000         .10000E-03   10000.    
    18 'norm      '    1.2742       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.038       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0528       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94439       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=   7104.417     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2242 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1893        .96119E-07** at limit **
   2  Prefactor     28.960        30.615       -.54879E-05    .25125E-06
   3  Prefactor     .10000E-03    51.519        .95529E-05** at limit **
   4  norm          .10000E-03    23.506       -.22847E-04** at limit **
   5  Prefactor     32.788        24.194       -.35061E-06   -.78921E-04
   6  Prefactor     .10000E-03    22.477        .20653E-04** at limit **
   7  Prefactor     .10000E-03    8.0811       -.39734E-07** at limit **
   8  Prefactor     25.742        22.162       -.71143E-06    .14907E-04
   9  norm          .10000E-03    .40053       -.15386E-06** at limit **
  10  Prefactor     1.9687        6.9563        .44261E-05   -.55844E-03
  11  Prefactor     .10000E-03    2.6938       -.10737E-07** at limit **
  12  Prefactor     .10000E-03    93.045       -.10042E-04** at limit **
  13  norm          2.0758        .85890       -.43664E-07   -.28822E-03
  14  Prefactor     25.288        15.818        .16880E-06   -.11065E-05
  15  Prefactor     .10000E-03    13.194       -.41827E-06** at limit **
  16  norm          .10000E-03    2.0480        .52795E-07** at limit **
  17  norm          86.139        50.306       -.16921E-06    .19202E-04
  18  norm          1.2740        1.8064       -.22199E-07   -.20910E-03
  19  Prefactor     12.011        44.392       -.46635E-04   -.17521E-05
  20  Normalizat    1.0527        .17508        .38317E-06    .17438E-05
  21  Prefactor     .94447        .14538        .73466E-06   -.42082E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.9605
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.7879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.7421
  norm       = 0.0001
  Prefactor  = 1.96874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.07577
  Prefactor  = 25.2884
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 86.1385
  norm       = 1.27404
  Prefactor  = 12.0105
  Normalizat = 1.05267
  Prefactor  = 0.944475
 **********
 **   18 **HESSE 
 **********

 FCN=   7104.417     FROM HESSE     STATUS=OK           315 CALLS     2557 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.960        30.628        .74435E-04   -1.4631    
   3  Prefactor     .10000E-03    52.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    23.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.788        24.195        .69981E-04   -1.4562    
   6  Prefactor     .10000E-03    22.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.0904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.742        21.306        .78963E-04   -1.4693    
   9  norm          .10000E-03    .61754        .98664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.9687        6.8443        .29557E-03   -1.5427    
  11  Prefactor     .10000E-03    2.7121        .13506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    94.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0758        .85587        .46513E-04   -1.5420    
  14  Prefactor     25.288        15.826        .79658E-04   -1.4702    
  15  Prefactor     .10000E-03    13.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.0506        .11780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          86.139        50.284        .43286E-04   -1.3849    
  18  norm          1.2740        1.7754        .13140E-03   -1.5482    
  19  Prefactor     12.011        44.548        .11546E-03   -1.5015    
  20  Normalizat    1.0527        .20504        .25451E-03   -.91286    
  21  Prefactor     .94447        .17037        .22630E-03   -.94604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.23904e-10
Minuit parameter uncertainties:
  1  2.26617e-06
  2  30.6442
  3  0.000107939
  4  1.54916e-07
  5  24.2027
  6  4.30866e-05
  7  3.50288e-06
  8  21.3123
  9  8.13746e-06
  10  6.847
  11  9.47138e-06
  12  9.82242e-05
  13  0.855874
  14  15.8288
  15  2.07958e-05
  16  6.41367e-07
  17  50.309
  18  1.77549
  19  44.6714
  20  0.20519
  21  0.170471
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.969e+00  6.847e+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:  9.445e-01  1.705e-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.053e+00  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 129.051 21.697
Photon Flux Upper Limit: 9.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/581579/likelihoodResults_248918401_249177601_4FGL_J0836.2+2141_daily_bin37.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) = 7104.31453645
delta logL = 0.10249024192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7104.30682077
delta logL = 0.110205922694

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0368       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1420       1.0000          .0000       10.000    
     3 'Normalizat'    1.0568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93865       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7104.307     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      287 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0310        7.9885        .10035E-02   -.12054E-04
   2  Index         2.1411        .99315        .15394E-01    .23722E-04
   3  Normalizat    1.0568        .19998        .25420E-03   -.58588E-05
   4  Prefactor     .93871        .17004        .22688E-03   -.37832E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.03101
  Index      = 2.14106
  Normalizat = 1.0568
  Prefactor  = 0.938705
 **********
 **   18 **HESSE 
 **********

 FCN=   7104.307     FROM HESSE     STATUS=OK            27 CALLS      314 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0310        8.0409        .40140E-04   -1.5306    
   2  Index         2.1411        1.0006        .61576E-03   -.60868    
   3  Normalizat    1.0568        .20020        .10168E-04   -.91151    
   4  Prefactor     .93871        .17020        .90752E-05   -.94801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96338e-11
Minuit parameter uncertainties:
  1  8.0431
  2  1.01084
  3  0.200348
  4  0.170293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/581579': 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) = 7104.30682009
delta logL = 0.110206595271

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  4.031e+00  8.043e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.141e+00  1.011e+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:  9.387e-01  1.703e-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.057e+00  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/581579/cmap_HighResolution_248918401_249177601_4FGL_J0836.2+2141_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.18e-03', job_status='DONE', photon_flux_upper_limit='9.10e-08', time_completed='2021-08-30 02:10:49.405410', job_id='581579', GAL2='0.94', fit_tolerance='1e-08', EG2='1.06', EG='1.05', time_epoch_completed='1630314649.41', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.10e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='37' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:10:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 581579: <4FGL_J0836.2+2141_daily_bin37> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin37> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Aug 30 01:55:38 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:55:40 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:55:40 2021
Terminated at Mon Aug 30 02:10:50 2021
Results reported at Mon Aug 30 02:10:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin37 129.051 21.6971 248918401 249177601 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 :                                   659.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            912 sec.

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

