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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin918
RA = 174.075, Dec = 34.129
tmin = 477273601, tmax = 477532801
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='949999', job_status='RUN', time_executed='2021-09-04 05:09:04.031638', time_epoch_executed='1630757344.03' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='918'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/949999

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/949999/ft1_4FGL_J1136.2+3407_daily_bin918.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/949999/ft2_4FGL_J1136.2+3407_daily_bin918.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/949999/ft1_4FGL_J1136.2+3407_daily_bin918.fits outfile=/scratch/kocevski/949999/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin918.fits ra=174.075 dec=34.129 rad=12.0 tmin=477273601.0 tmax=477532801.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 3.59
user 3.32
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/949999/ft1_filtered_4FGL_J1136.2+3407_daily_bin918.fits" evtable="EVENTS" scfile=/scratch/kocevski/949999/ft2_4FGL_J1136.2+3407_daily_bin918.fits sctable="SC_DATA" outfile=/scratch/kocevski/949999/ltcube_477273601_477532801_4FGL_J1136.2+3407_daily_bin918.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/949999/ft2_4FGL_J1136.2+3407_daily_bin918.fits
.....................!
real 12.18
user 11.76
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/949999/ft1_filtered_4FGL_J1136.2+3407_daily_bin918.fits evtable="EVENTS" scfile=/scratch/kocevski/949999/ft2_4FGL_J1136.2+3407_daily_bin918.fits sctable="SC_DATA" expcube=/scratch/kocevski/949999/ltcube_477273601_477532801_4FGL_J1136.2+3407_daily_bin918.fits outfile=/scratch/kocevski/949999/expmap_477273601_477532801_4FGL_J1136.2+3407_daily_bin918.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/949999/ltcube_477273601_477532801_4FGL_J1136.2+3407_daily_bin918.fits
.....................!
real 191.41
user 186.54
sys 4.45

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/949999/ft1_filtered_4FGL_J1136.2+3407_daily_bin918.fits scfile=/scratch/kocevski/949999/ft2_4FGL_J1136.2+3407_daily_bin918.fits outfile=/scratch/kocevski/949999/cmap_477273601_477532801_4FGL_J1136.2+3407_daily_bin918.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/949999/ft1_filtered_4FGL_J1136.2+3407_daily_bin918.fits scfile=/scratch/kocevski/949999/ft2_4FGL_J1136.2+3407_daily_bin918.fits outfile=/scratch/kocevski/949999/cmap_HighResolution_477273601_477532801_4FGL_J1136.2+3407_daily_bin918.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/949999/ft1_filtered_4FGL_J1136.2+3407_daily_bin918.fits evtable="EVENTS" scfile=/scratch/kocevski/949999/ft2_4FGL_J1136.2+3407_daily_bin918.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/949999/Model_4FGL_J1136.2+3407_daily_bin918.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/949999/ft1_filtered_4FGL_J1136.2+3407_daily_bin918.fits.....................!
real 61.23
user 59.79
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    80.127       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10399E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .98396       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5111       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.288       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    13.105       1.0000         .10000E-03   10000.    
     9 'norm      '    .10034E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2888       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5790       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8931       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5138       1.0000         .10000E-03   10000.    
    16 'Prefactor '    47.550       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8632       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.869       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.7850       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.3903       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14818E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.7149       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.7657       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.7859       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.4035       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1663       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0309       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=   7268.901     FROM MIGRAD    STATUS=CONVERGED    778 CALLS     3962 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.521       -.68400E-05** at limit **
   2  Prefactor     80.062        120.01       -.66940E-04    .23252E-05
   3  Prefactor     .10000E-03    10.240        .22464E-05** at limit **
   4  norm          .98395        .29772        .12941E-06    .91770E-03
   5  Prefactor     1.5121        2.3505       -.29871E-06   -.65678E-03
   6  Prefactor     13.282        15.472       -.38412E-05    .42279E-04
   7  Prefactor     .10000E-03    18.230        .58893E-06** at limit **
   8  norm          13.096        13.072       -.60529E-05    .23132E-04
   9  norm          .10007E-03    9.7466       -.57064E-07** at limit **
  10  Prefactor     .10000E-03    1.3701       -.63594E-06** at limit **
  11  Prefactor     2.1950        76.354        .10410E-04    .58038E-04
  12  Prefactor     5.5845        14.865        .51689E-05   -.82000E-04
  13  norm          1.8929        1.7965       -.64223E-06   -.35574E-03
  14  Prefactor     .10000E-03    12.047        .45221E-05** at limit **
  15  Prefactor     6.5129        4.4762       -.27036E-06    .22623E-04
  16  Prefactor     47.585        54.445        .32715E-04    .54394E-04
  17  norm          1.8632        1.3609       -.18754E-05   -.38994E-03
  18  Prefactor     15.881        23.354       -.29010E-07   -.21803E-04
  19  Prefactor     .10000E-03    .60195       -.11569E-07** at limit **
  20  norm          1.7941        12.725       -.41001E-05   -.29509E-03
  21  Prefactor     3.4007        47.789        .52260E-06   -.31809E-04
  22  Prefactor     .10000E-03    117.89       -.10214E-04** at limit **
  23  norm          5.7147        1.7770       -.89237E-07   -.18888E-03
  24  Prefactor     .10000E-03    8.2336       -.18534E-06** at limit **
  25  norm          5.7661        3.0869       -.36661E-07   -.46208E-04
  26  Prefactor     .10000E-03    2.8956       -.36962E-07** at limit **
  27  Prefactor     4.7847        2.5156       -.52396E-08    .57707E-04
  28  Prefactor     3.4032        2.5265       -.73459E-07   -.12808E-03
  29  Normalizat    1.1663        .19121        .13098E-05    .87084E-04
  30  Prefactor     1.0309        .20787       -.85216E-07    .15484E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 80.0623
  Prefactor  = 0.0001
  norm       = 0.983954
  Prefactor  = 1.51208
  Prefactor  = 13.2818
  Prefactor  = 0.0001
  norm       = 13.096
  norm       = 0.000100074
  Prefactor  = 0.000100001
  Prefactor  = 2.19498
  Prefactor  = 5.5845
  norm       = 1.89292
  Prefactor  = 0.0001
  Prefactor  = 6.51286
  Prefactor  = 47.585
  norm       = 1.86324
  Prefactor  = 15.8811
  Prefactor  = 0.0001
  norm       = 1.79413
  Prefactor  = 3.40074
  Prefactor  = 0.0001
  norm       = 5.71466
  Prefactor  = 0.0001
  norm       = 5.76606
  Prefactor  = 0.0001
  Prefactor  = 4.78475
  Prefactor  = 3.40318
  Normalizat = 1.16634
  Prefactor  = 1.03094
 **********
 **   18 **HESSE 
 **********

 FCN=   7268.901     FROM HESSE     STATUS=OK           600 CALLS     4562 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     80.062        120.08        .22433E-03   -1.3916    
   3  Prefactor     .10000E-03    10.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .98395        .29819        .24388E-04   -1.5510    
   5  Prefactor     1.5121        2.3202        .15621E-03   -1.5462    
   6  Prefactor     13.282        15.464        .10988E-03   -1.4979    
   7  Prefactor     .10000E-03    18.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.096        13.049        .11065E-03   -1.4984    
   9  norm          .10007E-03    71.552        .50203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.9785        .16842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.1950        58.922        .27134E-03   -1.5412    
  12  Prefactor     5.5845        14.826        .17009E-03   -1.5235    
  13  norm          1.8929        1.7807        .10604E-03   -1.5433    
  14  Prefactor     .10000E-03    12.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.5129        4.4626        .14321E-03   -1.5198    
  16  Prefactor     47.585        54.473        .58149E-04   -1.4327    
  17  norm          1.8632        1.3468        .72119E-04   -1.5435    
  18  Prefactor     15.881        23.408        .10054E-03   -1.4911    
  19  Prefactor     .10000E-03    .61082        .64505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.7941        12.792        .31317E-03   -1.5440    
  21  Prefactor     3.4007        47.846        .21974E-03   -1.5339    
  22  Prefactor     .10000E-03    118.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.7147        1.7734        .59093E-04   -1.5230    
  24  Prefactor     .10000E-03    8.2365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.7661        3.0856        .10247E-03   -1.5228    
  26  Prefactor     .10000E-03    2.9044        .14167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.7847        2.5166        .92328E-04   -1.5270    
  28  Prefactor     3.4032        2.5247        .11112E-03   -1.5339    
  29  Normalizat    1.1663        .23007        .26469E-03   -.87649    
  30  Prefactor     1.0309        .24985        .31917E-03   -.91705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37022e-09
