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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin734
RA = 174.075, Dec = 34.129
tmin = 429580801, tmax = 429840001
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='948203', job_status='RUN', time_executed='2021-09-04 05:05:17.522053', time_epoch_executed='1630757117.52' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948203

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948203/ft1_4FGL_J1136.2+3407_daily_bin734.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948203/ft2_4FGL_J1136.2+3407_daily_bin734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948203/ft1_4FGL_J1136.2+3407_daily_bin734.fits outfile=/scratch/kocevski/948203/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin734.fits ra=174.075 dec=34.129 rad=12.0 tmin=429580801.0 tmax=429840001.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 6.33
user 6.08
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948203/ft1_filtered_4FGL_J1136.2+3407_daily_bin734.fits" evtable="EVENTS" scfile=/scratch/kocevski/948203/ft2_4FGL_J1136.2+3407_daily_bin734.fits sctable="SC_DATA" outfile=/scratch/kocevski/948203/ltcube_429580801_429840001_4FGL_J1136.2+3407_daily_bin734.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/948203/ft2_4FGL_J1136.2+3407_daily_bin734.fits
.....................!
real 12.45
user 12.11
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948203/ft1_filtered_4FGL_J1136.2+3407_daily_bin734.fits evtable="EVENTS" scfile=/scratch/kocevski/948203/ft2_4FGL_J1136.2+3407_daily_bin734.fits sctable="SC_DATA" expcube=/scratch/kocevski/948203/ltcube_429580801_429840001_4FGL_J1136.2+3407_daily_bin734.fits outfile=/scratch/kocevski/948203/expmap_429580801_429840001_4FGL_J1136.2+3407_daily_bin734.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/948203/ltcube_429580801_429840001_4FGL_J1136.2+3407_daily_bin734.fits
.....................!
real 191.08
user 185.45
sys 5.20

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/948203/ft1_filtered_4FGL_J1136.2+3407_daily_bin734.fits scfile=/scratch/kocevski/948203/ft2_4FGL_J1136.2+3407_daily_bin734.fits outfile=/scratch/kocevski/948203/cmap_429580801_429840001_4FGL_J1136.2+3407_daily_bin734.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948203/ft1_filtered_4FGL_J1136.2+3407_daily_bin734.fits scfile=/scratch/kocevski/948203/ft2_4FGL_J1136.2+3407_daily_bin734.fits outfile=/scratch/kocevski/948203/cmap_HighResolution_429580801_429840001_4FGL_J1136.2+3407_daily_bin734.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .18063E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.2060       1.0000         .10000E-03   10000.    
     4 'norm      '    .34168       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .49578       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.191       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.2947       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.6868       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.143       1.0000         .10000E-03   10000.    
    13 'norm      '    .86028E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.0274       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13505       1.0000         .10000E-03   10000.    
    17 'norm      '    5.6372       1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.170       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12959E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    71.952       1.0000         .10000E-03   10000.    
    23 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10640E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    21.345       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.9950       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10564E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.3334       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .36210       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.8744       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=   5519.469     FROM MIGRAD    STATUS=CONVERGED    873 CALLS     4080 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.076       -.13417E-06** at limit **
   2  Prefactor     .10000E-03    188.23       -.49152E-04** at limit **
   3  Prefactor     9.2094        16.315       -.38100E-05   -.70496E-04
   4  norm          .34177        .28524        .88691E-08    .14094E-03
   5  Prefactor     .49755        3.1133        .87484E-06   -.48754E-04
   6  Prefactor     18.197        18.726        .59928E-06    .55067E-05
   7  Prefactor     .10000E-03    8.1581       -.18243E-06** at limit **
   8  norm          2.3079        19.400        .15040E-05   -.46820E-03
   9  norm          .10000E-03    6.5424       -.16960E-06** at limit **
  10  Prefactor     7.6643        5.4019       -.17728E-06   -.19656E-03
  11  Prefactor     .10000E-03    104.05       -.15585E-05** at limit **
  12  Prefactor     13.148        16.986        .29610E-05   -.27568E-05
  13  norm          .12380        2.3808        .55425E-07    .73564E-04
  14  Prefactor     .10000E-03    11.177       -.10038E-07** at limit **
  15  Prefactor     8.0278        6.8221        .80194E-08   -.21417E-03
  16  Prefactor     .10441E-03    115.67        .63465E-06** at limit **
  17  norm          5.6342        2.2432        .32729E-06   -.54712E-03
  18  Prefactor     30.177        32.301        .60854E-06   -.68690E-04
  19  Prefactor     .10000E-03    1.7042        .38223E-07** at limit **
  20  norm          .10000E-03    4.9416       -.54656E-07** at limit **
  21  Prefactor     .10000E-03    206.60        .37605E-04** at limit **
  22  Prefactor     71.971        72.890       -.12246E-04   -.56862E-04
  23  norm          .10000E-03    .91955       -.37507E-07** at limit **
  24  Prefactor     .10000E-03    127.15        .12565E-04** at limit **
  25  norm          21.341        4.9185       -.27168E-07   -.29098E-03
  26  Prefactor     1.9995        3.9444        .62289E-06   -.19922E-02
  27  Prefactor     .10000E-03    1.5012        .25463E-07** at limit **
  28  Prefactor     3.3336        2.6602       -.11400E-07   -.12030E-03
  29  Normalizat    .36184        .25614       -.29413E-05   -.20806E-03
  30  Prefactor     1.8741        .28250        .96761E-06   -.29775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 9.20944
  norm       = 0.341767
  Prefactor  = 0.497555
  Prefactor  = 18.1968
  Prefactor  = 0.0001
  norm       = 2.30795
  norm       = 0.0001
  Prefactor  = 7.66434
  Prefactor  = 0.0001
  Prefactor  = 13.1475
  norm       = 0.123803
  Prefactor  = 0.0001
  Prefactor  = 8.02779
  Prefactor  = 0.000104406
  norm       = 5.63417
  Prefactor  = 30.1772
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 71.9706
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 21.3405
  Prefactor  = 1.9995
  Prefactor  = 0.0001
  Prefactor  = 3.33356
  Normalizat = 0.361836
  Prefactor  = 1.87408
 **********
 **   18 **HESSE 
 **********

 FCN=   5519.469     FROM HESSE     STATUS=OK           600 CALLS     4680 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    188.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.2094        16.010        .13209E-03   -1.5101    
   4  norm          .34177        .28306        .34804E-04   -1.5591    
   5  Prefactor     .49755        2.9547        .24318E-03   -1.5567    
   6  Prefactor     18.197        18.667        .93905E-04   -1.4855    
   7  Prefactor     .10000E-03    8.1614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3079        22.643        .13547E-02   -1.5404    
   9  norm          .10000E-03    6.5636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.6643        5.4980        .12093E-03   -1.5154    
  11  Prefactor     .10000E-03    104.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.148        16.969        .11049E-03   -1.4983    
  13  norm          .12380        38.016        .19164E-02   -1.5638    
  14  Prefactor     .10000E-03    11.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.0278        6.8137        .14151E-03   -1.5141    
  16  Prefactor     .10441E-03    90.693        .16440       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.6342        2.2478        .56680E-04   -1.5233    
  18  Prefactor     30.177        31.701        .72944E-04   -1.4609    
  19  Prefactor     .10000E-03    1.7377        .18828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.9467        .16128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    212.22        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     71.971        72.823        .47328E-04   -1.4009    
  23  norm          .10000E-03    1.5719        .13383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    129.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          21.341        4.7360        .70878E-04   -1.4784    
  26  Prefactor     1.9995        7.4779        .14664E-02   -1.5425    
  27  Prefactor     .10000E-03    2.3329        .17002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.3336        2.6478        .10096E-03   -1.5343    
  29  Normalizat    .36184        .25653        .44940E-03   -1.1932    
  30  Prefactor     1.8741        .30028        .25895E-03   -.67537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27876e-08
