/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 0 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0836.2+2141_daily_bin211
RA = 129.051, Dec = 21.6971
tmin = 294019201, tmax = 294278401
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='581822', job_status='RUN', time_executed='2021-08-30 01:58:04.092342', time_epoch_executed='1630313884.09' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/581822

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/581822/ft1_4FGL_J0836.2+2141_daily_bin211.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/581822/ft2_4FGL_J0836.2+2141_daily_bin211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/581822/ft1_4FGL_J0836.2+2141_daily_bin211.fits outfile=/scratch/kocevski/581822/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin211.fits ra=129.051 dec=21.6971 rad=12.0 tmin=294019201.0 tmax=294278401.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 12.18
user 2.94
sys 7.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/581822/ft2_4FGL_J0836.2+2141_daily_bin211.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/581822/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin211.fits evtable="EVENTS" outfile="/scratch/kocevski/581822/ft1_filtered_4FGL_J0836.2+2141_daily_bin211.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 9.88
user 0.34
sys 7.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/581822/ft1_filtered_4FGL_J0836.2+2141_daily_bin211.fits" evtable="EVENTS" scfile=/scratch/kocevski/581822/ft2_4FGL_J0836.2+2141_daily_bin211.fits sctable="SC_DATA" outfile=/scratch/kocevski/581822/ltcube_294019201_294278401_4FGL_J0836.2+2141_daily_bin211.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/581822/ft2_4FGL_J0836.2+2141_daily_bin211.fits
.....................!
real 21.54
user 11.66
sys 8.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/581822/ft1_filtered_4FGL_J0836.2+2141_daily_bin211.fits evtable="EVENTS" scfile=/scratch/kocevski/581822/ft2_4FGL_J0836.2+2141_daily_bin211.fits sctable="SC_DATA" expcube=/scratch/kocevski/581822/ltcube_294019201_294278401_4FGL_J0836.2+2141_daily_bin211.fits outfile=/scratch/kocevski/581822/expmap_294019201_294278401_4FGL_J0836.2+2141_daily_bin211.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/581822/ltcube_294019201_294278401_4FGL_J0836.2+2141_daily_bin211.fits
.....................!
real 201.06
user 185.97
sys 13.61

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/581822/ft1_filtered_4FGL_J0836.2+2141_daily_bin211.fits scfile=/scratch/kocevski/581822/ft2_4FGL_J0836.2+2141_daily_bin211.fits outfile=/scratch/kocevski/581822/cmap_294019201_294278401_4FGL_J0836.2+2141_daily_bin211.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 7.66
user 0.39
sys 7.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/581822/ft1_filtered_4FGL_J0836.2+2141_daily_bin211.fits scfile=/scratch/kocevski/581822/ft2_4FGL_J0836.2+2141_daily_bin211.fits outfile=/scratch/kocevski/581822/cmap_HighResolution_294019201_294278401_4FGL_J0836.2+2141_daily_bin211.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 7.41
user 0.40
sys 6.97

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.634       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.842       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.773       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.262       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.802       1.0000         .10000E-03   10000.    
     9 'norm      '    .86652       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5061       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .82572E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1030       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.897       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    32.439       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.360       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1017       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96688       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=   7260.552     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2195 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.633        16.366       -.97872E-07    .41743E-07
   2  Prefactor     16.838        52.576       -.87796E-05    .92253E-06
   3  Prefactor     .10000E-03    41.146       -.20807E-07** at limit **
   4  norm          .10000E-03    28.473       -.70396E-06** at limit **
   5  Prefactor     38.771        28.949       -.12836E-05    .40722E-05
   6  Prefactor     .10000E-03    15.178       -.14626E-06** at limit **
   7  Prefactor     21.265        29.729        .25210E-05   -.78623E-06
   8  Prefactor     12.799        28.881       -.43648E-05   -.21330E-04
   9  norm          .86714        1.5485        .17903E-06   -.76535E-03
  10  Prefactor     3.5048        7.5088       -.80820E-06   -.30368E-03
  11  Prefactor     .10000E-03    3.5263       -.28680E-06** at limit **
  12  Prefactor     .10000E-03    6.5802        .12655E-06** at limit **
  13  norm          1.1030        .67420       -.40894E-07   -.25214E-03
  14  Prefactor     .10000E-03    5.5705        .98020E-07** at limit **
  15  Prefactor     15.899        14.160       -.15015E-06    .41463E-06
  16  norm          .10000E-03    2.3836        .26259E-06** at limit **
  17  norm          32.444        32.149        .61275E-05    .14041E-04
  18  norm          .10000E-03    1.0906       -.19610E-06** at limit **
  19  Prefactor     32.340        69.205       -.30773E-04    .30259E-05
  20  Normalizat    1.1016        .17711        .20635E-05   -.39325E-04
  21  Prefactor     .96693        .13952        .48524E-06    .10324E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6335
  Prefactor  = 16.838
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.7714
  Prefactor  = 0.0001
  Prefactor  = 21.2647
  Prefactor  = 12.7986
  norm       = 0.867145
  Prefactor  = 3.50484
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10298
  Prefactor  = 0.0001
  Prefactor  = 15.899
  norm       = 0.0001
  norm       = 32.4443
  norm       = 0.0001
  Prefactor  = 32.3402
  Normalizat = 1.10161
  Prefactor  = 0.966932
 **********
 **   18 **HESSE 
 **********

 FCN=   7260.552     FROM HESSE     STATUS=OK           323 CALLS     2518 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.633        16.365        .10130E-03   -1.4917    
   2  Prefactor     16.838        52.662        .97593E-04   -1.4887    
   3  Prefactor     .10000E-03    41.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    28.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     38.771        28.950        .64369E-04   -1.4462    
   6  Prefactor     .10000E-03    15.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.265        29.723        .86864E-04   -1.4785    
   8  Prefactor     12.799        26.720        .11195E-03   -1.4992    
   9  norm          .86714        1.3008        .10443E-02   -1.5522    
  10  Prefactor     3.5048        7.3831        .21592E-03   -1.5334    
  11  Prefactor     .10000E-03    15.357        .30908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.5839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1030        .67019        .52062E-04   -1.5498    
  14  Prefactor     .10000E-03    5.5873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.899        14.181        .10045E-03   -1.4910    
  16  norm          .10000E-03    2.3860        .12847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          32.444        32.144        .70353E-04   -1.4568    
  18  norm          .10000E-03    1.1271        .17377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     32.340        69.219        .70439E-04   -1.4570    
  20  Normalizat    1.1016        .20912        .25911E-03   -.89700    
  21  Prefactor     .96693        .16490        .22815E-03   -.93840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1921e-10
