/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 62 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 = 7395
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0836.2+2141_daily_bin883
RA = 129.051, Dec = 21.6971
tmin = 468201601, tmax = 468460801
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='586383', job_status='RUN', time_executed='2021-08-30 02:13:28.459376', time_epoch_executed='1630314808.46' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='883'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/586383

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/586383/ft1_4FGL_J0836.2+2141_daily_bin883.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/586383/ft2_4FGL_J0836.2+2141_daily_bin883.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/586383/ft1_4FGL_J0836.2+2141_daily_bin883.fits outfile=/scratch/kocevski/586383/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin883.fits ra=129.051 dec=21.6971 rad=12.0 tmin=468201601.0 tmax=468460801.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 9.01
user 3.23
sys 5.72

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/586383/ft2_4FGL_J0836.2+2141_daily_bin883.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/586383/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin883.fits evtable="EVENTS" outfile="/scratch/kocevski/586383/ft1_filtered_4FGL_J0836.2+2141_daily_bin883.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 6.10
user 0.32
sys 5.74

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/586383/ft1_filtered_4FGL_J0836.2+2141_daily_bin883.fits" evtable="EVENTS" scfile=/scratch/kocevski/586383/ft2_4FGL_J0836.2+2141_daily_bin883.fits sctable="SC_DATA" outfile=/scratch/kocevski/586383/ltcube_468201601_468460801_4FGL_J0836.2+2141_daily_bin883.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/586383/ft2_4FGL_J0836.2+2141_daily_bin883.fits
.....................!
real 18.41
user 11.76
sys 6.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/586383/ft1_filtered_4FGL_J0836.2+2141_daily_bin883.fits evtable="EVENTS" scfile=/scratch/kocevski/586383/ft2_4FGL_J0836.2+2141_daily_bin883.fits sctable="SC_DATA" expcube=/scratch/kocevski/586383/ltcube_468201601_468460801_4FGL_J0836.2+2141_daily_bin883.fits outfile=/scratch/kocevski/586383/expmap_468201601_468460801_4FGL_J0836.2+2141_daily_bin883.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/586383/ltcube_468201601_468460801_4FGL_J0836.2+2141_daily_bin883.fits
.....................!
real 199.13
user 186.53
sys 11.45

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/586383/ft1_filtered_4FGL_J0836.2+2141_daily_bin883.fits scfile=/scratch/kocevski/586383/ft2_4FGL_J0836.2+2141_daily_bin883.fits outfile=/scratch/kocevski/586383/cmap_468201601_468460801_4FGL_J0836.2+2141_daily_bin883.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 6.06
user 0.38
sys 5.62

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/586383/ft1_filtered_4FGL_J0836.2+2141_daily_bin883.fits scfile=/scratch/kocevski/586383/ft2_4FGL_J0836.2+2141_daily_bin883.fits outfile=/scratch/kocevski/586383/cmap_HighResolution_468201601_468460801_4FGL_J0836.2+2141_daily_bin883.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 6.07
user 0.40
sys 5.62

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.072       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.691       1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.501       1.0000         .10000E-03   10000.    
     4 'norm      '    103.76       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3390       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11605E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.849       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    115.93       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5611       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10766E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3224       1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.0712       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .93091       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0792       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=   7564.013     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2227 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.069        19.643       -.79258E-06    .26624E-04
   2  Prefactor     18.652        46.612       -.69064E-04    .99072E-05
   3  Prefactor     43.502        34.448        .13447E-05    .13299E-04
   4  norm          103.77        76.609        .38538E-05    .99688E-05
   5  Prefactor     4.2891        24.886       -.40650E-04   -.94242E-04
   6  Prefactor     .10000E-03    39.069        .22471E-04** at limit **
   7  Prefactor     .10000E-03    19.207        .28513E-06** at limit **
   8  Prefactor     14.849        16.545       -.45127E-06    .15133E-04
   9  norm          .10000E-03    .34709       -.36085E-07** at limit **
  10  Prefactor     .10000E-03    10.052        .77887E-06** at limit **
  11  Prefactor     .10000E-03    2.4363       -.20097E-06** at limit **
  12  Prefactor     115.92        48.183       -.66655E-05    .55511E-04
  13  norm          2.5610        .87339       -.16103E-06    .21057E-02
  14  Prefactor     .10000E-03    25.658       -.16322E-04** at limit **
  15  Prefactor     2.3166        22.943       -.71846E-05   -.14720E-03
  16  norm          .10000E-03    3.8487       -.20550E-07** at limit **
  17  norm          .10000E-03    10.997       -.14452E-05** at limit **
  18  norm          3.0710        2.0813       -.38113E-07    .31143E-03
  19  Prefactor     .10000E-03    18.900        .49007E-05** at limit **
  20  Normalizat    .93105        .17922        .65098E-05    .14074E-03
  21  Prefactor     1.0791        .14490        .17355E-05    .36024E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.0689
  Prefactor  = 18.6517
  Prefactor  = 43.5024
  norm       = 103.766
  Prefactor  = 4.28911
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 14.8495
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 115.923
  norm       = 2.56104
  Prefactor  = 0.0001
  Prefactor  = 2.31657
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.07105
  Prefactor  = 0.0001
  Normalizat = 0.931045
  Prefactor  = 1.0791
 **********
 **   18 **HESSE 
 **********

 FCN=   7564.013     FROM HESSE     STATUS=OK           313 CALLS     2540 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.069        19.644        .76996E-04   -1.4667    
   2  Prefactor     18.652        46.542        .92641E-04   -1.4844    
   3  Prefactor     43.502        34.446        .30392E-03   -1.4388    
   4  norm          103.77        76.688        .39474E-04   -1.3667    
   5  Prefactor     4.2891        25.173        .19338E-03   -1.5294    
   6  Prefactor     .10000E-03    39.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.849        16.514        .10394E-03   -1.4937    
   9  norm          .10000E-03    .35724        .99677E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.461        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.4433        .13254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     115.92        48.340        .37368E-04   -1.3550    
  13  norm          2.5610        .87071        .45007E-04   -1.5388    
  14  Prefactor     .10000E-03    26.590        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.3166        23.037        .26915E-03   -1.5404    
  16  norm          .10000E-03    3.8782        .16662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.0710        2.0848        .10017E-03   -1.5357    
  19  Prefactor     .10000E-03    18.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .93105        .20482        .27897E-03   -.95378    
  21  Prefactor     1.0791        .16622        .22179E-03   -.90138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.53732e-10
