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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin653
RA = 174.075, Dec = 34.129
tmin = 408585601, tmax = 408844801
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='948084', job_status='RUN', time_executed='2021-09-04 05:03:21.295751', time_epoch_executed='1630757001.3' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948084

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948084/ft1_4FGL_J1136.2+3407_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948084/ft2_4FGL_J1136.2+3407_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948084/ft1_4FGL_J1136.2+3407_daily_bin653.fits outfile=/scratch/kocevski/948084/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin653.fits ra=174.075 dec=34.129 rad=12.0 tmin=408585601.0 tmax=408844801.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.27
user 4.06
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948084/ft1_filtered_4FGL_J1136.2+3407_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/948084/ft2_4FGL_J1136.2+3407_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/948084/ltcube_408585601_408844801_4FGL_J1136.2+3407_daily_bin653.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/948084/ft2_4FGL_J1136.2+3407_daily_bin653.fits
.....................!
real 11.74
user 11.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948084/ft1_filtered_4FGL_J1136.2+3407_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/948084/ft2_4FGL_J1136.2+3407_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/948084/ltcube_408585601_408844801_4FGL_J1136.2+3407_daily_bin653.fits outfile=/scratch/kocevski/948084/expmap_408585601_408844801_4FGL_J1136.2+3407_daily_bin653.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/948084/ltcube_408585601_408844801_4FGL_J1136.2+3407_daily_bin653.fits
.....................!
real 189.33
user 184.73
sys 4.25

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/948084/ft1_filtered_4FGL_J1136.2+3407_daily_bin653.fits scfile=/scratch/kocevski/948084/ft2_4FGL_J1136.2+3407_daily_bin653.fits outfile=/scratch/kocevski/948084/cmap_408585601_408844801_4FGL_J1136.2+3407_daily_bin653.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.55
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948084/ft1_filtered_4FGL_J1136.2+3407_daily_bin653.fits scfile=/scratch/kocevski/948084/ft2_4FGL_J1136.2+3407_daily_bin653.fits outfile=/scratch/kocevski/948084/cmap_HighResolution_408585601_408844801_4FGL_J1136.2+3407_daily_bin653.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.53
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0038       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.6143       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.858       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4276       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .45246E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26710E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .90844E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    13.870       1.0000         .10000E-03   10000.    
     9 'norm      '    .36157E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21216E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.307       1.0000         .10000E-03   10000.    
    13 'norm      '    .47731       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4228       1.0000         .10000E-03   10000.    
    16 'Prefactor '    191.79       1.0000         .10000E-03   10000.    
    17 'norm      '    5.2698       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.713       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3877       1.0000         .10000E-03   10000.    
    20 'norm      '    11.232       1.0000         .10000E-03   10000.    
    21 'Prefactor '    41.384       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .84627E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .38057       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.640       1.0000         .10000E-03   10000.    
    25 'norm      '    7.7040       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.161       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2037       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .63689       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3900.582     FROM MIGRAD    STATUS=CONVERGED    266 CALLS     2918 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3669        30.791       -.22002E-04   -.16756E-04
   2  Prefactor     38.905        367.03        .12132E-03    .97919E-04
   3  Prefactor     19.077        16.036        .51987E-06   -.11540E-04
   4  norm          1.4228        .49026        .68096E-06    .34952E-03
   5  Prefactor     .10000E-03    9.5162       -.62445E-05** at limit **
   6  Prefactor     .10000E-03    51.929       -.40276E-05** at limit **
   7  Prefactor     .10000E-03    26.645        .16834E-04** at limit **
   8  norm          14.041        18.072        .12715E-05    .48782E-04
   9  norm          .10000E-03    10.564       -.10165E-04** at limit **
  10  Prefactor     .10000E-03    2.1797       -.48745E-06** at limit **
  11  Prefactor     .10000E-03    40.826        .13321E-04** at limit **
  12  Prefactor     12.767        26.765        .12457E-04    .86117E-04
  13  norm          .42632        4.9825        .12879E-04    .11837E-03
  14  Prefactor     .10000E-03    5.5827        .68756E-06** at limit **
  15  Prefactor     7.5788        8.6288       -.17403E-05    .94237E-05
  16  Prefactor     214.45        126.90        .15467E-04    .49866E-04
  17  norm          4.9554        3.3489        .29520E-05    .33426E-04
  18  Prefactor     22.800        22.048        .35811E-05   -.45842E-04
  19  Prefactor     3.4063        2.2499        .29830E-07    .20560E-04
  20  norm          11.129        13.637       -.14068E-05    .57155E-04
  21  Prefactor     39.275        51.593       -.41850E-06    .15647E-04
  22  Prefactor     .10000E-03    38.811        .11050E-04** at limit **
  23  norm          .37999        .93682        .11157E-05   -.30036E-04
  24  Prefactor     18.913        75.557       -.25615E-04   -.62252E-04
  25  norm          7.6791        4.4983       -.22974E-06    .84083E-04
  26  Prefactor     9.9579        10.754       -.30621E-05    .53079E-04
  27  Prefactor     .10000E-03    1.9455       -.16868E-05** at limit **
  28  Prefactor     .10000E-03    1.5983       -.74909E-06** at limit **
  29  Normalizat    1.1881        .31171       -.25033E-06    .13915E-04
  30  Prefactor     .64444        .32800       -.82650E-05    .19633E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.36686
  Prefactor  = 38.9051
  Prefactor  = 19.0771
  norm       = 1.4228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.0415
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7671
  norm       = 0.426318
  Prefactor  = 0.0001
  Prefactor  = 7.57877
  Prefactor  = 214.446
  norm       = 4.95539
  Prefactor  = 22.7998
  Prefactor  = 3.40635
  norm       = 11.1291
  Prefactor  = 39.2747
  Prefactor  = 0.0001
  norm       = 0.379994
  Prefactor  = 18.9125
  norm       = 7.67911
  Prefactor  = 9.95792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1881
  Prefactor  = 0.644443
 **********
 **   18 **HESSE 
 **********

 FCN=   3900.582     FROM HESSE     STATUS=OK           666 CALLS     3584 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3669        30.561        .35431E-02   -1.5165    
   2  Prefactor     38.905        344.26        .34144E-02   -1.4460    
   3  Prefactor     19.077        16.658        .23058E-02   -1.4834    
   4  norm          1.4228        .49013        .55632E-02   -1.5469    
   5  Prefactor     .10000E-03    2.4422        .49484E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    51.128        .10719E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.165        .10412E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.041        18.080        .26887E-02   -1.4958    
   9  norm          .10000E-03    10.476        .10655E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1356        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    40.670        .10088E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.767        26.742        .28547E-02   -1.4993    
  13  norm          .42632        4.8245        .11178E-01   -1.5577    
  14  Prefactor     .10000E-03    5.5893        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.5788        8.6269        .36802E-02   -1.5157    
  16  Prefactor     214.45        126.53        .72910E-03   -1.2769    
  17  norm          4.9554        3.3273        .43773E-02   -1.5263    
  18  Prefactor     22.800        21.969        .21012E-02   -1.4753    
  19  Prefactor     3.4063        2.2548        .54956E-02   -1.5339    
  20  norm          11.129        13.626        .29885E-02   -1.5041    
  21  Prefactor     39.275        51.959        .15578E-02   -1.4454    
  22  Prefactor     .10000E-03    38.851        .10434E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .37999        1.0552        .21682E-01   -1.5585    
  24  Prefactor     18.913        74.331        .29355E-02   -1.4838    
  25  norm          7.6791        4.5285        .36119E-02   -1.5154    
  26  Prefactor     9.9579        10.759        .31425E-02   -1.5077    
  27  Prefactor     .10000E-03    1.9150        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.5885        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1881        .25802        .56505E-01   -.86971    
  30  Prefactor     .64444        .27825        .81331E-01   -1.0575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69451e-09
