/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 2 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 = 7350
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0836.2+2141_daily_bin305
RA = 129.051, Dec = 21.6971
tmin = 318384001, tmax = 318643201
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='583133', job_status='RUN', time_executed='2021-08-30 02:00:43.355130', time_epoch_executed='1630314043.36' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/583133

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/583133/ft1_4FGL_J0836.2+2141_daily_bin305.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/583133/ft2_4FGL_J0836.2+2141_daily_bin305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/583133/ft1_4FGL_J0836.2+2141_daily_bin305.fits outfile=/scratch/kocevski/583133/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin305.fits ra=129.051 dec=21.6971 rad=12.0 tmin=318384001.0 tmax=318643201.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 3.35
user 3.12
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/583133/ft1_filtered_4FGL_J0836.2+2141_daily_bin305.fits" evtable="EVENTS" scfile=/scratch/kocevski/583133/ft2_4FGL_J0836.2+2141_daily_bin305.fits sctable="SC_DATA" outfile=/scratch/kocevski/583133/ltcube_318384001_318643201_4FGL_J0836.2+2141_daily_bin305.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/583133/ft2_4FGL_J0836.2+2141_daily_bin305.fits
.....................!
real 12.51
user 12.13
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/583133/ft1_filtered_4FGL_J0836.2+2141_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/583133/ft2_4FGL_J0836.2+2141_daily_bin305.fits sctable="SC_DATA" expcube=/scratch/kocevski/583133/ltcube_318384001_318643201_4FGL_J0836.2+2141_daily_bin305.fits outfile=/scratch/kocevski/583133/expmap_318384001_318643201_4FGL_J0836.2+2141_daily_bin305.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/583133/ltcube_318384001_318643201_4FGL_J0836.2+2141_daily_bin305.fits
.....................!
real 190.62
user 185.75
sys 4.42

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/583133/ft1_filtered_4FGL_J0836.2+2141_daily_bin305.fits scfile=/scratch/kocevski/583133/ft2_4FGL_J0836.2+2141_daily_bin305.fits outfile=/scratch/kocevski/583133/cmap_318384001_318643201_4FGL_J0836.2+2141_daily_bin305.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/583133/ft1_filtered_4FGL_J0836.2+2141_daily_bin305.fits scfile=/scratch/kocevski/583133/ft2_4FGL_J0836.2+2141_daily_bin305.fits outfile=/scratch/kocevski/583133/cmap_HighResolution_318384001_318643201_4FGL_J0836.2+2141_daily_bin305.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11414       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    21.482       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13431E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10377E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.7377       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2966       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.306       1.0000         .10000E-03   10000.    
    13 'norm      '    3.1382       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7143       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.009       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    52.274       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3482       1.0000         .10000E-03   10000.    
    19 'Prefactor '    51.130       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .90789       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1273       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=   6067.323     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2242 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14655E-01    10.185       -.66001E-06    .87397E-04
   2  Prefactor     .10000E-03    28.947       -.86089E-07** at limit **
   3  Prefactor     .10000E-03    18.234        .35182E-07** at limit **
   4  norm          21.478        46.696       -.63955E-06    .23521E-05
   5  Prefactor     .10000E-03    8.5781       -.38354E-07** at limit **
   6  Prefactor     .10000E-03    9.2068       -.26692E-07** at limit **
   7  Prefactor     .10000E-03    73.289       -.39843E-06** at limit **
   8  Prefactor     .10000E-03    15.317       -.16849E-06** at limit **
   9  norm          2.7389        1.3757       -.74970E-09    .38642E-04
  10  Prefactor     .10000E-03    13.812       -.34940E-07** at limit **
  11  Prefactor     3.2967        5.2296        .26173E-05    .24062E-04
  12  Prefactor     16.291        31.058       -.37492E-05    .32521E-05
  13  norm          3.1383        .93093       -.95724E-08    .68901E-04
  14  Prefactor     7.7118        12.724        .41380E-07    .30735E-05
  15  Prefactor     17.006        14.085        .60353E-07    .58032E-05
  16  norm          .10000E-03    3.1511       -.10247E-07** at limit **
  17  norm          52.266        37.697       -.45494E-06    .26676E-05
  18  norm          1.3480        1.6672        .28301E-08   -.37006E-05
  19  Prefactor     51.126        48.123        .68483E-06    .12327E-05
  20  Normalizat    .90796        .19596       -.34943E-06    .53033E-04
  21  Prefactor     1.1274        .16579        .28086E-06    .77393E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0146552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.4784
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.73886
  Prefactor  = 0.0001
  Prefactor  = 3.29675
  Prefactor  = 16.2907
  norm       = 3.13825
  Prefactor  = 7.71184
  Prefactor  = 17.0056
  norm       = 0.0001
  norm       = 52.266
  norm       = 1.34805
  Prefactor  = 51.1261
  Normalizat = 0.907964
  Prefactor  = 1.1274
 **********
 **   18 **HESSE 
 **********

 FCN=   6067.323     FROM HESSE     STATUS=OK           325 CALLS     2567 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14655E-01    22.641        .79349E-01   -1.5684    
   2  Prefactor     .10000E-03    29.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          21.478        46.701        .86418E-04   -1.4781    
   5  Prefactor     .10000E-03    8.5818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.2121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    74.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.7389        1.3727        .61334E-04   -1.5377    
  10  Prefactor     .10000E-03    14.166        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2967        5.2325        .10866E-02   -1.5345    
  12  Prefactor     16.291        31.078        .99186E-04   -1.4901    
  13  norm          3.1383        .93179        .38604E-04   -1.5354    
  14  Prefactor     7.7118        12.722        .14438E-03   -1.5152    
  15  Prefactor     17.006        14.115        .97114E-04   -1.4883    
  16  norm          .10000E-03    3.1536        .13504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          52.266        37.693        .55472E-04   -1.4261    
  18  norm          1.3480        1.6487        .10897E-03   -1.5476    
  19  Prefactor     51.126        48.124        .56086E-04   -1.4277    
  20  Normalizat    .90796        .22503        .27702E-03   -.96181    
  21  Prefactor     1.1274        .19125        .21885E-03   -.88596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82329e-10
