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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1186
RA = 129.051, Dec = 21.6971
tmin = 546739201, tmax = 546998401
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='588095', job_status='RUN', time_executed='2021-08-30 02:16:06.360035', time_epoch_executed='1630314966.36' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1186'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588095

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588095/ft1_4FGL_J0836.2+2141_daily_bin1186.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588095/ft2_4FGL_J0836.2+2141_daily_bin1186.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588095/ft1_4FGL_J0836.2+2141_daily_bin1186.fits outfile=/scratch/kocevski/588095/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1186.fits ra=129.051 dec=21.6971 rad=12.0 tmin=546739201.0 tmax=546998401.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.88
user 3.36
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/588095/ft2_4FGL_J0836.2+2141_daily_bin1186.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/588095/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1186.fits evtable="EVENTS" outfile="/scratch/kocevski/588095/ft1_filtered_4FGL_J0836.2+2141_daily_bin1186.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.71
user 0.33
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588095/ft1_filtered_4FGL_J0836.2+2141_daily_bin1186.fits evtable="EVENTS" scfile=/scratch/kocevski/588095/ft2_4FGL_J0836.2+2141_daily_bin1186.fits sctable="SC_DATA" expcube=/scratch/kocevski/588095/ltcube_546739201_546998401_4FGL_J0836.2+2141_daily_bin1186.fits outfile=/scratch/kocevski/588095/expmap_546739201_546998401_4FGL_J0836.2+2141_daily_bin1186.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/588095/ltcube_546739201_546998401_4FGL_J0836.2+2141_daily_bin1186.fits
.....................!
real 190.92
user 185.50
sys 4.95

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/588095/ft1_filtered_4FGL_J0836.2+2141_daily_bin1186.fits scfile=/scratch/kocevski/588095/ft2_4FGL_J0836.2+2141_daily_bin1186.fits outfile=/scratch/kocevski/588095/cmap_546739201_546998401_4FGL_J0836.2+2141_daily_bin1186.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588095/ft1_filtered_4FGL_J0836.2+2141_daily_bin1186.fits scfile=/scratch/kocevski/588095/ft2_4FGL_J0836.2+2141_daily_bin1186.fits outfile=/scratch/kocevski/588095/cmap_HighResolution_546739201_546998401_4FGL_J0836.2+2141_daily_bin1186.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-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 '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.3372       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2054       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.218       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .81216       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5882       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.087       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .69234       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3127       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=   6940.163     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     1858 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.195       -.41518E-06** at limit **
   2  Prefactor     .10000E-03    56.344       -.17297E-05** at limit **
   3  Prefactor     .10000E-03    18.577        .21073E-07** at limit **
   4  norm          .10001E-03    33.083        .49904E-05** at limit **
   5  Prefactor     .10000E-03    7.8318        .46496E-07** at limit **
   6  Prefactor     .10000E-03    16.055       -.85038E-06** at limit **
   7  Prefactor     .10000E-03    29.850       -.21039E-05** at limit **
   8  Prefactor     9.3315        21.787       -.77259E-06   -.67115E-04
   9  norm          1.2058        1.1971        .76357E-07   -.43847E-04
  10  Prefactor     26.217        11.572       -.94926E-07   -.52727E-04
  11  Prefactor     .81202        5.8443        .23593E-05   -.38196E-03
  12  Prefactor     .10000E-03    30.990       -.12950E-05** at limit **
  13  norm          1.5881        .80887       -.20015E-07   -.23863E-03
  14  Prefactor     .10000E-03    7.6880       -.24725E-07** at limit **
  15  Prefactor     14.086        16.439        .73597E-07   -.15109E-04
  16  norm          .10000E-03    2.6270        .25731E-08** at limit **
  17  norm          .10000E-03    17.492        .67231E-06** at limit **
  18  norm          .10000E-03    .99653        .48903E-08** at limit **
  19  Prefactor     .10000E-03    17.125        .59066E-06** at limit **
  20  Normalizat    .69229        .18388       -.21492E-06   -.25713E-04
  21  Prefactor     1.3128        .15198       -.73730E-07   -.18390E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.33152
  norm       = 1.20585
  Prefactor  = 26.217
  Prefactor  = 0.812025
  Prefactor  = 0.0001
  norm       = 1.58809
  Prefactor  = 0.0001
  Prefactor  = 14.0857
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.692291
  Prefactor  = 1.31277
 **********
 **   18 **HESSE 
 **********

 FCN=   6940.163     FROM HESSE     STATUS=OK           311 CALLS     2169 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.005        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    56.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10001E-03    36.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.8354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.3315        21.637        .13115E-03   -1.5097    
   9  norm          1.2058        1.1565        .80320E-04   -1.5488    
  10  Prefactor     26.217        11.541        .78236E-04   -1.4683    
  11  Prefactor     .81202        7.6304        .43672E-03   -1.5528    
  12  Prefactor     .10000E-03    31.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5881        .80287        .50849E-04   -1.5456    
  14  Prefactor     .10000E-03    7.7207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.086        16.487        .10672E-03   -1.4957    
  16  norm          .10000E-03    2.6293        .13187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    17.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.0057        .81174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .69229        .21613        .31846E-03   -1.0420    
  21  Prefactor     1.3128        .17977        .20526E-03   -.82928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24658e-10
