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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1326
RA = 129.051, Dec = 21.6971
tmin = 583027201, tmax = 583286401
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='588317', job_status='RUN', time_executed='2021-08-30 02:18:26.940575', time_epoch_executed='1630315106.94' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588317

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588317/ft1_4FGL_J0836.2+2141_daily_bin1326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588317/ft2_4FGL_J0836.2+2141_daily_bin1326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588317/ft1_4FGL_J0836.2+2141_daily_bin1326.fits outfile=/scratch/kocevski/588317/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1326.fits ra=129.051 dec=21.6971 rad=12.0 tmin=583027201.0 tmax=583286401.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.83
user 3.34
sys 0.44

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588317/ft1_filtered_4FGL_J0836.2+2141_daily_bin1326.fits" evtable="EVENTS" scfile=/scratch/kocevski/588317/ft2_4FGL_J0836.2+2141_daily_bin1326.fits sctable="SC_DATA" outfile=/scratch/kocevski/588317/ltcube_583027201_583286401_4FGL_J0836.2+2141_daily_bin1326.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/588317/ft2_4FGL_J0836.2+2141_daily_bin1326.fits
.....................!
real 12.28
user 11.60
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588317/ft1_filtered_4FGL_J0836.2+2141_daily_bin1326.fits evtable="EVENTS" scfile=/scratch/kocevski/588317/ft2_4FGL_J0836.2+2141_daily_bin1326.fits sctable="SC_DATA" expcube=/scratch/kocevski/588317/ltcube_583027201_583286401_4FGL_J0836.2+2141_daily_bin1326.fits outfile=/scratch/kocevski/588317/expmap_583027201_583286401_4FGL_J0836.2+2141_daily_bin1326.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/588317/ltcube_583027201_583286401_4FGL_J0836.2+2141_daily_bin1326.fits
.....................!
real 192.22
user 185.94
sys 5.67

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/588317/ft1_filtered_4FGL_J0836.2+2141_daily_bin1326.fits scfile=/scratch/kocevski/588317/ft2_4FGL_J0836.2+2141_daily_bin1326.fits outfile=/scratch/kocevski/588317/cmap_583027201_583286401_4FGL_J0836.2+2141_daily_bin1326.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.80
user 0.36
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588317/ft1_filtered_4FGL_J0836.2+2141_daily_bin1326.fits scfile=/scratch/kocevski/588317/ft2_4FGL_J0836.2+2141_daily_bin1326.fits outfile=/scratch/kocevski/588317/cmap_HighResolution_583027201_583286401_4FGL_J0836.2+2141_daily_bin1326.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.80
user 0.37
sys 0.40

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0655       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.723       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    62.472       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6166       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.714       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .26816       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4419       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.776       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.041       1.0000         .10000E-03   10000.    
    16 'norm      '    7.5138       1.0000         .10000E-03   10000.    
    17 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.705       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97917       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0419       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=   6149.240     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2174 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0647        14.365        .16559E-07   -.25712E-05
   2  Prefactor     19.710        29.292       -.63390E-07   -.13528E-04
   3  Prefactor     .10000E-03    25.894        .34746E-08** at limit **
   4  norm          .10000E-03    42.896        .98232E-07** at limit **
   5  Prefactor     62.437        49.434        .24339E-05   -.14276E-04
   6  Prefactor     2.6370        151.43       -.10847E-04   -.71163E-05
   7  Prefactor     14.712        22.758        .11815E-06   -.14526E-05
   8  Prefactor     .10000E-03    15.042       -.19279E-06** at limit **
   9  norm          .26811        .91546        .81351E-06    .72996E-04
  10  Prefactor     3.4450        11.197       -.43292E-06   -.88125E-04
  11  Prefactor     .10000E-03    8.0324        .21166E-06** at limit **
  12  Prefactor     27.765        29.491       -.62817E-07   -.13631E-04
  13  norm          .10000E-03    .17615        .26635E-07** at limit **
  14  Prefactor     .10000E-03    5.3024        .22027E-07** at limit **
  15  Prefactor     20.039        20.939       -.43902E-07   -.14891E-04
  16  norm          7.5135        7.0413       -.61067E-06    .36042E-04
  17  norm          .10000E-03    11.093       -.24036E-06** at limit **
  18  norm          .10000E-03    1.0816        .25161E-08** at limit **
  19  Prefactor     42.654        55.070       -.30800E-06   -.34075E-04
  20  Normalizat    .97912        .19904       -.39197E-06   -.50031E-04
  21  Prefactor     1.0420        .15543        .21211E-06   -.75163E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.06474
  Prefactor  = 19.71
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 62.4368
  Prefactor  = 2.63696
  Prefactor  = 14.7122
  Prefactor  = 0.0001
  norm       = 0.268109
  Prefactor  = 3.44498
  Prefactor  = 0.0001
  Prefactor  = 27.7653
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0387
  norm       = 7.51352
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 42.6545
  Normalizat = 0.979116
  Prefactor  = 1.04197
 **********
 **   18 **HESSE 
 **********

 FCN=   6149.240     FROM HESSE     STATUS=OK           319 CALLS     2493 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0647        14.365        .14118E-03   -1.5140    
   2  Prefactor     19.710        29.277        .90186E-04   -1.4820    
   3  Prefactor     .10000E-03    25.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    42.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     62.437        48.718        .50768E-04   -1.4126    
   6  Prefactor     2.6370        148.26        .25215E-03   -1.5383    
   7  Prefactor     14.712        22.756        .10442E-03   -1.4941    
   8  Prefactor     .10000E-03    15.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .26811        .89563        .13005E-03   -1.5604    
  10  Prefactor     3.4450        11.174        .21801E-03   -1.5337    
  11  Prefactor     .10000E-03    8.2575        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.765        29.492        .76015E-04   -1.4654    
  13  norm          .10000E-03    .17922        .32100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.3254        .17634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.039        21.195        .89468E-04   -1.4812    
  16  norm          7.5135        7.0061        .73153E-03   -1.5160    
  17  norm          .10000E-03    11.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.0883        .79624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     42.654        54.747        .61345E-04   -1.4401    
  20  Normalizat    .97912        .23433        .26694E-03   -.93733    
  21  Prefactor     1.0420        .18297        .21586E-03   -.91343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71887e-11
