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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1450
RA = 129.051, Dec = 21.6971
tmin = 615168001, tmax = 615427201
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='588498', job_status='RUN', time_executed='2021-08-30 02:19:24.755696', time_epoch_executed='1630315164.76' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1450'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588498

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588498/ft1_4FGL_J0836.2+2141_daily_bin1450.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588498/ft2_4FGL_J0836.2+2141_daily_bin1450.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588498/ft1_4FGL_J0836.2+2141_daily_bin1450.fits outfile=/scratch/kocevski/588498/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1450.fits ra=129.051 dec=21.6971 rad=12.0 tmin=615168001.0 tmax=615427201.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.90
user 3.25
sys 2.61

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588498/ft1_filtered_4FGL_J0836.2+2141_daily_bin1450.fits" evtable="EVENTS" scfile=/scratch/kocevski/588498/ft2_4FGL_J0836.2+2141_daily_bin1450.fits sctable="SC_DATA" outfile=/scratch/kocevski/588498/ltcube_615168001_615427201_4FGL_J0836.2+2141_daily_bin1450.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/588498/ft2_4FGL_J0836.2+2141_daily_bin1450.fits
.....................!
real 14.27
user 11.24
sys 2.99

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588498/ft1_filtered_4FGL_J0836.2+2141_daily_bin1450.fits evtable="EVENTS" scfile=/scratch/kocevski/588498/ft2_4FGL_J0836.2+2141_daily_bin1450.fits sctable="SC_DATA" expcube=/scratch/kocevski/588498/ltcube_615168001_615427201_4FGL_J0836.2+2141_daily_bin1450.fits outfile=/scratch/kocevski/588498/expmap_615168001_615427201_4FGL_J0836.2+2141_daily_bin1450.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/588498/ltcube_615168001_615427201_4FGL_J0836.2+2141_daily_bin1450.fits
.....................!
real 195.42
user 187.32
sys 7.64

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/588498/ft1_filtered_4FGL_J0836.2+2141_daily_bin1450.fits scfile=/scratch/kocevski/588498/ft2_4FGL_J0836.2+2141_daily_bin1450.fits outfile=/scratch/kocevski/588498/cmap_615168001_615427201_4FGL_J0836.2+2141_daily_bin1450.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 2.87
user 0.37
sys 2.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588498/ft1_filtered_4FGL_J0836.2+2141_daily_bin1450.fits scfile=/scratch/kocevski/588498/ft2_4FGL_J0836.2+2141_daily_bin1450.fits outfile=/scratch/kocevski/588498/cmap_HighResolution_615168001_615427201_4FGL_J0836.2+2141_daily_bin1450.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 2.88
user 0.37
sys 2.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5767       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .25288       1.0000         .10000E-03   10000.    
     3 'Prefactor '    55.313       1.0000         .10000E-03   10000.    
     4 'norm      '    40.847       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.103       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0426       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.447       1.0000         .10000E-03   10000.    
    13 'norm      '    2.1101       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.073       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1114       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    22.307       1.0000         .10000E-03   10000.    
    18 'norm      '    .77515E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    107.04       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .87104       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1056       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=   6402.801     FROM MIGRAD    STATUS=CONVERGED    849 CALLS     2640 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5897        62.279        .33837E-03   -.61822E-05
   2  Prefactor     .20150E-01    42.357        .13904        .34690E-04
   3  Prefactor     55.317        53.735        .53935E-04    .17327E-04
   4  norm          41.127        70.939        .62719E-04    .16459E-04
   5  Prefactor     .10000E-03    16.533        .18142E-02** at limit **
   6  Prefactor     .10000E-03    11.514        .18142E-02** at limit **
   7  Prefactor     .10000E-03    134.75        .18142E-02** at limit **
   8  Prefactor     .10000E-03    7.6174        .18142E-02** at limit **
   9  norm          .10000E-03    .40605        .49276E-03** at limit **
  10  Prefactor     18.100        10.999        .94134E-04   -.40096E-04
  11  Prefactor     1.0439        9.2724        .45677E-03   -.72727E-04
  12  Prefactor     14.482        34.849        .10538E-03    .10001E-03
  13  norm          2.1103        .90403        .46296E-04    .90418E-03
  14  Prefactor     21.075        16.323        .87253E-04    .56418E-04
  15  Prefactor     3.1167        29.625        .22988E-03   -.51335E-04
  16  norm          .10000E-03    6.0709        .18142E-02** at limit **
  17  norm          22.295        31.854        .84807E-04   -.33513E-05
  18  norm          .27877E-01    2.3689        .34939E-01   -.56427E-03
  19  Prefactor     107.14        72.020        .19435E-03    .16963E-05
  20  Normalizat    .87056        .23578        .28959E-03   -.34068E-03
  21  Prefactor     1.1059        .18908        .21727E-03   -.25892E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.58973
  Prefactor  = 0.0201502
  Prefactor  = 55.3171
  norm       = 41.1267
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.1001
  Prefactor  = 1.04393
  Prefactor  = 14.4819
  norm       = 2.11032
  Prefactor  = 21.0748
  Prefactor  = 3.11671
  norm       = 0.0001
  norm       = 22.2951
  norm       = 0.0278766
  Prefactor  = 107.142
  Normalizat = 0.87056
  Prefactor  = 1.10589
 **********
 **   18 **HESSE 
 **********

 FCN=   6402.801     FROM HESSE     STATUS=OK           315 CALLS     2955 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5897        62.222        .13535E-04   -1.5456    
   2  Prefactor     .20150E-01    41.901        .14002       -1.5680    
   3  Prefactor     55.317        53.725        .10787E-04   -1.4219    
   4  norm          41.127        70.938        .12544E-04   -1.4424    
   5  Prefactor     .10000E-03    16.535        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.514        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    134.87        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.6178        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .40607        .98552E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.100        10.998        .37654E-05   -1.4857    
  11  Prefactor     1.0439        9.2644        .18271E-04   -1.5504    
  12  Prefactor     14.482        34.838        .42151E-05   -1.4947    
  13  norm          2.1103        .90400        .18518E-05   -1.5417    
  14  Prefactor     21.075        16.322        .34901E-05   -1.4789    
  15  Prefactor     3.1167        29.605        .91950E-05   -1.5355    
  16  norm          .10000E-03    6.0736        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          22.295        31.855        .33923E-05   -1.4763    
  18  norm          .27877E-01    2.1713        .37471E-01   -1.5675    
  19  Prefactor     107.14        72.014        .77742E-05   -1.3634    
  20  Normalizat    .87056        .23598        .11584E-04   -.97502    
  21  Prefactor     1.1059        .18923        .43454E-04   -.89279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.27744e-10
