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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin55
RA = 129.051, Dec = 21.6971
tmin = 253584001, tmax = 253843201
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='581607', job_status='RUN', time_executed='2021-08-30 01:58:56.772572', time_epoch_executed='1630313936.77' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/581607

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/581607/ft1_4FGL_J0836.2+2141_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/581607/ft2_4FGL_J0836.2+2141_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/581607/ft1_4FGL_J0836.2+2141_daily_bin55.fits outfile=/scratch/kocevski/581607/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin55.fits ra=129.051 dec=21.6971 rad=12.0 tmin=253584001.0 tmax=253843201.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.23
user 1.25
sys 1.41

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/581607/ft1_filtered_4FGL_J0836.2+2141_daily_bin55.fits" evtable="EVENTS" scfile=/scratch/kocevski/581607/ft2_4FGL_J0836.2+2141_daily_bin55.fits sctable="SC_DATA" outfile=/scratch/kocevski/581607/ltcube_253584001_253843201_4FGL_J0836.2+2141_daily_bin55.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/581607/ft2_4FGL_J0836.2+2141_daily_bin55.fits
.....................!
real 14.70
user 12.76
sys 1.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/581607/ft1_filtered_4FGL_J0836.2+2141_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/581607/ft2_4FGL_J0836.2+2141_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/581607/ltcube_253584001_253843201_4FGL_J0836.2+2141_daily_bin55.fits outfile=/scratch/kocevski/581607/expmap_253584001_253843201_4FGL_J0836.2+2141_daily_bin55.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/581607/ltcube_253584001_253843201_4FGL_J0836.2+2141_daily_bin55.fits
.....................!
real 194.35
user 187.16
sys 5.82

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/581607/ft1_filtered_4FGL_J0836.2+2141_daily_bin55.fits scfile=/scratch/kocevski/581607/ft2_4FGL_J0836.2+2141_daily_bin55.fits outfile=/scratch/kocevski/581607/cmap_253584001_253843201_4FGL_J0836.2+2141_daily_bin55.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.76
user 0.37
sys 1.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/581607/ft1_filtered_4FGL_J0836.2+2141_daily_bin55.fits scfile=/scratch/kocevski/581607/ft2_4FGL_J0836.2+2141_daily_bin55.fits outfile=/scratch/kocevski/581607/cmap_HighResolution_253584001_253843201_4FGL_J0836.2+2141_daily_bin55.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.79
user 0.38
sys 1.36

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.411       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17971       1.0000         .10000E-03   10000.    
     3 'Prefactor '    51.613       1.0000         .10000E-03   10000.    
     4 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.405       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.546       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11323E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10246E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.740       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.2752       1.0000         .10000E-03   10000.    
    16 'norm      '    .12471E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.941       1.0000         .10000E-03   10000.    
    18 'norm      '    3.4255       1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.996       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0919       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0149       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=   7374.322     FROM MIGRAD    STATUS=CONVERGED    792 CALLS     2538 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.405        14.125        .12418E-03    .79191E-04
   2  Prefactor     .11055        27.602        .12983        .79675E-04
   3  Prefactor     51.604        38.451        .55824E-04   -.77021E-04
   4  norm          .10000E-03    51.756        .18142E-02** at limit **
   5  Prefactor     .10001E-03    34.000        .18142E-02** at limit **
   6  Prefactor     17.413        18.795        .96003E-04   -.25259E-03
   7  Prefactor     10.542        20.241        .12338E-03   -.12993E-04
   8  Prefactor     .10000E-03    12.368        .18142E-02** at limit **
   9  norm          .10000E-03    .28086        .44023E-03** at limit **
  10  Prefactor     .10000E-03    3.7351        .16116E-02** at limit **
  11  Prefactor     .10000E-03    5.9760        .36285E-03** at limit **
  12  Prefactor     .10000E-03    11.623        .18142E-02** at limit **
  13  norm          .10000E-03    .30708        .70725E-03** at limit **
  14  Prefactor     15.754        11.674        .10095E-03   -.90316E-04
  15  Prefactor     9.2698        13.219        .13159E-03    .12415E-03
  16  norm          .10000E-03    15.795        .30884E-02** at limit **
  17  norm          11.927        32.780        .11593E-03    .15593E-04
  18  norm          3.4245        2.6604        .11977E-03    .25049E-03
  19  Prefactor     31.018        36.428        .71968E-04    .93864E-04
  20  Normalizat    1.0922        .19569        .25208E-03    .18234E-03
  21  Prefactor     1.0149        .16609        .22237E-03    .34969E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4046
  Prefactor  = 0.110549
  Prefactor  = 51.6042
  norm       = 0.000100001
  Prefactor  = 0.000100009
  Prefactor  = 17.413
  Prefactor  = 10.5418
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.7537
  Prefactor  = 9.26975
  norm       = 0.000100001
  norm       = 11.927
  norm       = 3.42448
  Prefactor  = 31.0185
  Normalizat = 1.09215
  Prefactor  = 1.01491
 **********
 **   18 **HESSE 
 **********

 FCN=   7374.322     FROM HESSE     STATUS=OK           305 CALLS     2843 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.405        14.124        .49672E-05   -1.5063    
   2  Prefactor     .11055        27.019        .13191       -1.5641    
   3  Prefactor     51.604        38.451        .11165E-04   -1.4270    
   4  norm          .10000E-03    51.758        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    34.019        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.413        18.795        .19201E-04   -1.4873    
   7  Prefactor     10.542        20.241        .49351E-05   -1.5058    
   8  Prefactor     .10000E-03    12.371        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .28087        .88046E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.7364        .32231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.9763        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.624        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .30764        .14145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.754        11.673        .40381E-05   -1.4914    
  15  Prefactor     9.2698        13.219        .52637E-05   -1.5099    
  16  norm          .10000E-03    15.945        .61767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.927        32.771        .46371E-05   -1.5017    
  18  norm          3.4245        2.6603        .47909E-05   -1.5338    
  19  Prefactor     31.018        36.428        .14394E-04   -1.4594    
  20  Normalizat    1.0922        .19588        .10083E-04   -.90004    
  21  Prefactor     1.0149        .16625        .88949E-05   -.92234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69756e-09
