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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin993
RA = 174.075, Dec = 34.129
tmin = 496713601, tmax = 496972801
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='950103', job_status='RUN', time_executed='2021-09-04 05:10:36.816198', time_epoch_executed='1630757436.82' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='993'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950103

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950103/ft1_4FGL_J1136.2+3407_daily_bin993.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950103/ft2_4FGL_J1136.2+3407_daily_bin993.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950103/ft1_4FGL_J1136.2+3407_daily_bin993.fits outfile=/scratch/kocevski/950103/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin993.fits ra=174.075 dec=34.129 rad=12.0 tmin=496713601.0 tmax=496972801.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 4.92
user 4.68
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/950103/ft2_4FGL_J1136.2+3407_daily_bin993.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950103/ft2_4FGL_J1136.2+3407_daily_bin993.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/950103/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin993.fits evtable="EVENTS" outfile="/scratch/kocevski/950103/ft1_filtered_4FGL_J1136.2+3407_daily_bin993.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950103/ft1_filtered_4FGL_J1136.2+3407_daily_bin993.fits" evtable="EVENTS" scfile=/scratch/kocevski/950103/ft2_4FGL_J1136.2+3407_daily_bin993.fits sctable="SC_DATA" outfile=/scratch/kocevski/950103/ltcube_496713601_496972801_4FGL_J1136.2+3407_daily_bin993.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/950103/ft2_4FGL_J1136.2+3407_daily_bin993.fits
.....................!
real 12.38
user 12.03
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950103/ft1_filtered_4FGL_J1136.2+3407_daily_bin993.fits evtable="EVENTS" scfile=/scratch/kocevski/950103/ft2_4FGL_J1136.2+3407_daily_bin993.fits sctable="SC_DATA" expcube=/scratch/kocevski/950103/ltcube_496713601_496972801_4FGL_J1136.2+3407_daily_bin993.fits outfile=/scratch/kocevski/950103/expmap_496713601_496972801_4FGL_J1136.2+3407_daily_bin993.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/950103/ltcube_496713601_496972801_4FGL_J1136.2+3407_daily_bin993.fits
.....................!
real 190.61
user 185.36
sys 4.78

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 198 point sources and 0 extended sources

