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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1280
RA = 129.051, Dec = 21.6971
tmin = 571104001, tmax = 571363201
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='588246', job_status='RUN', time_executed='2021-08-30 02:19:18.924403', time_epoch_executed='1630315158.92' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588246

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588246/ft1_4FGL_J0836.2+2141_daily_bin1280.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588246/ft2_4FGL_J0836.2+2141_daily_bin1280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588246/ft1_4FGL_J0836.2+2141_daily_bin1280.fits outfile=/scratch/kocevski/588246/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1280.fits ra=129.051 dec=21.6971 rad=12.0 tmin=571104001.0 tmax=571363201.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.67
user 2.75
sys 0.85

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588246/ft1_filtered_4FGL_J0836.2+2141_daily_bin1280.fits" evtable="EVENTS" scfile=/scratch/kocevski/588246/ft2_4FGL_J0836.2+2141_daily_bin1280.fits sctable="SC_DATA" outfile=/scratch/kocevski/588246/ltcube_571104001_571363201_4FGL_J0836.2+2141_daily_bin1280.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/588246/ft2_4FGL_J0836.2+2141_daily_bin1280.fits
.....................!
real 13.47
user 12.30
sys 1.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588246/ft1_filtered_4FGL_J0836.2+2141_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/588246/ft2_4FGL_J0836.2+2141_daily_bin1280.fits sctable="SC_DATA" expcube=/scratch/kocevski/588246/ltcube_571104001_571363201_4FGL_J0836.2+2141_daily_bin1280.fits outfile=/scratch/kocevski/588246/expmap_571104001_571363201_4FGL_J0836.2+2141_daily_bin1280.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/588246/ltcube_571104001_571363201_4FGL_J0836.2+2141_daily_bin1280.fits
.....................!
real 192.20
user 186.04
sys 5.59

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/588246/ft1_filtered_4FGL_J0836.2+2141_daily_bin1280.fits scfile=/scratch/kocevski/588246/ft2_4FGL_J0836.2+2141_daily_bin1280.fits outfile=/scratch/kocevski/588246/cmap_571104001_571363201_4FGL_J0836.2+2141_daily_bin1280.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 1.19
user 0.36
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588246/ft1_filtered_4FGL_J0836.2+2141_daily_bin1280.fits scfile=/scratch/kocevski/588246/ft2_4FGL_J0836.2+2141_daily_bin1280.fits outfile=/scratch/kocevski/588246/cmap_HighResolution_571104001_571363201_4FGL_J0836.2+2141_daily_bin1280.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 1.26
user 0.38
sys 0.79

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    88.467       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1038       1.0000         .10000E-03   10000.    
     3 'Prefactor '    234.77       1.0000         .10000E-03   10000.    
     4 'norm      '    6.9287       1.0000         .10000E-03   10000.    
     5 'Prefactor '    164.70       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8670       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32819E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6226       1.0000         .10000E-03   10000.    
     9 'norm      '    .11608E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .97305       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .57763E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9191       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      '    1.7994       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'    .10000E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93774       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   161.0965     FROM MIGRAD    STATUS=CONVERGED    156 CALLS      416 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     88.778        84.195        .43300E-04    .16874E-01
   2  Prefactor     .19707E-02    1197.2        .76969E-04** at limit **
   3  Prefactor     225.46        189.38       -.86750E-04   -.29900E-02
   4  norm          .11577E-02    699.96       -.57778E-03** at limit **
   5  Prefactor     173.00        136.27        .76618E-04    .20164E-01
   6  Prefactor     .10004E-03    241.01        .22058E-03** at limit **
   7  Prefactor     .10000E-03    126.46        .97792E-04** at limit **
   8  Prefactor     .10000E-03    182.21        .26830E-04** at limit **
   9  norm          .10000E-03    33.416       -.63576E-06** at limit **
  10  Prefactor     .10046E-03    1328.5        .87987E-03** at limit **
  11  Prefactor     .29893E-03    969.32       -.11015E-02** at limit **
  12  Prefactor     1.4812        900.21       -.38547E-03    .50124E-02
  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          1.7994        1.0450         .0000         .0000    
  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    .10000E-01    .39595       -.30732E-04** at limit **
  21  Prefactor     .94661        .47285       -.22634E-04   -.63367E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 88.7785
  Prefactor  = 0.00197068
  Prefactor  = 225.46
  norm       = 0.00115767
  Prefactor  = 172.995
  Prefactor  = 0.00010004
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.000100459
  Prefactor  = 0.000298927
  Prefactor  = 1.48122
  norm       = 1.74279
  Prefactor  = 7.65252
  Prefactor  = 4.11779
  norm       = 1.79936
  norm       = 9.86287
  norm       = 1.06285
  Prefactor  = 7.92223
  Normalizat = 0.01
  Prefactor  = 0.946613
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   161.0965     FROM HESSE     STATUS=FAILED        57 CALLS      473 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     88.778        81.679        .10679E-02   -1.3821    
   2  Prefactor     .19707E-02    1216.5        .57544E-02   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     225.46        232.79        .66044E-03   -1.2694    
   4  norm          .11577E-02    717.55        .38104E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     173.00        209.82        .78572E-03   -1.3070    
   6  Prefactor     .10004E-03    237.53        .60018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    126.17        .10676E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    181.84        .62959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    33.335        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10046E-03    1328.9        .13070E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .29893E-03    970.89        .94982E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.4812        8927.8        .45337E-02   -1.5465    
  13  norm          573.36        571.46         .0000       -1.5444    
  14  Prefactor     7.6525        1.0021         .0000       -1.5155    
  15  Prefactor     4.1178        1.0076         .0000       -1.5302    
  16  norm          1.7994        1.0450         .0000       -1.5440    
  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    .10000E-01    .25505       -.30732E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .94661        1.2861       -.22634E-04   -.94531    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.79667e-10
