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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin923
RA = 129.051, Dec = 21.6971
tmin = 478569601, tmax = 478828801
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='586442', job_status='RUN', time_executed='2021-08-30 02:10:56.714214', time_epoch_executed='1630314656.71' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='923'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/586442

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/586442/ft1_4FGL_J0836.2+2141_daily_bin923.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/586442/ft2_4FGL_J0836.2+2141_daily_bin923.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/586442/ft1_4FGL_J0836.2+2141_daily_bin923.fits outfile=/scratch/kocevski/586442/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin923.fits ra=129.051 dec=21.6971 rad=12.0 tmin=478569601.0 tmax=478828801.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.72
user 3.21
sys 0.48

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/586442/ft1_filtered_4FGL_J0836.2+2141_daily_bin923.fits" evtable="EVENTS" scfile=/scratch/kocevski/586442/ft2_4FGL_J0836.2+2141_daily_bin923.fits sctable="SC_DATA" outfile=/scratch/kocevski/586442/ltcube_478569601_478828801_4FGL_J0836.2+2141_daily_bin923.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/586442/ft2_4FGL_J0836.2+2141_daily_bin923.fits
.....................!
real 11.84
user 11.17
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/586442/ft1_filtered_4FGL_J0836.2+2141_daily_bin923.fits evtable="EVENTS" scfile=/scratch/kocevski/586442/ft2_4FGL_J0836.2+2141_daily_bin923.fits sctable="SC_DATA" expcube=/scratch/kocevski/586442/ltcube_478569601_478828801_4FGL_J0836.2+2141_daily_bin923.fits outfile=/scratch/kocevski/586442/expmap_478569601_478828801_4FGL_J0836.2+2141_daily_bin923.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/586442/ltcube_478569601_478828801_4FGL_J0836.2+2141_daily_bin923.fits
.....................!
real 193.57
user 187.59
sys 5.12

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/586442/ft1_filtered_4FGL_J0836.2+2141_daily_bin923.fits scfile=/scratch/kocevski/586442/ft2_4FGL_J0836.2+2141_daily_bin923.fits outfile=/scratch/kocevski/586442/cmap_478569601_478828801_4FGL_J0836.2+2141_daily_bin923.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 2.13
user 0.37
sys 0.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/586442/ft1_filtered_4FGL_J0836.2+2141_daily_bin923.fits scfile=/scratch/kocevski/586442/ft2_4FGL_J0836.2+2141_daily_bin923.fits outfile=/scratch/kocevski/586442/cmap_HighResolution_478569601_478828801_4FGL_J0836.2+2141_daily_bin923.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.82
user 0.38
sys 0.43

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    26.752       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8732       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.580       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8496       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14180E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.480       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.5604       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.928       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4889       1.0000         .10000E-03   10000.    
    16 'norm      '    3.6092       1.0000         .10000E-03   10000.    
    17 'norm      '    26.432       1.0000         .10000E-03   10000.    
    18 'norm      '    .77813       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1212       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92234       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=   6137.517     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     2208 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8127       -.29558E-07** at limit **
   2  Prefactor     .10000E-03    12.804       -.11408E-06** at limit **
   3  Prefactor     .10000E-03    33.466       -.63227E-07** at limit **
   4  norm          26.501        78.758       -.41502E-05   -.13170E-03
   5  Prefactor     .10000E-03    22.428        .30671E-05** at limit **
   6  Prefactor     1.8172        196.49        .41244E-05    .38957E-04
   7  Prefactor     26.568        31.684        .10471E-05    .80827E-04
   8  Prefactor     8.8485        20.287        .14180E-05    .34311E-05
   9  norm          .10000E-03    .26881        .57488E-07** at limit **
  10  Prefactor     .10000E-03    12.741       -.15088E-06** at limit **
  11  Prefactor     12.480        8.5276        .20453E-06   -.22801E-04
  12  Prefactor     .10000E-03    26.365        .25500E-06** at limit **
  13  norm          3.5605        1.1076        .49887E-08   -.11089E-03
  14  Prefactor     12.924        16.731        .14519E-06    .80249E-06
  15  Prefactor     3.4861        10.548        .11669E-04    .58206E-04
  16  norm          3.6092        4.2267       -.50777E-07    .10213E-05
  17  norm          26.432        30.222       -.32539E-06   -.26027E-04
  18  norm          .77781        2.2286        .43360E-06   -.91723E-04
  19  Prefactor     .10000E-03    16.699       -.12791E-07** at limit **
  20  Normalizat    1.1215        .19299       -.40547E-05    .16337E-03
  21  Prefactor     .92209        .15636        .30776E-05   -.23859E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.5011
  Prefactor  = 0.0001
  Prefactor  = 1.81721
  Prefactor  = 26.568
  Prefactor  = 8.8485
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4803
  Prefactor  = 0.0001
  norm       = 3.56051
  Prefactor  = 12.9239
  Prefactor  = 3.48615
  norm       = 3.60916
  norm       = 26.4316
  norm       = 0.77781
  Prefactor  = 0.0001
  Normalizat = 1.12153
  Prefactor  = 0.922091
 **********
 **   18 **HESSE 
 **********

 FCN=   6137.517     FROM HESSE     STATUS=OK           315 CALLS     2523 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8133        .14940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    33.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          26.501        79.186        .77453E-04   -1.4678    
   5  Prefactor     .10000E-03    22.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.8172        191.25        .30427E-03   -1.5438    
   7  Prefactor     26.568        31.662        .77703E-04   -1.4677    
   8  Prefactor     8.8485        20.248        .13474E-03   -1.5113    
   9  norm          .10000E-03    .27028        .39607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.308        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.480        8.5327        .11339E-03   -1.5001    
  12  Prefactor     .10000E-03    26.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.5605        1.1084        .41993E-04   -1.5331    
  14  Prefactor     12.924        16.744        .11141E-03   -1.4989    
  15  Prefactor     3.4861        10.582        .10824E-02   -1.5335    
  16  norm          3.6092        4.2265        .17018E-03   -1.5328    
  17  norm          26.432        30.217        .77919E-04   -1.4679    
  18  norm          .77781        2.1924        .19130E-03   -1.5532    
  19  Prefactor     .10000E-03    16.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1215        .22189        .25707E-03   -.89063    
  21  Prefactor     .92209        .17999        .23224E-03   -.95373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08943e-09
