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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin672
RA = 174.075, Dec = 34.129
tmin = 413510401, tmax = 413769601
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='948112', job_status='RUN', time_executed='2021-09-04 05:04:40.413790', time_epoch_executed='1630757080.41' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='672'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948112

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948112/ft1_4FGL_J1136.2+3407_daily_bin672.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948112/ft2_4FGL_J1136.2+3407_daily_bin672.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948112/ft1_4FGL_J1136.2+3407_daily_bin672.fits outfile=/scratch/kocevski/948112/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin672.fits ra=174.075 dec=34.129 rad=12.0 tmin=413510401.0 tmax=413769601.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.79
user 5.36
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948112/ft2_4FGL_J1136.2+3407_daily_bin672.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/948112/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin672.fits evtable="EVENTS" outfile="/scratch/kocevski/948112/ft1_filtered_4FGL_J1136.2+3407_daily_bin672.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.57
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948112/ft1_filtered_4FGL_J1136.2+3407_daily_bin672.fits" evtable="EVENTS" scfile=/scratch/kocevski/948112/ft2_4FGL_J1136.2+3407_daily_bin672.fits sctable="SC_DATA" outfile=/scratch/kocevski/948112/ltcube_413510401_413769601_4FGL_J1136.2+3407_daily_bin672.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/948112/ft2_4FGL_J1136.2+3407_daily_bin672.fits
.....................!
real 12.07
user 11.67
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948112/ft1_filtered_4FGL_J1136.2+3407_daily_bin672.fits evtable="EVENTS" scfile=/scratch/kocevski/948112/ft2_4FGL_J1136.2+3407_daily_bin672.fits sctable="SC_DATA" expcube=/scratch/kocevski/948112/ltcube_413510401_413769601_4FGL_J1136.2+3407_daily_bin672.fits outfile=/scratch/kocevski/948112/expmap_413510401_413769601_4FGL_J1136.2+3407_daily_bin672.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/948112/ltcube_413510401_413769601_4FGL_J1136.2+3407_daily_bin672.fits
.....................!
real 191.39
user 186.20
sys 4.81

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/948112/ft1_filtered_4FGL_J1136.2+3407_daily_bin672.fits scfile=/scratch/kocevski/948112/ft2_4FGL_J1136.2+3407_daily_bin672.fits outfile=/scratch/kocevski/948112/cmap_413510401_413769601_4FGL_J1136.2+3407_daily_bin672.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.62
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948112/ft1_filtered_4FGL_J1136.2+3407_daily_bin672.fits scfile=/scratch/kocevski/948112/ft2_4FGL_J1136.2+3407_daily_bin672.fits outfile=/scratch/kocevski/948112/cmap_HighResolution_413510401_413769601_4FGL_J1136.2+3407_daily_bin672.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.37
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.566       1.0000         .10000E-03   10000.    
     4 'norm      '    2.1980       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.523       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .45572E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.443       1.0000         .10000E-03   10000.    
    13 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2189       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7729       1.0000         .10000E-03   10000.    
    16 'Prefactor '    104.66       1.0000         .10000E-03   10000.    
    17 'norm      '    6.3587       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3106       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7308       1.0000         .10000E-03   10000.    
    20 'norm      '    .53677E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    89.625       1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.0599       1.0000         .10000E-03   10000.    
    25 'norm      '    44.043       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.0370       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1218       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .40060       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=   4823.288     FROM MIGRAD    STATUS=CONVERGED    783 CALLS     3969 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.083       -.15294E-07** at limit **
   2  Prefactor     .10000E-03    33.145       -.35724E-07** at limit **
   3  Prefactor     10.567        10.517        .12366E-06   -.12804E-07
   4  norm          2.1981        .45510        .73668E-08   -.44174E-03
   5  Prefactor     .10000E-03    1.6771       -.75043E-08** at limit **
   6  Prefactor     .10000E-03    10.409        .74360E-07** at limit **
   7  Prefactor     .10000E-03    58.795       -.26213E-07** at limit **
   8  norm          16.532        18.123        .11429E-07   -.83918E-04
   9  norm          .10000E-03    10.079       -.13844E-06** at limit **
  10  Prefactor     .10001E-03    1.7201        .34874E-06** at limit **
  11  Prefactor     .10000E-03    28.916        .28720E-07** at limit **
  12  Prefactor     10.444        19.215        .49460E-06   -.87183E-04
  13  norm          .10000E-03    1.9956        .39556E-06** at limit **
  14  Prefactor     6.2171        13.052        .31403E-05   -.16799E-03
  15  Prefactor     6.7768        6.6850       -.70350E-07   -.18837E-03
  16  Prefactor     104.71        64.023        .13977E-05    .20567E-03
  17  norm          6.3597        2.1386       -.13955E-06   -.26947E-03
  18  Prefactor     4.3511        40.521       -.55419E-06   -.23260E-04
  19  Prefactor     1.7286        2.9672        .32110E-06   -.59420E-04
  20  norm          .10016E-03    8.0512        .46104E-06** at limit **
  21  Prefactor     .10000E-03    30.596       -.14349E-06** at limit **
  22  Prefactor     89.637        66.172        .47412E-06    .40694E-04
  23  norm          .10000E-03    .62307       -.31913E-07** at limit **
  24  Prefactor     4.0520        104.29        .14122E-05   -.17453E-04
  25  norm          44.043        9.1909       -.50428E-06   -.51620E-03
  26  Prefactor     .10000E-03    8.5642       -.92897E-07** at limit **
  27  Prefactor     1.0369        5.6183        .25251E-05   -.24557E-04
  28  Prefactor     .10000E-03    .89077       -.79902E-08** at limit **
  29  Normalizat    1.1218        .22336       -.11278E-05   -.14139E-03
  30  Prefactor     .40068        .22920        .27676E-06   -.11266E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5667
  norm       = 2.19809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.5317
  norm       = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 10.4441
  norm       = 0.0001
  Prefactor  = 6.21708
  Prefactor  = 6.77677
  Prefactor  = 104.708
  norm       = 6.35967
  Prefactor  = 4.35106
  Prefactor  = 1.72856
  norm       = 0.000100156
  Prefactor  = 0.0001
  Prefactor  = 89.6368
  norm       = 0.0001
  Prefactor  = 4.05202
  norm       = 44.0433
  Prefactor  = 0.0001
  Prefactor  = 1.03687
  Prefactor  = 0.0001
  Normalizat = 1.12177
  Prefactor  = 0.400676
 **********
 **   18 **HESSE 
 **********

 FCN=   4823.288     FROM HESSE     STATUS=OK           594 CALLS     4563 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.567        10.437        .12326E-03   -1.5058    
   4  norm          2.1981        .45500        .20366E-04   -1.5411    
   5  Prefactor     .10000E-03    2.9684        .17265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    60.191        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.532        17.966        .98531E-04   -1.4895    
   9  norm          .10000E-03    10.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    11.982        .16582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.444        19.208        .61992E-03   -1.5062    
  13  norm          .10000E-03    2.0424        .19085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2171        12.896        .80488E-03   -1.5209    
  15  Prefactor     6.7768        6.5382        .15418E-03   -1.5187    
  16  Prefactor     104.71        65.076        .19653E-03   -1.3658    
  17  norm          6.3597        2.1622        .48795E-04   -1.5204    
  18  Prefactor     4.3511        39.404        .19403E-03   -1.5291    
  19  Prefactor     1.7286        2.8872        .13394E-03   -1.5445    
  20  norm          .10016E-03    11.435        .69698E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    30.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     89.637        66.320        .42443E-04   -1.3812    
  23  norm          .10000E-03    .63979        .10677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.0520        104.88        .20011E-03   -1.5305    
  25  norm          44.043        8.8776        .60410E-04   -1.4380    
  26  Prefactor     .10000E-03    8.6880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.0369        5.4013        .26269E-03   -1.5504    
  28  Prefactor     .10000E-03    .89263        .63996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1218        .24732        .22976E-03   -.89056    
  30  Prefactor     .40068        .24881        .40324E-03   -1.1677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42699e-09