Minuit parameter uncertainties:
  1  16.3699
  2  52.8076
  3  4.08604e-05
  4  2.37255e-06
  5  28.9608
  6  3.13998e-06
  7  29.7437
  8  26.7446
  9  1.30084
  10  7.38503
  11  4.71669e-05
  12  5.24168e-06
  13  0.670192
  14  8.55085e-06
  15  14.1841
  16  2.22434e-06
  17  32.1609
  18  3.97395e-07
  19  69.3917
  20  0.209274
  21  0.164983
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  3.505e+00  7.385e+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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  9.669e-01  1.650e-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.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.29
Ra Dec: 129.051 21.697
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/581822/likelihoodResults_294019201_294278401_4FGL_J0836.2+2141_daily_bin211.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) = 7260.16061518
delta logL = 0.391068551733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7260.1535953
delta logL = 0.398088437033

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4705       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3291       1.0000          .0000       10.000    
     3 'Normalizat'    1.0595       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99032       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=   7260.154     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      252 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4661        32.721        .88594E-02    .71357E-03
   2  Index         4.3314        6.9734        .20330        .96953E-04
   3  Normalizat    1.0596        .43516E-01    .59571E-01   -.11047E-05
   4  Prefactor     .99025        .36223E-01    .46146E-01    .29489E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.46607
  Index      = 4.33143
  Normalizat = 1.05963
  Prefactor  = 0.990248
 **********
 **   18 **HESSE 
 **********

 FCN=   7260.154     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      285 TOTAL
                     EDM=   .93E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4661        83.775        .10599E-03   -1.5466    
   2  Index         4.3314        6.4426        .96446E-02   -.13412    
   3  Normalizat    1.0596        .18154        .26345E-03   -.91059    
   4  Prefactor     .99025        .15176        .22577E-03   -.93055    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.28828e-07
Minuit parameter uncertainties:
  1  22.1969
  2  10.9851
  3  0.181645
  4  0.151829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/581822': 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) = 7260.1535947
delta logL = 0.398089035432

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.466e+00  2.220e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  4.331e+00  1.099e+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:  9.902e-01  1.518e-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.060e+00  1.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 129.051 21.697
Photon Index (Free Index): 4.33 +/- 10.99
Photon Flux (Free Index): 5.07e-08 +/- 6.05e-08
Energy Flux (Free Index): 7.22e-06 +/- 1.60e-05

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/581822/cmap_HighResolution_294019201_294278401_4FGL_J0836.2+2141_daily_bin211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.14e-03', comment='SUCCESS', energy_flux2='7.22e-06', dlogl='3.98e-01', photon_flux2='5.07e-08', job_status='DONE', time_completed='2021-08-30 02:10:28.304688', photon_index_error2='10.99', photon_index2='4.33', ts='0.29', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='1.60e-05', EG='1.10', time_epoch_completed='1630314628.3', return_code='0', job_id='581822', GAL2='0.99', EG2='1.06', return_code2='102', photon_flux_error2='6.05e-08', ts2='1.15', photon_index='2.73' WHERE bin_id='211' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:10:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0133>
Subject: Job 581822: <4FGL_J0836.2+2141_daily_bin211> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin211> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Aug 30 01:55:59 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:56:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 01:56:00 2021
Terminated at Mon Aug 30 02:10:30 2021
Results reported at Mon Aug 30 02:10:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin211 129.051 21.6971 294019201 294278401 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 :                                   843.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

