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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1594
RA = 129.051, Dec = 21.6971
tmin = 652492801, tmax = 652752001
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='713944', job_status='RUN', time_executed='2021-09-08 00:13:17.845283', time_epoch_executed='1631085197.85' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/713944

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/713944/ft1_4FGL_J0836.2+2141_daily_bin1594.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/713944/ft2_4FGL_J0836.2+2141_daily_bin1594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/713944/ft1_4FGL_J0836.2+2141_daily_bin1594.fits outfile=/scratch/kocevski/713944/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1594.fits ra=129.051 dec=21.6971 rad=12.0 tmin=652492801.0 tmax=652752001.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.48
user 4.23
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/713944/ft1_filtered_4FGL_J0836.2+2141_daily_bin1594.fits" evtable="EVENTS" scfile=/scratch/kocevski/713944/ft2_4FGL_J0836.2+2141_daily_bin1594.fits sctable="SC_DATA" outfile=/scratch/kocevski/713944/ltcube_652492801_652752001_4FGL_J0836.2+2141_daily_bin1594.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/713944/ft2_4FGL_J0836.2+2141_daily_bin1594.fits
.....................!
real 14.56
user 14.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/713944/ft1_filtered_4FGL_J0836.2+2141_daily_bin1594.fits evtable="EVENTS" scfile=/scratch/kocevski/713944/ft2_4FGL_J0836.2+2141_daily_bin1594.fits sctable="SC_DATA" expcube=/scratch/kocevski/713944/ltcube_652492801_652752001_4FGL_J0836.2+2141_daily_bin1594.fits outfile=/scratch/kocevski/713944/expmap_652492801_652752001_4FGL_J0836.2+2141_daily_bin1594.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/713944/ltcube_652492801_652752001_4FGL_J0836.2+2141_daily_bin1594.fits
.....................!
real 193.46
user 188.96
sys 4.05

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/713944/ft1_filtered_4FGL_J0836.2+2141_daily_bin1594.fits scfile=/scratch/kocevski/713944/ft2_4FGL_J0836.2+2141_daily_bin1594.fits outfile=/scratch/kocevski/713944/cmap_652492801_652752001_4FGL_J0836.2+2141_daily_bin1594.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/713944/ft1_filtered_4FGL_J0836.2+2141_daily_bin1594.fits scfile=/scratch/kocevski/713944/ft2_4FGL_J0836.2+2141_daily_bin1594.fits outfile=/scratch/kocevski/713944/cmap_HighResolution_652492801_652752001_4FGL_J0836.2+2141_daily_bin1594.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.61
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.853       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.505       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.877       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.506       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11248E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .35213       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2247       1.0000         .10000E-03   10000.    
    12 'Prefactor '    49.439       1.0000         .10000E-03   10000.    
    13 'norm      '    .56542       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.035       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.8240       1.0000         .10000E-03   10000.    
    18 'norm      '    1.8514       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .87855       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1373       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=   6129.664     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2286 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.853        15.440       -.53854E-06   -.44933E-05
   2  Prefactor     .10000E-03    22.365        .13159E-05** at limit **
   3  Prefactor     .10000E-03    11.879        .64718E-07** at limit **
   4  norm          .10000E-03    29.838       -.41919E-05** at limit **
   5  Prefactor     15.505        18.994       -.21763E-06    .14677E-04
   6  Prefactor     22.878        24.226        .44310E-06    .24455E-04
   7  Prefactor     15.505        27.809       -.33873E-06    .30420E-06
   8  Prefactor     .10000E-03    14.258       -.20576E-06** at limit **
   9  norm          .10000E-03    .60356       -.37982E-08** at limit **
  10  Prefactor     .41140        9.1022       -.35911E-05    .43145E-03
  11  Prefactor     4.2264        8.8707        .73982E-06    .13125E-03
  12  Prefactor     49.421        44.100       -.16278E-04    .45400E-04
  13  norm          .56551        .57259       -.18042E-07    .36594E-03
  14  Prefactor     .10000E-03    4.6651       -.25733E-08** at limit **
  15  Prefactor     17.041        15.902       -.79044E-06    .58718E-04
  16  norm          .10000E-03    2.9967       -.87520E-08** at limit **
  17  norm          4.8219        42.002       -.28779E-05   -.12810E-04
  18  norm          1.8515        2.0506       -.85657E-07   -.80583E-04
  19  Prefactor     .10000E-03    60.260       -.45115E-06** at limit **
  20  Normalizat    .87819        .19470        .33004E-05    .37635E-03
  21  Prefactor     1.1376        .15562        .14677E-06    .49859E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.5054
  Prefactor  = 22.8777
  Prefactor  = 15.5053
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.411397
  Prefactor  = 4.22643
  Prefactor  = 49.4206
  norm       = 0.565513
  Prefactor  = 0.0001
  Prefactor  = 17.0409
  norm       = 0.0001
  norm       = 4.82191
  norm       = 1.8515
  Prefactor  = 0.0001
  Normalizat = 0.87819
  Prefactor  = 1.13757
 **********
 **   18 **HESSE 
 **********

 FCN=   6129.664     FROM HESSE     STATUS=OK           319 CALLS     2605 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.853        15.446        .10762E-03   -1.4963    
   2  Prefactor     .10000E-03    22.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    29.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.505        18.991        .10171E-03   -1.4920    
   6  Prefactor     22.878        24.224        .83746E-04   -1.4751    
   7  Prefactor     15.505        27.807        .10171E-03   -1.4920    
   8  Prefactor     .10000E-03    14.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.0318        .11364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .41140        48.557        .40711E-02   -1.5580    
  11  Prefactor     4.2264        8.7871        .19605E-03   -1.5297    
  12  Prefactor     49.421        44.251        .57033E-04   -1.4301    
  13  norm          .56551        .53585        .57079E-03   -1.5558    
  14  Prefactor     .10000E-03    4.6752        .16513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.041        15.962        .97038E-04   -1.4882    
  16  norm          .10000E-03    3.0005        .13236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.8219        42.049        .18316E-03   -1.5269    
  18  norm          1.8515        2.0429        .11483E-03   -1.5436    
  19  Prefactor     .10000E-03    60.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .87819        .22113        .27704E-03   -.97231    
  21  Prefactor     1.1376        .17823        .21032E-03   -.88275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23244e-09