Minuit parameter uncertainties:
  1  1.45398e-05
  2  120.45
  3  9.68226e-06
  4  0.298193
  5  2.32037
  6  15.4684
  7  0.000121056
  8  13.0522
  9  0.00462081
  10  0.000112982
  11  22.7693
  12  14.836
  13  1.78076
  14  0.000102025
  15  4.46283
  16  54.53
  17  1.34678
  18  23.4218
  19  1.24226e-06
  20  9.58411
  21  25.5361
  22  0.000380432
  23  1.77342
  24  5.43175e-06
  25  3.08568
  26  3.33479e-06
  27  2.51667
  28  2.52479
  29  0.23027
  30  0.250135
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  6.513e+00  4.463e+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:  1.031e+00  2.501e-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.166e+00  2.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.72
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.51e-08 +/- 3.09e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 8.47e-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) = 7267.28480053
delta logL = 1.61600985749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7267.25712046
delta logL = 1.64368992852

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7606       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6652       1.0000          .0000       10.000    
     3 'Normalizat'    1.1940       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0102       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=   7267.257     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      213 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7606        4.4596        .38579E-02   -.24099E-02
   2  Index         1.6653        .32934        .18700       -.70329E-04
   3  Normalizat    1.1940        .17775        .59230E-01    .91939E-05
   4  Prefactor     1.0102        .20371        .72725E-01    .16330E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.76061
  Index      = 1.66529
  Normalizat = 1.19398
  Prefactor  = 1.01019
 **********
 **   18 **HESSE 
 **********

 FCN=   7267.257     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7606        5.1747        .14229E-03   -1.5188    
   2  Index         1.6653        .42992        .73538E-02   -.73010    
   3  Normalizat    1.1940        .21289        .26195E-03   -.86789    
   4  Prefactor     1.0102        .24377        .32178E-03   -.92390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79531e-09
