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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin616
RA = 174.075, Dec = 34.129
tmin = 398995201, tmax = 399254401
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='948029', job_status='RUN', time_executed='2021-09-04 05:01:28.121792', time_epoch_executed='1630756888.12' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948029

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948029/ft1_4FGL_J1136.2+3407_daily_bin616.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948029/ft2_4FGL_J1136.2+3407_daily_bin616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948029/ft1_4FGL_J1136.2+3407_daily_bin616.fits outfile=/scratch/kocevski/948029/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin616.fits ra=174.075 dec=34.129 rad=12.0 tmin=398995201.0 tmax=399254401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.36
user 5.15
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948029/ft2_4FGL_J1136.2+3407_daily_bin616.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/948029/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin616.fits evtable="EVENTS" outfile="/scratch/kocevski/948029/ft1_filtered_4FGL_J1136.2+3407_daily_bin616.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.54
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948029/ft1_filtered_4FGL_J1136.2+3407_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/948029/ft2_4FGL_J1136.2+3407_daily_bin616.fits sctable="SC_DATA" expcube=/scratch/kocevski/948029/ltcube_398995201_399254401_4FGL_J1136.2+3407_daily_bin616.fits outfile=/scratch/kocevski/948029/expmap_398995201_399254401_4FGL_J1136.2+3407_daily_bin616.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/948029/ltcube_398995201_399254401_4FGL_J1136.2+3407_daily_bin616.fits
.....................!
real 191.59
user 186.62
sys 4.51

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/948029/ft1_filtered_4FGL_J1136.2+3407_daily_bin616.fits scfile=/scratch/kocevski/948029/ft2_4FGL_J1136.2+3407_daily_bin616.fits outfile=/scratch/kocevski/948029/cmap_398995201_399254401_4FGL_J1136.2+3407_daily_bin616.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948029/ft1_filtered_4FGL_J1136.2+3407_daily_bin616.fits scfile=/scratch/kocevski/948029/ft2_4FGL_J1136.2+3407_daily_bin616.fits outfile=/scratch/kocevski/948029/cmap_HighResolution_398995201_399254401_4FGL_J1136.2+3407_daily_bin616.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.53
user 0.39
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/948029/ft1_filtered_4FGL_J1136.2+3407_daily_bin616.fits', '/scratch/kocevski/948029/ft2_4FGL_J1136.2+3407_daily_bin616.fits', expMap='/scratch/kocevski/948029/expmap_398995201_399254401_4FGL_J1136.2+3407_daily_bin616.fits', expCube='/scratch/kocevski/948029/ltcube_398995201_399254401_4FGL_J1136.2+3407_daily_bin616.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/948029/Model_4FGL_J1136.2+3407_daily_bin616.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/948029/ft1_filtered_4FGL_J1136.2+3407_daily_bin616.fits
Spacecraft file(s): /scratch/kocevski/948029/ft2_4FGL_J1136.2+3407_daily_bin616.fits
Exposure map: /scratch/kocevski/948029/expmap_398995201_399254401_4FGL_J1136.2+3407_daily_bin616.fits
Exposure cube: /scratch/kocevski/948029/ltcube_398995201_399254401_4FGL_J1136.2+3407_daily_bin616.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/948029/Model_4FGL_J1136.2+3407_daily_bin616.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) = 6165.27693526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.111       1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.311       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7758       1.0000         .10000E-03   10000.    
     4 'norm      '    2.8933       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8665       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .28472E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7078       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.365       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.183       1.0000         .10000E-03   10000.    
    13 'norm      '    .96257       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    47.812       1.0000         .10000E-03   10000.    
    17 'norm      '    2.7778       1.0000         .10000E-03   10000.    
    18 'Prefactor '    53.714       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10600E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.1452       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.359       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10406E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.9290       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.2789       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.5154       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .89363       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1248       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=   6165.233     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     3949 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.109        26.118        .66597E-07   -.18221E-04
   2  Prefactor     49.344        67.182        .68870E-05    .14415E-04
   3  Prefactor     1.7740        22.952        .13937E-05   -.29836E-04
   4  norm          2.8934        .47452       -.71420E-08   -.31540E-03
   5  Prefactor     1.8664        3.8071        .35489E-06   -.11647E-03
   6  Prefactor     .10000E-03    6.8585       -.71692E-07** at limit **
   7  Prefactor     .10000E-03    28.913       -.72308E-06** at limit **
   8  norm          .10002E-03    7.0064       -.20712E-07** at limit **
   9  norm          .10000E-03    29.153        .82984E-07** at limit **
  10  Prefactor     2.7062        4.3972       -.57937E-06   -.45055E-03
  11  Prefactor     11.455        164.49       -.10256E-05   -.92304E-05
  12  Prefactor     11.183        13.888        .16433E-06   -.38157E-04
  13  norm          .95984        2.6925        .29464E-05    .13327E-03
  14  Prefactor     .10000E-03    6.1060        .64142E-07** at limit **
  15  Prefactor     .10000E-03    3.9211       -.26504E-06** at limit **
  16  Prefactor     47.824        52.681       -.46206E-06   -.50026E-04
  17  norm          2.7777        1.5253       -.11032E-06   -.36873E-03
  18  Prefactor     53.739        32.094        .17045E-05   -.34751E-03
  19  Prefactor     .10000E-03    1.3418        .91229E-06** at limit **
  20  norm          4.1430        7.4590        .50769E-06   -.11589E-04
  21  Prefactor     21.350        27.000       -.11136E-05   -.72748E-04
  22  Prefactor     .10000E-03    49.073        .15865E-05** at limit **
  23  norm          .10000E-03    .60517        .40759E-06** at limit **
  24  Prefactor     .10000E-03    22.160        .26519E-06** at limit **
  25  norm          8.9297        3.9250       -.74942E-07   -.18053E-03
  26  Prefactor     .10000E-03    4.8970       -.51994E-07** at limit **
  27  Prefactor     3.2789        2.4712        .49155E-07   -.68808E-04
  28  Prefactor     5.5156        3.2485        .94583E-07   -.17504E-03
  29  Normalizat    .89359        .19973       -.28106E-05   -.29403E-03
  30  Prefactor     1.1250        .21358       -.23918E-06   -.34825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.109
  Prefactor  = 49.3436
  Prefactor  = 1.77396
  norm       = 2.89335
  Prefactor  = 1.86642
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100019
  norm       = 0.0001
  Prefactor  = 2.70619
  Prefactor  = 11.4549
  Prefactor  = 11.1832
  norm       = 0.959844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.824
  norm       = 2.77773
  Prefactor  = 53.7388
  Prefactor  = 0.000100001
  norm       = 4.143
  Prefactor  = 21.3498
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.92969
  Prefactor  = 0.0001
  Prefactor  = 3.27892
  Prefactor  = 5.5156
  Normalizat = 0.893587
  Prefactor  = 1.12496
 **********
 **   18 **HESSE 
 **********

 FCN=   6165.233     FROM HESSE     STATUS=OK           592 CALLS     4541 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.109        26.118        .63290E-04   -1.4440    
   2  Prefactor     49.344        67.159        .28553E-03   -1.4302    
   3  Prefactor     1.7740        20.540        .31414E-03   -1.5442    
   4  norm          2.8934        .47398        .21045E-04   -1.5368    
   5  Prefactor     1.8664        3.5755        .17171E-03   -1.5435    
   6  Prefactor     .10000E-03    6.8691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10002E-03    37.444        .39965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    30.030        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7062        4.3916        .13780E-03   -1.5379    
  11  Prefactor     11.455        164.89        .11883E-03   -1.5031    
  12  Prefactor     11.183        13.885        .11980E-03   -1.5039    
  13  norm          .95984        2.6911        .17579E-03   -1.5512    
  14  Prefactor     .10000E-03    6.1162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9595        .15155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     47.824        52.760        .57991E-04   -1.4324    
  17  norm          2.7777        1.5248        .61556E-04   -1.5375    
  18  Prefactor     53.739        31.035        .54727E-04   -1.4241    
  19  Prefactor     .10000E-03    1.9732        .16849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.1430        7.4488        .19798E-03   -1.5301    
  21  Prefactor     21.350        27.070        .86666E-04   -1.4784    
  22  Prefactor     .10000E-03    49.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .89120        .11557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.9297        3.9304        .96072E-04   -1.5110    
  26  Prefactor     .10000E-03    4.9244        .16966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.2789        2.4745        .10092E-03   -1.5346    
  28  Prefactor     5.5156        3.2432        .10331E-03   -1.5238    
  29  Normalizat    .89359        .23750        .28688E-03   -.96686    
  30  Prefactor     1.1250        .25577        .29695E-03   -.88673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81026e-09
