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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1365
RA = 129.051, Dec = 21.6971
tmin = 593136001, tmax = 593395201
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='588364', job_status='RUN', time_executed='2021-08-30 02:18:30.350410', time_epoch_executed='1630315110.35' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588364

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588364/ft1_4FGL_J0836.2+2141_daily_bin1365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588364/ft2_4FGL_J0836.2+2141_daily_bin1365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588364/ft1_4FGL_J0836.2+2141_daily_bin1365.fits outfile=/scratch/kocevski/588364/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1365.fits ra=129.051 dec=21.6971 rad=12.0 tmin=593136001.0 tmax=593395201.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 5.19
user 4.91
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588364/ft1_filtered_4FGL_J0836.2+2141_daily_bin1365.fits" evtable="EVENTS" scfile=/scratch/kocevski/588364/ft2_4FGL_J0836.2+2141_daily_bin1365.fits sctable="SC_DATA" outfile=/scratch/kocevski/588364/ltcube_593136001_593395201_4FGL_J0836.2+2141_daily_bin1365.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/588364/ft2_4FGL_J0836.2+2141_daily_bin1365.fits
.....................!
real 11.88
user 11.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588364/ft1_filtered_4FGL_J0836.2+2141_daily_bin1365.fits evtable="EVENTS" scfile=/scratch/kocevski/588364/ft2_4FGL_J0836.2+2141_daily_bin1365.fits sctable="SC_DATA" expcube=/scratch/kocevski/588364/ltcube_593136001_593395201_4FGL_J0836.2+2141_daily_bin1365.fits outfile=/scratch/kocevski/588364/expmap_593136001_593395201_4FGL_J0836.2+2141_daily_bin1365.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/588364/ltcube_593136001_593395201_4FGL_J0836.2+2141_daily_bin1365.fits
.....................!
real 189.70
user 184.90
sys 4.47

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/588364/ft1_filtered_4FGL_J0836.2+2141_daily_bin1365.fits scfile=/scratch/kocevski/588364/ft2_4FGL_J0836.2+2141_daily_bin1365.fits outfile=/scratch/kocevski/588364/cmap_593136001_593395201_4FGL_J0836.2+2141_daily_bin1365.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588364/ft1_filtered_4FGL_J0836.2+2141_daily_bin1365.fits scfile=/scratch/kocevski/588364/ft2_4FGL_J0836.2+2141_daily_bin1365.fits outfile=/scratch/kocevski/588364/cmap_HighResolution_593136001_593395201_4FGL_J0836.2+2141_daily_bin1365.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.54
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    81.708       1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.184       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.2199       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .40508E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.3743       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8581       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .64584       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.616       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.3885       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1647       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.505       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0816       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0639       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=   7059.562     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2234 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     81.707        28.832        .52098E-06   -.54492E-04
   2  Prefactor     40.180        48.199        .92988E-05   -.13088E-03
   3  Prefactor     .10000E-03    15.382       -.15969E-06** at limit **
   4  norm          5.9334        197.98       -.74953E-05    .23767E-05
   5  Prefactor     .10000E-03    15.906       -.71436E-07** at limit **
   6  Prefactor     .10000E-03    12.815        .10950E-06** at limit **
   7  Prefactor     .10001E-03    12.089        .37680E-06** at limit **
   8  Prefactor     .10000E-03    125.92       -.15687E-05** at limit **
   9  norm          2.3735        1.2761        .50159E-07   -.54290E-04
  10  Prefactor     7.8576        10.718       -.82307E-06   -.53677E-04
  11  Prefactor     .10000E-03    1.9892       -.29119E-07** at limit **
  12  Prefactor     .10000E-03    23.240        .41987E-06** at limit **
  13  norm          .64579        .49865        .54532E-08   -.31768E-04
  14  Prefactor     11.616        9.3991        .53183E-06   -.55078E-04
  15  Prefactor     .10000E-03    7.7418       -.84980E-08** at limit **
  16  norm          6.3882        5.6529       -.57534E-06   -.11005E-02
  17  norm          .10000E-03    12.646       -.17444E-06** at limit **
  18  norm          1.1647        1.1551        .51047E-07    .32351E-03
  19  Prefactor     23.494        47.458        .23844E-05   -.21037E-04
  20  Normalizat    1.0815        .18180       -.45416E-06   -.13695E-04
  21  Prefactor     1.0640        .15275       -.19533E-06   -.32830E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 81.7073
  Prefactor  = 40.1805
  Prefactor  = 0.0001
  norm       = 5.93343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.000100001
  norm       = 2.3735
  Prefactor  = 7.85757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.645794
  Prefactor  = 11.6159
  Prefactor  = 0.0001
  norm       = 6.3882
  norm       = 0.0001
  norm       = 1.16471
  Prefactor  = 23.4943
  Normalizat = 1.08153
  Prefactor  = 1.06403
 **********
 **   18 **HESSE 
 **********

 FCN=   7059.562     FROM HESSE     STATUS=OK           321 CALLS     2555 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     81.707        28.810        .44434E-04   -1.3898    
   2  Prefactor     40.180        46.743        .63232E-04   -1.4439    
   3  Prefactor     .10000E-03    15.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.9334        198.95        .16096E-03   -1.5221    
   5  Prefactor     .10000E-03    15.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    120.21        .56507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    129.87        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.3735        1.2663        .64437E-04   -1.5400    
  10  Prefactor     7.8576        10.748        .14304E-03   -1.5147    
  11  Prefactor     .10000E-03    1.9961        .11571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .64579        .51615        .49868E-03   -1.5547    
  14  Prefactor     11.616        9.3832        .11754E-03   -1.5026    
  15  Prefactor     .10000E-03    7.7877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.3882        5.9507        .79399E-03   -1.5202    
  17  norm          .10000E-03    12.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1647        1.1841        .87874E-04   -1.5492    
  19  Prefactor     23.494        47.394        .82620E-04   -1.4738    
  20  Normalizat    1.0815        .21350        .26652E-03   -.90347    
  21  Prefactor     1.0640        .17963        .22944E-03   -.90625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.81796e-10
