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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1275
RA = 129.051, Dec = 21.6971
tmin = 569808001, tmax = 570067201
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='588239', job_status='RUN', time_executed='2021-08-30 02:19:27.979187', time_epoch_executed='1630315167.98' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588239

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588239/ft1_4FGL_J0836.2+2141_daily_bin1275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588239/ft2_4FGL_J0836.2+2141_daily_bin1275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588239/ft1_4FGL_J0836.2+2141_daily_bin1275.fits outfile=/scratch/kocevski/588239/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1275.fits ra=129.051 dec=21.6971 rad=12.0 tmin=569808001.0 tmax=570067201.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 7.30
user 3.32
sys 3.95

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588239/ft1_filtered_4FGL_J0836.2+2141_daily_bin1275.fits" evtable="EVENTS" scfile=/scratch/kocevski/588239/ft2_4FGL_J0836.2+2141_daily_bin1275.fits sctable="SC_DATA" outfile=/scratch/kocevski/588239/ltcube_569808001_570067201_4FGL_J0836.2+2141_daily_bin1275.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/588239/ft2_4FGL_J0836.2+2141_daily_bin1275.fits
.....................!
real 20.63
user 16.01
sys 4.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588239/ft1_filtered_4FGL_J0836.2+2141_daily_bin1275.fits evtable="EVENTS" scfile=/scratch/kocevski/588239/ft2_4FGL_J0836.2+2141_daily_bin1275.fits sctable="SC_DATA" expcube=/scratch/kocevski/588239/ltcube_569808001_570067201_4FGL_J0836.2+2141_daily_bin1275.fits outfile=/scratch/kocevski/588239/expmap_569808001_570067201_4FGL_J0836.2+2141_daily_bin1275.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/588239/ltcube_569808001_570067201_4FGL_J0836.2+2141_daily_bin1275.fits
.....................!
real 196.10
user 185.66
sys 9.90

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/588239/ft1_filtered_4FGL_J0836.2+2141_daily_bin1275.fits scfile=/scratch/kocevski/588239/ft2_4FGL_J0836.2+2141_daily_bin1275.fits outfile=/scratch/kocevski/588239/cmap_569808001_570067201_4FGL_J0836.2+2141_daily_bin1275.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 4.21
user 0.36
sys 3.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588239/ft1_filtered_4FGL_J0836.2+2141_daily_bin1275.fits scfile=/scratch/kocevski/588239/ft2_4FGL_J0836.2+2141_daily_bin1275.fits outfile=/scratch/kocevski/588239/cmap_HighResolution_569808001_570067201_4FGL_J0836.2+2141_daily_bin1275.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 4.21
user 0.39
sys 3.78

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.226       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    13.721       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0221       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.671       1.0000         .10000E-03   10000.    
     9 'norm      '    2.4934       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1908       1.0000         .10000E-03   10000.    
    12 'Prefactor '    53.735       1.0000         .10000E-03   10000.    
    13 'norm      '    .73399       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.805       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9039       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1920       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1996       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88082       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=   6424.906     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2514 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.226        25.073        .39643E-06    .60283E-04
   2  Prefactor     .10000E-03    56.026        .14840E-05** at limit **
   3  Prefactor     .10050E-03    28.506       -.21765E-05** at limit **
   4  norm          13.672        205.55       -.10847E-03    .49850E-05
   5  Prefactor     .10000E-03    17.766        .99135E-05** at limit **
   6  Prefactor     8.0170        27.625        .34208E-05   -.47452E-04
   7  Prefactor     .10000E-03    23.236        .16369E-04** at limit **
   8  Prefactor     28.669        26.881        .12671E-05   -.63471E-05
   9  norm          2.4937        1.5898       -.17499E-06   -.30862E-03
  10  Prefactor     .10000E-03    14.107        .19938E-06** at limit **
  11  Prefactor     9.1909        7.6340       -.11651E-05   -.17121E-02
  12  Prefactor     53.735        40.863       -.11474E-05    .56582E-05
  13  norm          .73418        .85123       -.19678E-06   -.10568E-02
  14  Prefactor     12.804        14.821       -.22576E-06    .44125E-04
  15  Prefactor     .10000E-03    18.336       -.11052E-04** at limit **
  16  norm          2.9030        7.0056        .82808E-06   -.33308E-03
  17  norm          .10000E-03    27.486       -.94486E-05** at limit **
  18  norm          1.1920        1.4381        .13464E-08    .17080E-03
  19  Prefactor     .10000E-03    21.142       -.71726E-05** at limit **
  20  Normalizat    1.1994        .19304       -.15399E-05    .30901E-03
  21  Prefactor     .88099        .15791        .38848E-05   -.82430E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.2258
  Prefactor  = 0.0001
  Prefactor  = 0.000100501
  norm       = 13.6717
  Prefactor  = 0.0001
  Prefactor  = 8.01701
  Prefactor  = 0.0001
  Prefactor  = 28.6687
  norm       = 2.49373
  Prefactor  = 0.0001
  Prefactor  = 9.1909
  Prefactor  = 53.7347
  norm       = 0.734177
  Prefactor  = 12.8043
  Prefactor  = 0.0001
  norm       = 2.90298
  norm       = 0.0001
  norm       = 1.192
  Prefactor  = 0.0001
  Normalizat = 1.19939
  Prefactor  = 0.880988
 **********
 **   18 **HESSE 
 **********

 FCN=   6424.906     FROM HESSE     STATUS=OK           331 CALLS     2845 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.226        25.074        .61691E-04   -1.4407    
   2  Prefactor     .10000E-03    56.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10050E-03    29.240        .14096       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.672        206.01        .10813E-03   -1.4968    
   5  Prefactor     .10000E-03    17.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.0170        27.583        .14156E-03   -1.5142    
   7  Prefactor     .10000E-03    23.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.669        26.957        .74822E-04   -1.4637    
   9  norm          2.4937        1.5870        .68687E-04   -1.5392    
  10  Prefactor     .10000E-03    14.426        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.1909        7.7329        .66100E-03   -1.5102    
  12  Prefactor     53.735        40.932        .54717E-04   -1.4241    
  13  norm          .73418        .80365        .71851E-03   -1.5537    
  14  Prefactor     12.804        14.669        .11194E-03   -1.4992    
  15  Prefactor     .10000E-03    18.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9030        6.9956        .23844E-03   -1.5367    
  17  norm          .10000E-03    27.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1920        1.4266        .10300E-03   -1.5490    
  19  Prefactor     .10000E-03    21.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1994        .22926        .25769E-03   -.86622    
  21  Prefactor     .88099        .18698        .24168E-03   -.96809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23018e-09
