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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1283
RA = 129.051, Dec = 21.6971
tmin = 571881601, tmax = 572140801
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='588250', job_status='RUN', time_executed='2021-08-30 02:18:16.692383', time_epoch_executed='1630315096.69' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588250

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588250/ft1_4FGL_J0836.2+2141_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588250/ft2_4FGL_J0836.2+2141_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588250/ft1_4FGL_J0836.2+2141_daily_bin1283.fits outfile=/scratch/kocevski/588250/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1283.fits ra=129.051 dec=21.6971 rad=12.0 tmin=571881601.0 tmax=572140801.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 2.56
user 2.34
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588250/ft1_filtered_4FGL_J0836.2+2141_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/588250/ft2_4FGL_J0836.2+2141_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/588250/ltcube_571881601_572140801_4FGL_J0836.2+2141_daily_bin1283.fits outfile=/scratch/kocevski/588250/expmap_571881601_572140801_4FGL_J0836.2+2141_daily_bin1283.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/588250/ltcube_571881601_572140801_4FGL_J0836.2+2141_daily_bin1283.fits
.....................!
real 190.62
user 185.22
sys 4.93

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/588250/ft1_filtered_4FGL_J0836.2+2141_daily_bin1283.fits scfile=/scratch/kocevski/588250/ft2_4FGL_J0836.2+2141_daily_bin1283.fits outfile=/scratch/kocevski/588250/cmap_571881601_572140801_4FGL_J0836.2+2141_daily_bin1283.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.59
user 0.37
sys 0.17

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/588250/ft1_filtered_4FGL_J0836.2+2141_daily_bin1283.fits', '/scratch/kocevski/588250/ft2_4FGL_J0836.2+2141_daily_bin1283.fits', expMap='/scratch/kocevski/588250/expmap_571881601_572140801_4FGL_J0836.2+2141_daily_bin1283.fits', expCube='/scratch/kocevski/588250/ltcube_571881601_572140801_4FGL_J0836.2+2141_daily_bin1283.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/588250/Model_4FGL_J0836.2+2141_daily_bin1283.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/588250/ft1_filtered_4FGL_J0836.2+2141_daily_bin1283.fits
Spacecraft file(s): /scratch/kocevski/588250/ft2_4FGL_J0836.2+2141_daily_bin1283.fits
Exposure map: /scratch/kocevski/588250/expmap_571881601_572140801_4FGL_J0836.2+2141_daily_bin1283.fits
Exposure cube: /scratch/kocevski/588250/ltcube_571881601_572140801_4FGL_J0836.2+2141_daily_bin1283.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/588250/Model_4FGL_J0836.2+2141_daily_bin1283.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 64.5726670122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 60.9909542694

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17663E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    340.00       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14279E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    738.88       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .62050E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13246       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4821       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9046       1.0000         .10000E-03   10000.    
     9 'norm      '    101.27       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11020       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16890E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12109       1.0000         .10000E-03   10000.    
    13 'norm      '    1.7428       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.6525       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1178       1.0000         .10000E-03   10000.    
    16 'norm      '    .10387E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.8629       1.0000         .10000E-03   10000.    
    18 'norm      '    1.0628       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.9222       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .12544E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    .39019E-07   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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   60.98992     FROM MIGRAD    STATUS=CONVERGED    216 CALLS      545 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    125.57        .10169E-01** at limit **
   2  Prefactor     340.00        299.21        .55179E-03   -.32449E-02
   3  Prefactor     .11657E-03    239.77        .90712E-02** at limit **
   4  norm          738.94        743.26        .38228E-03   -.95014E-02
   5  Prefactor     .19212E-03    785.70        .93287E-02** at limit **
   6  Prefactor     .94743E-03    949.05        .96649E-02** at limit **
   7  Prefactor     1.4821        1.0727         .0000         .0000    
   8  Prefactor     .13453E-03    .14185       -.71982E-05** at limit **
   9  norm          101.48        1.0011        .29038E-06   -.40710E-02
  10  Prefactor     .55848E-03    .22847        .29075E-04** at limit **
  11  Prefactor     .15238E-03    .20571        .19802E-05** at limit **
  12  Prefactor     .10229E-03    .23094        .16773E-04** at limit **
  13  norm          1.7428        1.0486         .0000         .0000    
  14  Prefactor     7.6525        1.0021         .0000         .0000    
  15  Prefactor     4.1178        1.0076         .0000         .0000    
  16  norm          .10002E-03    .20571       -.73597E-05** at limit **
  17  norm          9.8629        1.0013         .0000         .0000    
  18  norm          1.0628        1.2223         .0000         .0000    
  19  Prefactor     7.9222        1.0020         .0000         .0000    
  20  Normalizat    .11770E-01    .25563        .49304E-03   -.49703E-07
  21  Prefactor     .12231E-10    .25504        .23244E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 339.996
  Prefactor  = 0.000116566
  norm       = 738.941
  Prefactor  = 0.000192124
  Prefactor  = 0.000947426
  Prefactor  = 1.48211
  Prefactor  = 0.000134531
  norm       = 101.481
  Prefactor  = 0.000558484
  Prefactor  = 0.000152377
  Prefactor  = 0.000102292
  norm       = 1.74279
  Prefactor  = 7.65252
  Prefactor  = 4.11779
  norm       = 0.000100017
  norm       = 9.86287
  norm       = 1.06285
  Prefactor  = 7.92223
  Normalizat = 0.0117704
  Prefactor  = 1.22308e-11
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   60.98992     FROM HESSE     STATUS=FAILED        21 CALLS      566 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    125.57        .10169E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     340.00        299.21        .55179E-03   -1.1999    
   3  Prefactor     .11657E-03    239.77        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          738.94        743.26        .38228E-03   -1.0202    
   5  Prefactor     .19212E-03    785.70        .93287E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .94743E-03    949.05        .96649E-02   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     578.15        576.47         .0000       -1.5464    
   8  Prefactor     .13453E-03    .14185       -.71982E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          101.48        1.0011        .29038E-06   -1.3690    
  10  Prefactor     .55848E-03    .22847        .29075E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .15238E-03    .20571        .19802E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10229E-03    .23094        .16773E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7428        1.0486         .0000       -1.5444    
  14  Prefactor     7.6525        1.0021         .0000       -1.5155    
  15  Prefactor     4.1178        1.0076         .0000       -1.5302    
  16  norm          .10002E-03    .20571       -.73597E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.8629        1.0013         .0000       -1.5080    
  18  norm          1.0628        1.2223         .0000       -1.5502    
  19  Prefactor     7.9222        1.0020         .0000       -1.5145    
  20  Normalizat    .11770E-01    .25563        .49304E-03   -1.5442    
  21  Prefactor     .12231E-10    .25504        .23244E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.94236e-10
