aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 91 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 = 7478
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1836.4+3137_daily_bin1694
RA = 279.105, Dec = 31.618
tmin = 678412801, tmax = 678672001
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='640904', job_status='RUN', time_executed='2022-07-05 03:57:36.878782', time_epoch_executed='1657018656.88' WHERE source_name='4FGL J1836.4+3137' and cadence='daily' and bin_id='1694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640904

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640904/ft1_4FGL_J1836.4+3137_daily_bin1694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640904/ft2_4FGL_J1836.4+3137_daily_bin1694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640904/ft1_4FGL_J1836.4+3137_daily_bin1694.fits outfile=/scratch/kocevski/640904/ft1_filteredMKT_4FGL_J1836.4+3137_daily_bin1694.fits ra=279.105 dec=31.618 rad=12.0 tmin=678412801.0 tmax=678672001.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.67
user 3.43
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/640904/ft2_4FGL_J1836.4+3137_daily_bin1694.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/640904/ft2_4FGL_J1836.4+3137_daily_bin1694.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/640904/ft1_filteredMKT_4FGL_J1836.4+3137_daily_bin1694.fits evtable="EVENTS" outfile="/scratch/kocevski/640904/ft1_filtered_4FGL_J1836.4+3137_daily_bin1694.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.53
user 0.33
sys 0.13

Number of photons that the gtmktime cut: 1264

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640904/ft1_filtered_4FGL_J1836.4+3137_daily_bin1694.fits" evtable="EVENTS" scfile=/scratch/kocevski/640904/ft2_4FGL_J1836.4+3137_daily_bin1694.fits sctable="SC_DATA" outfile=/scratch/kocevski/640904/ltcube_678412801_678672001_4FGL_J1836.4+3137_daily_bin1694.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/640904/ft2_4FGL_J1836.4+3137_daily_bin1694.fits
.....................!
real 13.74
user 13.32
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640904/ft1_filtered_4FGL_J1836.4+3137_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/640904/ft2_4FGL_J1836.4+3137_daily_bin1694.fits sctable="SC_DATA" expcube=/scratch/kocevski/640904/ltcube_678412801_678672001_4FGL_J1836.4+3137_daily_bin1694.fits outfile=/scratch/kocevski/640904/expmap_678412801_678672001_4FGL_J1836.4+3137_daily_bin1694.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/640904/ltcube_678412801_678672001_4FGL_J1836.4+3137_daily_bin1694.fits
.....................!
real 193.08
user 186.86
sys 4.99

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
Extended source W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W51C.fits is the correct path to the extended template.
Added 231 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1836.4+3137 @ 279.105 31.618

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/640904/ft1_filtered_4FGL_J1836.4+3137_daily_bin1694.fits scfile=/scratch/kocevski/640904/ft2_4FGL_J1836.4+3137_daily_bin1694.fits outfile=/scratch/kocevski/640904/cmap_678412801_678672001_4FGL_J1836.4+3137_daily_bin1694.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=279.105 yref=31.618 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.74
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640904/ft1_filtered_4FGL_J1836.4+3137_daily_bin1694.fits scfile=/scratch/kocevski/640904/ft2_4FGL_J1836.4+3137_daily_bin1694.fits outfile=/scratch/kocevski/640904/cmap_HighResolution_678412801_678672001_4FGL_J1836.4+3137_daily_bin1694.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=279.105 yref=31.618 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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/640904/ft1_filtered_4FGL_J1836.4+3137_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/640904/ft2_4FGL_J1836.4+3137_daily_bin1694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/640904/Model_4FGL_J1836.4+3137_daily_bin1694.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
adding source W 51C
Working on...
/scratch/kocevski/640904/ft1_filtered_4FGL_J1836.4+3137_daily_bin1694.fits.....................!
real 216.38
user 213.14
sys 1.53

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/640904/ft1_filtered_4FGL_J1836.4+3137_daily_bin1694.fits', '/scratch/kocevski/640904/ft2_4FGL_J1836.4+3137_daily_bin1694.fits', expMap='/scratch/kocevski/640904/expmap_678412801_678672001_4FGL_J1836.4+3137_daily_bin1694.fits', expCube='/scratch/kocevski/640904/ltcube_678412801_678672001_4FGL_J1836.4+3137_daily_bin1694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/640904/Model_4FGL_J1836.4+3137_daily_bin1694.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1836.4+3137'

4FGL J1836.4+3137
   Spectrum: PowerLaw
