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


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1103
RA = 129.051, Dec = 21.6971
tmin = 525225601, tmax = 525484801
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='587977', job_status='RUN', time_executed='2021-08-30 02:18:17.363396', time_epoch_executed='1630315097.36' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1103'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/587977

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/587977/ft1_4FGL_J0836.2+2141_daily_bin1103.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/587977/ft2_4FGL_J0836.2+2141_daily_bin1103.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/587977/ft1_4FGL_J0836.2+2141_daily_bin1103.fits outfile=/scratch/kocevski/587977/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1103.fits ra=129.051 dec=21.6971 rad=12.0 tmin=525225601.0 tmax=525484801.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 5.12
user 3.82
sys 1.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/587977/ft1_filtered_4FGL_J0836.2+2141_daily_bin1103.fits" evtable="EVENTS" scfile=/scratch/kocevski/587977/ft2_4FGL_J0836.2+2141_daily_bin1103.fits sctable="SC_DATA" outfile=/scratch/kocevski/587977/ltcube_525225601_525484801_4FGL_J0836.2+2141_daily_bin1103.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/587977/ft2_4FGL_J0836.2+2141_daily_bin1103.fits
.....................!
real 13.68
user 12.16
sys 1.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/587977/ft1_filtered_4FGL_J0836.2+2141_daily_bin1103.fits evtable="EVENTS" scfile=/scratch/kocevski/587977/ft2_4FGL_J0836.2+2141_daily_bin1103.fits sctable="SC_DATA" expcube=/scratch/kocevski/587977/ltcube_525225601_525484801_4FGL_J0836.2+2141_daily_bin1103.fits outfile=/scratch/kocevski/587977/expmap_525225601_525484801_4FGL_J0836.2+2141_daily_bin1103.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/587977/ltcube_525225601_525484801_4FGL_J0836.2+2141_daily_bin1103.fits
.....................!
real 192.72
user 185.41
sys 6.39

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/587977/ft1_filtered_4FGL_J0836.2+2141_daily_bin1103.fits scfile=/scratch/kocevski/587977/ft2_4FGL_J0836.2+2141_daily_bin1103.fits outfile=/scratch/kocevski/587977/cmap_525225601_525484801_4FGL_J0836.2+2141_daily_bin1103.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.43
user 0.36
sys 1.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/587977/ft1_filtered_4FGL_J0836.2+2141_daily_bin1103.fits scfile=/scratch/kocevski/587977/ft2_4FGL_J0836.2+2141_daily_bin1103.fits outfile=/scratch/kocevski/587977/cmap_HighResolution_525225601_525484801_4FGL_J0836.2+2141_daily_bin1103.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.57
user 0.38
sys 1.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7882       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.922       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.015       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.273       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .49381       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.320       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.9143       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.8509       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.618       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1389       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .83854       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5261.730     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2198 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7887        17.023        .33803E-02    .68133E-04
   2  Prefactor     17.922        45.656        .23652E-02    .20901E-03
   3  Prefactor     32.016        43.548        .17704E-02   -.29659E-03
   4  norm          .10000E-03    32.428        .90712E-02** at limit **
   5  Prefactor     17.274        25.780        .24092E-02   -.10184E-03
   6  Prefactor     .10000E-03    9.3174        .90712E-02** at limit **
   7  Prefactor     .10000E-03    5.2170        .90712E-02** at limit **
   8  Prefactor     .10000E-03    4.8977        .90712E-02** at limit **
   9  norm          .10000E-03    .38915        .22335E-01** at limit **
  10  Prefactor     .10000E-03    3.2440        .90712E-02** at limit **
  11  Prefactor     .49377        7.9373        .11245E-01    .14592E-02
  12  Prefactor     .10000E-03    20.608        .90712E-02** at limit **
  13  norm          .10000E-03    .20744        .15067E-01** at limit **
  14  Prefactor     20.315        13.867        .22213E-02   -.36493E-03
  15  Prefactor     7.9129        15.990        .35632E-02   -.11694E-03
  16  norm          .10000E-03    2.3150        .90712E-02** at limit **
  17  norm          .10000E-03    86.061        .90712E-02** at limit **
  18  norm          2.8509        2.9152        .60199E-02    .19593E-03
  19  Prefactor     21.616        33.432        .21537E-02    .68597E-03
  20  Normalizat    1.1390        .18537        .36599E-01   -.23543E-04
  21  Prefactor     .83848        .15422        .44217E-01   -.29935E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.78866
  Prefactor  = 17.9221
  Prefactor  = 32.0161
  norm       = 0.0001
  Prefactor  = 17.2737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.493773
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.3153
  Prefactor  = 7.91292
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 2.85094
  Prefactor  = 21.6158
  Normalizat = 1.13898
  Prefactor  = 0.838477
 **********
 **   18 **HESSE 
 **********

 FCN=   5261.730     FROM HESSE     STATUS=OK           313 CALLS     2511 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7887        17.014        .13521E-03   -1.5115    
   2  Prefactor     17.922        45.716        .94607E-04   -1.4861    
   3  Prefactor     32.016        43.549        .70816E-04   -1.4576    
   4  norm          .10000E-03    32.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.274        25.777        .96370E-04   -1.4876    
   6  Prefactor     .10000E-03    9.3200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.2174        .16182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.9008        .15678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .52038        .87803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2620        .12756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .49377        8.2058        .39262E-03   -1.5567    
  12  Prefactor     .10000E-03    20.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .23484        .64012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.315        13.794        .88853E-04   -1.4806    
  15  Prefactor     7.9129        16.013        .14253E-03   -1.5145    
  16  norm          .10000E-03    2.3161        .10779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    87.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.8509        2.9068        .12130E-03   -1.5370    
  19  Prefactor     21.616        33.432        .86146E-04   -1.4778    
  20  Normalizat    1.1390        .21343        .22808E-03   -.88510    
  21  Prefactor     .83848        .17800        .22286E-03   -.98325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73608e-09