Minuit parameter uncertainties:
  1  81.7826
  2  3.08186
  3  233.753
  4  1.76388
  5  210.737
  6  0.00621118
  7  2.85597e-05
  8  0.00186193
  9  7.74205e-06
  10  0.050559
  11  0.893827
  12  268.131
  13  1.04857
  14  1.00215
  15  1.00757
  16  1.04503
  17  1.00129
  18  1.22236
  19  1.002
  20  5.63892e-09
  21  1.33153
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.005e-04  5.056e-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:  9.466e-01  1.332e+00  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.000e-02  5.639e-09  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.53e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e+00 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/588246/likelihoodResults_571104001_571363201_4FGL_J0836.2+2141_daily_bin1280.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) = 161.096544724
delta logL = -3.42391288655e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 161.096544929
delta logL = -3.62905913676e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96280E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7307       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94691       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=   161.0965     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      166 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1329.4       -.19518E-02** at limit **
   2  Index         2.7309        6.3530        .25323E-04    .18607E-06
   3  Normalizat    .10000E-01    .33973        .17128E-05** at limit **
   4  Prefactor     .94662        .45388        .20323E-05    .98031E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.73085
  Normalizat = 0.01
  Prefactor  = 0.946625
 **********
 **   18 **HESSE 
 **********

 FCN=   161.0965     FROM HESSE     STATUS=OK            25 CALLS      191 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    868.06        .18144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7309        6.3530        .91201E-01   -.47106    
   3  Normalizat    .10000E-01    .34175        .24637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .94662        .45130        .19454E-03   -.94530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40425e-10
Minuit parameter uncertainties:
  1  0.000286672
  2  4.45547
  3  2.59104e-06
  4  0.453111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588246': 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): 0
logL (Free Index) = 161.0965413
delta logL = 9.22284471017e-11

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  2.867e-04  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.731e+00  4.455e+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:  9.466e-01  4.531e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  1.000e-02  2.591e-06  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/588246/cmap_HighResolution_571104001_571363201_4FGL_J0836.2+2141_daily_bin1280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e+00', job_status='DONE', photon_flux_upper_limit='1.53e-05', time_completed='2021-08-30 02:24:47.539434', job_id='588246', GAL2='0.95', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630315487.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.95', dlogl='9.22e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1280' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:24:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 588246: <4FGL_J0836.2+2141_daily_bin1280> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin1280> 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) <bullet0227>, 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:24:48 2021
Results reported at Mon Aug 30 02:24:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1280 129.051 21.6971 571104001 571363201 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 :                                   335.56 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             190.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   535 sec.
    Turnaround time :                            538 sec.

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

