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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1545
RA = 129.051, Dec = 21.6971
tmin = 639792001, tmax = 640051201
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='589678', job_status='RUN', time_executed='2021-08-30 02:24:11.603201', time_epoch_executed='1630315451.6' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1545'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589678

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589678/ft1_4FGL_J0836.2+2141_daily_bin1545.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589678/ft2_4FGL_J0836.2+2141_daily_bin1545.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589678/ft1_4FGL_J0836.2+2141_daily_bin1545.fits outfile=/scratch/kocevski/589678/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1545.fits ra=129.051 dec=21.6971 rad=12.0 tmin=639792001.0 tmax=640051201.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 9.12
user 3.33
sys 5.48

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589678/ft1_filtered_4FGL_J0836.2+2141_daily_bin1545.fits" evtable="EVENTS" scfile=/scratch/kocevski/589678/ft2_4FGL_J0836.2+2141_daily_bin1545.fits sctable="SC_DATA" outfile=/scratch/kocevski/589678/ltcube_639792001_640051201_4FGL_J0836.2+2141_daily_bin1545.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/589678/ft2_4FGL_J0836.2+2141_daily_bin1545.fits
.....................!
real 19.18
user 12.31
sys 6.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589678/ft1_filtered_4FGL_J0836.2+2141_daily_bin1545.fits evtable="EVENTS" scfile=/scratch/kocevski/589678/ft2_4FGL_J0836.2+2141_daily_bin1545.fits sctable="SC_DATA" expcube=/scratch/kocevski/589678/ltcube_639792001_640051201_4FGL_J0836.2+2141_daily_bin1545.fits outfile=/scratch/kocevski/589678/expmap_639792001_640051201_4FGL_J0836.2+2141_daily_bin1545.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/589678/ltcube_639792001_640051201_4FGL_J0836.2+2141_daily_bin1545.fits
.....................!
real 202.75
user 185.61
sys 10.41

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/589678/ft1_filtered_4FGL_J0836.2+2141_daily_bin1545.fits scfile=/scratch/kocevski/589678/ft2_4FGL_J0836.2+2141_daily_bin1545.fits outfile=/scratch/kocevski/589678/cmap_639792001_640051201_4FGL_J0836.2+2141_daily_bin1545.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 5.92
user 0.38
sys 5.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589678/ft1_filtered_4FGL_J0836.2+2141_daily_bin1545.fits scfile=/scratch/kocevski/589678/ft2_4FGL_J0836.2+2141_daily_bin1545.fits outfile=/scratch/kocevski/589678/cmap_HighResolution_639792001_640051201_4FGL_J0836.2+2141_daily_bin1545.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 5.95
user 0.38
sys 5.53

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9009       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5376       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1014       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.265       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3015       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.002       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8498       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2560       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90773       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=   5896.986     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2151 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9021        12.444        .74116E-08   -.39920E-04
   2  Prefactor     6.5365        30.798       -.23104E-05   -.15252E-04
   3  Prefactor     .10000E-03    18.988       -.41412E-05** at limit **
   4  norm          .10000E-03    21.921       -.33563E-05** at limit **
   5  Prefactor     .10000E-03    39.148       -.43669E-05** at limit **
   6  Prefactor     .10000E-03    28.668        .10208E-04** at limit **
   7  Prefactor     .10000E-03    9.4505        .28844E-05** at limit **
   8  Prefactor     .10000E-03    9.8398       -.35273E-05** at limit **
   9  norm          1.1023        1.0633       -.14615E-06   -.74340E-03
  10  Prefactor     .10000E-03    5.5837        .34088E-06** at limit **
  11  Prefactor     .10000E-03    2.2198        .53687E-06** at limit **
  12  Prefactor     23.269        43.291        .64977E-05   -.11932E-04
  13  norm          2.3013        .88050        .71101E-07   -.23763E-03
  14  Prefactor     13.003        12.642       -.85401E-06   -.69688E-03
  15  Prefactor     .10000E-03    6.0916       -.17653E-08** at limit **
  16  norm          .10000E-03    4.0723       -.10078E-06** at limit **
  17  norm          .10000E-03    15.938        .31674E-05** at limit **
  18  norm          1.8495        1.6661        .64104E-07    .16636E-03
  19  Prefactor     .10000E-03    11.841        .10955E-05** at limit **
  20  Normalizat    1.2561        .19014       -.11563E-05    .12341E-04
  21  Prefactor     .90773        .15752        .63575E-06   -.11532E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.90212
  Prefactor  = 6.53654
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.2692
  norm       = 2.30125
  Prefactor  = 13.0034
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.84947
  Prefactor  = 0.0001
  Normalizat = 1.25606
  Prefactor  = 0.907728
 **********
 **   18 **HESSE 
 **********

 FCN=   5896.986     FROM HESSE     STATUS=OK           317 CALLS     2468 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9021        12.438        .15272E-03   -1.5182    
   2  Prefactor     6.5365        30.878        .15696E-03   -1.5197    
   3  Prefactor     .10000E-03    18.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    21.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.4315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.7883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1023        .99385        .73866E-03   -1.5498    
  10  Prefactor     .10000E-03    23.660        .34510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.2257        .11166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.269        43.161        .83046E-04   -1.4743    
  13  norm          2.3013        .88207        .41830E-04   -1.5405    
  14  Prefactor     13.003        13.043        .55543E-03   -1.4987    
  15  Prefactor     .10000E-03    6.1090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.1016        .15134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    15.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8495        1.6772        .91840E-04   -1.5436    
  19  Prefactor     .10000E-03    11.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2561        .22411        .23863E-03   -.84888    
  21  Prefactor     .90773        .18659        .23604E-03   -.95872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.56972e-10
