/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 9 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 = 7680
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1136.2+3407_daily_bin256
RA = 174.075, Dec = 34.129
tmin = 305683201, tmax = 305942401
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='945678', job_status='RUN', time_executed='2021-09-04 04:52:59.298618', time_epoch_executed='1630756379.3' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='256'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945678

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945678/ft1_4FGL_J1136.2+3407_daily_bin256.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945678/ft2_4FGL_J1136.2+3407_daily_bin256.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945678/ft1_4FGL_J1136.2+3407_daily_bin256.fits outfile=/scratch/kocevski/945678/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin256.fits ra=174.075 dec=34.129 rad=12.0 tmin=305683201.0 tmax=305942401.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 4.70
user 4.45
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945678/ft1_filtered_4FGL_J1136.2+3407_daily_bin256.fits evtable="EVENTS" scfile=/scratch/kocevski/945678/ft2_4FGL_J1136.2+3407_daily_bin256.fits sctable="SC_DATA" expcube=/scratch/kocevski/945678/ltcube_305683201_305942401_4FGL_J1136.2+3407_daily_bin256.fits outfile=/scratch/kocevski/945678/expmap_305683201_305942401_4FGL_J1136.2+3407_daily_bin256.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/945678/ltcube_305683201_305942401_4FGL_J1136.2+3407_daily_bin256.fits
.....................!
real 190.01
user 184.67
sys 4.92

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/945678/ft1_filtered_4FGL_J1136.2+3407_daily_bin256.fits scfile=/scratch/kocevski/945678/ft2_4FGL_J1136.2+3407_daily_bin256.fits outfile=/scratch/kocevski/945678/cmap_305683201_305942401_4FGL_J1136.2+3407_daily_bin256.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/945678/ft1_filtered_4FGL_J1136.2+3407_daily_bin256.fits scfile=/scratch/kocevski/945678/ft2_4FGL_J1136.2+3407_daily_bin256.fits outfile=/scratch/kocevski/945678/cmap_HighResolution_305683201_305942401_4FGL_J1136.2+3407_daily_bin256.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/945678/ft1_filtered_4FGL_J1136.2+3407_daily_bin256.fits evtable="EVENTS" scfile=/scratch/kocevski/945678/ft2_4FGL_J1136.2+3407_daily_bin256.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/945678/Model_4FGL_J1136.2+3407_daily_bin256.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/945678/ft1_filtered_4FGL_J1136.2+3407_daily_bin256.fits....................!
real 56.81
user 55.39
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .35625E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3311       1.0000         .10000E-03   10000.    
     4 'norm      '    1.0874       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    33.928       1.0000         .10000E-03   10000.    
     9 'norm      '    5.5687       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9501       1.0000         .10000E-03   10000.    
    16 'Prefactor '    46.124       1.0000         .10000E-03   10000.    
    17 'norm      '    1.0459       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.831       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .80519       1.0000         .10000E-03   10000.    
    20 'norm      '    10.784       1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.861       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.648       1.0000         .10000E-03   10000.    
    23 'norm      '    12.630       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10774E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.2054       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.9972       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.9535       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3237       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .62764       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=   6560.281     FROM MIGRAD    STATUS=CONVERGED    784 CALLS     3957 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1077        .64616E-07** at limit **
   2  Prefactor     .10001E-03    113.11        .69369E-05** at limit **
   3  Prefactor     5.3346        10.380       -.10062E-05   -.14420E-03
   4  norm          1.0875        .27673        .14290E-08   -.68908E-04
   5  Prefactor     .10000E-03    2.1569       -.65019E-06** at limit **
   6  Prefactor     .10000E-03    2.9909        .74922E-07** at limit **
   7  Prefactor     .10000E-03    4.6158        .29830E-07** at limit **
   8  norm          33.939        15.184        .59283E-06    .19804E-03
   9  norm          5.5754        12.397        .54098E-05   -.17144E-03
  10  Prefactor     .10000E-03    .77231        .63986E-07** at limit **
  11  Prefactor     .10000E-03    12.664        .74299E-08** at limit **
  12  Prefactor     .10000E-03    6.9252       -.22343E-07** at limit **
  13  norm          .10000E-03    .89958        .63203E-07** at limit **
  14  Prefactor     .10000E-03    4.6786        .17125E-07** at limit **
  15  Prefactor     4.9505        4.0360        .67611E-08   -.26270E-04
  16  Prefactor     46.158        43.133        .35142E-06    .85357E-06
  17  norm          1.0485        1.0631        .51968E-07    .53213E-04
  18  Prefactor     24.825        22.593       -.64245E-06   -.10077E-04
  19  Prefactor     .80352        2.0291        .73089E-06   -.70255E-04
  20  norm          10.785        9.5039        .10760E-05    .27291E-03
  21  Prefactor     30.866        26.256       -.46867E-06   -.65545E-04
  22  Prefactor     13.536        48.412       -.36649E-05   -.53887E-04
  23  norm          12.631        2.2390        .73941E-08   -.63228E-04
  24  Prefactor     .10000E-03    32.215       -.28379E-06** at limit **
  25  norm          6.2057        3.1064        .45749E-08   -.11002E-05
  26  Prefactor     6.9975        6.1943        .60912E-07   -.37770E-06
  27  Prefactor     .10000E-03    1.0530        .10798E-07** at limit **
  28  Prefactor     3.9540        2.9881        .88635E-07   -.28240E-04
  29  Normalizat    1.3232        .18539        .73035E-08   -.50673E-04
  30  Prefactor     .62813        .20312       -.12490E-05   -.17069E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 5.33462
  norm       = 1.08749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 33.9388
  norm       = 5.57541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.95051
  Prefactor  = 46.158
  norm       = 1.04845
  Prefactor  = 24.8253
  Prefactor  = 0.803516
  norm       = 10.7849
  Prefactor  = 30.8664
  Prefactor  = 13.5363
  norm       = 12.6306
  Prefactor  = 0.0001
  norm       = 6.20566
  Prefactor  = 6.99753
  Prefactor  = 0.0001
  Prefactor  = 3.95399
  Normalizat = 1.32319
  Prefactor  = 0.628128
 **********
 **   18 **HESSE 
 **********

 FCN=   6560.281     FROM HESSE     STATUS=OK           588 CALLS     4545 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    115.65        .21316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.3346        10.451        .17406E-03   -1.5246    
   4  norm          1.0875        .27750        .20858E-04   -1.5499    
   5  Prefactor     .10000E-03    2.2355        .23096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9926        .13679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6212        .16994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          33.939        15.269        .68797E-04   -1.4542    
   9  norm          5.5754        12.643        .85123E-03   -1.5236    
  10  Prefactor     .10000E-03    .78636        .69457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.9395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .91253        .74944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.6883        .17109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.9505        4.0365        .14135E-03   -1.5263    
  16  Prefactor     46.158        42.673        .59037E-04   -1.4348    
  17  norm          1.0485        1.0105        .71640E-04   -1.5503    
  18  Prefactor     24.825        22.220        .80387E-04   -1.4711    
  19  Prefactor     .80352        1.9616        .16632E-03   -1.5529    
  20  norm          10.785        9.6403        .12200E-03   -1.5051    
  21  Prefactor     30.866        26.381        .72125E-04   -1.4596    
  22  Prefactor     13.536        48.729        .10842E-03   -1.4972    
  23  norm          12.631        2.2396        .48433E-04   -1.4997    
  24  Prefactor     .10000E-03    32.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.2057        3.1022        .96441E-04   -1.5210    
  26  Prefactor     6.9975        6.1968        .15166E-03   -1.5179    
  27  Prefactor     .10000E-03    1.0618        .81026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.9540        2.9823        .11564E-03   -1.5310    
  29  Normalizat    1.3232        .21707        .23247E-03   -.82877    
  30  Prefactor     .62813        .23258        .37179E-03   -1.0641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62389e-10
