/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 2 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7401
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1360
RA = 129.051, Dec = 21.6971
tmin = 591840001, tmax = 592099201
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='588358', job_status='RUN', time_executed='2021-08-30 02:16:43.996618', time_epoch_executed='1630315004.0' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1360'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588358

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588358/ft1_4FGL_J0836.2+2141_daily_bin1360.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588358/ft2_4FGL_J0836.2+2141_daily_bin1360.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588358/ft1_4FGL_J0836.2+2141_daily_bin1360.fits outfile=/scratch/kocevski/588358/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1360.fits ra=129.051 dec=21.6971 rad=12.0 tmin=591840001.0 tmax=592099201.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 6.22
user 4.97
sys 0.87

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588358/ft1_filtered_4FGL_J0836.2+2141_daily_bin1360.fits" evtable="EVENTS" scfile=/scratch/kocevski/588358/ft2_4FGL_J0836.2+2141_daily_bin1360.fits sctable="SC_DATA" outfile=/scratch/kocevski/588358/ltcube_591840001_592099201_4FGL_J0836.2+2141_daily_bin1360.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/588358/ft2_4FGL_J0836.2+2141_daily_bin1360.fits
.....................!
real 13.24
user 11.38
sys 1.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588358/ft1_filtered_4FGL_J0836.2+2141_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/588358/ft2_4FGL_J0836.2+2141_daily_bin1360.fits sctable="SC_DATA" expcube=/scratch/kocevski/588358/ltcube_591840001_592099201_4FGL_J0836.2+2141_daily_bin1360.fits outfile=/scratch/kocevski/588358/expmap_591840001_592099201_4FGL_J0836.2+2141_daily_bin1360.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/588358/ltcube_591840001_592099201_4FGL_J0836.2+2141_daily_bin1360.fits
.....................!
real 191.40
user 185.04
sys 5.55

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/588358/ft1_filtered_4FGL_J0836.2+2141_daily_bin1360.fits scfile=/scratch/kocevski/588358/ft2_4FGL_J0836.2+2141_daily_bin1360.fits outfile=/scratch/kocevski/588358/cmap_591840001_592099201_4FGL_J0836.2+2141_daily_bin1360.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.18
user 0.37
sys 0.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588358/ft1_filtered_4FGL_J0836.2+2141_daily_bin1360.fits scfile=/scratch/kocevski/588358/ft2_4FGL_J0836.2+2141_daily_bin1360.fits outfile=/scratch/kocevski/588358/cmap_HighResolution_591840001_592099201_4FGL_J0836.2+2141_daily_bin1360.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.18
user 0.39
sys 0.78

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .58722       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7681       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.451       1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9094       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    59.306       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0299       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.379       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.0037       1.0000         .10000E-03   10000.    
    17 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97167       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2097       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=   6940.590     FROM MIGRAD    STATUS=CONVERGED    779 CALLS     2827 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.787        .18142E-02** at limit **
   2  Prefactor     .10000E-03    19.852        .18142E-02** at limit **
   3  Prefactor     .10000E-03    15.232        .18142E-02** at limit **
   4  norm          .34352        92.635        .23612        .49274E-04
   5  Prefactor     .10001E-03    79.175        .36285E-03** at limit **
   6  Prefactor     .10000E-03    19.992        .18142E-02** at limit **
   7  Prefactor     6.7480        25.582        .15423E-03   -.69068E-04
   8  Prefactor     16.451        16.732        .98748E-04   -.18471E-03
   9  norm          .10000E-03    .29229        .43758E-03** at limit **
  10  Prefactor     8.9102        10.228        .13428E-03   -.16653E-03
  11  Prefactor     .10000E-03    5.3853        .18142E-02** at limit **
  12  Prefactor     59.216        42.947        .26049E-03   -.58308E-04
  13  norm          2.0299        .81087        .45290E-04    .41393E-03
  14  Prefactor     12.380        10.853        .11385E-03    .19971E-04
  15  Prefactor     .10000E-03    21.272        .36285E-03** at limit **
  16  norm          3.0041        4.4061        .20709E-03   -.66590E-04
  17  norm          .10000E-03    14.719        .18142E-02** at limit **
  18  norm          .10000E-03    1.7570        .16604E-02** at limit **
  19  Prefactor     .10000E-03    25.149        .18142E-02** at limit **
  20  Normalizat    .97190        .22453        .28900E-03   -.48091E-03
  21  Prefactor     1.2097        .18450        .22144E-03   -.57248E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.343524
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 6.74797
  Prefactor  = 16.4511
  norm       = 0.0001
  Prefactor  = 8.91016
  Prefactor  = 0.000100001
  Prefactor  = 59.2157
  norm       = 2.02986
  Prefactor  = 12.3801
  Prefactor  = 0.000100001
  norm       = 3.0041
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.971896
  Prefactor  = 1.20965
 **********
 **   18 **HESSE 
 **********

 FCN=   6940.590     FROM HESSE     STATUS=OK           305 CALLS     3132 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.789        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.853        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.232        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .34352        93.307        .23487       -1.5591    
   5  Prefactor     .10001E-03    79.178        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.993        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.7480        25.577        .61692E-05   -1.5188    
   8  Prefactor     16.451        16.731        .19750E-04   -1.4897    
   9  norm          .10000E-03    .29230        .87517E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.9102        10.227        .53713E-05   -1.5111    
  11  Prefactor     .10000E-03    5.3878        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     59.216        42.946        .10420E-04   -1.4167    
  13  norm          2.0299        .81084        .18116E-05   -1.5423    
  14  Prefactor     12.380        10.853        .45541E-05   -1.5004    
  15  Prefactor     .10000E-03    21.273        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.0041        4.4061        .82836E-05   -1.5361    
  17  norm          .10000E-03    14.720        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.7618        .33207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.150        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .97190        .22472        .57801E-04   -.93978    
  21  Prefactor     1.2097        .18467        .44287E-04   -.86035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34576e-09