Minuit parameter uncertainties:
  1  25.0801
  2  0.000119126
  3  0.00766134
  4  106.584
  5  5.8981e-05
  6  27.6271
  7  0.000117591
  8  26.9687
  9  1.58703
  10  4.87944e-06
  11  7.73371
  12  40.9537
  13  0.803657
  14  14.6727
  15  1.90059e-05
  16  6.99755
  17  1.71198e-05
  18  1.42668
  19  4.17001e-06
  20  0.229455
  21  0.187116
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  4.879e-06  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:  8.810e-01  1.871e-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.199e+00  2.295e-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: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/588239/likelihoodResults_569808001_570067201_4FGL_J0836.2+2141_daily_bin1275.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) = 6424.90668543
delta logL = -0.000330716855387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6424.90635491
delta logL = -1.9678100216e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10986E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6967       1.0000          .0000       10.000    
     3 'Normalizat'    1.1994       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88096       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=   6424.906     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      247 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    16.268        .36285E-03** at limit **
   2  Index         2.6572        6.3205        .50000        .25579E-04
   3  Normalizat    1.1994        .22001        .25770E-03   -.47228E-03
   4  Prefactor     .88099        .18084        .24168E-03   -.28991E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.65721
  Normalizat = 1.19938
  Prefactor  = 0.880994
 **********
 **   18 **HESSE 
 **********

 FCN=   6424.906     FROM HESSE     STATUS=OK            29 CALLS      276 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    16.192        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6572        6.3200        .50000       -.48766    
   3  Normalizat    1.1994        .22020        .51539E-04   -.86622    
   4  Prefactor     .88099        .18100        .48336E-04   -.96808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62838e-09
Minuit parameter uncertainties:
  1  0.000836767
  2  4.41764
  3  0.220368
  4  0.181125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588239': 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) = 6424.90635431
delta logL = 3.9712722355e-07

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  8.368e-04  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.657e+00  4.418e+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:  8.810e-01  1.811e-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.199e+00  2.204e-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/588239/cmap_HighResolution_569808001_570067201_4FGL_J0836.2+2141_daily_bin1275.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.33e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-08-30 02:31:00.829621', job_id='588239', GAL2='0.88', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630315860.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1275' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:31:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 588239: <4FGL_J0836.2+2141_daily_bin1275> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin1275> 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) <bullet0228>, 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:31:02 2021
Results reported at Mon Aug 30 02:31:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1275 129.051 21.6971 569808001 570067201 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 :                                   744.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            912 sec.

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