Minuit parameter uncertainties:
  1  4.18478e-07
  2  2.3408e-05
  3  10.4386
  4  0.454999
  5  1.47978e-05
  6  2.23798e-05
  7  1.38021e-05
  8  17.9723
  9  1.11853e-05
  10  0.000745617
  11  4.86764e-05
  12  19.2196
  13  8.36693e-06
  14  12.9018
  15  6.53886
  16  65.1205
  17  2.16226
  18  26.2105
  19  2.88744
  20  0.0026728
  21  6.58169e-05
  22  66.3753
  23  1.18966e-06
  24  41.3093
  25  8.87787
  26  7.36783e-06
  27  4.7335
  28  9.46127e-09
  29  0.247573
  30  0.249487
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  6.777e+00  6.539e+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:  4.007e-01  2.495e-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:  1.122e+00  2.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.65
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.69e-08 +/- 4.52e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.24e-05

TS (Fixed Index): 1.65
Ra Dec: 174.075 34.129
Photon Flux Upper Limit: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948112/likelihoodResults_413510401_413769601_4FGL_J1136.2+3407_daily_bin672.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): 0
logL (Free Index) = 4823.11008192
delta logL = 0.178046533094

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4823.08830666
delta logL = 0.199821791995

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2700       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1271       1.0000          .0000       10.000    
     3 'Normalizat'    1.1396       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38368       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=   4823.088     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      269 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2721        7.5203        .69704E-03   -.11895E-03
   2  Index         2.1274        .62033        .83798E-02   -.41729E-04
   3  Normalizat    1.1398        .22438        .22812E-03   -.22923E-03
   4  Prefactor     .38352        .24375        .41141E-03    .60185E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.27211
  Index      = 2.12736
  Normalizat = 1.1398
  Prefactor  = 0.383523
 **********
 **   18 **HESSE 
 **********

 FCN=   4823.088     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2721        7.5222        .27882E-04   -1.5133    
   2  Index         2.1274        .62046        .33519E-03   -.61203    
   3  Normalizat    1.1398        .22442        .45625E-04   -.88484    
   4  Prefactor     .38352        .24378        .16456E-04   -1.1766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60927e-10