Minuit parameter uncertainties:
  1  19.6485
  2  46.633
  3  34.4622
  4  76.7616
  5  20.7948
  6  0.000624957
  7  3.42903e-05
  8  16.519
  9  4.1707e-06
  10  0.000151986
  11  8.85587e-06
  12  48.3569
  13  0.870711
  14  4.76048e-05
  15  14.6176
  16  1.66566e-05
  17  2.22593e-05
  18  2.08485
  19  4.07319e-05
  20  0.204993
  21  0.1663
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  1.520e-04  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.079e+00  1.663e-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:  9.310e-01  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/586383/likelihoodResults_468201601_468460801_4FGL_J0836.2+2141_daily_bin883.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): 102
logL (Free Index) = 7564.01364972
delta logL = -0.000456425737866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7564.01319106
delta logL = 2.23367533181e-06

Fit tolerance = 1e-08

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

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

 FCN=   7563.848     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      266 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4234        5.1305        .90712E-02    .86396E-03
   2  Index         1.7106        .65277        .23133       -.16187E-05
   3  Normalizat    .93613        .16848        .45297E-01    .27695E-03
   4  Prefactor     1.0703        .14413        .38441E-01    .35441E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.4234
  Index      = 1.71064
  Normalizat = 0.936132
  Prefactor  = 1.07029
 **********
 **   18 **HESSE 
 **********

 FCN=   7563.848     FROM HESSE     STATUS=OK            31 CALLS      297 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4234        5.2090        .27012E-03   -1.5397    
   2  Index         1.7106        .84972        .14339E-01   -.71799    
   3  Normalizat    .93613        .19243        .27828E-03   -.95202    
   4  Prefactor     1.0703        .16463        .22255E-03   -.90422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76459e-10
Minuit parameter uncertainties:
  1  5.20994
  2  0.857101
  3  0.192569
  4  0.16471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/586383': 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) = 7563.84796736
delta logL = 0.16522593741

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  2.423e+00  5.210e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  1.711e+00  8.571e-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.070e+00  1.647e-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:  9.361e-01  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 129.051 21.697

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/586383/cmap_HighResolution_468201601_468460801_4FGL_J0836.2+2141_daily_bin883.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.22e-03', job_status='DONE', photon_flux_upper_limit='7.89e-08', time_completed='2021-08-30 02:25:45.096117', job_id='586383', GAL2='1.07', fit_tolerance='1e-08', EG2='0.94', EG='0.93', time_epoch_completed='1630315545.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.65e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='883' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:25:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 586383: <4FGL_J0836.2+2141_daily_bin883> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin883 129.051 21.6971 468201601 468460801 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 :                                   822.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            912 sec.

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

