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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1023
RA = 129.051, Dec = 21.6971
tmin = 504489601, tmax = 504748801
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='586586', job_status='RUN', time_executed='2021-08-30 02:11:10.412480', time_epoch_executed='1630314670.41' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1023'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/586586

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/586586/ft1_4FGL_J0836.2+2141_daily_bin1023.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/586586/ft2_4FGL_J0836.2+2141_daily_bin1023.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/586586/ft1_4FGL_J0836.2+2141_daily_bin1023.fits outfile=/scratch/kocevski/586586/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1023.fits ra=129.051 dec=21.6971 rad=12.0 tmin=504489601.0 tmax=504748801.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.75
user 4.18
sys 0.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/586586/ft1_filtered_4FGL_J0836.2+2141_daily_bin1023.fits" evtable="EVENTS" scfile=/scratch/kocevski/586586/ft2_4FGL_J0836.2+2141_daily_bin1023.fits sctable="SC_DATA" outfile=/scratch/kocevski/586586/ltcube_504489601_504748801_4FGL_J0836.2+2141_daily_bin1023.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/586586/ft2_4FGL_J0836.2+2141_daily_bin1023.fits
.....................!
real 12.09
user 11.30
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/586586/ft1_filtered_4FGL_J0836.2+2141_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/586586/ft2_4FGL_J0836.2+2141_daily_bin1023.fits sctable="SC_DATA" expcube=/scratch/kocevski/586586/ltcube_504489601_504748801_4FGL_J0836.2+2141_daily_bin1023.fits outfile=/scratch/kocevski/586586/expmap_504489601_504748801_4FGL_J0836.2+2141_daily_bin1023.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/586586/ltcube_504489601_504748801_4FGL_J0836.2+2141_daily_bin1023.fits
.....................!
real 190.47
user 185.75
sys 4.26

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/586586/ft1_filtered_4FGL_J0836.2+2141_daily_bin1023.fits scfile=/scratch/kocevski/586586/ft2_4FGL_J0836.2+2141_daily_bin1023.fits outfile=/scratch/kocevski/586586/cmap_504489601_504748801_4FGL_J0836.2+2141_daily_bin1023.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=129.051 yref=21.6971 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.81
user 0.37
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/586586/ft1_filtered_4FGL_J0836.2+2141_daily_bin1023.fits scfile=/scratch/kocevski/586586/ft2_4FGL_J0836.2+2141_daily_bin1023.fits outfile=/scratch/kocevski/586586/cmap_HighResolution_504489601_504748801_4FGL_J0836.2+2141_daily_bin1023.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=129.051 yref=21.6971 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.82
user 0.37
sys 0.40

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2776       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    100.25       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.0392       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7122       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.450       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    81.821       1.0000         .10000E-03   10000.    
    18 'norm      '    2.3654       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1017       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88855       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=   5613.180     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2150 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2648        54.912       -.39522E-05   -.51180E-04
   2  Prefactor     .10000E-03    16.743       -.18365E-04** at limit **
   3  Prefactor     .10000E-03    32.552       -.67827E-05** at limit **
   4  norm          100.26        89.520        .64489E-05    .17717E-05
   5  Prefactor     .10000E-03    66.776        .37079E-04** at limit **
   6  Prefactor     .10000E-03    12.739        .16818E-05** at limit **
   7  Prefactor     .10000E-03    81.530        .10033E-04** at limit **
   8  Prefactor     .10000E-03    10.088        .16553E-06** at limit **
   9  norm          1.0393        .93074        .67235E-08   -.23196E-03
  10  Prefactor     .10000E-03    2.5386       -.55693E-07** at limit **
  11  Prefactor     .10000E-03    4.4014        .96134E-07** at limit **
  12  Prefactor     .10000E-03    98.504       -.51746E-04** at limit **
  13  norm          1.7124        .88305        .47426E-07    .11358E-05
  14  Prefactor     12.451        16.595        .64172E-06   -.33373E-04
  15  Prefactor     .10000E-03    17.753        .20466E-04** at limit **
  16  norm          .10000E-03    2.0215       -.18647E-06** at limit **
  17  norm          81.815        54.753       -.54040E-05   -.32155E-04
  18  norm          2.3653        2.1352        .49078E-08   -.71809E-04
  19  Prefactor     .10000E-03    32.061       -.38660E-05** at limit **
  20  Normalizat    1.1018        .18606       -.20765E-06   -.10007E-03
  21  Prefactor     .88850        .15327        .66907E-07   -.56671E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.26478
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 100.261
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.03931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.71237
  Prefactor  = 12.4507
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 81.8148
  norm       = 2.36531
  Prefactor  = 0.0001
  Normalizat = 1.10178
  Prefactor  = 0.888499
 **********
 **   18 **HESSE 
 **********

 FCN=   5613.180     FROM HESSE     STATUS=OK           311 CALLS     2461 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2648        55.148        .27208E-03   -1.5407    
   2  Prefactor     .10000E-03    16.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          100.26        89.623        .20076E-03   -1.3702    
   5  Prefactor     .10000E-03    67.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    83.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0393        .92684        .65830E-04   -1.5504    
  10  Prefactor     .10000E-03    2.5416        .11657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.4436        .15346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    99.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7124        .88156        .46752E-04   -1.5446    
  14  Prefactor     12.451        16.571        .11353E-03   -1.5002    
  15  Prefactor     .10000E-03    17.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.0220        .10403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          81.815        54.794        .44404E-04   -1.3896    
  18  norm          2.3653        2.1406        .10139E-03   -1.5400    
  19  Prefactor     .10000E-03    32.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1018        .21915        .25118E-03   -.89695    
  21  Prefactor     .88850        .18077        .22707E-03   -.96544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0896e-10
