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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1207
RA = 129.051, Dec = 21.6971
tmin = 552182401, tmax = 552441601
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='588124', job_status='RUN', time_executed='2021-08-30 02:16:11.150051', time_epoch_executed='1630314971.15' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1207'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588124

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588124/ft1_4FGL_J0836.2+2141_daily_bin1207.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588124/ft2_4FGL_J0836.2+2141_daily_bin1207.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588124/ft1_4FGL_J0836.2+2141_daily_bin1207.fits outfile=/scratch/kocevski/588124/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1207.fits ra=129.051 dec=21.6971 rad=12.0 tmin=552182401.0 tmax=552441601.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 4.07
user 3.46
sys 0.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588124/ft1_filtered_4FGL_J0836.2+2141_daily_bin1207.fits" evtable="EVENTS" scfile=/scratch/kocevski/588124/ft2_4FGL_J0836.2+2141_daily_bin1207.fits sctable="SC_DATA" outfile=/scratch/kocevski/588124/ltcube_552182401_552441601_4FGL_J0836.2+2141_daily_bin1207.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/588124/ft2_4FGL_J0836.2+2141_daily_bin1207.fits
.....................!
real 11.92
user 11.30
sys 0.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588124/ft1_filtered_4FGL_J0836.2+2141_daily_bin1207.fits evtable="EVENTS" scfile=/scratch/kocevski/588124/ft2_4FGL_J0836.2+2141_daily_bin1207.fits sctable="SC_DATA" expcube=/scratch/kocevski/588124/ltcube_552182401_552441601_4FGL_J0836.2+2141_daily_bin1207.fits outfile=/scratch/kocevski/588124/expmap_552182401_552441601_4FGL_J0836.2+2141_daily_bin1207.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/588124/ltcube_552182401_552441601_4FGL_J0836.2+2141_daily_bin1207.fits
.....................!
real 190.77
user 185.25
sys 4.81

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/588124/ft1_filtered_4FGL_J0836.2+2141_daily_bin1207.fits scfile=/scratch/kocevski/588124/ft2_4FGL_J0836.2+2141_daily_bin1207.fits outfile=/scratch/kocevski/588124/cmap_552182401_552441601_4FGL_J0836.2+2141_daily_bin1207.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.75
user 0.36
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588124/ft1_filtered_4FGL_J0836.2+2141_daily_bin1207.fits scfile=/scratch/kocevski/588124/ft2_4FGL_J0836.2+2141_daily_bin1207.fits outfile=/scratch/kocevski/588124/cmap_HighResolution_552182401_552441601_4FGL_J0836.2+2141_daily_bin1207.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.75
user 0.39
sys 0.35

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/588124/ft1_filtered_4FGL_J0836.2+2141_daily_bin1207.fits', '/scratch/kocevski/588124/ft2_4FGL_J0836.2+2141_daily_bin1207.fits', expMap='/scratch/kocevski/588124/expmap_552182401_552441601_4FGL_J0836.2+2141_daily_bin1207.fits', expCube='/scratch/kocevski/588124/ltcube_552182401_552441601_4FGL_J0836.2+2141_daily_bin1207.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/588124/Model_4FGL_J0836.2+2141_daily_bin1207.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/588124/ft1_filtered_4FGL_J0836.2+2141_daily_bin1207.fits
Spacecraft file(s): /scratch/kocevski/588124/ft2_4FGL_J0836.2+2141_daily_bin1207.fits
Exposure map: /scratch/kocevski/588124/expmap_552182401_552441601_4FGL_J0836.2+2141_daily_bin1207.fits
Exposure cube: /scratch/kocevski/588124/ltcube_552182401_552441601_4FGL_J0836.2+2141_daily_bin1207.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/588124/Model_4FGL_J0836.2+2141_daily_bin1207.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 224.918697508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 224.217516492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30440       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .93476       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .36698       1.0000         .10000E-03   10000.    
     4 'norm      '    11.444       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3786       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7003       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4821       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5352       1.0000         .10000E-03   10000.    
     9 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .88763E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    173.56       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5426       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1178       1.0000         .10000E-03   10000.    
    16 'norm      '    .10216E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.7248       1.0000         .10000E-03   10000.    
    18 'norm      '    1.0628       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.9222       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .65981       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .54954       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   224.1634     FROM MIGRAD    STATUS=CONVERGED    165 CALLS      377 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    205.74       -.17060E-04** at limit **
   2  Prefactor     .10000E-03    167.96        .20759E-05** at limit **
   3  Prefactor     .10000E-03    483.18       -.54022E-05** at limit **
   4  norm          167.87        562.12       -.23042E-04   -.81542E-05
   5  Prefactor     .10000E-03    6199.9        .26050E-05** at limit **
   6  Prefactor     .10002E-03    7452.6        .65621E-04** at limit **
   7  Prefactor     1.4821        9810.7         .0000         .0000    
   8  Prefactor     .10000E-03    313.09       -.18984E-05** at limit **
   9  norm          .10000E-03    20.085       -.15649E-06** at limit **
  10  Prefactor     .10000E-03    91.865       -.80448E-05** at limit **
  11  Prefactor     .10000E-03    30.993       -.58217E-06** at limit **
  12  Prefactor     186.95        216.04       -.48024E-05   -.10119E-04
  13  norm          .10000E-03    7.3640        .13198E-07** at limit **
  14  Prefactor     .10000E-03    371.12       -.59158E-06** at limit **
  15  Prefactor     4.1178        9793.5         .0000         .0000    
  16  norm          .10000E-03    27.228        .99711E-06** at limit **
  17  norm          .10006E-03    9999.8        .13031E-03** at limit **
  18  norm          1.0628        9814.4         .0000         .0000    
  19  Prefactor     7.9222        9775.8         .0000         .0000    
  20  Normalizat    .67654        .84976        .66308E-05   -.77018E-05
  21  Prefactor     .48934        .61442        .76280E-06   -.12200E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 167.865
  Prefactor  = 0.000100001
  Prefactor  = 0.000100016
  Prefactor  = 1.48211
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 186.95
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.11779
  norm       = 0.0001
  norm       = 0.000100058
  norm       = 1.06285
  Prefactor  = 7.92223
  Normalizat = 0.676543
  Prefactor  = 0.48934
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   224.1634     FROM HESSE     STATUS=FAILED        33 CALLS      410 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    200.64        .10444E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    162.33        .12933E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    482.00        .10715E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          167.87        504.84        .29606E-02   -1.3109    
   5  Prefactor     .10000E-03    6194.2        .92706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    7423.5        .61975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     578.15        576.47         .0000       -1.5464    
   8  Prefactor     .10000E-03    .18522       -.18984E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .20571       -.15649E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .20916       -.80448E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .20571       -.58217E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     186.95        1.0372       -.48024E-05   -1.2965    
  13  norm          .10000E-03    .20571        .13198E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .18406       -.59158E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1178        1.0076         .0000       -1.5302    
  16  norm          .10000E-03    .20571        .99711E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10006E-03    .25801E-01    .13031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0628        1.2223         .0000       -1.5502    
  19  Prefactor     7.9222        1.0020         .0000       -1.5145    
  20  Normalizat    .67654        1.0108        .66308E-05   -1.0483    
  21  Prefactor     .48934        .84727        .76280E-06   -1.1247    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.22251e-11