Setting source of interest to:
4FGL J1136.2+3407 @ 174.075 34.129

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/950103/ft1_filtered_4FGL_J1136.2+3407_daily_bin993.fits scfile=/scratch/kocevski/950103/ft2_4FGL_J1136.2+3407_daily_bin993.fits outfile=/scratch/kocevski/950103/cmap_496713601_496972801_4FGL_J1136.2+3407_daily_bin993.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=174.075 yref=34.129 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950103/ft1_filtered_4FGL_J1136.2+3407_daily_bin993.fits scfile=/scratch/kocevski/950103/ft2_4FGL_J1136.2+3407_daily_bin993.fits outfile=/scratch/kocevski/950103/cmap_HighResolution_496713601_496972801_4FGL_J1136.2+3407_daily_bin993.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=174.075 yref=34.129 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.58
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950103/ft1_filtered_4FGL_J1136.2+3407_daily_bin993.fits evtable="EVENTS" scfile=/scratch/kocevski/950103/ft2_4FGL_J1136.2+3407_daily_bin993.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950103/Model_4FGL_J1136.2+3407_daily_bin993.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/950103/ft1_filtered_4FGL_J1136.2+3407_daily_bin993.fits.....................!
real 42.65
user 41.36
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/950103/ft1_filtered_4FGL_J1136.2+3407_daily_bin993.fits', '/scratch/kocevski/950103/ft2_4FGL_J1136.2+3407_daily_bin993.fits', expMap='/scratch/kocevski/950103/expmap_496713601_496972801_4FGL_J1136.2+3407_daily_bin993.fits', expCube='/scratch/kocevski/950103/ltcube_496713601_496972801_4FGL_J1136.2+3407_daily_bin993.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/950103/Model_4FGL_J1136.2+3407_daily_bin993.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1136.2+3407'

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.848e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/950103/ft1_filtered_4FGL_J1136.2+3407_daily_bin993.fits
Spacecraft file(s): /scratch/kocevski/950103/ft2_4FGL_J1136.2+3407_daily_bin993.fits
Exposure map: /scratch/kocevski/950103/expmap_496713601_496972801_4FGL_J1136.2+3407_daily_bin993.fits
Exposure cube: /scratch/kocevski/950103/ltcube_496713601_496972801_4FGL_J1136.2+3407_daily_bin993.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/950103/Model_4FGL_J1136.2+3407_daily_bin993.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) = 4409.54779608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    188.43       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .26357       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .38312       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.286       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.953       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9710       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10887E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2822       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7805       1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4633       1.0000         .10000E-03   10000.    
    22 'Prefactor '    45.238       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.866       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.4048       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .78891E-01   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .89383       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1677       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4409.547     FROM MIGRAD    STATUS=CONVERGED    777 CALLS     3985 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.663       -.29961E-06** at limit **
   2  Prefactor     188.47        143.24        .14132E-05    .79271E-04
   3  Prefactor     .10000E-03    3.5554       -.38934E-07** at limit **
   4  norm          .26356        .27183        .69007E-07    .48795E-03
   5  Prefactor     .38297        3.7010        .23733E-05    .13842E-03
   6  Prefactor     28.288        15.493        .11308E-07   -.24831E-04
   7  Prefactor     .10000E-03    10.740        .12005E-06** at limit **
   8  norm          .10000E-03    3.7656       -.21037E-07** at limit **
   9  norm          10.954        16.195        .85311E-07   -.49486E-04
  10  Prefactor     .10000E-03    1.1579       -.53193E-07** at limit **
  11  Prefactor     .10000E-03    21.166       -.53475E-06** at limit **
  12  Prefactor     .10000E-03    8.6319       -.42592E-07** at limit **
  13  norm          1.9688        3.2961        .35174E-06    .36958E-04
  14  Prefactor     .10000E-03    5.4847        .14502E-06** at limit **
  15  Prefactor     .10000E-03    4.3850       -.13475E-06** at limit **
  16  Prefactor     .10000E-03    141.60       -.74301E-06** at limit **
  17  norm          1.2816        1.0525       -.28685E-08   -.99691E-04
  18  Prefactor     .10000E-03    48.399        .16265E-06** at limit **
  19  Prefactor     4.7808        2.8095        .99721E-07   -.69670E-05
  20  norm          .10000E-03    4.2537        .57324E-07** at limit **
  21  Prefactor     3.4542        41.766        .17662E-05    .91452E-05
  22  Prefactor     45.238        55.759        .30388E-06   -.16352E-05
  23  norm          .10000E-03    .47851        .26252E-08** at limit **
  24  Prefactor     .10000E-03    17.985        .54222E-06** at limit **
  25  norm          13.864        5.3601       -.20826E-06    .36830E-03
  26  Prefactor     7.4062        8.6623        .23165E-06    .22946E-04
  27  Prefactor     .10000E-03    3.9745       -.10694E-05** at limit **
  28  Prefactor     .84234E-01    1.7863        .49681E-06   -.25578E-03
  29  Normalizat    .89347        .21308       -.17779E-05   -.67714E-04
  30  Prefactor     1.1680        .23725        .54607E-06   -.93149E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 188.474
  Prefactor  = 0.0001
  norm       = 0.263564
  Prefactor  = 0.382974
  Prefactor  = 28.2881
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.9537
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.96877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.2816
  Prefactor  = 0.0001
  Prefactor  = 4.78076
  norm       = 0.0001
  Prefactor  = 3.45418
  Prefactor  = 45.2384
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 13.8637
  Prefactor  = 7.40617
  Prefactor  = 0.000100003
  Prefactor  = 0.0842337
  Normalizat = 0.893468
  Prefactor  = 1.168
 **********
 **   18 **HESSE 
 **********

 FCN=   4409.547     FROM HESSE     STATUS=OK           588 CALLS     4573 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     188.47        144.69        .14709E-03   -1.2954    
   3  Prefactor     .10000E-03    3.5573        .12229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .26356        .25981        .33435E-03   -1.5605    
   5  Prefactor     .38297        3.9572        .24901E-03   -1.5584    
   6  Prefactor     28.288        15.461        .75328E-04   -1.4644    
   7  Prefactor     .10000E-03    10.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.7706        .12585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.954        16.208        .12106E-03   -1.5046    
  10  Prefactor     .10000E-03    1.1673        .69653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.6450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9688        3.2760        .14410E-03   -1.5427    
  14  Prefactor     .10000E-03    5.5045        .15205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4342        .13569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    142.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2816        1.0561        .56852E-04   -1.5482    
  18  Prefactor     .10000E-03    49.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.7808        2.8074        .81875E-04   -1.5271    
  20  norm          .10000E-03    4.2566        .13377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.4542        42.146        .21730E-03   -1.5336    
  22  Prefactor     45.238        55.794        .59610E-04   -1.4362    
  23  norm          .10000E-03    .48776        .44813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.864        5.0545        .82749E-04   -1.4963    
  26  Prefactor     7.4062        8.6647        .14739E-03   -1.5164    
  27  Prefactor     .10000E-03    5.6118        .21353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .84234E-01    23.661        .15903E-02   -1.5650    
  29  Normalizat    .89347        .24877        .25281E-03   -.96690    
  30  Prefactor     1.1680        .27857        .26938E-03   -.87322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22404e-09
