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


Performing analysis on: 4FGL_J1836.4+3137_daily_bin505
RA = 279.105, Dec = 31.618
tmin = 370224001, tmax = 370483201
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='96230', job_status='RUN', time_executed='2021-09-20 22:45:09.258426', time_epoch_executed='1632203109.26' WHERE source_name='4FGL J1836.4+3137' and cadence='daily' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/96230

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/96230/ft1_4FGL_J1836.4+3137_daily_bin505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/96230/ft2_4FGL_J1836.4+3137_daily_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/96230/ft1_4FGL_J1836.4+3137_daily_bin505.fits outfile=/scratch/kocevski/96230/ft1_filteredMKT_4FGL_J1836.4+3137_daily_bin505.fits ra=279.105 dec=31.618 rad=12.0 tmin=370224001.0 tmax=370483201.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 16.28
user 15.79
sys 0.40

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/96230/ft1_filtered_4FGL_J1836.4+3137_daily_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/96230/ft2_4FGL_J1836.4+3137_daily_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/96230/ltcube_370224001_370483201_4FGL_J1836.4+3137_daily_bin505.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/96230/ft2_4FGL_J1836.4+3137_daily_bin505.fits
.....................!
real 10.96
user 10.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/96230/ft1_filtered_4FGL_J1836.4+3137_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/96230/ft2_4FGL_J1836.4+3137_daily_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/96230/ltcube_370224001_370483201_4FGL_J1836.4+3137_daily_bin505.fits outfile=/scratch/kocevski/96230/expmap_370224001_370483201_4FGL_J1836.4+3137_daily_bin505.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/96230/ltcube_370224001_370483201_4FGL_J1836.4+3137_daily_bin505.fits
.....................!
real 190.09
user 185.53
sys 4.09

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/96230/ft1_filtered_4FGL_J1836.4+3137_daily_bin505.fits scfile=/scratch/kocevski/96230/ft2_4FGL_J1836.4+3137_daily_bin505.fits outfile=/scratch/kocevski/96230/cmap_370224001_370483201_4FGL_J1836.4+3137_daily_bin505.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/96230/ft1_filtered_4FGL_J1836.4+3137_daily_bin505.fits scfile=/scratch/kocevski/96230/ft2_4FGL_J1836.4+3137_daily_bin505.fits outfile=/scratch/kocevski/96230/cmap_HighResolution_370224001_370483201_4FGL_J1836.4+3137_daily_bin505.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/96230/ft1_filtered_4FGL_J1836.4+3137_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/96230/ft2_4FGL_J1836.4+3137_daily_bin505.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/96230/Model_4FGL_J1836.4+3137_daily_bin505.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/96230/ft1_filtered_4FGL_J1836.4+3137_daily_bin505.fits.....................!
real 66.16
user 64.22
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/96230/ft1_filtered_4FGL_J1836.4+3137_daily_bin505.fits', '/scratch/kocevski/96230/ft2_4FGL_J1836.4+3137_daily_bin505.fits', expMap='/scratch/kocevski/96230/expmap_370224001_370483201_4FGL_J1836.4+3137_daily_bin505.fits', expCube='/scratch/kocevski/96230/ltcube_370224001_370483201_4FGL_J1836.4+3137_daily_bin505.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/96230/Model_4FGL_J1836.4+3137_daily_bin505.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/96230/ft1_filtered_4FGL_J1836.4+3137_daily_bin505.fits
Spacecraft file(s): /scratch/kocevski/96230/ft2_4FGL_J1836.4+3137_daily_bin505.fits
Exposure map: /scratch/kocevski/96230/expmap_370224001_370483201_4FGL_J1836.4+3137_daily_bin505.fits
Exposure cube: /scratch/kocevski/96230/ltcube_370224001_370483201_4FGL_J1836.4+3137_daily_bin505.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/96230/Model_4FGL_J1836.4+3137_daily_bin505.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) = 3443.8413205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.513       1.0000         .10000E-03   10000.    
     9 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8030       1.0000         .10000E-03   10000.    
    12 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    54.744       1.0000         .10000E-03   10000.    
    14 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .13252E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.527       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .83723E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10509E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.941       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5187       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95428       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=   3443.837     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2678 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.609       -.45107E-06** at limit **
   2  Prefactor     .10000E-03    67.279        .43500E-04** at limit **
   3  Prefactor     .10000E-03    31.102       -.11819E-05** at limit **
   4  Prefactor     .10000E-03    59.715       -.51635E-04** at limit **
   5  Prefactor     .10000E-03    14.043       -.13209E-06** at limit **
   6  norm          .10000E-03    1.7864        .20452E-07** at limit **
   7  norm          .10000E-03    106.21       -.30094E-04** at limit **
   8  Prefactor     23.510        17.462       -.24165E-06    .79902E-04
   9  norm          .10000E-03    19.453        .10097E-05** at limit **
  10  Prefactor     .10000E-03    9.6969       -.21085E-06** at limit **
  11  Prefactor     1.7172        800.28       -.16098E-04   -.37186E-05
  12  norm          .10000E-03    43.496        .67747E-05** at limit **
  13  Prefactor     54.754        33.000       -.84948E-06    .18904E-03
  14  norm          .10000E-03    65.020        .17060E-04** at limit **
  15  norm          .10000E-03    10.131       -.58959E-06** at limit **
  16  norm          10.528        6.0884        .87535E-06    .15447E-02
  17  Prefactor     .10000E-03    14.568        .21909E-06** at limit **
  18  Prefactor     .10017E-03    1511.8       -.40446E-03** at limit **
  19  Prefactor     .10000E-03    10.940       -.29939E-06** at limit **
  20  Prefactor     .10000E-03    934.54        .10429E-03** at limit **
  21  Prefactor     10.959        34.769       -.10919E-04    .11638E-06
  22  Prefactor     .10000E-03    189.67        .23182E-04** at limit **
  23  Normalizat    1.5192        .45936        .21786E-05    .18897E-03
  24  Prefactor     .95427        .13104        .15570E-05    .37977E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 23.5099
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.71718
  norm       = 0.0001
  Prefactor  = 54.7544
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.5277
  Prefactor  = 0.0001
  Prefactor  = 0.000100171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9594
  Prefactor  = 0.0001
  Normalizat = 1.51915
  Prefactor  = 0.954273
 **********
 **   18 **HESSE 
 **********

 FCN=   3443.837     FROM HESSE     STATUS=OK           379 CALLS     3057 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    67.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    31.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    59.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.7879        .76600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    106.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.510        17.559        .82607E-04   -1.4738    
   9  norm          .10000E-03    19.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.7053        .17829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7172        798.29        .31128E-03   -1.5446    
  12  norm          .10000E-03    43.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     54.754        32.918        .54213E-04   -1.4227    
  14  norm          .10000E-03    65.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.196        .18087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.528        6.0441        .10349E-03   -1.5059    
  17  Prefactor     .10000E-03    14.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10017E-03    1525.3        .36796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    934.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.959        34.894        .12112E-03   -1.5046    
  22  Prefactor     .10000E-03    189.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5192        .51400        .46866E-03   -.77242    
  24  Prefactor     .95427        .14752        .16840E-03   -.94270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07038e-09
