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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1452
RA = 129.051, Dec = 21.6971
tmin = 615686401, tmax = 615945601
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='588502', job_status='RUN', time_executed='2021-08-30 02:20:27.654096', time_epoch_executed='1630315227.65' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1452'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588502

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588502/ft1_4FGL_J0836.2+2141_daily_bin1452.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588502/ft2_4FGL_J0836.2+2141_daily_bin1452.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588502/ft1_4FGL_J0836.2+2141_daily_bin1452.fits outfile=/scratch/kocevski/588502/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1452.fits ra=129.051 dec=21.6971 rad=12.0 tmin=615686401.0 tmax=615945601.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 4.00
user 3.19
sys 0.77

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588502/ft1_filtered_4FGL_J0836.2+2141_daily_bin1452.fits" evtable="EVENTS" scfile=/scratch/kocevski/588502/ft2_4FGL_J0836.2+2141_daily_bin1452.fits sctable="SC_DATA" outfile=/scratch/kocevski/588502/ltcube_615686401_615945601_4FGL_J0836.2+2141_daily_bin1452.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/588502/ft2_4FGL_J0836.2+2141_daily_bin1452.fits
.....................!
real 12.32
user 11.29
sys 0.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588502/ft1_filtered_4FGL_J0836.2+2141_daily_bin1452.fits evtable="EVENTS" scfile=/scratch/kocevski/588502/ft2_4FGL_J0836.2+2141_daily_bin1452.fits sctable="SC_DATA" expcube=/scratch/kocevski/588502/ltcube_615686401_615945601_4FGL_J0836.2+2141_daily_bin1452.fits outfile=/scratch/kocevski/588502/expmap_615686401_615945601_4FGL_J0836.2+2141_daily_bin1452.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/588502/ltcube_615686401_615945601_4FGL_J0836.2+2141_daily_bin1452.fits
.....................!
real 191.65
user 186.47
sys 4.84

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/588502/ft1_filtered_4FGL_J0836.2+2141_daily_bin1452.fits scfile=/scratch/kocevski/588502/ft2_4FGL_J0836.2+2141_daily_bin1452.fits outfile=/scratch/kocevski/588502/cmap_615686401_615945601_4FGL_J0836.2+2141_daily_bin1452.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.11
user 0.36
sys 0.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588502/ft1_filtered_4FGL_J0836.2+2141_daily_bin1452.fits scfile=/scratch/kocevski/588502/ft2_4FGL_J0836.2+2141_daily_bin1452.fits outfile=/scratch/kocevski/588502/cmap_HighResolution_615686401_615945601_4FGL_J0836.2+2141_daily_bin1452.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.11
user 0.39
sys 0.70

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11247E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10723E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.069       1.0000         .10000E-03   10000.    
     9 'norm      '    .38571       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.337       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8546       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .29191E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8313       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.437       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.421       1.0000         .10000E-03   10000.    
    16 'norm      '    10.036       1.0000         .10000E-03   10000.    
    17 'norm      '    .11079E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .29410       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12192E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1853       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88978       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=   6222.500     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     1898 TOTAL
                     EDM=   .67E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.8279        .20786E-07** at limit **
   2  Prefactor     .10000E-03    23.216       -.10368E-05** at limit **
   3  Prefactor     .10000E-03    10.655       -.66394E-07** at limit **
   4  norm          .10000E-03    36.890       -.42675E-06** at limit **
   5  Prefactor     .10000E-03    7.9860       -.31215E-07** at limit **
   6  Prefactor     .10000E-03    14.322       -.50072E-07** at limit **
   7  Prefactor     .10000E-03    7.3230       -.10069E-07** at limit **
   8  Prefactor     18.081        17.987       -.42743E-06   -.14090E-03
   9  norm          .38308        1.0440        .50344E-07    .11403E-04
  10  Prefactor     21.362        11.524        .12783E-06   -.27254E-04
  11  Prefactor     5.8535        6.0002        .38105E-06    .17266E-03
  12  Prefactor     .10059E-03    23.275       -.38253E-06** at limit **
  13  norm          2.8310        1.0441        .80177E-08   -.40684E-04
  14  Prefactor     13.445        11.820       -.64847E-08   -.19257E-04
  15  Prefactor     21.405        16.876        .45196E-06    .10577E-03
  16  norm          10.040        7.4607        .37255E-07    .20334E-04
  17  norm          .10000E-03    17.167        .16754E-06** at limit **
  18  norm          .29414        1.7748        .15610E-05   -.26734E-04
  19  Prefactor     .10000E-03    25.464        .11107E-05** at limit **
  20  Normalizat    1.1853        .19660       -.64199E-06    .72824E-05
  21  Prefactor     .88989        .15544        .35121E-06   -.49242E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.0808
  norm       = 0.383075
  Prefactor  = 21.3617
  Prefactor  = 5.85352
  Prefactor  = 0.000100591
  norm       = 2.83101
  Prefactor  = 13.4449
  Prefactor  = 21.4054
  norm       = 10.0402
  norm       = 0.0001
  norm       = 0.294135
  Prefactor  = 0.0001
  Normalizat = 1.18532
  Prefactor  = 0.889886
 **********
 **   18 **HESSE 
 **********

 FCN=   6222.500     FROM HESSE     STATUS=OK           327 CALLS     2225 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.8785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    36.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.9883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.3252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.081        17.721        .94222E-04   -1.4857    
   9  norm          .38308        .95142        .11547E-03   -1.5584    
  10  Prefactor     21.362        11.294        .86712E-04   -1.4783    
  11  Prefactor     5.8535        6.0362        .16598E-03   -1.5224    
  12  Prefactor     .10059E-03    25.361        .12030       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8310        1.0447        .24168E-04   -1.5371    
  14  Prefactor     13.445        11.821        .10927E-03   -1.4974    
  15  Prefactor     21.405        17.066        .86541E-04   -1.4782    
  16  norm          10.040        7.4627        .12648E-03   -1.5074    
  17  norm          .10000E-03    17.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .29414        1.8093        .20994E-03   -1.5600    
  19  Prefactor     .10000E-03    25.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1853        .23410        .25732E-03   -.87058    
  21  Prefactor     .88989        .18486        .23952E-03   -.96495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32899e-10