Minuit parameter uncertainties:
  1  26.1259
  2  67.2627
  3  12.0775
  4  0.473982
  5  3.5759
  6  1.12665e-05
  7  3.59481e-05
  8  0.00170078
  9  7.89188e-05
  10  4.39211
  11  87.2123
  12  13.8889
  13  2.69139
  14  7.01375e-06
  15  2.58607e-05
  16  52.8117
  17  1.52481
  18  31.044
  19  0.000108357
  20  7.45046
  21  27.0853
  22  9.7586e-05
  23  1.80181e-05
  24  5.6634e-05
  25  3.93056
  26  1.56462e-05
  27  2.47458
  28  3.24333
  29  0.237774
  30  0.256055
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  2.586e-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.125e+00  2.561e-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.936e-01  2.378e-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: 8.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948029/likelihoodResults_398995201_399254401_4FGL_J1136.2+3407_daily_bin616.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) = 6165.23443915
delta logL = -0.00120261196207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6165.23323658
delta logL = -4.16239345213e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5475       1.0000          .0000       10.000    
     3 'Normalizat'    .89361       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1250       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=   6165.233     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      246 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10038E-03    163.67        .15178E-02** at limit **
   2  Index         2.5021        7.5247        .50000        .10208E-04
   3  Normalizat    .89359        .31780E-01    .28688E-03   -.16248E-04
   4  Prefactor     1.1250        .36656E-01    .29695E-03   -.11409E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100381
  Index      = 2.5021
  Normalizat = 0.893587
  Prefactor  = 1.12496
 **********
 **   18 **HESSE 
 **********

 FCN=   6165.233     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10038E-03    591.41        .30355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5021        6.1215        .50000       -.52311    
   3  Normalizat    .89359        .75030E-01    .11475E-04   -.96686    
   4  Prefactor     1.1250        .86506E-01    .11878E-04   -.88673    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.49877e-08
Minuit parameter uncertainties:
  1  0.0303297
  2  1554.37
  3  0.0750384
  4  0.0865166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948029': 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) = 6165.23323645
delta logL = 8.84483597474e-08

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.004e-04  3.033e-02  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.502e+00  1.554e+03  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.125e+00  8.652e-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.936e-01  7.504e-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/948029/cmap_HighResolution_398995201_399254401_4FGL_J1136.2+3407_daily_bin616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.56e-03', job_status='DONE', photon_flux_upper_limit='8.41e-08', time_completed='2021-09-04 05:16:21.133010', job_id='948029', GAL2='1.12', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630757781.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='8.84e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='616' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:16:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 948029: <4FGL_J1136.2+3407_daily_bin616> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin616> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 05:01:13 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:01:15 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:01:15 2021
Terminated at Sat Sep  4 05:16:21 2021
Results reported at Sat Sep  4 05:16:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin616 174.075 34.129 398995201 399254401 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 :                                   885.48 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            908 sec.

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