Minuit parameter uncertainties:
  1  12.4422
  2  28.4373
  3  6.19268e-06
  4  1.56013e-06
  5  1.99388e-05
  6  4.85183e-06
  7  1.17174e-06
  8  1.48064e-05
  9  0.993861
  10  0.000136946
  11  2.46485e-06
  12  43.2192
  13  0.882077
  14  13.0461
  15  4.03573e-06
  16  2.12571e-07
  17  4.17766e-06
  18  1.67727
  19  9.59105e-07
  20  0.224278
  21  0.186718
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  1.369e-04  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.077e-01  1.867e-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.256e+00  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 129.051 21.697
Photon Flux Upper Limit: 8.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/589678/likelihoodResults_639792001_640051201_4FGL_J0836.2+2141_daily_bin1545.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) = 5896.98604859
delta logL = -0.000199610388336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5896.98584982
delta logL = -8.3460508904e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15811E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6347       1.0000          .0000       10.000    
     3 'Normalizat'    1.2564       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90751       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5896.980     FROM MIGRAD    STATUS=CONVERGED    154 CALLS      328 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72960        16.977        .18142E-02   -.51771E-03
   2  Index         2.0647        2.3067        .21042E-01   -.54344E-04
   3  Normalizat    1.2563        .21583        .23861E-03    .60892E-04
   4  Prefactor     .90620        .18626        .23621E-03    .33979E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.729596
  Index      = 2.06467
  Normalizat = 1.25626
  Prefactor  = 0.906202
 **********
 **   18 **HESSE 
 **********

 FCN=   5896.980     FROM HESSE     STATUS=OK            27 CALLS      355 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72960        16.941        .36285E-03   -1.5879    
   2  Index         2.0647        2.3049        .42085E-02   -.62743    
   3  Normalizat    1.2563        .21604        .95442E-05   -.84882    
   4  Prefactor     .90620        .18644        .94486E-05   -.95925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.57929e-12
Minuit parameter uncertainties:
  1  7.03308
  2  2.45218
  3  0.216196
  4  0.18657
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589678': 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) = 5896.98019041
delta logL = 0.00565857532638

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  7.296e-01  7.033e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.065e+00  2.452e+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.062e-01  1.866e-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.256e+00  2.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 129.051 21.697

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/589678/cmap_HighResolution_639792001_640051201_4FGL_J0836.2+2141_daily_bin1545.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.78e-03', job_status='DONE', photon_flux_upper_limit='8.59e-08', time_completed='2021-08-30 02:35:25.157871', job_id='589678', GAL2='0.91', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630316125.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='5.66e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1545' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:35:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 589678: <4FGL_J0836.2+2141_daily_bin1545> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin1545> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 30 02:20:33 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:20:35 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:20:35 2021
Terminated at Mon Aug 30 02:35:26 2021
Results reported at Mon Aug 30 02:35:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1545 129.051 21.6971 639792001 640051201 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 :                                   747.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