Minuit parameter uncertainties:
  1  14.1287
  2  3.45654
  3  38.4693
  4  0.000502885
  5  0.00112863
  6  18.8015
  7  20.2539
  8  0.000179353
  9  4.0504e-06
  10  1.80148e-05
  11  2.19895e-05
  12  1.84322e-05
  13  1.75924e-05
  14  11.6749
  15  13.2237
  16  0.000301505
  17  32.8207
  18  2.6604
  19  36.4536
  20  0.196008
  21  0.166331
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  1.801e-05  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:  1.015e+00  1.663e-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.092e+00  1.960e-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: 6.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/581607/likelihoodResults_253584001_253843201_4FGL_J0836.2+2141_daily_bin55.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) = 7374.32356918
delta logL = -0.00127612484175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7374.32229326
delta logL = -2.04968273465e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7283       1.0000          .0000       10.000    
     3 'Normalizat'    1.0921       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0150       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=   7374.322     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      239 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    108.90        .16119E-02** at limit **
   2  Index         2.7098        5.4839        .50000        .41870E-05
   3  Normalizat    1.0922        .23234E-01    .25208E-03    .80007E-04
   4  Prefactor     1.0149        .19945E-01    .22237E-03    .71165E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100058
  Index      = 2.7098
  Normalizat = 1.09215
  Prefactor  = 1.01492
 **********
 **   18 **HESSE 
 **********

 FCN=   7374.322     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    430.80        .32239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7098        8.4527        .50000       -.47579    
   3  Normalizat    1.0922        .53320E-01    .10083E-04   -.90004    
   4  Prefactor     1.0149        .45770E-01    .88949E-05   -.92234    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.7099e-09
Minuit parameter uncertainties:
  1  0.0100272
  2  1413.4
  3  0.0533229
  4  0.0457721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/581607': 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) = 7374.32229304
delta logL = 1.59607225214e-08

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.001e-04  1.003e-02  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.710e+00  1.413e+03  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:  1.015e+00  4.577e-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.092e+00  5.332e-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/581607/cmap_HighResolution_253584001_253843201_4FGL_J0836.2+2141_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', job_status='DONE', photon_flux_upper_limit='6.16e-08', time_completed='2021-08-30 02:10:14.062681', job_id='581607', GAL2='1.01', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630314614.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.60e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='55' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:10:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 581607: <4FGL_J0836.2+2141_daily_bin55> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin55> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Aug 30 01:55:40 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:55:42 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:55:42 2021
Terminated at Mon Aug 30 02:10:15 2021
Results reported at Mon Aug 30 02:10:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin55 129.051 21.6971 253584001 253843201 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 :                                   693.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            875 sec.

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

