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


Performing analysis on: 4FGL_J1836.4+3137_daily_bin451
RA = 279.105, Dec = 31.618
tmin = 356227201, tmax = 356486401
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='96139', job_status='RUN', time_executed='2021-09-20 22:44:48.238279', time_epoch_executed='1632203088.24' WHERE source_name='4FGL J1836.4+3137' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/96139

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/96139/ft1_4FGL_J1836.4+3137_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/96139/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/96139/ft2_4FGL_J1836.4+3137_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/96139/ft1_4FGL_J1836.4+3137_daily_bin451.fits outfile=/scratch/kocevski/96139/ft1_filteredMKT_4FGL_J1836.4+3137_daily_bin451.fits ra=279.105 dec=31.618 rad=12.0 tmin=356227201.0 tmax=356486401.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 2.66
user 2.36
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/96139/ft1_filtered_4FGL_J1836.4+3137_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/96139/ft2_4FGL_J1836.4+3137_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/96139/ltcube_356227201_356486401_4FGL_J1836.4+3137_daily_bin451.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/96139/ft2_4FGL_J1836.4+3137_daily_bin451.fits
.....................!
real 3.31
user 2.99
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/96139/ft1_filtered_4FGL_J1836.4+3137_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/96139/ft2_4FGL_J1836.4+3137_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/96139/ltcube_356227201_356486401_4FGL_J1836.4+3137_daily_bin451.fits outfile=/scratch/kocevski/96139/expmap_356227201_356486401_4FGL_J1836.4+3137_daily_bin451.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/96139/ltcube_356227201_356486401_4FGL_J1836.4+3137_daily_bin451.fits
.....................!
real 158.84
user 152.13
sys 5.07

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/96139/ft1_filtered_4FGL_J1836.4+3137_daily_bin451.fits scfile=/scratch/kocevski/96139/ft2_4FGL_J1836.4+3137_daily_bin451.fits outfile=/scratch/kocevski/96139/cmap_356227201_356486401_4FGL_J1836.4+3137_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.48
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/96139/ft1_filtered_4FGL_J1836.4+3137_daily_bin451.fits scfile=/scratch/kocevski/96139/ft2_4FGL_J1836.4+3137_daily_bin451.fits outfile=/scratch/kocevski/96139/cmap_HighResolution_356227201_356486401_4FGL_J1836.4+3137_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.48
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11115E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .17042E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .52286E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11185E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.712       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.6934       1.0000         .10000E-03   10000.    
    16 'norm      '    .10309E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    85.924       1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.419       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .73370E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13617E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    259.33       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3610       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93661       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=   2844.691     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     3108 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.216       -.24023E-07** at limit **
   2  Prefactor     .10000E-03    49.156        .70473E-07** at limit **
   3  Prefactor     .10000E-03    27.489        .76666E-07** at limit **
   4  Prefactor     .10000E-03    81.204        .93230E-07** at limit **
   5  Prefactor     .10000E-03    7.9227        .15292E-07** at limit **
   6  norm          .10001E-03    4.6630       -.66037E-06** at limit **
   7  norm          .10000E-03    546.34       -.18916E-05** at limit **
   8  Prefactor     .10000E-03    40.581       -.95163E-07** at limit **
   9  norm          .10000E-03    28.201        .14650E-05** at limit **
  10  Prefactor     .10000E-03    12.812        .12385E-05** at limit **
  11  Prefactor     13.752        53.064        .80906E-06    .14387E-04
  12  norm          .10000E-03    27.454        .38144E-07** at limit **
  13  Prefactor     .10000E-03    10.200        .10091E-06** at limit **
  14  norm          .10000E-03    71.617        .92947E-07** at limit **
  15  norm          8.6844        8.1820        .11858E-05    .38942E-03
  16  norm          .10000E-03    5.2890       -.14058E-05** at limit **
  17  Prefactor     .10000E-03    10.688        .79758E-08** at limit **
  18  Prefactor     85.873        164.02        .11997E-05    .20804E-04
  19  Prefactor     31.422        31.230        .56373E-07    .86925E-05
  20  Prefactor     .10000E-03    212.37       -.47074E-06** at limit **
  21  Prefactor     .10000E-03    37.401        .67503E-07** at limit **
  22  Prefactor     259.41        614.37        .16913E-06    .29484E-05
  23  Normalizat    1.3607        .49131       -.28312E-05    .11765E-03
  24  Prefactor     .93659        .13153        .64271E-06    .90603E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100011
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 13.7516
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.68442
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 85.8731
  Prefactor  = 31.4225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 259.412
  Normalizat = 1.36073
  Prefactor  = 0.936589
 **********
 **   18 **HESSE 
 **********

 FCN=   2844.691     FROM HESSE     STATUS=OK           387 CALLS     3495 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    49.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    81.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.9245        .14664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    12.977        .21645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    548.15        .21135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    41.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    27.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.752        53.013        .10817E-03   -1.4966    
  12  norm          .10000E-03    27.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.214        .16635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    71.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.6844        8.6955        .13595E-03   -1.5118    
  16  norm          .10000E-03    9.5321        .22897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.696        .17032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     85.873        164.33        .21670E-03   -1.3852    
  19  Prefactor     31.422        31.232        .71483E-04   -1.4586    
  20  Prefactor     .10000E-03    212.64        .20953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    37.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     259.41        614.37        .12584E-03   -1.2473    
  23  Normalizat    1.3607        .52057        .44472E-03   -.81771    
  24  Prefactor     .93659        .14290        .14756E-03   -.94874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27858e-09