Minuit parameter uncertainties:
  1  19.913
  2  1.83445
  3  53.7716
  4  71.0842
  5  3.17101e-05
  6  1.57309e-05
  7  0.000928797
  8  2.879e-05
  9  7.51105e-06
  10  10.9995
  11  6.22074
  12  34.8872
  13  0.904008
  14  16.3258
  15  19.2235
  16  2.5193e-05
  17  31.879
  18  0.491182
  19  72.0725
  20  0.236255
  21  0.189343
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.810e+01  1.100e+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.106e+00  1.893e-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.706e-01  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.40
Ra Dec: 129.051 21.697
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 8.88e-08 +/- 5.39e-08
Energy Flux (Fixed Index): 2.09e-05 +/- 1.27e-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) = 6402.7694673
delta logL = 0.0315394168665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6402.76145151
delta logL = 0.0395552029959

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.445       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5420       1.0000          .0000       10.000    
     3 'Normalizat'    .88561       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0964       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=   6402.761     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      249 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.433        12.431        .45415E-03   -.17173E-04
   2  Index         2.5421        .65082        .81828E-02    .76876E-04
   3  Normalizat    .88572        .22788        .28735E-03   -.67496E-04
   4  Prefactor     1.0963        .18705        .21807E-03   -.90314E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.4329
  Index      = 2.54207
  Normalizat = 0.885722
  Prefactor  = 1.09631
 **********
 **   18 **HESSE 
 **********

 FCN=   6402.761     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.433        12.311        .18166E-04   -1.4826    
   2  Index         2.5421        .64395        .16366E-02   -.51391    
   3  Normalizat    .88572        .22800        .11494E-04   -.96964    
   4  Prefactor     1.0963        .18713        .43615E-04   -.89584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69066e-12
Minuit parameter uncertainties:
  1  12.313
  2  0.646318
  3  0.228251
  4  0.187238
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588498': 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) = 6402.76145096
delta logL = 0.0395557524062

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.943e+01  1.231e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.542e+00  6.463e-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.096e+00  1.872e-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.857e-01  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.44
Ra Dec: 129.051 21.697
Photon Index (Free Index): 2.54 +/- 0.65
Photon Flux (Free Index): 7.87e-08 +/- 6.08e-08
Energy Flux (Free Index): 2.19e-05 +/- 1.40e-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/588498/cmap_HighResolution_615168001_615427201_4FGL_J0836.2+2141_daily_bin1450.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.88e-08', energy_flux2='2.19e-05', photon_flux_error='5.39e-08', dlogl='3.96e-02', energy_flux='2.09e-05', photon_flux2='7.87e-08', job_status='DONE', time_completed='2021-08-30 02:29:30.958441', photon_index_error2='0.65', photon_index2='2.54', ts='4.40', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='0.87', time_epoch_completed='1630315770.96', return_code='0', job_id='588498', GAL2='1.10', EG2='0.89', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='6.08e-08', ts2='4.44', photon_index='2.73' WHERE bin_id='1450' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:29:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 588498: <4FGL_J0836.2+2141_daily_bin1450> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin1450> 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) <bullet0295>, 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:32 2021
Results reported at Mon Aug 30 02:29:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1450 129.051 21.6971 615168001 615427201 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 :                                   640.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             232.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            804 sec.

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