Minuit parameter uncertainties:
  1  22.3742
  2  3.71054e-06
  3  2.21828e-05
  4  89.744
  5  0.000441928
  6  1.21097e-05
  7  0.000230911
  8  1.82538e-06
  9  0.92685
  10  4.09997e-07
  11  3.33371e-06
  12  0.000732107
  13  0.88157
  14  16.5773
  15  8.10959e-05
  16  1.5374e-07
  17  54.8279
  18  2.14066
  19  4.5994e-05
  20  0.219333
  21  0.180887
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  4.100e-07  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.885e-01  1.809e-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.102e+00  2.193e-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: 6.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/586586/likelihoodResults_504489601_504748801_4FGL_J0836.2+2141_daily_bin1023.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) = 5613.18136468
delta logL = -0.00185836077435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5613.17950617
delta logL = 1.44575096783e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7167       1.0000          .0000       10.000    
     3 'Normalizat'    1.1018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88849       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=   5613.180     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      257 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    54.192        .11753E-01** at limit **
   2  Index         2.0221        8.7157        .50000       -.19161E-06
   3  Normalizat    1.1018        .19825E-01    .25118E-03    .94144E-04
   4  Prefactor     .88850        .16366E-01    .22707E-03    .11690E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.02212
  Normalizat = 1.10178
  Prefactor  = 0.888498
 **********
 **   18 **HESSE 
 **********

 FCN=   5613.180     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    389.17        .13217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0221        8.9404        .50000       -.63798    
   3  Normalizat    1.1018        .62569E-01    .10047E-04   -.89695    
   4  Prefactor     .88850        .51653E-01    .90829E-05   -.96544    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.9572e-09
Minuit parameter uncertainties:
  1  0.000148672
  2  999.792
  3  0.0625729
  4  0.0516563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/586586': 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): 102
logL (Free Index) = 5613.17950192
delta logL = 4.39671748609e-06

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  1.487e-04  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.022e+00  9.998e+02  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.885e-01  5.166e-02  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.102e+00  6.257e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/586586/cmap_HighResolution_504489601_504748801_4FGL_J0836.2+2141_daily_bin1023.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-03', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2021-08-30 02:20:33.020539', job_id='586586', GAL2='0.89', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630315233.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='4.40e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1023' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:20:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 586586: <4FGL_J0836.2+2141_daily_bin1023> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1023 129.051 21.6971 504489601 504748801 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 :                                   562.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   584 sec.
    Turnaround time :                            585 sec.

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