Minuit parameter uncertainties:
  1  30.0354
  2  233.277
  3  16.6618
  4  0.490131
  5  2.09382e-05
  6  0.00012105
  7  3.43221e-05
  8  18.0866
  9  1.66288e-05
  10  2.58766e-06
  11  0.000278451
  12  26.767
  13  2.86824
  14  5.29025e-06
  15  8.62831
  16  126.69
  17  3.32741
  18  21.9769
  19  2.25484
  20  13.6296
  21  52.0188
  22  6.25808e-05
  23  1.0552
  24  74.6981
  25  4.5287
  26  10.7611
  27  1.10489e-06
  28  1.51984e-07
  29  0.258297
  30  0.278847
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  7.579e+00  8.628e+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.444e-01  2.788e-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.188e+00  2.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 5.24e-08 +/- 5.96e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.64e-05

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

Saving results to:
/scratch/kocevski/948084/likelihoodResults_408585601_408844801_4FGL_J1136.2+3407_daily_bin653.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3900.55654618
delta logL = 0.0255853008885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3900.55124228
delta logL = 0.0308891948512

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4863       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3630       1.0000          .0000       10.000    
     3 'Normalizat'    1.1950       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63758       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=   3900.551     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      244 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4865        9.6402        .13761E-03   -.48731E-03
   2  Index         2.3629        .73965        .84243E-02   -.10694E-03
   3  Normalizat    1.1950        .28984        .24925E-03    .57653E-04
   4  Prefactor     .63756        .31671        .36194E-03    .53570E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.48655
  Index      = 2.3629
  Normalizat = 1.19504
  Prefactor  = 0.637563
 **********
 **   18 **HESSE 
 **********

 FCN=   3900.551     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4865        9.5452        .55044E-05   -1.5125    
   2  Index         2.3629        .73237        .33697E-03   -.55556    
   3  Normalizat    1.1950        .29007        .99699E-05   -.86756    
   4  Prefactor     .63756        .31690        .14478E-04   -1.0603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03366e-10
Minuit parameter uncertainties:
  1  9.54687
  2  0.736049
  3  0.290458
  4  0.317799
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948084': 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) = 3900.55124228
delta logL = 0.0308892016014

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  8.487e+00  9.547e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.363e+00  7.360e-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.376e-01  3.178e-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.195e+00  2.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 174.075 34.129
Photon Index (Free Index): 2.36 +/- 0.74
Photon Flux (Free Index): 4.72e-08 +/- 5.77e-08
Energy Flux (Free Index): 1.63e-05 +/- 1.95e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/948084/cmap_HighResolution_408585601_408844801_4FGL_J1136.2+3407_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-02', comment='SUCCESS', photon_flux='5.24e-08', energy_flux2='1.63e-05', photon_flux_error='5.96e-08', dlogl='3.09e-02', energy_flux='1.44e-05', photon_flux2='4.72e-08', job_status='DONE', time_completed='2021-09-04 05:13:41.063292', photon_index_error2='0.74', photon_index2='2.36', ts='1.13', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='1.86e-07', energy_flux_error2='1.95e-05', EG='1.19', time_epoch_completed='1630757621.06', return_code='0', job_id='948084', GAL2='0.64', EG2='1.20', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='5.77e-08', ts2='1.19', photon_index='2.55' WHERE bin_id='653' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:13:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 948084: <4FGL_J1136.2+3407_daily_bin653> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin653 174.075 34.129 408585601 408844801 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 :                                   618.00 sec.
    Max Memory :                                 1020 MB
    Average Memory :                             264.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            744 sec.

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