Minuit parameter uncertainties:
  1  28.815
  2  46.786
  3  2.96462e-06
  4  68.9662
  5  6.44657e-06
  6  2.05586e-07
  7  0.00225855
  8  0.000522383
  9  1.26631
  10  10.7504
  11  2.35026e-06
  12  2.71549e-06
  13  0.516155
  14  9.38435
  15  4.7157e-06
  16  5.95125
  17  3.42669e-06
  18  1.18415
  19  47.4699
  20  0.213674
  21  0.179734
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  7.858e+00  1.075e+01  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.064e+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:  1.082e+00  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/588364/likelihoodResults_593136001_593395201_4FGL_J0836.2+2141_daily_bin1365.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) = 7059.39421094
delta logL = 0.168019943821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7059.38918691
delta logL = 0.173043965653

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9551       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3243       1.0000          .0000       10.000    
     3 'Normalizat'    1.0577       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0775       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=   7059.389     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      289 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9564        10.484        .16455E-03   -.20623E-03
   2  Index         3.3242        1.2551        .96015E-02   -.32688E-04
   3  Normalizat    1.0580        .21471        .26903E-03    .72526E-03
   4  Prefactor     1.0771        .17910        .22819E-03    .78051E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.95637
  Index      = 3.3242
  Normalizat = 1.05797
  Prefactor  = 1.07712
 **********
 **   18 **HESSE 
 **********

 FCN=   7059.389     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9564        9.1529        .65819E-05   -1.5220    
   2  Index         3.3242        1.0969        .38406E-03   -.34178    
   3  Normalizat    1.0580        .21505        .53806E-04   -.91113    
   4  Prefactor     1.0771        .17917        .45638E-04   -.90201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.9033e-10
Minuit parameter uncertainties:
  1  9.15506
  2  1.10702
  3  0.215231
  4  0.179271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588364': 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) = 7059.38918454
delta logL = 0.173046334631

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  5.956e+00  9.155e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  3.324e+00  1.107e+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.077e+00  1.793e-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.058e+00  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.05
Ra Dec: 129.051 21.697
Photon Index (Free Index): 3.32 +/- 1.11
Photon Flux (Free Index): 5.72e-08 +/- 6.28e-08
Energy Flux (Free Index): 1.00e-05 +/- 1.09e-05

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/588364/cmap_HighResolution_593136001_593395201_4FGL_J0836.2+2141_daily_bin1365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', energy_flux2='1.00e-05', dlogl='1.73e-01', photon_flux2='5.72e-08', job_status='DONE', time_completed='2021-08-30 02:29:12.852986', photon_index_error2='1.11', photon_index2='3.32', ts='0.66', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.09e-05', EG='1.08', time_epoch_completed='1630315752.85', return_code='0', job_id='588364', GAL2='1.08', EG2='1.06', return_code2='0', photon_flux_error2='6.28e-08', ts2='1.05', photon_index='2.73' WHERE bin_id='1365' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:29:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 588364: <4FGL_J0836.2+2141_daily_bin1365> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1365 129.051 21.6971 593136001 593395201 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 :                                   639.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            795 sec.

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