Minuit parameter uncertainties:
  1  6.65297e-05
  2  0.000420162
  3  3.25906e-06
  4  0.000984707
  5  5.53068e-06
  6  0.000105625
  7  0.000365885
  8  21.6551
  9  1.15655
  10  11.5415
  11  4.9789
  12  0.000234374
  13  0.80288
  14  2.47711e-06
  15  16.4922
  16  7.71418e-08
  17  9.07778e-05
  18  1.46248e-07
  19  7.92e-05
  20  0.216399
  21  0.179852
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  2.622e+01  1.154e+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.313e+00  1.799e-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:  6.923e-01  2.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.10
Ra Dec: 129.051 21.697
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 1.29e-07 +/- 5.66e-08
Energy Flux (Fixed Index): 3.03e-05 +/- 1.33e-05

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.63013315
delta logL = 0.532833144643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6939.59149129
delta logL = 0.57147500572

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.288       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2397       1.0000          .0000       10.000    
     3 'Normalizat'    .73924       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2798       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.591     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      238 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.288        26.795        .17629E-02   -.81860E-03
   2  Index         2.2399        .67016        .17659       -.87740E-05
   3  Normalizat    .73932        .18690        .69864E-01    .25477E-04
   4  Prefactor     1.2798        .16030        .32971E-01   -.71981E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.2877
  Index      = 2.23993
  Normalizat = 0.739316
  Prefactor  = 1.27977
 **********
 **   18 **HESSE 
 **********

 FCN=   6939.591     FROM HESSE     STATUS=OK            31 CALLS      269 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.288        14.072        .70517E-04   -1.4571    
   2  Index         2.2399        .41194        .66678E-02   -.58478    
   3  Normalizat    .73932        .21304        .30917E-03   -1.0236    
   4  Prefactor     1.2798        .18108        .20734E-03   -.83911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29605e-10
Minuit parameter uncertainties:
  1  14.0736
  2  0.412618
  3  0.213276
  4  0.181174
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588095': 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) = 6939.59149104
delta logL = 0.571475253941

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  3.229e+01  1.407e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.240e+00  4.126e-01  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.280e+00  1.812e-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:  7.393e-01  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.23
Ra Dec: 129.051 21.697
Photon Index (Free Index): 2.24 +/- 0.41
Photon Flux (Free Index): 9.95e-08 +/- 5.37e-08
Energy Flux (Free Index): 4.16e-05 +/- 2.45e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.29e-07', energy_flux2='4.16e-05', photon_flux_error='5.66e-08', dlogl='5.71e-01', energy_flux='3.03e-05', photon_flux2='9.95e-08', job_status='DONE', time_completed='2021-08-30 02:25:04.534178', photon_index_error2='0.41', photon_index2='2.24', ts='9.10', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', energy_flux_error2='2.45e-05', EG='0.69', time_epoch_completed='1630315504.53', return_code='0', job_id='588095', GAL2='1.28', EG2='0.74', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='5.37e-08', ts2='10.23', photon_index='2.73' WHERE bin_id='1186' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:25:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 588095: <4FGL_J0836.2+2141_daily_bin1186> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1186 129.051 21.6971 546739201 546998401 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 :                                   535.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   561 sec.
    Turnaround time :                            564 sec.

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

