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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin662
RA = 174.075, Dec = 34.129
tmin = 410918401, tmax = 411177601
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='948098', job_status='RUN', time_executed='2021-09-04 05:03:34.454496', time_epoch_executed='1630757014.45' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948098

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948098/ft1_4FGL_J1136.2+3407_daily_bin662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948098/ft2_4FGL_J1136.2+3407_daily_bin662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948098/ft1_4FGL_J1136.2+3407_daily_bin662.fits outfile=/scratch/kocevski/948098/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin662.fits ra=174.075 dec=34.129 rad=12.0 tmin=410918401.0 tmax=411177601.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 7.27
user 6.73
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948098/ft1_filtered_4FGL_J1136.2+3407_daily_bin662.fits" evtable="EVENTS" scfile=/scratch/kocevski/948098/ft2_4FGL_J1136.2+3407_daily_bin662.fits sctable="SC_DATA" outfile=/scratch/kocevski/948098/ltcube_410918401_411177601_4FGL_J1136.2+3407_daily_bin662.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/948098/ft2_4FGL_J1136.2+3407_daily_bin662.fits
.....................!
real 12.25
user 11.86
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948098/ft1_filtered_4FGL_J1136.2+3407_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/948098/ft2_4FGL_J1136.2+3407_daily_bin662.fits sctable="SC_DATA" expcube=/scratch/kocevski/948098/ltcube_410918401_411177601_4FGL_J1136.2+3407_daily_bin662.fits outfile=/scratch/kocevski/948098/expmap_410918401_411177601_4FGL_J1136.2+3407_daily_bin662.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/948098/ltcube_410918401_411177601_4FGL_J1136.2+3407_daily_bin662.fits
.....................!
real 191.61
user 185.97
sys 4.98

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/948098/ft1_filtered_4FGL_J1136.2+3407_daily_bin662.fits scfile=/scratch/kocevski/948098/ft2_4FGL_J1136.2+3407_daily_bin662.fits outfile=/scratch/kocevski/948098/cmap_410918401_411177601_4FGL_J1136.2+3407_daily_bin662.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948098/ft1_filtered_4FGL_J1136.2+3407_daily_bin662.fits scfile=/scratch/kocevski/948098/ft2_4FGL_J1136.2+3407_daily_bin662.fits outfile=/scratch/kocevski/948098/cmap_HighResolution_410918401_411177601_4FGL_J1136.2+3407_daily_bin662.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.597       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.803       1.0000         .10000E-03   10000.    
     4 'norm      '    2.6020       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4322       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    36.114       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18517       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.3573       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    101.79       1.0000         .10000E-03   10000.    
    17 'norm      '    8.3860       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.0917       1.0000         .10000E-03   10000.    
    20 'norm      '    4.7787       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.3180       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.8028       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.7271       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.7550       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .64465       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1854       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=   3843.988     FROM MIGRAD    STATUS=CONVERGED    814 CALLS     3949 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.090       -.23643E-06** at limit **
   2  Prefactor     41.774        140.93        .49796E-06   -.10201E-04
   3  Prefactor     16.801        12.666        .12789E-07   -.11262E-04
   4  norm          2.6021        .61186        .89356E-08   -.16647E-03
   5  Prefactor     1.4321        2.8461        .26262E-06    .10805E-04
   6  Prefactor     .10000E-03    8.9255       -.11310E-06** at limit **
   7  Prefactor     .10000E-03    16.260       -.62103E-07** at limit **
   8  norm          36.116        19.683       -.53405E-07   -.15808E-03
   9  norm          .10000E-03    6.1630       -.41793E-07** at limit **
  10  Prefactor     .17024        2.4721        .55681E-06   -.48334E-03
  11  Prefactor     .10000E-03    50.338       -.35989E-06** at limit **
  12  Prefactor     .10000E-03    41.666        .46873E-06** at limit **
  13  norm          6.3602        4.9647        .19303E-07   -.18884E-03
  14  Prefactor     .10000E-03    24.364        .88099E-07** at limit **
  15  Prefactor     .10000E-03    6.0335       -.40633E-07** at limit **
  16  Prefactor     101.76        89.620        .11898E-05    .78810E-04
  17  norm          8.3849        2.8106       -.37407E-07   -.12420E-03
  18  Prefactor     .10000E-03    47.937       -.12640E-05** at limit **
  19  Prefactor     5.0891        3.5696        .12964E-05   -.17319E-04
  20  norm          4.7790        10.666        .23039E-06   -.35712E-05
  21  Prefactor     .10000E-03    55.093        .48173E-06** at limit **
  22  Prefactor     .10000E-03    37.698        .39949E-07** at limit **
  23  norm          .10000E-03    .74887       -.40021E-07** at limit **
  24  Prefactor     .10000E-03    48.917        .23581E-06** at limit **
  25  norm          4.3174        4.1219        .27665E-07   -.10003E-04
  26  Prefactor     7.8001        8.4967        .33717E-06    .23903E-03
  27  Prefactor     4.7271        3.8718        .44180E-07   -.96965E-05
  28  Prefactor     3.7541        3.9137        .14048E-06   -.10265E-04
  29  Normalizat    .64491        .23531       -.18201E-05   -.32065E-04
  30  Prefactor     1.1852        .26634        .18438E-06   -.56867E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 41.7739
  Prefactor  = 16.8013
  norm       = 2.60214
  Prefactor  = 1.43214
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 36.1161
  norm       = 0.0001
  Prefactor  = 0.170238
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.36021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 101.759
  norm       = 8.38487
  Prefactor  = 0.000100001
  Prefactor  = 5.08914
  norm       = 4.77901
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.3174
  Prefactor  = 7.80015
  Prefactor  = 4.72707
  Prefactor  = 3.75407
  Normalizat = 0.644914
  Prefactor  = 1.1852
 **********
 **   18 **HESSE 
 **********

 FCN=   3843.988     FROM HESSE     STATUS=OK           584 CALLS     4533 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     41.774        141.12        .61423E-04   -1.4414    
   3  Prefactor     16.801        12.659        .97708E-04   -1.4888    
   4  norm          2.6021        .61243        .22757E-04   -1.5385    
   5  Prefactor     1.4321        2.8016        .14098E-03   -1.5469    
   6  Prefactor     .10000E-03    8.9429        .18089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          36.116        19.684        .33344E-03   -1.4505    
   9  norm          .10000E-03    6.1748        .15032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .17024        14.264        .17346E-02   -1.5625    
  11  Prefactor     .10000E-03    50.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    42.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.3602        4.9661        .10992E-03   -1.5204    
  14  Prefactor     .10000E-03    24.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.1096        .14854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     101.76        90.024        .39850E-04   -1.3687    
  17  norm          8.3849        2.8201        .52103E-04   -1.5129    
  18  Prefactor     .10000E-03    48.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.0891        3.5776        .45603E-03   -1.5257    
  20  norm          4.7790        10.655        .18405E-03   -1.5271    
  21  Prefactor     .10000E-03    55.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    37.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .77374        .10458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    49.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.3174        4.1245        .10259E-03   -1.5292    
  26  Prefactor     7.8001        8.5070        .14355E-03   -1.5149    
  27  Prefactor     4.7271        3.8753        .92511E-04   -1.5273    
  28  Prefactor     3.7541        3.8838        .11143E-03   -1.5320    
  29  Normalizat    .64491        .27368        .31125E-03   -1.0611    
  30  Prefactor     1.1852        .31485        .27928E-03   -.86788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1425e-09
