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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1259
RA = 129.051, Dec = 21.6971
tmin = 565660801, tmax = 565920001
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='588210', job_status='RUN', time_executed='2021-08-30 02:17:53.358439', time_epoch_executed='1630315073.36' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1259'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588210

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588210/ft1_4FGL_J0836.2+2141_daily_bin1259.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588210/ft2_4FGL_J0836.2+2141_daily_bin1259.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588210/ft1_4FGL_J0836.2+2141_daily_bin1259.fits outfile=/scratch/kocevski/588210/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1259.fits ra=129.051 dec=21.6971 rad=12.0 tmin=565660801.0 tmax=565920001.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.75
user 3.28
sys 6.36

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588210/ft1_filtered_4FGL_J0836.2+2141_daily_bin1259.fits" evtable="EVENTS" scfile=/scratch/kocevski/588210/ft2_4FGL_J0836.2+2141_daily_bin1259.fits sctable="SC_DATA" outfile=/scratch/kocevski/588210/ltcube_565660801_565920001_4FGL_J0836.2+2141_daily_bin1259.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/588210/ft2_4FGL_J0836.2+2141_daily_bin1259.fits
.....................!
real 19.39
user 11.86
sys 7.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588210/ft1_filtered_4FGL_J0836.2+2141_daily_bin1259.fits evtable="EVENTS" scfile=/scratch/kocevski/588210/ft2_4FGL_J0836.2+2141_daily_bin1259.fits sctable="SC_DATA" expcube=/scratch/kocevski/588210/ltcube_565660801_565920001_4FGL_J0836.2+2141_daily_bin1259.fits outfile=/scratch/kocevski/588210/expmap_565660801_565920001_4FGL_J0836.2+2141_daily_bin1259.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/588210/ltcube_565660801_565920001_4FGL_J0836.2+2141_daily_bin1259.fits
.....................!
real 200.06
user 186.82
sys 11.92

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/588210/ft1_filtered_4FGL_J0836.2+2141_daily_bin1259.fits scfile=/scratch/kocevski/588210/ft2_4FGL_J0836.2+2141_daily_bin1259.fits outfile=/scratch/kocevski/588210/cmap_565660801_565920001_4FGL_J0836.2+2141_daily_bin1259.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 6.58
user 0.37
sys 6.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588210/ft1_filtered_4FGL_J0836.2+2141_daily_bin1259.fits scfile=/scratch/kocevski/588210/ft2_4FGL_J0836.2+2141_daily_bin1259.fits outfile=/scratch/kocevski/588210/cmap_HighResolution_565660801_565920001_4FGL_J0836.2+2141_daily_bin1259.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 6.60
user 0.39
sys 6.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.056       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.046       1.0000         .10000E-03   10000.    
     4 'norm      '    39.142       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5006       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.973       1.0000         .10000E-03   10000.    
     9 'norm      '    .47210       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5559       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6976       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .91905       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1535       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.2420       1.0000         .10000E-03   10000.    
    17 'norm      '    54.764       1.0000         .10000E-03   10000.    
    18 'norm      '    1.0970       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .97847E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3494       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78645       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=   6444.221     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2202 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.069        18.764       -.14010E-06    .31669E-04
   2  Prefactor     .10000E-03    27.762       -.44453E-06** at limit **
   3  Prefactor     14.055        30.748       -.35887E-06    .19669E-04
   4  norm          39.085        63.859        .26989E-05   -.81154E-04
   5  Prefactor     .10000E-03    23.704        .45011E-06** at limit **
   6  Prefactor     5.4985        18.554        .16324E-06   -.15140E-06
   7  Prefactor     .10000E-03    16.637       -.11776E-06** at limit **
   8  Prefactor     22.985        22.735        .57812E-06    .81569E-04
   9  norm          .47084        .72579       -.45682E-06   -.10139E-02
  10  Prefactor     4.5595        8.8777        .49001E-06    .32819E-04
  11  Prefactor     1.6977        3.2853        .25251E-07    .26606E-05
  12  Prefactor     .10000E-03    9.4618       -.18097E-07** at limit **
  13  norm          .91904        .56457        .23693E-08    .11875E-04
  14  Prefactor     4.1537        7.7014        .52660E-07   -.95513E-06
  15  Prefactor     .10000E-03    36.158       -.43303E-06** at limit **
  16  norm          3.2417        7.3581        .12727E-05   -.20402E-04
  17  norm          54.769        45.844       -.57666E-06   -.17772E-05
  18  norm          1.0967        2.4863        .44807E-07    .13800E-04
  19  Prefactor     .10004E-03    441.56        .10773E-04** at limit **
  20  Normalizat    1.3494        .17790        .26714E-07   -.18085E-05
  21  Prefactor     .78644        .14516       -.13784E-06   -.10808E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.0694
  Prefactor  = 0.0001
  Prefactor  = 14.0549
  norm       = 39.0846
  Prefactor  = 0.0001
  Prefactor  = 5.49846
  Prefactor  = 0.0001
  Prefactor  = 22.9846
  norm       = 0.470838
  Prefactor  = 4.55951
  Prefactor  = 1.69765
  Prefactor  = 0.0001
  norm       = 0.919041
  Prefactor  = 4.15369
  Prefactor  = 0.0001
  norm       = 3.24165
  norm       = 54.7688
  norm       = 1.09675
  Prefactor  = 0.000100042
  Normalizat = 1.34941
  Prefactor  = 0.786437
 **********
 **   18 **HESSE 
 **********

 FCN=   6444.221     FROM HESSE     STATUS=OK           325 CALLS     2527 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.069        18.757        .91751E-04   -1.4834    
   2  Prefactor     .10000E-03    27.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.055        30.715        .10687E-03   -1.4958    
   4  norm          39.085        62.468        .64065E-04   -1.4457    
   5  Prefactor     .10000E-03    23.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.4985        18.540        .17131E-03   -1.5239    
   7  Prefactor     .10000E-03    16.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.985        22.662        .83572E-04   -1.4749    
   9  norm          .47084        .69867        .94862E-03   -1.5571    
  10  Prefactor     4.5595        8.8908        .18860E-03   -1.5281    
  11  Prefactor     1.6977        3.2461        .19661E-03   -1.5447    
  12  Prefactor     .10000E-03    9.4665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .91904        .55957        .45435E-04   -1.5516    
  14  Prefactor     4.1537        7.6781        .19777E-03   -1.5300    
  15  Prefactor     .10000E-03    37.187        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.2417        7.3614        .11248E-02   -1.5348    
  17  norm          54.769        45.823        .54203E-04   -1.4226    
  18  norm          1.0967        2.4454        .18436E-03   -1.5499    
  19  Prefactor     .10004E-03    427.45        .41553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3494        .20620        .23518E-03   -.82103    
  21  Prefactor     .78644        .16780        .24654E-03   -1.0023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02509e-10
