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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin988
RA = 174.075, Dec = 34.129
tmin = 495417601, tmax = 495676801
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='950098', job_status='RUN', time_executed='2021-09-04 05:07:12.853955', time_epoch_executed='1630757232.85' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='988'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950098

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950098/ft1_4FGL_J1136.2+3407_daily_bin988.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950098/ft2_4FGL_J1136.2+3407_daily_bin988.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950098/ft1_4FGL_J1136.2+3407_daily_bin988.fits outfile=/scratch/kocevski/950098/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin988.fits ra=174.075 dec=34.129 rad=12.0 tmin=495417601.0 tmax=495676801.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 3.56
user 3.32
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950098/ft2_4FGL_J1136.2+3407_daily_bin988.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/950098/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin988.fits evtable="EVENTS" outfile="/scratch/kocevski/950098/ft1_filtered_4FGL_J1136.2+3407_daily_bin988.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/950098/ft1_filtered_4FGL_J1136.2+3407_daily_bin988.fits" evtable="EVENTS" scfile=/scratch/kocevski/950098/ft2_4FGL_J1136.2+3407_daily_bin988.fits sctable="SC_DATA" outfile=/scratch/kocevski/950098/ltcube_495417601_495676801_4FGL_J1136.2+3407_daily_bin988.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/950098/ft2_4FGL_J1136.2+3407_daily_bin988.fits
.....................!
real 11.80
user 11.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950098/ft1_filtered_4FGL_J1136.2+3407_daily_bin988.fits evtable="EVENTS" scfile=/scratch/kocevski/950098/ft2_4FGL_J1136.2+3407_daily_bin988.fits sctable="SC_DATA" expcube=/scratch/kocevski/950098/ltcube_495417601_495676801_4FGL_J1136.2+3407_daily_bin988.fits outfile=/scratch/kocevski/950098/expmap_495417601_495676801_4FGL_J1136.2+3407_daily_bin988.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/950098/ltcube_495417601_495676801_4FGL_J1136.2+3407_daily_bin988.fits
.....................!
real 189.89
user 185.18
sys 4.26

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/950098/ft1_filtered_4FGL_J1136.2+3407_daily_bin988.fits scfile=/scratch/kocevski/950098/ft2_4FGL_J1136.2+3407_daily_bin988.fits outfile=/scratch/kocevski/950098/cmap_495417601_495676801_4FGL_J1136.2+3407_daily_bin988.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.299       1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.679       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .27909       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5518       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10539E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    24.033       1.0000         .10000E-03   10000.    
     9 'norm      '    4.4668       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.419       1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5198       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    52.470       1.0000         .10000E-03   10000.    
    17 'norm      '    .10735E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.161       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .75237       1.0000         .10000E-03   10000.    
    20 'norm      '    11.435       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .76855       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.246       1.0000         .10000E-03   10000.    
    25 'norm      '    4.2069       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.8740       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.2112       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2082       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .87953       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=   6115.787     FROM MIGRAD    STATUS=CONVERGED    761 CALLS     4000 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.305        32.226        .52938E-06    .59951E-04
   2  Prefactor     38.687        54.798        .10038E-05    .46353E-04
   3  Prefactor     .10000E-03    5.6146        .45965E-07** at limit **
   4  norm          .27920        .19852       -.64818E-08    .57312E-04
   5  Prefactor     2.5531        3.5672        .30819E-06    .12770E-03
   6  Prefactor     .10000E-03    21.777       -.53473E-07** at limit **
   7  Prefactor     .10000E-03    14.829       -.30283E-07** at limit **
   8  norm          24.044        18.812        .23783E-06    .13018E-03
   9  norm          4.4777        16.347        .40064E-06    .25866E-04
  10  Prefactor     .10000E-03    1.7106        .22994E-08** at limit **
  11  Prefactor     .10000E-03    14.576        .10593E-06** at limit **
  12  Prefactor     24.431        27.098        .64585E-06    .10739E-03
  13  norm          .10000E-03    .70656       -.10957E-06** at limit **
  14  Prefactor     8.5202        16.381       -.43155E-06   -.12880E-04
  15  Prefactor     .10000E-03    2.8288        .55295E-07** at limit **
  16  Prefactor     52.454        39.938        .95153E-06    .24241E-03
  17  norm          .10000E-03    .67447       -.85344E-06** at limit **
  18  Prefactor     23.154        21.943       -.81205E-06   -.99298E-04
  19  Prefactor     .75464        1.7685        .36392E-06    .11643E-03
  20  norm          11.434        10.082        .30445E-06    .18980E-03
  21  Prefactor     .10000E-03    9.4004       -.75189E-08** at limit **
  22  Prefactor     .10000E-03    29.790        .37641E-06** at limit **
  23  norm          .76965        1.0067        .45071E-07    .94209E-04
  24  Prefactor     12.249        31.418        .62430E-06    .41731E-04
  25  norm          4.2071        2.9739       -.39554E-07   -.56804E-04
  26  Prefactor     .10000E-03    4.0316        .88636E-08** at limit **
  27  Prefactor     1.8740        1.8927       -.13161E-07    .45139E-05
  28  Prefactor     5.2116        2.7113        .93470E-08    .48564E-04
  29  Normalizat    1.2074        .19061        .60775E-06    .37706E-03
  30  Prefactor     .88018        .20701       -.32698E-06    .28073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.3053
  Prefactor  = 38.6866
  Prefactor  = 0.0001
  norm       = 0.279196
  Prefactor  = 2.55312
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.0436
  norm       = 4.47773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.4307
  norm       = 0.0001
  Prefactor  = 8.52018
  Prefactor  = 0.0001
  Prefactor  = 52.4544
  norm       = 0.0001
  Prefactor  = 23.154
  Prefactor  = 0.75464
  norm       = 11.4336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.769653
  Prefactor  = 12.2489
  norm       = 4.20711
  Prefactor  = 0.0001
  Prefactor  = 1.874
  Prefactor  = 5.21157
  Normalizat = 1.20742
  Prefactor  = 0.880179
 **********
 **   18 **HESSE 
 **********

 FCN=   6115.787     FROM HESSE     STATUS=OK           590 CALLS     4590 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.305        32.249        .81261E-04   -1.4722    
   2  Prefactor     38.687        54.945        .64447E-04   -1.4463    
   3  Prefactor     .10000E-03    5.6225        .18086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .27920        .19817        .28291E-04   -1.5602    
   5  Prefactor     2.5531        3.5443        .16280E-03   -1.5388    
   6  Prefactor     .10000E-03    21.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          24.044        18.829        .81709E-04   -1.4727    
   9  norm          4.4777        16.295        .19052E-03   -1.5285    
  10  Prefactor     .10000E-03    1.7689        .19937E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.431        27.124        .81062E-04   -1.4719    
  13  norm          .10000E-03    .71161        .64219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.5202        16.365        .13734E-03   -1.5124    
  15  Prefactor     .10000E-03    2.8518        .12834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     52.454        41.341        .55369E-04   -1.4258    
  17  norm          .10000E-03    .79927        .10401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.154        21.944        .83231E-04   -1.4745    
  19  Prefactor     .75464        1.7065        .14799E-03   -1.5534    
  20  norm          11.434        10.122        .11847E-03   -1.5032    
  21  Prefactor     .10000E-03    9.4116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .76965        .90352        .85339E-03   -1.5533    
  24  Prefactor     12.249        31.505        .11447E-03   -1.5008    
  25  norm          4.2071        2.9696        .10570E-03   -1.5298    
  26  Prefactor     .10000E-03    4.0451        .15331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.8740        1.8978        .10185E-03   -1.5434    
  28  Prefactor     5.2116        2.7086        .89015E-04   -1.5251    
  29  Normalizat    1.2074        .22879        .23966E-03   -.86374    
  30  Prefactor     .88018        .24409        .31151E-03   -.96837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.75732e-10