Minuit parameter uncertainties:
  1  1.20417e-06
  2  0.00164227
  3  16.0179
  4  0.283059
  5  2.42493
  6  18.6726
  7  2.46871e-06
  8  14.4649
  9  2.46042e-06
  10  5.4984
  11  3.74961e-05
  12  16.9751
  13  4.33994
  14  4.20105e-05
  15  6.81438
  16  0.0400388
  17  2.24785
  18  31.7183
  19  2.46692e-06
  20  1.4116e-05
  21  0.000968343
  22  72.9137
  23  1.22744e-05
  24  7.30597e-06
  25  4.73606
  26  7.48137
  27  4.54316e-06
  28  2.64786
  29  0.25737
  30  0.300575
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  8.028e+00  6.814e+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

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  1.874e+00  3.006e-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:  3.618e-01  2.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.21
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 5.56e-08 +/- 4.71e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.29e-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) = 5518.77096218
delta logL = 0.698248591048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5518.76537121
delta logL = 0.703839556531

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8028       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8488       1.0000          .0000       10.000    
     3 'Normalizat'    .38898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.8522       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=   5518.765     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      217 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8009        8.1598       -.21582E-05   -.17049E-03
   2  Index         1.8485        .54185       -.17649E-04    .35351E-04
   3  Normalizat    .38893        .22517        .17014E-05    .15381E-03
   4  Prefactor     1.8523        .27537       -.19099E-07    .20271E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.80088
  Index      = 1.84851
  Normalizat = 0.388935
  Prefactor  = 1.85231
 **********
 **   18 **HESSE 
 **********

 FCN=   5518.765     FROM HESSE     STATUS=OK            29 CALLS      246 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8009        8.0802        .13510E-03   -1.5115    
   2  Index         1.8485        .53495        .78885E-02   -.68194    
   3  Normalizat    .38893        .24165        .43405E-03   -1.1788    
   4  Prefactor     1.8523        .29636        .26014E-03   -.68096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15552e-10