Minuit parameter uncertainties:
  1  0.000525084
  2  300.587
  3  0.126558
  4  753.646
  5  0.545386
  6  1.82326
  7  1.07271
  8  0.00442641
  9  1.00106
  10  0.0204696
  11  0.00656499
  12  0.00145493
  13  1.04857
  14  1.00215
  15  1.00757
  16  0.000116983
  17  1.00129
  18  1.22236
  19  1.002
  20  0.042735
  21  3.54755e-06
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 60.9899210352

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  5.585e-04  2.047e-02  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.223e-11  3.548e-06  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.177e-02  4.274e-02  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.61e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e+00 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/588250/likelihoodResults_571881601_572140801_4FGL_J0836.2+2141_daily_bin1283.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) = 60.9899210346
delta logL = 5.02652142131e-10

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 60.9899210342
delta logL = 9.89246018435e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55725E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7308       1.0000          .0000       10.000    
     3 'Normalizat'    .11770E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55511E-15   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=   60.98992     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      254 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10334E-03    619.43        .19310E-01** at limit **
   2  Index         3.4423        5.8942        .50000        .63683E-06
   3  Normalizat    .11770E-01    .97339E-01    .10225E-01    .63772E-05
   4  Prefactor     .55511E-15    .13647E-02    .15132E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103344
  Index      = 3.44235
  Normalizat = 0.0117701
  Prefactor  = 5.55112e-16
 **********
 **   18 **HESSE 
 **********

 FCN=   60.98992     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      285 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10334E-03    7940.5        .14712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4423        8.1642        .50000       -.31680    
   3  Normalizat    .11770E-01    1.2150        .20449E-02   -1.5442    
   4  Prefactor     .55511E-15    .17118E-01    .30265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.21632e-07
Minuit parameter uncertainties:
  1  0.319629
  2  6736.26
  3  0.0947524
  4  4.79923e-09
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588250': 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) = 60.989920736
delta logL = 2.99179610863e-07

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.033e-04  3.196e-01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  3.442e+00  6.736e+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:  5.551e-16  4.799e-09  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.177e-02  9.475e-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/588250/cmap_HighResolution_571881601_572140801_4FGL_J0836.2+2141_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e+00', job_status='DONE', photon_flux_upper_limit='1.61e-05', time_completed='2021-08-30 02:23:28.409371', job_id='588250', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630315408.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='2.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1283' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:23:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 588250: <4FGL_J0836.2+2141_daily_bin1283> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1283 129.051 21.6971 571881601 572140801 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 :                                   309.46 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             340.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   456 sec.
    Turnaround time :                            459 sec.

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