Minuit parameter uncertainties:
  1  32.2721
  2  55.0174
  3  7.03277e-06
  4  0.198174
  5  3.5446
  6  8.41303e-05
  7  1.45576e-05
  8  18.8335
  9  16.3109
  10  2.2463e-06
  11  1.47438e-05
  12  27.1372
  13  8.34122e-07
  14  16.3741
  15  1.81596e-06
  16  41.3633
  17  2.75899e-05
  18  21.9515
  19  1.7066
  20  10.1236
  21  4.66331e-06
  22  9.83604e-05
  23  0.903534
  24  31.5481
  25  2.96966
  26  1.80645e-06
  27  1.89788
  28  2.70871
  29  0.228983
  30  0.24439
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  1.816e-06  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:  8.802e-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.207e+00  2.290e-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: 7.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950098/likelihoodResults_495417601_495676801_4FGL_J1136.2+3407_daily_bin988.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) = 6115.7888113
delta logL = -0.00166709272889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6115.78714425
delta logL = -4.78476067656e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5570       1.0000          .0000       10.000    
     3 'Normalizat'    1.2074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88019       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=   6115.787     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10015E-03    103.94        .12840E-02** at limit **
   2  Index         2.5850        6.1944        .50000       -.92045E-05
   3  Normalizat    1.2074        .28553E-01    .23966E-03   -.40747E-04
   4  Prefactor     .88018        .32372E-01    .31151E-03   -.13722E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100147
  Index      = 2.585
  Normalizat = 1.20742
  Prefactor  = 0.880179
 **********
 **   18 **HESSE 
 **********

 FCN=   6115.787     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10015E-03    415.76        .25680E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5850        8.7073        .50000       -.50408    
   3  Normalizat    1.2074        .70485E-01    .95866E-05   -.86374    
   4  Prefactor     .88018        .79880E-01    .12460E-04   -.96837    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.30888e-08
Minuit parameter uncertainties:
  1  0.0157318
  2  1283.86
  3  0.0704904
  4  0.079891
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950098': 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) = 6115.78714415
delta logL = 5.19739842275e-08

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.001e-04  1.573e-02  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.585e+00  1.284e+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:  8.802e-01  7.989e-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:  1.207e+00  7.049e-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/950098/cmap_HighResolution_495417601_495676801_4FGL_J1136.2+3407_daily_bin988.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-03', job_status='DONE', photon_flux_upper_limit='7.28e-08', time_completed='2021-09-04 05:21:57.058330', job_id='950098', GAL2='0.88', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630758117.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='5.20e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='988' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:21:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 950098: <4FGL_J1136.2+3407_daily_bin988> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin988> 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) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:07:02 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:02 2021
Terminated at Sat Sep  4 05:21:57 2021
Results reported at Sat Sep  4 05:21:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin988 174.075 34.129 495417601 495676801 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 :                                   880.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            896 sec.

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

