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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1043
RA = 129.051, Dec = 21.6971
tmin = 509673601, tmax = 509932801
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='586615', job_status='RUN', time_executed='2021-08-30 02:14:50.919558', time_epoch_executed='1630314890.92' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1043'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/586615

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/586615/ft1_4FGL_J0836.2+2141_daily_bin1043.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/586615/ft2_4FGL_J0836.2+2141_daily_bin1043.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/586615/ft1_4FGL_J0836.2+2141_daily_bin1043.fits outfile=/scratch/kocevski/586615/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1043.fits ra=129.051 dec=21.6971 rad=12.0 tmin=509673601.0 tmax=509932801.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.58
user 3.31
sys 2.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/586615/ft1_filtered_4FGL_J0836.2+2141_daily_bin1043.fits" evtable="EVENTS" scfile=/scratch/kocevski/586615/ft2_4FGL_J0836.2+2141_daily_bin1043.fits sctable="SC_DATA" outfile=/scratch/kocevski/586615/ltcube_509673601_509932801_4FGL_J0836.2+2141_daily_bin1043.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/586615/ft2_4FGL_J0836.2+2141_daily_bin1043.fits
.....................!
real 14.61
user 11.83
sys 2.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/586615/ft1_filtered_4FGL_J0836.2+2141_daily_bin1043.fits evtable="EVENTS" scfile=/scratch/kocevski/586615/ft2_4FGL_J0836.2+2141_daily_bin1043.fits sctable="SC_DATA" expcube=/scratch/kocevski/586615/ltcube_509673601_509932801_4FGL_J0836.2+2141_daily_bin1043.fits outfile=/scratch/kocevski/586615/expmap_509673601_509932801_4FGL_J0836.2+2141_daily_bin1043.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/586615/ltcube_509673601_509932801_4FGL_J0836.2+2141_daily_bin1043.fits
.....................!
real 195.12
user 186.08
sys 6.99

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/586615/ft1_filtered_4FGL_J0836.2+2141_daily_bin1043.fits scfile=/scratch/kocevski/586615/ft2_4FGL_J0836.2+2141_daily_bin1043.fits outfile=/scratch/kocevski/586615/cmap_509673601_509932801_4FGL_J0836.2+2141_daily_bin1043.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.57
user 0.37
sys 2.10

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/586615/ft1_filtered_4FGL_J0836.2+2141_daily_bin1043.fits scfile=/scratch/kocevski/586615/ft2_4FGL_J0836.2+2141_daily_bin1043.fits outfile=/scratch/kocevski/586615/cmap_HighResolution_509673601_509932801_4FGL_J0836.2+2141_daily_bin1043.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.49
user 0.38
sys 2.10

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.340       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.347       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2038       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    50.601       1.0000         .10000E-03   10000.    
     9 'norm      '    .69596       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5872       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.211       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4499       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.543       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23861E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .51465E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .15250E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .57743       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .82961       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1642       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=   6986.560     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2224 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.340        18.362       -.49973E-06   -.82897E-04
   2  Prefactor     14.324        53.941        .96469E-05   -.49653E-05
   3  Prefactor     .10000E-03    10.752        .60503E-07** at limit **
   4  norm          .10000E-03    50.512        .34383E-05** at limit **
   5  Prefactor     .10000E-03    14.290       -.11172E-06** at limit **
   6  Prefactor     1.2000        30.584        .21187E-04    .41923E-04
   7  Prefactor     .10000E-03    21.531        .38384E-06** at limit **
   8  Prefactor     50.609        28.047        .25898E-07   -.41739E-04
   9  norm          .69546        1.4685       -.89746E-07   -.94574E-03
  10  Prefactor     6.5923        11.226        .39576E-06   -.55793E-04
  11  Prefactor     .10000E-03    2.4590        .46200E-07** at limit **
  12  Prefactor     22.200        25.689       -.63788E-07   -.27727E-04
  13  norm          1.4500        .69960       -.12823E-07   -.86553E-03
  14  Prefactor     14.532        13.420        .44599E-06   -.18340E-03
  15  Prefactor     .10003E-03    59.318        .38100E-04** at limit **
  16  norm          .10002E-03    6.6037       -.72746E-05** at limit **
  17  norm          .10001E-03    143.81        .10727E-05** at limit **
  18  norm          .57830        1.7170        .92772E-06    .61105E-03
  19  Prefactor     .10000E-03    27.293       -.41860E-06** at limit **
  20  Normalizat    .82958        .18678        .47863E-06   -.50088E-03
  21  Prefactor     1.1642        .14977       -.10540E-05   -.56825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.34
  Prefactor  = 14.3239
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.20004
  Prefactor  = 0.0001
  Prefactor  = 50.6088
  norm       = 0.695458
  Prefactor  = 6.59232
  Prefactor  = 0.0001
  Prefactor  = 22.2004
  norm       = 1.45
  Prefactor  = 14.5315
  Prefactor  = 0.000100027
  norm       = 0.000100015
  norm       = 0.000100013
  norm       = 0.578296
  Prefactor  = 0.0001
  Normalizat = 0.829575
  Prefactor  = 1.16423
 **********
 **   18 **HESSE 
 **********

 FCN=   6986.560     FROM HESSE     STATUS=OK           323 CALLS     2547 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.340        18.352        .11403E-03   -1.5005    
   2  Prefactor     14.324        53.989        .10574E-03   -1.4951    
   3  Prefactor     .10000E-03    10.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    50.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.2000        75.061        .20664E-02   -1.5489    
   7  Prefactor     .10000E-03    21.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     50.609        26.570        .56377E-04   -1.4284    
   9  norm          .69546        1.2252        .11548E-02   -1.5541    
  10  Prefactor     6.5923        10.836        .15636E-03   -1.5194    
  11  Prefactor     .10000E-03    2.4701        .12798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.200        25.677        .84990E-04   -1.4765    
  13  norm          1.4500        .69996        .45843E-04   -1.5467    
  14  Prefactor     14.532        13.397        .10503E-03   -1.4945    
  15  Prefactor     .10003E-03    77.140        .59599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10002E-03    19.416        .37120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10001E-03    149.56        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .57830        1.5927        .18231E-02   -1.5556    
  19  Prefactor     .10000E-03    27.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .82958        .21297        .29279E-03   -.98981    
  21  Prefactor     1.1642        .17428        .21154E-03   -.87439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05159e-09