Minuit parameter uncertainties:
  1  1.14854
  2  1.68535e-05
  3  6.4054e-06
  4  46.7801
  5  4.03248e-06
  6  4.31259e-06
  7  0.00017144
  8  1.24155e-05
  9  1.37274
  10  2.66212e-05
  11  5.23319
  12  31.1088
  13  0.931795
  14  12.7262
  15  14.1178
  16  6.64537e-07
  17  37.7101
  18  1.64871
  19  48.1606
  20  0.225265
  21  0.191364
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  2.662e-05  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.127e+00  1.914e-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.080e-01  2.253e-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: 9.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/583133/likelihoodResults_318384001_318643201_4FGL_J0836.2+2141_daily_bin305.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) = 6067.32377647
delta logL = -0.000336828754371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6067.32343965
delta logL = -1.5733348846e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7424       1.0000          .0000       10.000    
     3 'Normalizat'    .90799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1274       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=   6067.323     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      247 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10083E-03    304.94        .36285E-02** at limit **
   2  Index         2.8028        5.7824        .50000       -.51259E-05
   3  Normalizat    .90796        .21893E-01    .27702E-03    .23187E-04
   4  Prefactor     1.1274        .19153E-01    .21885E-03    .29506E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010083
  Index      = 2.80277
  Normalizat = 0.907964
  Prefactor  = 1.1274
 **********
 **   18 **HESSE 
 **********

 FCN=   6067.323     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10083E-03    1569.7        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8028        8.0910        .50000       -.45498    
   3  Normalizat    .90796        .58322E-01    .11081E-04   -.96181    
   4  Prefactor     1.1274        .51022E-01    .87540E-05   -.88596    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.6762e-08
Minuit parameter uncertainties:
  1  0.0742097
  2  2217.36
  3  0.0583258
  4  0.0510247
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/583133': 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) = 6067.32343956
delta logL = 7.37909431336e-08

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.008e-04  7.421e-02  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.803e+00  2.217e+03  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.127e+00  5.102e-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:  9.080e-01  5.833e-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/583133/cmap_HighResolution_318384001_318643201_4FGL_J0836.2+2141_daily_bin305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.80e-03', job_status='DONE', photon_flux_upper_limit='9.89e-08', time_completed='2021-08-30 02:10:32.134944', job_id='583133', GAL2='1.13', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630314632.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='7.38e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='305' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:10:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 583133: <4FGL_J0836.2+2141_daily_bin305> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin305 129.051 21.6971 318384001 318643201 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 :                                   587.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   604 sec.
    Turnaround time :                            608 sec.

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