356    Prefactor:  2.008e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
357        Index:  2.369e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
358        Scale:  1.684e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/640904/ft1_filtered_4FGL_J1836.4+3137_daily_bin1694.fits
Spacecraft file(s): /scratch/kocevski/640904/ft2_4FGL_J1836.4+3137_daily_bin1694.fits
Exposure map: /scratch/kocevski/640904/expmap_678412801_678672001_4FGL_J1836.4+3137_daily_bin1694.fits
Exposure cube: /scratch/kocevski/640904/ltcube_678412801_678672001_4FGL_J1836.4+3137_daily_bin1694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/640904/Model_4FGL_J1836.4+3137_daily_bin1694.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) = 12673.5899601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10765E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.497       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0080       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .59175       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 '    36.710       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3047       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .39582       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6419       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .95968       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.210       1.0000         .10000E-03   10000.    
    22 'Prefactor '    95.289       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3719       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90160       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12673.59     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     3304 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.232        .39920E-05** at limit **
   2  Prefactor     15.495        47.403       -.14946E-05   -.34650E-04
   3  Prefactor     .10000E-03    8.0799       -.12123E-07** at limit **
   4  Prefactor     .10001E-03    15.574       -.46889E-05** at limit **
   5  Prefactor     .10000E-03    3.2417        .48660E-08** at limit **
   6  norm          .10000E-03    .40562       -.92380E-09** at limit **
   7  norm          .85273        41.581       -.26034E-05    .94059E-04
   8  Prefactor     .59134        2.7886        .22910E-05   -.82552E-03
   9  norm          .10000E-03    1.5561        .47404E-08** at limit **
  10  Prefactor     .10000E-03    2.1202        .16642E-08** at limit **
  11  Prefactor     36.704        19.337        .42775E-06    .13394E-03
  12  norm          .10000E-03    6.2975        .16882E-08** at limit **
  13  Prefactor     8.3043        5.7046       -.96126E-07   -.10909E-03
  14  norm          .10000E-03    39.941       -.24027E-06** at limit **
  15  norm          .39648        1.7194        .18901E-06   -.52469E-03
  16  norm          1.6414        1.4585       -.71025E-07   -.13189E-03
  17  Prefactor     .95831        5.8177        .16520E-06   -.11973E-03
  18  Prefactor     .10000E-03    15.353        .77853E-06** at limit **
  19  Prefactor     .10000E-03    5.2344        .86167E-08** at limit **
  20  Prefactor     .10000E-03    56.643        .22517E-06** at limit **
  21  Prefactor     10.210        16.298        .93408E-07    .21792E-05
  22  Prefactor     95.295        223.57        .23494E-05    .12279E-04
  23  Normalizat    1.3719        .20285       -.52267E-06    .10475E-04
  24  Prefactor     .90158        .58548E-01   -.49759E-07   -.54717E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 15.495
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.852726
  Prefactor  = 0.591343
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.7039
  norm       = 0.0001
  Prefactor  = 8.30427
  norm       = 0.0001
  norm       = 0.396478
  norm       = 1.64145
  Prefactor  = 0.958315
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2104
  Prefactor  = 95.2954
  Normalizat = 1.3719
  Prefactor  = 0.901576
 **********
 **   18 **HESSE 
 **********

 FCN=   12673.59     FROM HESSE     STATUS=OK           407 CALLS     3711 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.495        47.564        .10174E-03   -1.4920    
   3  Prefactor     .10000E-03    8.0834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    16.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.2491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .40674        .70009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .85273        39.631        .20579       -1.5523    
   8  Prefactor     .59134        3.6828        .41468E-03   -1.5554    
   9  norm          .10000E-03    1.5561        .13714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1390        .15989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.704        19.435        .66146E-04   -1.4496    
  12  norm          .10000E-03    6.2979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.3043        5.6959        .13911E-03   -1.5132    
  14  norm          .10000E-03    40.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .39648        4.4320        .23833E-02   -1.5582    
  16  norm          1.6414        1.6282        .10293E-03   -1.5452    
  17  Prefactor     .95831        27.470        .51354E-02   -1.5512    
  18  Prefactor     .10000E-03    15.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.2418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    56.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.210        16.289        .12540E-03   -1.5069    
  22  Prefactor     95.295        223.77        .41174E-04   -1.3752    
  23  Normalizat    1.3719        .22494        .40523E-03   -.81445    
  24  Prefactor     .90158        .65102E-01    .14440E-03   -.96086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71828e-07