Minuit parameter uncertainties:
  1  5.8966e-05
  2  142.274
  3  12.6614
  4  0.612434
  5  2.8019
  6  1.49791e-06
  7  6.59963e-06
  8  19.6874
  9  2.83631e-07
  10  3.11643
  11  0.000212932
  12  0.000235582
  13  4.96647
  14  5.47004e-05
  15  9.25476e-07
  16  90.145
  17  2.82014
  18  0.00044149
  19  3.57777
  20  10.6592
  21  0.000264292
  22  3.33648e-05
  23  4.54892e-07
  24  0.00010885
  25  4.12478
  26  8.5083
  27  3.87547
  28  3.88409
  29  0.274262
  30  0.315354
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  9.255e-07  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.185e+00  3.154e-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:  6.449e-01  2.743e-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: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948098/likelihoodResults_410918401_411177601_4FGL_J1136.2+3407_daily_bin662.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) = 3843.98925807
delta logL = -0.000778967095812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3843.98848012
delta logL = -1.01789964901e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5928       1.0000          .0000       10.000    
     3 'Normalizat'    .64451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1857       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=   3843.988     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      281 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    18.390        .15486E-02** at limit **
   2  Index         2.6231        5.8928        .50000       -.44604E-04
   3  Normalizat    .64491        .25981        .31126E-03   -.12484E-03
   4  Prefactor     1.1852        .30976        .27928E-03   -.20897E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Index      = 2.62314
  Normalizat = 0.644915
  Prefactor  = 1.1852
 **********
 **   18 **HESSE 
 **********

 FCN=   3843.988     FROM HESSE     STATUS=OK            29 CALLS      310 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6.8487        .30972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6231        6.3069        .50000       -.49539    
   3  Normalizat    .64491        .26001        .12450E-04   -1.0611    
   4  Prefactor     1.1852        .31001        .55857E-04   -.86788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56353e-09
Minuit parameter uncertainties:
  1  0.000611373
  2  4.46115
  3  0.260505
  4  0.310487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948098': 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) = 3843.98847841
delta logL = 6.9147472459e-07

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  6.114e-04  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.623e+00  4.461e+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:  1.185e+00  3.105e-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:  6.449e-01  2.605e-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/948098/cmap_HighResolution_410918401_411177601_4FGL_J1136.2+3407_daily_bin662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.90e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-04 05:15:16.710413', job_id='948098', GAL2='1.19', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1630757716.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='6.91e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='662' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:15:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 948098: <4FGL_J1136.2+3407_daily_bin662> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin662 174.075 34.129 410918401 411177601 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 :                                   698.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            840 sec.

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