Minuit parameter uncertainties:
  1  17.0237
  2  45.8052
  3  43.5921
  4  0.00023694
  5  25.7939
  6  1.16116e-05
  7  1.78024e-06
  8  1.74103e-05
  9  7.28565e-07
  10  2.89281e-06
  11  4.02606
  12  1.46639e-05
  13  1.68479e-07
  14  13.7963
  15  16.0212
  16  5.44442e-06
  17  0.00050143
  18  2.90691
  19  33.4605
  20  0.213596
  21  0.178122
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  2.893e-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:  8.385e-01  1.781e-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.139e+00  2.136e-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.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/587977/likelihoodResults_525225601_525484801_4FGL_J0836.2+2141_daily_bin1103.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) = 5261.73182786
delta logL = -0.00145783147218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5261.73037184
delta logL = -1.81033101398e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11305E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7127       1.0000          .0000       10.000    
     3 'Normalizat'    1.1390       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83845       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=   5261.730     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      244 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.458        .12938E-01** at limit **
   2  Index         2.0712        5.7034        .50000       -.87175E-07
   3  Normalizat    1.1390        .14270E-01    .22808E-03   -.24566E-03
   4  Prefactor     .83848        .12214E-01    .22286E-03   -.24924E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07121
  Normalizat = 1.13898
  Prefactor  = 0.838477
 **********
 **   18 **HESSE 
 **********

 FCN=   5261.730     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    365.01        .14871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0712        5.7818        .50000       -.62581    
   3  Normalizat    1.1390        .46113E-01    .45616E-04   -.88510    
   4  Prefactor     .83848        .39469E-01    .44571E-04   -.98325    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.74424e-10
Minuit parameter uncertainties:
  1  2.97282e-05
  2  893.164
  3  0.0461144
  4  0.0394707
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/587977': 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) = 5261.73036595
delta logL = 4.07587685913e-06

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  2.973e-05  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.071e+00  8.932e+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:  8.385e-01  3.947e-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.139e+00  4.611e-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/587977/cmap_HighResolution_525225601_525484801_4FGL_J0836.2+2141_daily_bin1103.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.15e-03', job_status='DONE', photon_flux_upper_limit='6.54e-08', time_completed='2021-08-30 02:27:47.972506', job_id='587977', GAL2='0.84', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630315667.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='4.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1103' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:27:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 587977: <4FGL_J0836.2+2141_daily_bin1103> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1103 129.051 21.6971 525225601 525484801 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 :                                   581.44 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             273.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            736 sec.

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

