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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin661
RA = 174.075, Dec = 34.129
tmin = 410659201, tmax = 410918401
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='948096', job_status='RUN', time_executed='2021-09-04 05:05:20.871477', time_epoch_executed='1630757120.87' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='661'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948096

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948096/ft1_4FGL_J1136.2+3407_daily_bin661.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948096/ft2_4FGL_J1136.2+3407_daily_bin661.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948096/ft1_4FGL_J1136.2+3407_daily_bin661.fits outfile=/scratch/kocevski/948096/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin661.fits ra=174.075 dec=34.129 rad=12.0 tmin=410659201.0 tmax=410918401.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.00
user 6.64
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948096/ft2_4FGL_J1136.2+3407_daily_bin661.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/948096/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin661.fits evtable="EVENTS" outfile="/scratch/kocevski/948096/ft1_filtered_4FGL_J1136.2+3407_daily_bin661.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.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948096/ft1_filtered_4FGL_J1136.2+3407_daily_bin661.fits evtable="EVENTS" scfile=/scratch/kocevski/948096/ft2_4FGL_J1136.2+3407_daily_bin661.fits sctable="SC_DATA" expcube=/scratch/kocevski/948096/ltcube_410659201_410918401_4FGL_J1136.2+3407_daily_bin661.fits outfile=/scratch/kocevski/948096/expmap_410659201_410918401_4FGL_J1136.2+3407_daily_bin661.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/948096/ltcube_410659201_410918401_4FGL_J1136.2+3407_daily_bin661.fits
.....................!
real 191.50
user 185.60
sys 5.10

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/948096/ft1_filtered_4FGL_J1136.2+3407_daily_bin661.fits scfile=/scratch/kocevski/948096/ft2_4FGL_J1136.2+3407_daily_bin661.fits outfile=/scratch/kocevski/948096/cmap_410659201_410918401_4FGL_J1136.2+3407_daily_bin661.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/948096/ft1_filtered_4FGL_J1136.2+3407_daily_bin661.fits scfile=/scratch/kocevski/948096/ft2_4FGL_J1136.2+3407_daily_bin661.fits outfile=/scratch/kocevski/948096/cmap_HighResolution_410659201_410918401_4FGL_J1136.2+3407_daily_bin661.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    98.174       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.9683       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.318       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.722       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.4802       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1020       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2012       1.0000         .10000E-03   10000.    
    16 'Prefactor '    69.548       1.0000         .10000E-03   10000.    
    17 'norm      '    7.7310       1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.902       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4615       1.0000         .10000E-03   10000.    
    20 'norm      '    2.7955       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.105       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.2869       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.297       1.0000         .10000E-03   10000.    
    25 'norm      '    3.6748       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.1073       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.3329       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1918       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .57217       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=   3611.786     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     3916 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.993        .26478E-07** at limit **
   2  Prefactor     98.155        134.85       -.63287E-05   -.90401E-04
   3  Prefactor     .10000E-03    5.7536       -.74870E-08** at limit **
   4  norm          1.9683        .52429        .11756E-08    .19623E-04
   5  Prefactor     .10000E-03    3.0455       -.60422E-08** at limit **
   6  Prefactor     19.320        16.609       -.58375E-07   -.10234E-04
   7  Prefactor     14.723        21.120        .28680E-06   -.54114E-04
   8  norm          .10000E-03    5.3728        .33439E-07** at limit **
   9  norm          8.4797        11.479        .78246E-06   -.26160E-03
  10  Prefactor     .10000E-03    2.3806       -.68200E-07** at limit **
  11  Prefactor     .10000E-03    64.800        .76542E-06** at limit **
  12  Prefactor     .10000E-03    7.0220        .64909E-08** at limit **
  13  norm          1.1005        3.7959        .23949E-06   -.24454E-03
  14  Prefactor     .10000E-03    4.0763       -.38351E-08** at limit **
  15  Prefactor     6.2033        6.0782        .34459E-07   -.22495E-04
  16  Prefactor     69.567        69.732        .66136E-05    .25056E-03
  17  norm          7.7312        2.5345       -.37345E-06    .29280E-04
  18  Prefactor     35.907        27.813        .80895E-06    .10338E-03
  19  Prefactor     1.4614        2.2453       -.62053E-08   -.99044E-04
  20  norm          2.7683        20.575        .85276E-05   -.44232E-03
  21  Prefactor     12.098        30.847       -.16783E-05   -.10489E-03
  22  Prefactor     .10000E-03    50.648       -.60315E-06** at limit **
  23  norm          2.2875        2.0245        .92192E-07   -.26944E-04
  24  Prefactor     10.283        38.762       -.82405E-05   -.16824E-03
  25  norm          3.6752        3.4469        .26122E-06    .15507E-03
  26  Prefactor     .10000E-03    3.2092        .54520E-07** at limit **
  27  Prefactor     2.1074        2.4180       -.10033E-06   -.24801E-04
  28  Prefactor     7.3331        3.9829        .92433E-07    .98847E-04
  29  Normalizat    1.1914        .24400       -.85041E-07   -.10700E-04
  30  Prefactor     .57263        .27561       -.57363E-06   -.12323E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 98.1549
  Prefactor  = 0.0001
  norm       = 1.96828
  Prefactor  = 0.0001
  Prefactor  = 19.3197
  Prefactor  = 14.7234
  norm       = 0.0001
  norm       = 8.47968
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.1005
  Prefactor  = 0.0001
  Prefactor  = 6.20325
  Prefactor  = 69.5668
  norm       = 7.73122
  Prefactor  = 35.9072
  Prefactor  = 1.46144
  norm       = 2.76831
  Prefactor  = 12.0985
  Prefactor  = 0.0001
  norm       = 2.28754
  Prefactor  = 10.2834
  norm       = 3.67519
  Prefactor  = 0.0001
  Prefactor  = 2.10736
  Prefactor  = 7.3331
  Normalizat = 1.19141
  Prefactor  = 0.572632
 **********
 **   18 **HESSE 
 **********

 FCN=   3611.786     FROM HESSE     STATUS=OK           588 CALLS     4504 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     98.155        136.70        .40570E-04   -1.3723    
   3  Prefactor     .10000E-03    5.7633        .14079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.9683        .52882        .20758E-04   -1.5427    
   5  Prefactor     .10000E-03    3.1845        .20449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.320        16.603        .91126E-04   -1.4829    
   7  Prefactor     14.723        21.265        .52193E-03   -1.4940    
   8  norm          .10000E-03    5.3757        .13605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.4797        11.591        .68829E-03   -1.5125    
  10  Prefactor     .10000E-03    2.4345        .18029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    64.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.0264        .15554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1005        3.8025        .20090E-03   -1.5498    
  14  Prefactor     .10000E-03    4.0774        .11851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.2033        6.0745        .14021E-03   -1.5210    
  16  Prefactor     69.567        72.412        .48133E-04   -1.4038    
  17  norm          7.7312        2.5390        .48656E-04   -1.5152    
  18  Prefactor     35.907        27.778        .66884E-04   -1.4509    
  19  Prefactor     1.4614        2.2093        .10482E-03   -1.5466    
  20  norm          2.7683        28.906        .12167E-02   -1.5375    
  21  Prefactor     12.098        30.892        .11513E-03   -1.5012    
  22  Prefactor     .10000E-03    50.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.2875        2.0097        .74946E-04   -1.5405    
  24  Prefactor     10.283        39.750        .12486E-03   -1.5067    
  25  norm          3.6752        3.4642        .99150E-04   -1.5325    
  26  Prefactor     .10000E-03    3.2129        .10515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.1074        2.4272        .92782E-04   -1.5418    
  28  Prefactor     7.3331        3.9788        .84292E-04   -1.5166    
  29  Normalizat    1.1914        .28761        .23299E-03   -.86869    
  30  Prefactor     .57263        .32043        .37287E-03   -1.0875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82588e-09