Minuit parameter uncertainties:
  1  1.07233e-05
  2  3.162e-05
  3  2.90899e-06
  4  2.01406e-05
  5  2.61935e-07
  6  0.000764267
  7  0.000950637
  8  0.000115184
  9  0.00025789
  10  0.000129099
  11  53.1956
  12  3.85402e-06
  13  2.13071e-05
  14  6.5437e-05
  15  8.69679
  16  0.000163425
  17  4.64995e-06
  18  165.208
  19  31.2485
  20  0.000602588
  21  6.27829e-05
  22  630.797
  23  0.522605
  24  0.142961
Done.

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

Extracting fit parameters...

4FGL J1836.4+3137
   Spectrum: PowerLaw
356    Prefactor:  1.000e-04  2.131e-05  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.366e-01  1.430e-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.361e+00  5.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 279.105 31.618
Photon Flux Upper Limit: 2.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.88e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/96139/likelihoodResults_356227201_356486401_4FGL_J1836.4+3137_daily_bin451.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) = 2844.69144423
delta logL = -0.000466247206077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2844.69097797
delta logL = 1.70025487023e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3507       1.0000          .0000       10.000    
     3 'Normalizat'    1.3608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93658       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=   2844.691     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      248 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10144E-03    104.97        .16873E-02** at limit **
   2  Index         2.2891        5.8588        .50000        .13683E-04
   3  Normalizat    1.3607        .40918E-01    .44473E-03   -.20412E-04
   4  Prefactor     .93659        .11610E-01    .14756E-03   -.82440E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101441
  Index      = 2.28908
  Normalizat = 1.36072
  Prefactor  = 0.936591
 **********
 **   18 **HESSE 
 **********

 FCN=   2844.691     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10144E-03    460.81        .33746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2891        5.0867        .50000       -.57303    
   3  Normalizat    1.3607        .89622E-01    .17789E-04   -.81772    
   4  Prefactor     .93659        .25424E-01    .59023E-05   -.94874    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.75341e-08
Minuit parameter uncertainties:
  1  0.0519337
  2  792.102
  3  0.0896324
  4  0.0254246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/96139': 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) = 2844.69097777
delta logL = 2.14455212699e-07

Extracting fit parameters...

4FGL J1836.4+3137
   Spectrum: PowerLaw
356    Prefactor:  1.014e-04  5.193e-02  1.000e-04  1.000e+04 ( 1.000e-13)
357        Index:  2.289e+00  7.921e+02  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.366e-01  2.542e-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.361e+00  8.963e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 279.105 31.618

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/96139/cmap_HighResolution_356227201_356486401_4FGL_J1836.4+3137_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.88e-02', job_status='DONE', photon_flux_upper_limit='2.43e-07', time_completed='2021-09-20 22:53:11.429397', job_id='96139', GAL2='0.94', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1632203591.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='451' AND source_name='4FGL J1836.4+3137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 22:53:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 96139: <4FGL_J1836.4+3137_daily_bin451> in cluster <slac> Done

Job <4FGL_J1836.4+3137_daily_bin451> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 20 22:40:21 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 22:40:45 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:40:45 2021
Terminated at Mon Sep 20 22:53:12 2021
Results reported at Mon Sep 20 22:53:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1836.4+3137_daily_bin451 279.105 31.618 356227201 356486401 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 :                                   494.08 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             261.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            771 sec.

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

