/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 159 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 = 7401
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0836.2+2141_daily_bin19
RA = 129.051, Dec = 21.6971
tmin = 244252801, tmax = 244512001
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='580245', job_status='RUN', time_executed='2021-08-30 01:54:09.603795', time_epoch_executed='1630313649.6' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='19'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580245

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580245/ft1_4FGL_J0836.2+2141_daily_bin19.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580245/ft2_4FGL_J0836.2+2141_daily_bin19.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580245/ft1_4FGL_J0836.2+2141_daily_bin19.fits outfile=/scratch/kocevski/580245/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin19.fits ra=129.051 dec=21.6971 rad=12.0 tmin=244252801.0 tmax=244512001.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.97
user 2.20
sys 0.87

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/580245/ft2_4FGL_J0836.2+2141_daily_bin19.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/580245/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin19.fits evtable="EVENTS" outfile="/scratch/kocevski/580245/ft1_filtered_4FGL_J0836.2+2141_daily_bin19.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 1.82
user 0.32
sys 0.83

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580245/ft1_filtered_4FGL_J0836.2+2141_daily_bin19.fits" evtable="EVENTS" scfile=/scratch/kocevski/580245/ft2_4FGL_J0836.2+2141_daily_bin19.fits sctable="SC_DATA" outfile=/scratch/kocevski/580245/ltcube_244252801_244512001_4FGL_J0836.2+2141_daily_bin19.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/580245/ft2_4FGL_J0836.2+2141_daily_bin19.fits
.....................!
real 14.81
user 11.74
sys 1.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580245/ft1_filtered_4FGL_J0836.2+2141_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/580245/ft2_4FGL_J0836.2+2141_daily_bin19.fits sctable="SC_DATA" expcube=/scratch/kocevski/580245/ltcube_244252801_244512001_4FGL_J0836.2+2141_daily_bin19.fits outfile=/scratch/kocevski/580245/expmap_244252801_244512001_4FGL_J0836.2+2141_daily_bin19.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/580245/ltcube_244252801_244512001_4FGL_J0836.2+2141_daily_bin19.fits
.....................!
real 191.33
user 184.94
sys 5.85

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/580245/ft1_filtered_4FGL_J0836.2+2141_daily_bin19.fits scfile=/scratch/kocevski/580245/ft2_4FGL_J0836.2+2141_daily_bin19.fits outfile=/scratch/kocevski/580245/cmap_244252801_244512001_4FGL_J0836.2+2141_daily_bin19.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 1.21
user 0.36
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580245/ft1_filtered_4FGL_J0836.2+2141_daily_bin19.fits scfile=/scratch/kocevski/580245/ft2_4FGL_J0836.2+2141_daily_bin19.fits outfile=/scratch/kocevski/580245/cmap_HighResolution_244252801_244512001_4FGL_J0836.2+2141_daily_bin19.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 1.22
user 0.38
sys 0.83

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    47.211       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22081E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    20.547       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10976E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    47.533       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.615       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10569E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.1271       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11819E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.094       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9594       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.260       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.467       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.410       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4948       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3585       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .62397       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=   7004.496     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2209 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4568        .76622E-07** at limit **
   2  Prefactor     47.212        46.654       -.49116E-06    .11604E-05
   3  Prefactor     .10000E-03    145.94        .22246E-05** at limit **
   4  norm          20.549        49.111        .19111E-05   -.10155E-05
   5  Prefactor     .10000E-03    30.726        .12104E-05** at limit **
   6  Prefactor     47.504        33.634       -.74834E-05   -.86487E-05
   7  Prefactor     20.615        22.063        .94529E-06   -.43718E-05
   8  Prefactor     .10000E-03    34.103       -.53910E-06** at limit **
   9  norm          2.1261        1.0938        .36505E-07   -.12126E-03
  10  Prefactor     .10000E-03    2.5921        .43254E-08** at limit **
  11  Prefactor     .10000E-03    2.6678       -.92797E-07** at limit **
  12  Prefactor     58.100        30.092        .17273E-06    .71067E-05
  13  norm          1.9595        .79944        .36056E-08   -.23084E-03
  14  Prefactor     16.261        12.165       -.92256E-07   -.11860E-04
  15  Prefactor     14.470        13.317       -.77929E-06   -.53001E-03
  16  norm          .10000E-03    1.9751       -.28229E-06** at limit **
  17  norm          10.411        18.602       -.28069E-06   -.13889E-04
  18  norm          1.4951        2.3325       -.22880E-06   -.74885E-03
  19  Prefactor     .10000E-03    18.809        .23415E-06** at limit **
  20  Normalizat    1.3583        .17132        .70422E-06   -.72582E-05
  21  Prefactor     .62408        .13667        .37203E-06    .13624E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 47.2115
  Prefactor  = 0.0001
  norm       = 20.549
  Prefactor  = 0.000100001
  Prefactor  = 47.504
  Prefactor  = 20.6151
  Prefactor  = 0.0001
  norm       = 2.12608
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.1003
  norm       = 1.95952
  Prefactor  = 16.2609
  Prefactor  = 14.4704
  norm       = 0.0001
  norm       = 10.4106
  norm       = 1.49506
  Prefactor  = 0.0001
  Normalizat = 1.35829
  Prefactor  = 0.62408
 **********
 **   18 **HESSE 
 **********

 FCN=   7004.496     FROM HESSE     STATUS=OK           323 CALLS     2532 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     47.212        46.718        .58356E-04   -1.4333    
   3  Prefactor     .10000E-03    152.91        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          20.549        49.100        .88361E-04   -1.4801    
   5  Prefactor     .10000E-03    31.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     47.504        33.144        .58160E-04   -1.4328    
   7  Prefactor     20.615        22.046        .88216E-04   -1.4800    
   8  Prefactor     .10000E-03    34.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1261        1.0906        .59968E-04   -1.5416    
  10  Prefactor     .10000E-03    2.6113        .13156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.678        .26565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     58.100        30.140        .52635E-04   -1.4182    
  13  norm          1.9595        .79662        .44686E-04   -1.5428    
  14  Prefactor     16.261        12.183        .99326E-04   -1.4901    
  15  Prefactor     14.470        13.644        .52651E-03   -1.4947    
  16  norm          .10000E-03    1.9776        .11487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.411        18.597        .12418E-03   -1.5063    
  18  norm          1.4951        2.3243        .15600E-03   -1.5463    
  19  Prefactor     .10000E-03    18.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3583        .20424        .22747E-03   -.81843    
  21  Prefactor     .62408        .16141        .26243E-03   -1.0658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.81867e-10