Minuit parameter uncertainties:
  1  3.38754e-05
  2  1.02905e-05
  3  1.18533e-05
  4  11.3393
  5  0.00193021
  6  7.00854e-05
  7  25.6182
  8  16.7362
  9  1.02356e-06
  10  10.2293
  11  0.000164615
  12  42.9682
  13  0.810843
  14  10.8547
  15  0.000212012
  16  4.40653
  17  1.05838e-05
  18  7.18427e-05
  19  3.35092e-05
  20  0.224936
  21  0.184765
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  8.910e+00  1.023e+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.210e+00  1.848e-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.719e-01  2.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/588358/likelihoodResults_591840001_592099201_4FGL_J0836.2+2141_daily_bin1360.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) = 6939.0852298
delta logL = 1.50526234048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6939.05346487
delta logL = 1.53702726811

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8422       1.0000         .10000E-03   10000.    
     2 'Index     '    4.8217       1.0000          .0000       10.000    
     3 'Normalizat'    .87328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2676       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=   6939.053     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      258 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8436        19.745        .76826E-03    .31946E-03
   2  Index         4.8214        3.6528        .14741        .14838E-03
   3  Normalizat    .87329        .69786E-01    .68451E-01   -.23920E-05
   4  Prefactor     1.2676        .58371E-01    .49075E-01   -.45354E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.84357
  Index      = 4.82143
  Normalizat = 0.873292
  Prefactor  = 1.26757
 **********
 **   18 **HESSE 
 **********

 FCN=   6939.053     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      289 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8436        30.555        .30730E-04   -1.5436    
   2  Index         4.8214        7.2340        .57271E-02   -.35722E-01
   3  Normalizat    .87329        .21183        .30284E-03   -.97405    
   4  Prefactor     1.2676        .17578        .21694E-03   -.84276    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.32867e-10
Minuit parameter uncertainties:
  1  15.0193
  2  5.7804
  3  0.212035
  4  0.175857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588358': 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) = 6939.0534647
delta logL = 1.53702743991

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.844e+00  1.502e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  4.821e+00  5.780e+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.268e+00  1.759e-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.733e-01  2.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.39
Ra Dec: 129.051 21.697
Photon Index (Free Index): 4.82 +/- 5.78
Photon Flux (Free Index): 1.23e-07 +/- 7.82e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.62e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/588358/cmap_HighResolution_591840001_592099201_4FGL_J0836.2+2141_daily_bin1360.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', energy_flux2='1.67e-05', dlogl='1.54e+00', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-08-30 02:28:07.098247', photon_index_error2='5.78', photon_index2='4.82', ts='0.97', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.62e-05', EG='0.97', time_epoch_completed='1630315687.1', return_code='0', job_id='588358', GAL2='1.27', EG2='0.87', return_code2='102', photon_flux_error2='7.82e-08', ts2='4.39', photon_index='2.73' WHERE bin_id='1360' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:28:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0009>
Subject: Job 588358: <4FGL_J0836.2+2141_daily_bin1360> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1360 129.051 21.6971 591840001 592099201 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 :                                   687.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            729 sec.

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