Minuit parameter uncertainties:
  1  8.08118
  2  0.53666
  3  0.242299
  4  0.296648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948203': 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) = 5518.76537109
delta logL = 0.703839683792

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  8.801e+00  8.081e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  1.849e+00  5.367e-01  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.852e+00  2.966e-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:  3.889e-01  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.63
Ra Dec: 174.075 34.129
Photon Index (Free Index): 1.85 +/- 0.54
Photon Flux (Free Index): 3.06e-08 +/- 3.39e-08
Energy Flux (Free Index): 3.17e-05 +/- 3.77e-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/948203/cmap_HighResolution_429580801_429840001_4FGL_J1136.2+3407_daily_bin734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.56e-08', energy_flux2='3.17e-05', photon_flux_error='4.71e-08', dlogl='7.04e-01', energy_flux='1.52e-05', photon_flux2='3.06e-08', job_status='DONE', time_completed='2021-09-04 05:17:50.217779', photon_index_error2='0.54', photon_index2='1.85', ts='4.21', fit_tolerance='1e-08', GAL='1.87', photon_index_error='0.00', energy_flux_error2='3.77e-05', EG='0.36', time_epoch_completed='1630757870.22', return_code='0', job_id='948203', GAL2='1.85', EG2='0.39', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='3.39e-08', ts2='5.63', photon_index='2.55' WHERE bin_id='734' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:17:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 948203: <4FGL_J1136.2+3407_daily_bin734> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin734> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 05:01:26 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:01:28 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:28 2021
Terminated at Sat Sep  4 05:17:50 2021
Results reported at Sat Sep  4 05:17:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin734 174.075 34.129 429580801 429840001 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 :                                   748.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             232.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            984 sec.

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