Minuit parameter uncertainties:
  1  3.02149e-06
  2  0.00172707
  3  10.4546
  4  0.277501
  5  1.41996e-05
  6  1.65544e-06
  7  2.46217e-06
  8  15.2705
  9  12.6486
  10  3.60016e-07
  11  3.95649e-06
  12  7.31491e-06
  13  2.31705e-07
  14  2.05634e-06
  15  4.0367
  16  42.7012
  17  1.01051
  18  22.2274
  19  1.96172
  20  9.64168
  21  26.3912
  22  48.873
  23  2.23963
  24  1.47361e-05
  25  3.10224
  26  6.19737
  27  2.32197e-07
  28  2.98238
  29  0.217217
  30  0.232942
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  4.951e+00  4.037e+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:  6.281e-01  2.329e-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.323e+00  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.48
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 3.43e-08 +/- 2.79e-08
Energy Flux (Fixed Index): 9.40e-06 +/- 7.66e-06

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) = 6558.61612502
delta logL = 1.66535518552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6558.5719506
delta logL = 1.70952960479

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6174       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3829       1.0000          .0000       10.000    
     3 'Normalizat'    1.3466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61469       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.

 FCN=   6558.572     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      217 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6230        3.1420        .53108E-02   -.12676E-03
   2  Index         1.3826        .34604        .20822       -.67513E-04
   3  Normalizat    1.3463        .17618        .52198E-01    .18184E-04
   4  Prefactor     .61502        .20237        .84743E-01    .58139E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.62296
  Index      = 1.38262
  Normalizat = 1.34631
  Prefactor  = 0.615019
 **********
 **   18 **HESSE 
 **********

 FCN=   6558.572     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6230        4.1446        .12702E-03   -1.5327    
   2  Index         1.3826        .54330        .77362E-02   -.80882    
   3  Normalizat    1.3463        .20178        .23078E-03   -.82194    
   4  Prefactor     .61502        .23126        .37540E-03   -1.0696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85205e-09
Minuit parameter uncertainties:
  1  4.14488
  2  0.545572
  3  0.201903
  4  0.231621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945678': 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) = 6558.57194689
delta logL = 1.7095333147

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  3.623e+00  4.145e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  1.383e+00  5.456e-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:  6.150e-01  2.316e-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.346e+00  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.90
Ra Dec: 174.075 34.129
Photon Index (Free Index): 1.38 +/- 0.55
Photon Flux (Free Index): 1.11e-08 +/- 1.17e-08
Energy Flux (Free Index): 5.18e-05 +/- 7.47e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/945678/cmap_HighResolution_305683201_305942401_4FGL_J1136.2+3407_daily_bin256.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.43e-08', energy_flux2='5.18e-05', photon_flux_error='2.79e-08', dlogl='1.71e+00', energy_flux='9.40e-06', photon_flux2='1.11e-08', job_status='DONE', time_completed='2021-09-04 05:06:51.935589', photon_index_error2='0.55', photon_index2='1.38', ts='5.48', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='7.47e-05', EG='1.32', time_epoch_completed='1630757211.94', return_code='0', job_id='945678', GAL2='0.62', EG2='1.35', return_code2='0', energy_flux_error='7.66e-06', photon_flux_error2='1.17e-08', ts2='8.90', photon_index='2.55' WHERE bin_id='256' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:06:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 945678: <4FGL_J1136.2+3407_daily_bin256> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin256> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 04:52:40 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:52:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 04:52:41 2021
Terminated at Sat Sep  4 05:06:52 2021
Results reported at Sat Sep  4 05:06:52 2021

Your job looked like:

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

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