Minuit parameter uncertainties:
  1  0.000668498
  2  0.000122394
  3  8.16602e-05
  4  518.83
  5  0.00235052
  6  0.0191814
  7  1.07271
  8  8.28932e-07
  9  2.51053e-08
  10  6.92588e-06
  11  3.54707e-06
  12  1.03716
  13  9.43066e-09
  14  2.38167e-06
  15  1.00757
  16  5.94096e-07
  17  7.70351e-05
  18  1.22236
  19  1.002
  20  1.04082
  21  0.870716
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 224.163372561

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  6.926e-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:  4.893e-01  8.707e-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.765e-01  1.041e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 129.051 21.697
Photon Flux Upper Limit: 2.59e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.04e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/588124/likelihoodResults_552182401_552441601_4FGL_J0836.2+2141_daily_bin1207.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) = 224.16338078
delta logL = -8.21846251142e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 224.163374419
delta logL = -1.85786993256e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34083E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7237       1.0000          .0000       10.000    
     3 'Normalizat'    .67570       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48995       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=   224.1634     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      233 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10207E-03    7159.5        .13992E-02** at limit **
   2  Index         2.5650        7.4333        .50000        .57258E-06
   3  Normalizat    .67654        .14741        .24875E-03   -.23922E-05
   4  Prefactor     .48934        .10717        .20897E-03   -.79174E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102067
  Index      = 2.565
  Normalizat = 0.676543
  Prefactor  = 0.48934
 **********
 **   18 **HESSE 
 **********

 FCN=   224.1634     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      262 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10207E-03    9588.2        .27984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5650        5.5408        .50000       -.50865    
   3  Normalizat    .67654        .33965        .99502E-05   -1.0483    
   4  Prefactor     .48934        .24712        .83588E-05   -1.1247    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.97816e-08
Minuit parameter uncertainties:
  1  0.367992
  2  13343.3
  3  0.340709
  4  0.247668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588124': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 224.163372546
delta logL = 1.56188377787e-08

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.021e-04  3.680e-01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.565e+00  1.334e+04  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:  4.893e-01  2.477e-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.765e-01  3.407e-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/588124/cmap_HighResolution_552182401_552441601_4FGL_J0836.2+2141_daily_bin1207.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.04e-01', job_status='DONE', photon_flux_upper_limit='2.59e-06', time_completed='2021-08-30 02:21:33.208889', job_id='588124', GAL2='0.49', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1630315293.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.49', dlogl='1.56e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1207' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:21:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 588124: <4FGL_J0836.2+2141_daily_bin1207> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1207 129.051 21.6971 552182401 552441601 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 :                                   324.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             475.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   348 sec.
    Turnaround time :                            349 sec.

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