Minuit parameter uncertainties:
  1  5.84715e-06
  2  0.000171763
  3  6.57162e-06
  4  8.91985e-05
  5  4.18148e-07
  6  1.19719e-06
  7  3.52593e-07
  8  17.7259
  9  0.951462
  10  11.2955
  11  6.03686
  12  0.00774452
  13  1.04475
  14  11.8229
  15  17.0703
  16  7.46343
  17  2.19679e-05
  18  1.45882
  19  0.000201047
  20  0.234305
  21  0.184991
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  2.136e+01  1.130e+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:  8.899e-01  1.850e-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.185e+00  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.33
Ra Dec: 129.051 21.697
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 5.54e-08
Energy Flux (Fixed Index): 2.46e-05 +/- 1.30e-05

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) = 6222.46172929
delta logL = 0.0382018711598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6222.45234439
delta logL = 0.0475867680489

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.824       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9054       1.0000          .0000       10.000    
     3 'Normalizat'    1.1707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89809       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=   6222.452     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      237 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.823        11.978        .89957E-04    .20186E-02
   2  Index         2.9057        .59084        .66116E-02    .46343E-03
   3  Normalizat    1.1706        .23135        .25858E-03   -.27294E-03
   4  Prefactor     .89814        .18597        .23852E-03   -.36408E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8225
  Index      = 2.9057
  Normalizat = 1.17062
  Prefactor  = 0.898137
 **********
 **   18 **HESSE 
 **********

 FCN=   6222.452     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.823        11.630        .17991E-04   -1.4817    
   2  Index         2.9057        .57322        .26446E-03   -.43219    
   3  Normalizat    1.1706        .23150        .51717E-04   -.87516    
   4  Prefactor     .89814        .18606        .47703E-04   -.96206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14102e-09
Minuit parameter uncertainties:
  1  11.6316
  2  0.574753
  3  0.231704
  4  0.186195
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588502': 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) = 6222.4523442
delta logL = 0.0475869585061

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.982e+01  1.163e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.906e+00  5.748e-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:  8.981e-01  1.862e-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.171e+00  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.49
Ra Dec: 129.051 21.697
Photon Index (Free Index): 2.91 +/- 0.57
Photon Flux (Free Index): 1.17e-07 +/- 6.93e-08
Energy Flux (Free Index): 2.46e-05 +/- 1.22e-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/588502/cmap_HighResolution_615686401_615945601_4FGL_J0836.2+2141_daily_bin1452.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='2.46e-05', photon_flux_error='5.54e-08', dlogl='4.76e-02', energy_flux='2.46e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-08-30 02:29:20.411083', photon_index_error2='0.57', photon_index2='2.91', ts='8.33', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.22e-05', EG='1.19', time_epoch_completed='1630315760.41', return_code='0', job_id='588502', GAL2='0.90', EG2='1.17', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='6.93e-08', ts2='8.49', photon_index='2.73' WHERE bin_id='1452' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:29:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 588502: <4FGL_J0836.2+2141_daily_bin1452> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1452 129.051 21.6971 615686401 615945601 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 :                                   539.49 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             295.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            793 sec.

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

