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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin601
RA = 174.075, Dec = 34.129
tmin = 395107201, tmax = 395366401
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='948006', job_status='RUN', time_executed='2021-09-04 05:01:30.583269', time_epoch_executed='1630756890.58' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948006

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

Retrieving the FT1 file...

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

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

Retrieving 55 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948006/ft1_4FGL_J1136.2+3407_daily_bin601.fits


Retrieving the FT1 file...

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

Retrieving 55 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948006/ft2_4FGL_J1136.2+3407_daily_bin601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948006/ft1_4FGL_J1136.2+3407_daily_bin601.fits outfile=/scratch/kocevski/948006/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin601.fits ra=174.075 dec=34.129 rad=12.0 tmin=395107201.0 tmax=395366401.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 8.00
user 7.63
sys 0.29

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948006/ft1_filtered_4FGL_J1136.2+3407_daily_bin601.fits evtable="EVENTS" scfile=/scratch/kocevski/948006/ft2_4FGL_J1136.2+3407_daily_bin601.fits sctable="SC_DATA" expcube=/scratch/kocevski/948006/ltcube_395107201_395366401_4FGL_J1136.2+3407_daily_bin601.fits outfile=/scratch/kocevski/948006/expmap_395107201_395366401_4FGL_J1136.2+3407_daily_bin601.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/948006/ltcube_395107201_395366401_4FGL_J1136.2+3407_daily_bin601.fits
.....................!
real 190.61
user 185.05
sys 5.18

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/948006/ft1_filtered_4FGL_J1136.2+3407_daily_bin601.fits scfile=/scratch/kocevski/948006/ft2_4FGL_J1136.2+3407_daily_bin601.fits outfile=/scratch/kocevski/948006/cmap_395107201_395366401_4FGL_J1136.2+3407_daily_bin601.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.54
user 0.33
sys 0.18

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5903       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.7525       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.933       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.2420       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8891       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.297       1.0000         .10000E-03   10000.    
    13 'norm      '    3.7695       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4904       1.0000         .10000E-03   10000.    
    17 'norm      '    3.7665       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.385       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0150       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    75.636       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.1276       1.0000         .10000E-03   10000.    
    25 'norm      '    10.435       1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.448       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .18153E-02   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0207       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .82023       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=   5752.686     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     3382 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6558        64.384        .29024E-05   -.11066E-04
   2  Prefactor     .10000E-03    37.375       -.42412E-06** at limit **
   3  Prefactor     .10000E-03    8.2753       -.15436E-06** at limit **
   4  norm          2.7524        .50437       -.22385E-08   -.61101E-03
   5  Prefactor     .10000E-03    1.4873        .48371E-07** at limit **
   6  Prefactor     14.938        18.017        .71751E-06   -.10441E-03
   7  Prefactor     .10000E-03    8.0994        .57105E-07** at limit **
   8  norm          .10000E-03    4.8037       -.97502E-07** at limit **
   9  norm          2.2420        16.472        .10607E-05   -.47809E-05
  10  Prefactor     1.8893        2.1942        .54713E-08   -.22274E-03
  11  Prefactor     .10000E-03    21.898       -.21438E-05** at limit **
  12  Prefactor     50.304        25.449        .43125E-06   -.16646E-03
  13  norm          3.7698        2.5871       -.44773E-06   -.94936E-03
  14  Prefactor     .10000E-03    14.364       -.71577E-07** at limit **
  15  Prefactor     .10000E-03    2.7767       -.30030E-07** at limit **
  16  Prefactor     3.4023        303.08        .30996E-04   -.42889E-04
  17  norm          3.7673        1.7689       -.56029E-06   -.16575E-02
  18  Prefactor     12.391        15.029        .36741E-06   -.67843E-04
  19  Prefactor     1.0166        1.6800        .54186E-07   -.23621E-03
  20  norm          .10000E-03    5.0726       -.13547E-06** at limit **
  21  Prefactor     75.636        33.409       -.81922E-06   -.81094E-04
  22  Prefactor     .10000E-03    23.367        .24204E-05** at limit **
  23  norm          .10000E-03    .44148        .10779E-06** at limit **
  24  Prefactor     1.1277        89.694        .35963E-04    .70963E-04
  25  norm          10.439        4.2137        .50300E-07   -.11457E-02
  26  Prefactor     20.449        11.930       -.10642E-06   -.11794E-03
  27  Prefactor     .10000E-03    1.4448       -.36234E-07** at limit **
  28  Prefactor     .10039E-03    1.8989        .21128E-05** at limit **
  29  Normalizat    1.0208        .20254        .14570E-06   -.43500E-03
  30  Prefactor     .82004        .21126       -.29234E-05   -.46281E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.65582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.75239
  Prefactor  = 0.0001
  Prefactor  = 14.9377
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.24204
  Prefactor  = 1.88927
  Prefactor  = 0.0001
  Prefactor  = 50.3041
  norm       = 3.76984
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.40233
  norm       = 3.76732
  Prefactor  = 12.3907
  Prefactor  = 1.01656
  norm       = 0.0001
  Prefactor  = 75.6361
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.12772
  norm       = 10.4392
  Prefactor  = 20.4493
  Prefactor  = 0.0001
  Prefactor  = 0.000100385
  Normalizat = 1.02083
  Prefactor  = 0.820036
 **********
 **   18 **HESSE 
 **********

 FCN=   5752.686     FROM HESSE     STATUS=OK           584 CALLS     3966 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6558        64.371        .16991E-03   -1.5232    
   2  Prefactor     .10000E-03    37.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.3078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.7524        .50575        .21652E-04   -1.5376    
   5  Prefactor     .10000E-03    1.5015        .90268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.938        18.051        .10365E-03   -1.4935    
   7  Prefactor     .10000E-03    8.1120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.8062        .16234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.2420        16.420        .27448E-03   -1.5408    
  10  Prefactor     1.8893        2.1711        .11541E-03   -1.5433    
  11  Prefactor     .10000E-03    21.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     50.304        25.429        .56546E-04   -1.4288    
  13  norm          3.7698        2.5815        .94256E-04   -1.5320    
  14  Prefactor     .10000E-03    14.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8104        .12335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4023        305.64        .21642E-03   -1.5339    
  17  norm          3.7673        1.7695        .52954E-04   -1.5320    
  18  Prefactor     12.391        14.954        .11382E-03   -1.5004    
  19  Prefactor     1.0166        1.4402        .12072E-02   -1.5506    
  20  norm          .10000E-03    5.0859        .16683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     75.636        33.489        .46169E-04   -1.3966    
  22  Prefactor     .10000E-03    23.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .76855        .97525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.1277        91.094        .22032E-02   -1.5496    
  25  norm          10.439        4.0413        .91223E-04   -1.5062    
  26  Prefactor     20.449        11.946        .88574E-04   -1.4803    
  27  Prefactor     .10000E-03    1.4587        .88694E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10039E-03    18.847        .17506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0208        .23302        .26043E-03   -.92336    
  30  Prefactor     .82004        .24206        .32269E-03   -.98994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07779e-08