Minuit parameter uncertainties:
  1  14.3708
  2  29.2984
  3  1.04544e-05
  4  1.37928e-05
  5  48.7493
  6  39.6482
  7  22.7696
  8  5.02161e-05
  9  0.895678
  10  11.181
  11  7.47892e-07
  12  29.5073
  13  3.21649e-09
  14  7.19821e-08
  15  21.2029
  16  7.00689
  17  2.98361e-06
  18  1.73919e-07
  19  54.8116
  20  0.23458
  21  0.183077
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  3.445e+00  1.118e+01  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.042e+00  1.831e-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.791e-01  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/588317/likelihoodResults_583027201_583286401_4FGL_J0836.2+2141_daily_bin1326.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) = 6147.17721297
delta logL = 2.06309514462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6147.07252256
delta logL = 2.16778555774

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35342       1.0000         .10000E-03   10000.    
     2 'Index     '    6.0676       1.0000          .0000       10.000    
     3 'Normalizat'    .82710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1287       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=   6147.073     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      305 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35074        2.9070        .55933E-02    .23838E-02
   2  Index         6.0738        3.2485        .13221        .15107E-03
   3  Normalizat    .82709        .56272E-01    .65047E-01    .31291E-04
   4  Prefactor     1.1285        .46916E-01    .36587E-01   -.32560E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.350739
  Index      = 6.0738
  Normalizat = 0.827092
  Prefactor  = 1.12849
 **********
 **   18 **HESSE 
 **********

 FCN=   6147.073     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      338 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35074        5.4383        .25151E-04   -1.5590    
   2  Index         6.0738        7.4702        .53667E-02    .21645    
   3  Normalizat    .82709        .20300        .28775E-03   -.99071    
   4  Prefactor     1.1285        .16382        .20837E-03   -.88561    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.3553e-11
Minuit parameter uncertainties:
  1  2.7621
  2  5.37417
  3  0.203188
  4  0.163892
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588317': 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) = 6147.07251391
delta logL = 2.16779420891

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  3.507e-01  2.762e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  6.074e+00  5.374e+00  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.128e+00  1.639e-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.271e-01  2.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.00
Ra Dec: 129.051 21.697
Photon Index (Free Index): 6.07 +/- 5.37
Photon Flux (Free Index): 1.36e-07 +/- 8.03e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.20e-05

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/588317/cmap_HighResolution_583027201_583286401_4FGL_J0836.2+2141_daily_bin1326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', energy_flux2='1.69e-05', dlogl='2.17e+00', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-08-30 02:28:16.647587', photon_index_error2='5.37', photon_index2='6.07', ts='0.12', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='1.20e-05', EG='0.98', time_epoch_completed='1630315696.65', return_code='0', job_id='588317', GAL2='1.13', EG2='0.83', return_code2='102', photon_flux_error2='8.03e-08', ts2='5.00', photon_index='2.73' WHERE bin_id='1326' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:28:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 588317: <4FGL_J0836.2+2141_daily_bin1326> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin1326> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 02:15:55 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:15:56 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:15:56 2021
Terminated at Mon Aug 30 02:28:17 2021
Results reported at Mon Aug 30 02:28:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1326 129.051 21.6971 583027201 583286401 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 :                                   589.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            742 sec.

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