Minuit parameter uncertainties:
  1  15.4505
  2  2.67745e-05
  3  6.14991e-06
  4  1.02975e-05
  5  18.9985
  6  24.2346
  7  27.8299
  8  2.24102e-05
  9  1.27182e-06
  10  8.94532
  11  8.78981
  12  44.28
  13  0.535853
  14  2.68814e-06
  15  15.9656
  16  1.31307e-06
  17  28.5052
  18  2.04301
  19  6.87266e-05
  20  0.221363
  21  0.178327
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  4.114e-01  8.945e+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:  1.138e+00  1.783e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  8.782e-01  2.214e-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: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/713944/likelihoodResults_652492801_652752001_4FGL_J0836.2+2141_daily_bin1594.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) = 6129.37103315
delta logL = 0.293155433784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6129.31385412
delta logL = 0.350334464273

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27257E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    7.2478       1.0000          .0000       10.000    
     3 'Normalizat'    .80490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1794       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=   6129.314     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      259 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26753E-01    .44283        .33366E-02    .75375E-02
   2  Index         7.2614        3.5428        .22739        .98746E-04
   3  Normalizat    .80516        .32603E-01    .65216E-01    .29674E-04
   4  Prefactor     1.1790        .27895E-01    .35137E-01    .44946E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0267527
  Index      = 7.26139
  Normalizat = 0.80516
  Prefactor  = 1.17904
 **********
 **   18 **HESSE 
 **********

 FCN=   6129.314     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      292 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26753E-01    1.8658        .15028E-04   -1.5675    
   2  Index         7.2614        8.3970        .10368E-01    .46932    
   3  Normalizat    .80516        .17086        .28851E-03   -.99878    
   4  Prefactor     1.1790        .14113        .20711E-03   -.86979    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.45055e-10
Minuit parameter uncertainties:
  1  0.446009
  2  11.0413
  3  0.170972
  4  0.14117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/713944': 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) = 6129.31384661
delta logL = 0.350341974697

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  2.675e-02  4.460e-01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  7.261e+00  1.104e+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.179e+00  1.412e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  8.052e-01  1.710e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/713944/cmap_HighResolution_652492801_652752001_4FGL_J0836.2+2141_daily_bin1594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.62e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-08 00:23:22.986121', job_id='713944', GAL2='1.18', fit_tolerance='1e-08', EG2='0.81', EG='0.88', time_epoch_completed='1631085802.99', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='3.50e-01', ts2='0.81', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1594' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:23:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 713944: <4FGL_J0836.2+2141_daily_bin1594> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin1594> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 00:11:25 2021
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:13:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 00:13:01 2021
Terminated at Wed Sep  8 00:23:23 2021
Results reported at Wed Sep  8 00:23:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1594 129.051 21.6971 652492801 652752001 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 :                                   606.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   622 sec.
    Turnaround time :                            718 sec.

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