Minuit parameter uncertainties:
  1  3.91273e-07
  2  137.145
  3  1.94234e-06
  4  0.528823
  5  3.45661e-06
  6  16.607
  7  21.2756
  8  1.34831e-06
  9  11.5945
  10  2.5942e-06
  11  0.000191895
  12  8.88973e-08
  13  3.80331
  14  1.30481e-07
  15  6.07511
  16  72.5042
  17  2.53901
  18  27.7879
  19  2.20947
  20  17.9016
  21  30.9329
  22  0.000118234
  23  2.00976
  24  39.8522
  25  3.46441
  26  8.03711e-06
  27  2.42732
  28  3.97898
  29  0.287991
  30  0.321453
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  6.203e+00  6.075e+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:  5.726e-01  3.215e-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.191e+00  2.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.63
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.29e-08 +/- 4.20e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.15e-05

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

Saving results to:
/scratch/kocevski/948096/likelihoodResults_410659201_410918401_4FGL_J1136.2+3407_daily_bin661.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) = 3611.62231517
delta logL = 0.163963314528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3611.61554968
delta logL = 0.170728796968

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9268       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0703       1.0000          .0000       10.000    
     3 'Normalizat'    1.2084       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56076       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=   3611.616     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      243 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9296        386.00        .38109E-02   -.12297E-04
   2  Index         2.0707        5.8897        .25400       -.47215E-05
   3  Normalizat    1.2083        .34833        .52379E-01   -.20341E-04
   4  Prefactor     .56085        .36976        .84957E-01    .11467E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.9296
  Index      = 2.07071
  Normalizat = 1.20835
  Prefactor  = 0.560846
 **********
 **   18 **HESSE 
 **********

 FCN=   3611.616     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9296        7.0833        .15244E-03   -1.5181    
   2  Index         2.0707        .78998        .89042E-02   -.62594    
   3  Normalizat    1.2083        .27200        .23158E-03   -.86345    
   4  Prefactor     .56085        .31040        .37639E-03   -1.0926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21478e-11
Minuit parameter uncertainties:
  1  7.0842
  2  0.795074
  3  0.272323
  4  0.311349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948096': 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) = 3611.61554927
delta logL = 0.170729208573

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  6.930e+00  7.084e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.071e+00  7.951e-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:  5.608e-01  3.113e-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.208e+00  2.723e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.96
Ra Dec: 174.075 34.129
Photon Index (Free Index): 2.07 +/- 0.80
Photon Flux (Free Index): 2.87e-08 +/- 3.81e-08
Energy Flux (Free Index): 1.68e-05 +/- 2.30e-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/948096/cmap_HighResolution_410659201_410918401_4FGL_J1136.2+3407_daily_bin661.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', photon_flux='4.29e-08', energy_flux2='1.68e-05', photon_flux_error='4.20e-08', dlogl='1.71e-01', energy_flux='1.18e-05', photon_flux2='2.87e-08', job_status='DONE', time_completed='2021-09-04 05:16:57.472160', photon_index_error2='0.80', photon_index2='2.07', ts='2.63', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='2.30e-05', EG='1.19', time_epoch_completed='1630757817.47', return_code='0', job_id='948096', GAL2='0.56', EG2='1.21', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='3.81e-08', ts2='2.96', photon_index='2.55' WHERE bin_id='661' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:16:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 948096: <4FGL_J1136.2+3407_daily_bin661> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin661> 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) <bullet0237>, 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:16:58 2021
Results reported at Sat Sep  4 05:16:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin661 174.075 34.129 410659201 410918401 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 :                                   691.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            940 sec.

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