Minuit parameter uncertainties:
  1  38.2128
  2  3.77373e-05
  3  2.67547e-05
  4  0.505753
  5  2.97978e-06
  6  18.058
  7  3.41642e-05
  8  1.0936e-05
  9  12.1395
  10  2.1712
  11  0.000149019
  12  25.4344
  13  2.58153
  14  0.00015733
  15  1.09615e-06
  16  64.8381
  17  1.7695
  18  14.9581
  19  1.4403
  20  1.25372e-05
  21  33.4978
  22  0.00016855
  23  2.59481e-06
  24  20.3022
  25  4.04143
  26  11.9479
  27  8.25926e-06
  28  0.0053919
  29  0.233253
  30  0.242377
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  1.096e-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.200e-01  2.424e-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.021e+00  2.333e-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.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948006/likelihoodResults_395107201_395366401_4FGL_J1136.2+3407_daily_bin601.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) = 5752.68808547
delta logL = -0.00168957426376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5752.68639592
delta logL = -1.63809090736e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5622       1.0000          .0000       10.000    
     3 'Normalizat'    1.0208       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82005       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=   5752.680     FROM MIGRAD    STATUS=CONVERGED    137 CALLS      288 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13555E-01    .96051E-01    .79889E-02   -.35837E-02
   2  Index         5.5197        .97421        .50000       -.55959E-05
   3  Normalizat    1.0135        .21400        .26043E-03   -.10752E-03
   4  Prefactor     .82516        .24004        .32269E-03   -.54572E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0135548
  Index      = 5.51973
  Normalizat = 1.01347
  Prefactor  = 0.825158
 **********
 **   18 **HESSE 
 **********

 FCN=   5752.680     FROM HESSE     STATUS=OK            31 CALLS      319 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13555E-01    .33097        .45474E-03   -1.5731    
   2  Index         5.5197        7.1232        .14594E-01    3.0375    
   3  Normalizat    1.0135        .22453        .10417E-04   -.92581    
   4  Prefactor     .82516        .24490        .12908E-04   -.98808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94424e-08
Minuit parameter uncertainties:
  1  0.133466
  2  5.7669
  3  0.224738
  4  0.245229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948006': 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) = 5752.68043594
delta logL = 0.00595995861386

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.355e-02  1.335e-01  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  5.520e+00  5.767e+00  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.252e-01  2.452e-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.013e+00  2.247e-01  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/948006/cmap_HighResolution_395107201_395366401_4FGL_J1136.2+3407_daily_bin601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.52e-03', job_status='DONE', photon_flux_upper_limit='7.08e-08', time_completed='2021-09-04 05:15:22.963486', job_id='948006', GAL2='0.83', fit_tolerance='1e-08', EG2='1.01', EG='1.02', time_epoch_completed='1630757722.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='5.96e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='601' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:15:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 948006: <4FGL_J1136.2+3407_daily_bin601> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin601 174.075 34.129 395107201 395366401 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 :                                   827.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            851 sec.

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