Minuit parameter uncertainties:
  1  5.17504
  2  0.43088
  3  0.213044
  4  0.244033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/949999': 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) = 7267.25712043
delta logL = 1.64368995739

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  6.761e+00  5.175e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  1.665e+00  4.309e-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:  1.010e+00  2.440e-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.194e+00  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.02
Ra Dec: 174.075 34.129
Photon Index (Free Index): 1.67 +/- 0.43
Photon Flux (Free Index): 2.12e-08 +/- 1.84e-08
Energy Flux (Free Index): 3.88e-05 +/- 4.14e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/949999/cmap_HighResolution_477273601_477532801_4FGL_J1136.2+3407_daily_bin918.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.51e-08', energy_flux2='3.88e-05', photon_flux_error='3.09e-08', dlogl='1.64e+00', energy_flux='1.24e-05', photon_flux2='2.12e-08', job_status='DONE', time_completed='2021-09-04 05:23:20.932744', photon_index_error2='0.43', photon_index2='1.67', ts='4.72', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='4.14e-05', EG='1.17', time_epoch_completed='1630758200.93', return_code='0', job_id='949999', GAL2='1.01', EG2='1.19', return_code2='0', energy_flux_error='8.47e-06', photon_flux_error2='1.84e-08', ts2='8.02', photon_index='2.55' WHERE bin_id='918' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:23:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 949999: <4FGL_J1136.2+3407_daily_bin918> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin918 174.075 34.129 477273601 477532801 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 :                                   855.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            991 sec.

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

