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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin845
RA = 174.075, Dec = 34.129
tmin = 458352001, tmax = 458611201
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='949888', job_status='RUN', time_executed='2021-09-04 05:09:52.220352', time_epoch_executed='1630757392.22' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='845'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/949888

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/949888/ft1_4FGL_J1136.2+3407_daily_bin845.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/949888/ft2_4FGL_J1136.2+3407_daily_bin845.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/949888/ft1_4FGL_J1136.2+3407_daily_bin845.fits outfile=/scratch/kocevski/949888/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin845.fits ra=174.075 dec=34.129 rad=12.0 tmin=458352001.0 tmax=458611201.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.45
user 4.19
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/949888/ft2_4FGL_J1136.2+3407_daily_bin845.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/949888/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin845.fits evtable="EVENTS" outfile="/scratch/kocevski/949888/ft1_filtered_4FGL_J1136.2+3407_daily_bin845.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.31
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/949888/ft1_filtered_4FGL_J1136.2+3407_daily_bin845.fits evtable="EVENTS" scfile=/scratch/kocevski/949888/ft2_4FGL_J1136.2+3407_daily_bin845.fits sctable="SC_DATA" expcube=/scratch/kocevski/949888/ltcube_458352001_458611201_4FGL_J1136.2+3407_daily_bin845.fits outfile=/scratch/kocevski/949888/expmap_458352001_458611201_4FGL_J1136.2+3407_daily_bin845.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/949888/ltcube_458352001_458611201_4FGL_J1136.2+3407_daily_bin845.fits
.....................!
real 191.16
user 185.68
sys 4.84

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/949888/ft1_filtered_4FGL_J1136.2+3407_daily_bin845.fits scfile=/scratch/kocevski/949888/ft2_4FGL_J1136.2+3407_daily_bin845.fits outfile=/scratch/kocevski/949888/cmap_458352001_458611201_4FGL_J1136.2+3407_daily_bin845.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=174.075 yref=34.129 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/949888/ft1_filtered_4FGL_J1136.2+3407_daily_bin845.fits scfile=/scratch/kocevski/949888/ft2_4FGL_J1136.2+3407_daily_bin845.fits outfile=/scratch/kocevski/949888/cmap_HighResolution_458352001_458611201_4FGL_J1136.2+3407_daily_bin845.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.316       1.0000         .10000E-03   10000.    
     4 'norm      '    2.1171       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11290E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.3299       1.0000         .10000E-03   10000.    
     9 'norm      '    31.432       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.489       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .18906       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .46018       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.014       1.0000         .10000E-03   10000.    
    16 'Prefactor '    94.379       1.0000         .10000E-03   10000.    
    17 'norm      '    .66653       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.429       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.4129       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    14.140       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.7377       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.6902       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3288       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .34959       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=   5598.102     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     3954 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.772       -.13489E-06** at limit **
   2  Prefactor     .10000E-03    26.452        .94809E-06** at limit **
   3  Prefactor     23.323        15.779       -.40345E-07    .10567E-03
   4  norm          2.1171        .41594        .11289E-07   -.43660E-04
   5  Prefactor     .10000E-03    4.0570       -.25536E-06** at limit **
   6  Prefactor     .10000E-03    11.368       -.10352E-06** at limit **
   7  Prefactor     .10000E-03    30.406        .13050E-06** at limit **
   8  norm          8.3350        16.153       -.27654E-05   -.83928E-04
   9  norm          31.445        16.205        .57665E-07    .15944E-03
  10  Prefactor     .10001E-03    3.4084       -.60007E-06** at limit **
  11  Prefactor     14.426        41.693       -.21158E-05   -.75354E-04
  12  Prefactor     .10000E-03    40.876       -.32548E-05** at limit **
  13  norm          .18200        6.6702        .24498E-05   -.38553E-03
  14  Prefactor     .43715        14.603       -.24670E-05    .22667E-03
  15  Prefactor     14.009        8.1270       -.58936E-06   -.23763E-03
  16  Prefactor     94.413        52.965       -.83671E-06   -.74985E-04
  17  norm          .66814        .80158       -.51701E-06   -.11312E-02
  18  Prefactor     .10000E-03    8.9353       -.25137E-06** at limit **
  19  Prefactor     .10000E-03    .66514       -.52347E-07** at limit **
  20  norm          .10000E-03    3.4027       -.13173E-06** at limit **
  21  Prefactor     17.434        27.549       -.12329E-06    .31855E-04
  22  Prefactor     .10000E-03    19.168       -.14617E-05** at limit **
  23  norm          6.4137        1.7891        .11232E-07    .46362E-03
  24  Prefactor     .10000E-03    23.199        .18487E-06** at limit **
  25  norm          14.140        4.5017       -.79752E-07   -.63633E-05
  26  Prefactor     .10000E-03    6.9751       -.19308E-06** at limit **
  27  Prefactor     1.7378        1.8180        .14241E-07    .26159E-04
  28  Prefactor     5.6892        3.2877       -.17464E-07    .10261E-03
  29  Normalizat    1.3282        .21857        .28957E-05   -.35692E-04
  30  Prefactor     .35012        .22289       -.37580E-05    .47567E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.3226
  norm       = 2.11712
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.335
  norm       = 31.445
  Prefactor  = 0.000100008
  Prefactor  = 14.4257
  Prefactor  = 0.0001
  norm       = 0.181995
  Prefactor  = 0.437151
  Prefactor  = 14.0095
  Prefactor  = 94.4128
  norm       = 0.668141
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.4339
  Prefactor  = 0.0001
  norm       = 6.4137
  Prefactor  = 0.0001
  norm       = 14.1402
  Prefactor  = 0.0001
  Prefactor  = 1.73779
  Prefactor  = 5.68918
  Normalizat = 1.3282
  Prefactor  = 0.350118
 **********
 **   18 **HESSE 
 **********

 FCN=   5598.102     FROM HESSE     STATUS=OK           592 CALLS     4546 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.323        15.747        .82955E-04   -1.4742    
   4  norm          2.1171        .41623        .20567E-04   -1.5417    
   5  Prefactor     .10000E-03    4.1861        .29278E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.3350        16.124        .69451E-03   -1.5130    
   9  norm          31.445        16.195        .71468E-04   -1.4586    
  10  Prefactor     .10001E-03    6.5485        .17673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.426        42.316        .10522E-03   -1.4948    
  12  Prefactor     .10000E-03    41.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .18200        10.102        .16745E-02   -1.5623    
  14  Prefactor     .43715        131.75        .46200E-02   -1.5576    
  15  Prefactor     14.009        8.1460        .10699E-03   -1.4959    
  16  Prefactor     94.413        52.926        .20685E-03   -1.3762    
  17  norm          .66814        .79422        .70055E-03   -1.5544    
  18  Prefactor     .10000E-03    8.9559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .67205        .59589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.4035        .13479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.434        27.606        .95936E-04   -1.4873    
  22  Prefactor     .10000E-03    19.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.4137        1.7910        .50429E-04   -1.5201    
  24  Prefactor     .10000E-03    23.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          14.140        4.4971        .83940E-04   -1.4956    
  26  Prefactor     .10000E-03    7.0278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.7378        1.8206        .98474E-04   -1.5444    
  28  Prefactor     5.6892        3.2853        .98125E-04   -1.5231    
  29  Normalizat    1.3282        .23224        .22505E-03   -.82729    
  30  Prefactor     .35012        .22972        .44527E-03   -1.1943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13527e-09