Minuit parameter uncertainties:
  1  5.65469e-08
  2  6.26784e-06
  3  6.94656e-05
  4  79.5021
  5  5.30856e-05
  6  37.4075
  7  31.682
  8  20.2635
  9  3.69998e-07
  10  4.59548e-07
  11  8.53349
  12  0.000141519
  13  1.10842
  14  16.7499
  15  10.5879
  16  4.2269
  17  30.2349
  18  2.19267
  19  9.77996e-06
  20  0.222074
  21  0.180108
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  4.595e-07  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:  9.221e-01  1.801e-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.122e+00  2.221e-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: 9.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/586442/likelihoodResults_478569601_478828801_4FGL_J0836.2+2141_daily_bin923.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) = 6137.51699213
delta logL = -0.000358846444215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6137.5166333
delta logL = -2.26455085794e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7214       1.0000          .0000       10.000    
     3 'Normalizat'    1.1216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92210       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=   6137.517     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      251 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10019E-03    93.504        .36285E-02** at limit **
   2  Index         2.6976        6.2226        .50000        .40396E-05
   3  Normalizat    1.1215        .12577E-01    .25708E-03    .33477E-04
   4  Prefactor     .92209        .10468E-01    .23224E-03    .27070E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100192
  Index      = 2.6976
  Normalizat = 1.12153
  Prefactor  = 0.922095
 **********
 **   18 **HESSE 
 **********

 FCN=   6137.517     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10019E-03    436.03        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6976        6.6795        .50000       -.47854    
   3  Normalizat    1.1215        .28011E-01    .10283E-04   -.89064    
   4  Prefactor     .92209        .23315E-01    .92896E-05   -.95373    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.16023e-09
Minuit parameter uncertainties:
  1  0.018428
  2  737.826
  3  0.0280113
  4  0.0233148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/586442': 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) = 6137.51663325
delta logL = 3.22861524182e-08

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.002e-04  1.843e-02  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.698e+00  7.378e+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:  9.221e-01  2.331e-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.122e+00  2.801e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/586442/cmap_HighResolution_478569601_478828801_4FGL_J0836.2+2141_daily_bin923.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.14e-03', job_status='DONE', photon_flux_upper_limit='9.06e-08', time_completed='2021-08-30 02:20:49.178094', job_id='586442', GAL2='0.92', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630315249.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.23e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='923' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:20:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 586442: <4FGL_J0836.2+2141_daily_bin923> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin923> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 02:10:38 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:10:40 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:10:40 2021
Terminated at Mon Aug 30 02:20:49 2021
Results reported at Mon Aug 30 02:20:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin923 129.051 21.6971 478569601 478828801 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 :                                   592.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   609 sec.
    Turnaround time :                            611 sec.

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