Minuit parameter uncertainties:
  1  2.80065e-06
  2  46.7538
  3  0.000240764
  4  49.1968
  5  0.000418924
  6  33.1571
  7  22.0545
  8  5.88967e-05
  9  1.0906
  10  2.13174e-06
  11  5.96214e-05
  12  30.1481
  13  0.796623
  14  12.1851
  15  13.6469
  16  5.51637e-07
  17  18.6077
  18  2.3244
  19  4.02743e-06
  20  0.204365
  21  0.161532
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  2.132e-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:  6.241e-01  1.615e-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.358e+00  2.044e-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: 5.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/580245/likelihoodResults_244252801_244512001_4FGL_J0836.2+2141_daily_bin19.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) = 7004.49794614
delta logL = -0.00181500260351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7004.49613123
delta logL = -8.58153725858e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7128       1.0000          .0000       10.000    
     3 'Normalizat'    1.3583       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62411       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=   7004.496     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      257 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.103        .13334E-01** at limit **
   2  Index         2.1230        5.0071        .50000        .51755E-06
   3  Normalizat    1.3583        .12355E-01    .22747E-03   -.42966E-03
   4  Prefactor     .62408        .10090E-01    .26243E-03   -.35258E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12297
  Normalizat = 1.35829
  Prefactor  = 0.62408
 **********
 **   18 **HESSE 
 **********

 FCN=   7004.496     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    235.10        .15012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1230        8.1193        .50000       -.61310    
   3  Normalizat    1.3583        .38358E-01    .45494E-04   -.81843    
   4  Prefactor     .62408        .31326E-01    .10497E-04   -1.0658    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.72135e-10
Minuit parameter uncertainties:
  1  0.00043372
  2  739.606
  3  0.0383584
  4  0.031327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580245': 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) = 7004.49612657
delta logL = 4.56656835013e-06

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  4.337e-04  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.123e+00  7.396e+02  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:  6.241e-01  3.133e-02  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.358e+00  3.836e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/580245/cmap_HighResolution_244252801_244512001_4FGL_J0836.2+2141_daily_bin19.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.19e-03', job_status='DONE', photon_flux_upper_limit='5.31e-08', time_completed='2021-08-30 02:04:51.505987', job_id='580245', GAL2='0.62', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1630314291.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='4.57e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='19' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:04:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 580245: <4FGL_J0836.2+2141_daily_bin19> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin19> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 30 01:50:44 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:50:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 01:50:47 2021
Terminated at Mon Aug 30 02:04:52 2021
Results reported at Mon Aug 30 02:04:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin19 129.051 21.6971 244252801 244512001 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 :                                   644.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            848 sec.

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