Minuit parameter uncertainties:
  1  0.000542956
  2  47.6803
  3  1.72388e-06
  4  0.00061584
  5  2.30528e-06
  6  1.93027e-07
  7  11.6341
  8  2.95148
  9  1.74553e-07
  10  3.11445e-06
  11  19.4382
  12  4.00466e-07
  13  5.69628
  14  3.41402e-05
  15  2.6511
  16  1.62827
  17  10.2662
  18  0.000100562
  19  7.7293e-07
  20  5.70468e-05
  21  16.2963
  22  225.794
  23  0.2251
  24  0.065108
Done.

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

Extracting fit parameters...

4FGL J1836.4+3137
   Spectrum: PowerLaw
356    Prefactor:  8.304e+00  5.696e+00  1.000e-04  1.000e+04 ( 1.000e-13)
357        Index:  2.369e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
358        Scale:  1.684e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
803    Prefactor:  9.016e-01  6.511e-02  0.000e+00  1.000e+01 ( 1.000e+00)
804        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
805        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
802   Normalization:  1.372e+00  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.61
Ra Dec: 279.105 31.618
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.88e-08 +/- 3.35e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.14e-05

TS (Fixed Index): 3.61
Ra Dec: 279.105 31.618
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/640904/likelihoodResults_678412801_678672001_4FGL_J1836.4+3137_daily_bin1694.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): 0
logL (Free Index) = 12672.8999924
delta logL = 0.689904350598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12672.8987219
delta logL = 0.691174874482

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.635       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8534       1.0000          .0000       10.000    
     3 'Normalizat'    1.3864       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89938       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12672.90     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      256 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.635        295.98        .25323E-02    .52652E-04
   2  Index         1.8534        5.8629        .16661        .11698E-03
   3  Normalizat    1.3864        .14585        .91111E-01    .17965E-05
   4  Prefactor     .89935        .32994E-01    .32710E-01   -.24542E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6347
  Index      = 1.85339
  Normalizat = 1.38637
  Prefactor  = 0.899354
 **********
 **   18 **HESSE 
 **********

 FCN=   12672.90     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.635        10.830        .10129E-03   -1.4917    
   2  Index         1.8534        .40818        .90098E-02   -.68068    
   3  Normalizat    1.3864        .21367        .40349E-03   -.81024    
   4  Prefactor     .89935        .63661E-01    .14453E-03   -.96164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.07613e-12
Minuit parameter uncertainties:
  1  10.8311
  2  0.408938
  3  0.213804
  4  0.0636666
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640904': 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): 0
logL (Free Index) = 12672.8987216
delta logL = 0.691175184062

Extracting fit parameters...

4FGL J1836.4+3137
   Spectrum: PowerLaw
356    Prefactor:  1.563e+01  1.083e+01  1.000e-04  1.000e+04 ( 1.000e-13)
357        Index:  1.853e+00  4.089e-01  0.000e+00  1.000e+01 (-1.000e+00)
358        Scale:  1.684e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
803    Prefactor:  8.994e-01  6.367e-02  0.000e+00  1.000e+01 ( 1.000e+00)
804        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
805        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
802   Normalization:  1.386e+00  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.00
Ra Dec: 279.105 31.618
Photon Index (Free Index): 1.85 +/- 0.41
Photon Flux (Free Index): 3.43e-08 +/- 2.68e-08
Energy Flux (Free Index): 3.50e-05 +/- 3.44e-05

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/640904/cmap_HighResolution_678412801_678672001_4FGL_J1836.4+3137_daily_bin1694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.41e-03', comment='SUCCESS', photon_flux='4.88e-08', energy_flux2='3.50e-05', photon_flux_error='3.35e-08', dlogl='6.91e-01', energy_flux='1.67e-05', photon_flux2='3.43e-08', job_status='DONE', time_completed='2022-07-05 04:25:09.815698', photon_index_error2='0.41', photon_index2='1.85', ts='3.61', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='3.44e-05', EG='1.37', time_epoch_completed='1657020309.82', return_code='0', job_id='640904', GAL2='0.90', EG2='1.39', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='2.68e-08', ts2='5.00', photon_index='2.37' WHERE bin_id='1694' AND source_name='4FGL J1836.4+3137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  5 04:25:09 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 640904: <4FGL_J1836.4+3137_daily_bin1694> in cluster <slac> Done

Job <4FGL_J1836.4+3137_daily_bin1694> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Jul  5 00:07:05 2022
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:55:54 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 03:55:54 2022
Terminated at Tue Jul  5 04:25:10 2022
Results reported at Tue Jul  5 04:25:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1836.4+3137_daily_bin1694 279.105 31.618 678412801 678672001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1836.4+3137 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1646.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             347.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1756 sec.
    Turnaround time :                            15485 sec.

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