Minuit parameter uncertainties:
  1  18.3606
  2  54.1742
  3  4.12542e-06
  4  0.000168148
  5  2.95566e-05
  6  19.0059
  7  7.72292e-05
  8  26.5763
  9  1.2252
  10  10.8397
  11  3.87435e-06
  12  25.6899
  13  0.699965
  14  13.3995
  15  0.00290982
  16  0.00108677
  17  0.00283802
  18  1.59278
  19  1.20715e-05
  20  0.213188
  21  0.174368
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  6.592e+00  1.084e+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.164e+00  1.744e-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.296e-01  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/586615/likelihoodResults_509673601_509932801_4FGL_J0836.2+2141_daily_bin1043.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) = 6986.46023342
delta logL = 0.0995219611386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6986.44286018
delta logL = 0.116895207082

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9806       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3360       1.0000          .0000       10.000    
     3 'Normalizat'    .80955       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1758       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=   6986.443     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      258 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9587        12.987        .90100E-03    .36557E-03
   2  Index         3.3373        1.8637        .11636E-01    .33889E-03
   3  Normalizat    .80980        .21296        .29594E-03   -.72990E-06
   4  Prefactor     1.1757        .17575        .21062E-03   -.86364E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.95872
  Index      = 3.3373
  Normalizat = 0.809804
  Prefactor  = 1.17573
 **********
 **   18 **HESSE 
 **********

 FCN=   6986.443     FROM HESSE     STATUS=OK            27 CALLS      285 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9587        9.9480        .18020E-03   -1.5263    
   2  Index         3.3373        1.4425        .23272E-02   -.33900    
   3  Normalizat    .80980        .21339        .11838E-04   -.99706    
   4  Prefactor     1.1757        .17566        .84247E-05   -.87081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61832e-11
Minuit parameter uncertainties:
  1  9.95132
  2  1.46604
  3  0.213615
  4  0.175752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/586615': 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) = 6986.44285658
delta logL = 0.116898804021

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  4.959e+00  9.951e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  3.337e+00  1.466e+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.176e+00  1.758e-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.098e-01  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.46
Ra Dec: 129.051 21.697

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/586615/cmap_HighResolution_509673601_509932801_4FGL_J0836.2+2141_daily_bin1043.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.39e-07', time_completed='2021-08-30 02:25:44.592089', job_id='586615', GAL2='1.18', fit_tolerance='1e-08', EG2='0.81', EG='0.83', time_epoch_completed='1630315544.59', return_code2='0', ts='0.46', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.17e-01', ts2='0.72', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1043' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:25:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 586615: <4FGL_J0836.2+2141_daily_bin1043> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin1043> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 02:10:50 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:10:53 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:10:53 2021
Terminated at Mon Aug 30 02:25:45 2021
Results reported at Mon Aug 30 02:25:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1043 129.051 21.6971 509673601 509932801 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 :                                   682.29 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             250.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            895 sec.

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