Minuit parameter uncertainties:
  1  8.34323e-06
  2  7.87024e-07
  3  1.58069e-06
  4  1.07808e-06
  5  1.0468e-06
  6  6.30409e-07
  7  3.02161e-05
  8  17.5628
  9  2.68244e-06
  10  1.28694e-05
  11  75.076
  12  3.78246e-06
  13  32.9285
  14  4.48989e-06
  15  8.31446e-05
  16  6.04443
  17  8.14051e-06
  18  0.0332213
  19  3.27206e-07
  20  0.000821348
  21  34.9594
  22  0.000186578
  23  0.515787
  24  0.14758
Done.

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

Extracting fit parameters...

4FGL J1836.4+3137
   Spectrum: PowerLaw
356    Prefactor:  5.475e+01  3.293e+01  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.543e-01  1.476e-01  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.519e+00  5.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.78
Ra Dec: 279.105 31.618
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.22e-07 +/- 1.94e-07
Energy Flux (Fixed Index): 1.10e-04 +/- 6.61e-05

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) = 3443.82914237
delta logL = 0.00810255275292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3443.78850422
delta logL = 0.0487406993097

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.024       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6701       1.0000          .0000       10.000    
     3 'Normalizat'    1.4623       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96439       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3443.789     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      245 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.003        101.81        .66771E-04    .42792E-03
   2  Index         2.6705        1.6646        .34905E-02    .17910E-03
   3  Normalizat    1.4623        .57340        .47526E-03    .33100E-03
   4  Prefactor     .96436        .15531        .16756E-03    .18143E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.0029
  Index      = 2.67052
  Normalizat = 1.46235
  Prefactor  = 0.964361
 **********
 **   18 **HESSE 
 **********

 FCN=   3443.789     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.003        60.570        .13354E-04   -1.4507    
   2  Index         2.6705        1.0021        .13962E-03   -.48465    
   3  Normalizat    1.4623        .52490        .95053E-04   -.78842    
   4  Prefactor     .96436        .14841        .33512E-04   -.93927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89986e-09
Minuit parameter uncertainties:
  1  60.6734
  2  1.01083
  3  0.526869
  4  0.148469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/96230': 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) = 3443.78850407
delta logL = 0.0487408546578

Extracting fit parameters...

4FGL J1836.4+3137
   Spectrum: PowerLaw
356    Prefactor:  3.600e+01  6.067e+01  1.000e-04  1.000e+04 ( 1.000e-13)
357        Index:  2.671e+00  1.011e+00  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:  9.644e-01  1.485e-01  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.462e+00  5.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.96
Ra Dec: 279.105 31.618
Photon Index (Free Index): 2.67 +/- 1.01
Photon Flux (Free Index): 4.06e-07 +/- 3.49e-07
Energy Flux (Free Index): 1.00e-04 +/- 5.81e-05

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/96230/cmap_HighResolution_370224001_370483201_4FGL_J1836.4+3137_daily_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.22e-07', energy_flux2='1.00e-04', photon_flux_error='1.94e-07', dlogl='4.87e-02', energy_flux='1.10e-04', photon_flux2='4.06e-07', job_status='DONE', time_completed='2021-09-20 22:55:36.575710', photon_index_error2='1.01', photon_index2='2.67', ts='6.78', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='5.81e-05', EG='1.52', time_epoch_completed='1632203736.58', return_code='0', job_id='96230', GAL2='0.96', EG2='1.46', return_code2='0', energy_flux_error='6.61e-05', photon_flux_error2='3.49e-07', ts2='6.96', photon_index='2.37' WHERE bin_id='505' AND source_name='4FGL J1836.4+3137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 22:55:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 96230: <4FGL_J1836.4+3137_daily_bin505> in cluster <slac> Done

Job <4FGL_J1836.4+3137_daily_bin505> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 20 22:40:28 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 22:41:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 20 22:41:02 2021
Terminated at Mon Sep 20 22:55:37 2021
Results reported at Mon Sep 20 22:55:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1836.4+3137_daily_bin505 279.105 31.618 370224001 370483201 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 :                                   621.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             261.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            909 sec.

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