Minuit parameter uncertainties:
  1  1.70771e-05
  2  0.000109767
  3  15.7495
  4  0.416234
  5  1.56359e-05
  6  2.45807e-05
  7  4.51722e-05
  8  16.1329
  9  16.1977
  10  0.000470968
  11  42.4037
  12  0.000275352
  13  2.71162
  14  15.2101
  15  8.1466
  16  52.9529
  17  0.79423
  18  1.9233e-05
  19  1.49787e-06
  20  1.08588e-06
  21  27.6261
  22  0.000119185
  23  1.79103
  24  2.8116e-05
  25  4.49718
  26  1.50619e-05
  27  1.82067
  28  3.28538
  29  0.232427
  30  0.230318
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.401e+01  8.147e+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:  3.501e-01  2.303e-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.328e+00  2.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.05
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 9.69e-08 +/- 5.63e-08
Energy Flux (Fixed Index): 2.66e-05 +/- 1.55e-05

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) = 5598.03545492
delta logL = 0.0661140467146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5598.03022802
delta logL = 0.0713409490709

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.009       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8160       1.0000          .0000       10.000    
     3 'Normalizat'    1.3021       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .37275       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=   5598.030     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      269 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.014        111.63        .28900E-02    .12479E-03
   2  Index         2.8161        3.7499        .17424        .79924E-04
   3  Normalizat    1.3024        .84729E-01    .51315E-01    .14833E-05
   4  Prefactor     .37225        .84545E-01    .97588E-01    .45601E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0142
  Index      = 2.81606
  Normalizat = 1.30238
  Prefactor  = 0.372252
 **********
 **   18 **HESSE 
 **********

 FCN=   5598.030     FROM HESSE     STATUS=OK            33 CALLS      302 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.014        10.263        .11560E-03   -1.5015    
   2  Index         2.8161        .80458        .61022E-02   -.45202    
   3  Normalizat    1.3024        .22875        .22686E-03   -.83495    
   4  Prefactor     .37225        .23853        .43279E-03   -1.1825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80013e-12
Minuit parameter uncertainties:
  1  10.2641
  2  0.808938
  3  0.228929
  4  0.239161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/949888': 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) = 5598.03022459
delta logL = 0.0713443771665

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.201e+01  1.026e+01  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.816e+00  8.089e-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:  3.723e-01  2.392e-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.302e+00  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.09
Ra Dec: 174.075 34.129
Photon Index (Free Index): 2.82 +/- 0.81
Photon Flux (Free Index): 1.15e-07 +/- 7.61e-08
Energy Flux (Free Index): 2.55e-05 +/- 1.44e-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/949888/cmap_HighResolution_458352001_458611201_4FGL_J1136.2+3407_daily_bin845.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.69e-08', energy_flux2='2.55e-05', photon_flux_error='5.63e-08', dlogl='7.13e-02', energy_flux='2.66e-05', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-04 05:22:21.793743', photon_index_error2='0.81', photon_index2='2.82', ts='5.05', fit_tolerance='1e-08', GAL='0.35', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='1.33', time_epoch_completed='1630758141.79', return_code='0', job_id='949888', GAL2='0.37', EG2='1.30', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='7.61e-08', ts2='5.09', photon_index='2.55' WHERE bin_id='845' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:22:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 949888: <4FGL_J1136.2+3407_daily_bin845> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin845> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 05:06:41 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:06:43 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:06:43 2021
Terminated at Sat Sep  4 05:22:22 2021
Results reported at Sat Sep  4 05:22:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin845 174.075 34.129 458352001 458611201 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 :                                   747.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