Minuit parameter uncertainties:
  1  9.15613e-05
  2  144.963
  3  3.15508e-06
  4  0.259808
  5  2.46199
  6  15.4636
  7  4.10228e-05
  8  1.84286e-06
  9  16.214
  10  1.07464e-06
  11  0.000223136
  12  4.21079e-06
  13  3.27625
  14  3.73269e-05
  15  1.38657e-05
  16  0.00032463
  17  1.05615
  18  0.000166845
  19  2.80743
  20  1.20792e-05
  21  24.152
  22  55.8581
  23  8.44108e-07
  24  0.000232841
  25  5.05466
  26  8.66617
  27  0.000242014
  28  2.82297
  29  0.249089
  30  0.278922
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  1.387e-05  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  1.168e+00  2.789e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  8.935e-01  2.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 174.075 34.129
Photon Flux Upper Limit: 9.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950103/likelihoodResults_496713601_496972801_4FGL_J1136.2+3407_daily_bin993.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) = 4409.54759844
delta logL = -0.00107400526758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4409.54652441
delta logL = 2.85035639536e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5337       1.0000          .0000       10.000    
     3 'Normalizat'    .89351       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1680       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+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=   4409.547     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      247 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.345        .13779E-01** at limit **
   2  Index         2.1624        5.8818        .50000        .10257E-06
   3  Normalizat    .89347        .98201E-02    .25281E-03    .32676E-03
   4  Prefactor     1.1680        .11846E-01    .26938E-03    .33912E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.16236
  Normalizat = 0.893468
  Prefactor  = 1.168
 **********
 **   18 **HESSE 
 **********

 FCN=   4409.547     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    267.92        .14770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1624        6.0752        .50000       -.60350    
   3  Normalizat    .89347        .37390E-01    .50562E-04   -.96690    
   4  Prefactor     1.1680        .45102E-01    .53875E-04   -.87322    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03338e-09
Minuit parameter uncertainties:
  1  0.000534062
  2  754.393
  3  0.0373911
  4  0.045104
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950103': 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) = 4409.5465226
delta logL = 1.83951215149e-06

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  5.341e-04  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.162e+00  7.544e+02  0.000e+00  1.000e+01 (-1.000e+00)
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  1.168e+00  4.510e-02  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  8.935e-01  3.739e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 174.075 34.129

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/950103/cmap_HighResolution_496713601_496972801_4FGL_J1136.2+3407_daily_bin993.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.22e-03', job_status='DONE', photon_flux_upper_limit='9.25e-08', time_completed='2021-09-04 05:23:06.292572', job_id='950103', GAL2='1.17', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630758186.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.84e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='993' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:23:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 950103: <4FGL_J1136.2+3407_daily_bin993> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin993> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 05:07:01 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:07:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 05:07:03 2021
Terminated at Sat Sep  4 05:23:07 2021
Results reported at Sat Sep  4 05:23:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin993 174.075 34.129 496713601 496972801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1136.2+3407 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   746.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             255.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            966 sec.

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