Minuit parameter uncertainties:
  1  18.763
  2  6.899e-05
  3  30.7491
  4  62.5724
  5  6.75535e-05
  6  18.5591
  7  1.63512e-05
  8  22.6706
  9  0.698678
  10  8.8934
  11  3.2464
  12  1.45568e-06
  13  0.559572
  14  7.67996
  15  0.00010395
  16  7.36341
  17  45.8522
  18  2.44563
  19  0.00857618
  20  0.206324
  21  0.167913
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  4.560e+00  8.893e+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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  7.864e-01  1.679e-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.349e+00  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.31
Ra Dec: 129.051 21.697
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/588210/likelihoodResults_565660801_565920001_4FGL_J0836.2+2141_daily_bin1259.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) = 6443.65266484
delta logL = 0.568743280935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6443.64171088
delta logL = 0.579697237764

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4515       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4770       1.0000          .0000       10.000    
     3 'Normalizat'    1.3687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77543       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=   6443.642     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      215 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4676        4.3527        .54423E-02   -.13728E-02
   2  Index         1.4786        .39280        .24712        .58445E-04
   3  Normalizat    1.3686        .17261        .52862E-01    .14964E-04
   4  Prefactor     .77543        .14305        .43397E-01    .19923E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.46757
  Index      = 1.4786
  Normalizat = 1.36865
  Prefactor  = 0.775429
 **********
 **   18 **HESSE 
 **********

 FCN=   6443.642     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4676        7.2224        .18167E-03   -1.5336    
   2  Index         1.4786        .82268        .86326E-02   -.78141    
   3  Normalizat    1.3686        .19947        .23372E-03   -.81540    
   4  Prefactor     .77543        .16524        .24795E-03   -1.0064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25578e-09
Minuit parameter uncertainties:
  1  7.22418
  2  0.830225
  3  0.199583
  4  0.165348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588210': 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) = 6443.64170884
delta logL = 0.579699285076

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  3.468e+00  7.224e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  1.479e+00  8.302e-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:  7.754e-01  1.653e-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.369e+00  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.47
Ra Dec: 129.051 21.697
Photon Index (Free Index): 1.48 +/- 0.83
Photon Flux (Free Index): 7.73e-09 +/- 1.51e-08
Energy Flux (Free Index): 2.63e-05 +/- 4.70e-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/588210/cmap_HighResolution_565660801_565920001_4FGL_J0836.2+2141_daily_bin1259.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.43e-03', comment='SUCCESS', energy_flux2='2.63e-05', dlogl='5.80e-01', photon_flux2='7.73e-09', job_status='DONE', time_completed='2021-08-30 02:29:28.483826', photon_index_error2='0.83', photon_index2='1.48', ts='0.31', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='4.70e-05', EG='1.35', time_epoch_completed='1630315768.48', return_code='0', job_id='588210', GAL2='0.78', EG2='1.37', return_code2='0', photon_flux_error2='1.51e-08', ts2='1.47', photon_index='2.73' WHERE bin_id='1259' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:29:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 588210: <4FGL_J0836.2+2141_daily_bin1259> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1259 129.051 21.6971 565660801 565920001 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 :                                   787.15 sec.
    Max Memory :                                 1035 MB
    Average Memory :                             275.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            822 sec.

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