Minuit parameter uncertainties:
  1  7.52306
  2  0.622859
  3  0.224611
  4  0.24444
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948112': 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) = 4823.08830601
delta logL = 0.19982244312

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  8.272e+00  7.523e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.127e+00  6.229e-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:  3.835e-01  2.444e-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:  1.140e+00  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.04
Ra Dec: 174.075 34.129
Photon Index (Free Index): 2.13 +/- 0.62
Photon Flux (Free Index): 3.61e-08 +/- 3.96e-08
Energy Flux (Free Index): 1.87e-05 +/- 2.12e-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/948112/cmap_HighResolution_413510401_413769601_4FGL_J1136.2+3407_daily_bin672.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', photon_flux='4.69e-08', energy_flux2='1.87e-05', photon_flux_error='4.52e-08', dlogl='2.00e-01', energy_flux='1.29e-05', photon_flux2='3.61e-08', job_status='DONE', time_completed='2021-09-04 05:17:54.939556', photon_index_error2='0.62', photon_index2='2.13', ts='1.65', fit_tolerance='1e-08', GAL='0.40', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='2.12e-05', EG='1.12', time_epoch_completed='1630757874.94', return_code='0', job_id='948112', GAL2='0.38', EG2='1.14', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='3.96e-08', ts2='2.04', photon_index='2.55' WHERE bin_id='672' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:17:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 948112: <4FGL_J1136.2+3407_daily_bin672> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin672 174.075 34.129 413510401 413769601 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 :                                   790.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            996 sec.

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

