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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin999
RA = 174.075, Dec = 34.129
tmin = 498268801, tmax = 498528001
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='950110', job_status='RUN', time_executed='2021-09-04 05:09:10.383602', time_epoch_executed='1630757350.38' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='999'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950110

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950110/ft1_4FGL_J1136.2+3407_daily_bin999.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950110/ft2_4FGL_J1136.2+3407_daily_bin999.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950110/ft1_4FGL_J1136.2+3407_daily_bin999.fits outfile=/scratch/kocevski/950110/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin999.fits ra=174.075 dec=34.129 rad=12.0 tmin=498268801.0 tmax=498528001.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.79
user 4.51
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950110/ft1_filtered_4FGL_J1136.2+3407_daily_bin999.fits evtable="EVENTS" scfile=/scratch/kocevski/950110/ft2_4FGL_J1136.2+3407_daily_bin999.fits sctable="SC_DATA" expcube=/scratch/kocevski/950110/ltcube_498268801_498528001_4FGL_J1136.2+3407_daily_bin999.fits outfile=/scratch/kocevski/950110/expmap_498268801_498528001_4FGL_J1136.2+3407_daily_bin999.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/950110/ltcube_498268801_498528001_4FGL_J1136.2+3407_daily_bin999.fits
.....................!
real 191.74
user 185.19
sys 6.17

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950110/ft1_filtered_4FGL_J1136.2+3407_daily_bin999.fits scfile=/scratch/kocevski/950110/ft2_4FGL_J1136.2+3407_daily_bin999.fits outfile=/scratch/kocevski/950110/cmap_HighResolution_498268801_498528001_4FGL_J1136.2+3407_daily_bin999.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=174.075 yref=34.129 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9054       1.0000         .10000E-03   10000.    
     4 'norm      '    .67772       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4154       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5001       1.0000         .10000E-03   10000.    
     8 'norm      '    5.8072       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15014       1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.984       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1625       1.0000         .10000E-03   10000.    
    13 'norm      '    6.6215       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0217       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8335       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.9529       1.0000         .10000E-03   10000.    
    17 'norm      '    .68418E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.8221       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .25837       1.0000         .10000E-03   10000.    
    20 'norm      '    6.5403       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.5086       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .37843E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.971       1.0000         .10000E-03   10000.    
    25 'norm      '    14.572       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.9009       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.3086       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .91589       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94048       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=   5070.962     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3961 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.028        .19564E-07** at limit **
   2  Prefactor     .10000E-03    37.577        .40963E-07** at limit **
   3  Prefactor     8.9081        13.446        .16262E-05   -.13813E-03
   4  norm          .67783        .28364        .11002E-07   -.14862E-03
   5  Prefactor     2.4141        3.4773       -.23724E-06   -.10405E-03
   6  Prefactor     .10000E-03    8.0658       -.77924E-07** at limit **
   7  Prefactor     6.4942        12.537       -.63629E-06   -.53730E-04
   8  norm          5.8059        7.4941        .14414E-05   -.25372E-03
   9  norm          .10000E-03    4.6012       -.11486E-07** at limit **
  10  Prefactor     .14201        1.3398       -.15803E-06    .18563E-03
  11  Prefactor     35.016        33.892        .14944E-05    .11260E-03
  12  Prefactor     1.1639        119.61        .51298E-05   -.97113E-05
  13  norm          6.6206        3.3518        .76362E-08   -.46057E-04
  14  Prefactor     5.0198        14.016       -.16670E-05   -.73916E-04
  15  Prefactor     5.8323        5.0841       -.19975E-06   -.76479E-04
  16  Prefactor     6.9112        50.831       -.59695E-05   -.11594E-03
  17  norm          .67123E-01    .63740        .41801E-06   -.74428E-03
  18  Prefactor     9.8249        16.518       -.87929E-06   -.83723E-04
  19  Prefactor     .25870        .91444        .32498E-06   -.15734E-03
  20  norm          6.5275        6.5725        .17092E-06   -.39643E-04
  21  Prefactor     6.5050        32.006       -.16830E-05   -.35381E-04
  22  Prefactor     .10000E-03    199.15        .42043E-05** at limit **
  23  norm          .10000E-03    .41559        .13921E-07** at limit **
  24  Prefactor     16.981        37.147        .93817E-06    .16810E-04
  25  norm          14.573        4.5056       -.59206E-07   -.63338E-04
  26  Prefactor     .10000E-03    5.7370        .13287E-06** at limit **
  27  Prefactor     2.9010        2.5092        .14206E-07   -.49315E-05
  28  Prefactor     2.3088        2.6276        .12774E-06   -.63320E-04
  29  Normalizat    .91566        .19175        .10469E-05   -.19987E-03
  30  Prefactor     .94058        .20950       -.15923E-05   -.18347E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.90815
  norm       = 0.677831
  Prefactor  = 2.41414
  Prefactor  = 0.0001
  Prefactor  = 6.49416
  norm       = 5.80591
  norm       = 0.0001
  Prefactor  = 0.142014
  Prefactor  = 35.0163
  Prefactor  = 1.16388
  norm       = 6.62058
  Prefactor  = 5.01982
  Prefactor  = 5.83228
  Prefactor  = 6.91122
  norm       = 0.0671227
  Prefactor  = 9.8249
  Prefactor  = 0.258699
  norm       = 6.52749
  Prefactor  = 6.50505
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.9814
  norm       = 14.5726
  Prefactor  = 0.0001
  Prefactor  = 2.90097
  Prefactor  = 2.30883
  Normalizat = 0.915656
  Prefactor  = 0.940579
 **********
 **   18 **HESSE 
 **********

 FCN=   5070.962     FROM HESSE     STATUS=OK           606 CALLS     4567 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.9081        13.528        .67156E-03   -1.5111    
   4  norm          .67783        .28527        .23108E-04   -1.5543    
   5  Prefactor     2.4141        3.4451        .14277E-03   -1.5397    
   6  Prefactor     .10000E-03    8.1653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.4942        12.627        .15741E-03   -1.5198    
   8  norm          5.8059        7.5670        .83331E-03   -1.5226    
   9  norm          .10000E-03    4.6176        .14917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .14201        5.8593        .14988E-02   -1.5633    
  11  Prefactor     35.016        35.094        .67753E-04   -1.4524    
  12  Prefactor     1.1639        117.03        .42704E-02   -1.5492    
  13  norm          6.6206        3.3241        .82479E-04   -1.5193    
  14  Prefactor     5.0198        13.502        .17945E-03   -1.5260    
  15  Prefactor     5.8323        5.0514        .13964E-03   -1.5225    
  16  Prefactor     6.9112        53.244        .15215E-03   -1.5182    
  17  norm          .67123E-01    1.1609        .99746E-03   -1.5656    
  18  Prefactor     9.8249        16.401        .12786E-03   -1.5081    
  19  Prefactor     .25870        .93749        .12244E-02   -1.5606    
  20  norm          6.5275        6.5594        .15692E-03   -1.5197    
  21  Prefactor     6.5050        31.820        .15731E-03   -1.5198    
  22  Prefactor     .10000E-03    207.28        .39125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .42446        .44773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.981        37.038        .97223E-04   -1.4884    
  25  norm          14.573        4.5024        .76868E-04   -1.4944    
  26  Prefactor     .10000E-03    5.8026        .16652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.9010        2.5099        .97491E-04   -1.5367    
  28  Prefactor     2.3088        2.6121        .11622E-03   -1.5404    
  29  Normalizat    .91566        .21977        .23357E-03   -.95912    
  30  Prefactor     .94058        .23929        .27716E-03   -.94737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70792e-08
Minuit parameter uncertainties:
  1  2.54756e-06
  2  2.17131e-06
  3  13.5327
  4  0.285271
  5  3.44535
  6  5.19406e-06
  7  12.6317
  8  7.56825
  9  2.10876e-06
  10  1.82395
  11  35.1147
  12  23.3877
  13  3.32419
  14  13.5099
  15  5.0518
  16  38.413
  17  0.557884
  18  16.4081
  19  0.937546
  20  6.56017
  21  28.7986
  22  0.000534181
  23  6.49858e-07
  24  37.0886
  25  4.50251
  26  4.13093e-06
  27  2.50995
  28  2.61221
  29  0.219985
  30  0.239563
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  5.832e+00  5.052e+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:  9.406e-01  2.396e-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:  9.157e-01  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.23
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.04e-08 +/- 3.49e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 9.59e-06

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

Saving results to:
/scratch/kocevski/950110/likelihoodResults_498268801_498528001_4FGL_J1136.2+3407_daily_bin999.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) = 5070.96146374
delta logL = 0.000919201289435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5070.96091885
delta logL = 0.00146408902947

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6512       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6065       1.0000          .0000       10.000    
     3 'Normalizat'    .91342       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94253       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=   5070.961     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      240 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6492        6.3756        .68267E-03   -.11871E-03
   2  Index         2.6076        1.0841        .87845E-02   -.12780E-04
   3  Normalizat    .91348        .19917        .23381E-03   -.18326E-03
   4  Prefactor     .94248        .23647        .27692E-03   -.18885E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.6492
  Index      = 2.60762
  Normalizat = 0.913482
  Prefactor  = 0.942476
 **********
 **   18 **HESSE 
 **********

 FCN=   5070.961     FROM HESSE     STATUS=OK            27 CALLS      267 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6492        5.9617        .27307E-04   -1.5233    
   2  Index         2.6076        1.0139        .35138E-03   -.49892    
   3  Normalizat    .91348        .19882        .93525E-05   -.95988    
   4  Prefactor     .94248        .23617        .11077E-04   -.94672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5116e-10
Minuit parameter uncertainties:
  1  5.96231
  2  1.0231
  3  0.198978
  4  0.236428
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950110': 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) = 5070.96091803
delta logL = 0.00146491396663

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  5.649e+00  5.962e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.608e+00  1.023e+00  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:  9.425e-01  2.364e-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:  9.135e-01  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.22
Ra Dec: 174.075 34.129
Photon Index (Free Index): 2.61 +/- 1.02
Photon Flux (Free Index): 4.17e-08 +/- 4.32e-08
Energy Flux (Free Index): 1.09e-05 +/- 9.86e-06

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/950110/cmap_HighResolution_498268801_498528001_4FGL_J1136.2+3407_daily_bin999.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.21e-03', comment='SUCCESS', photon_flux='4.04e-08', energy_flux2='1.09e-05', photon_flux_error='3.49e-08', dlogl='1.46e-03', energy_flux='1.11e-05', photon_flux2='4.17e-08', job_status='DONE', time_completed='2021-09-04 05:22:43.134201', photon_index_error2='1.02', photon_index2='2.61', ts='2.23', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='9.86e-06', EG='0.92', time_epoch_completed='1630758163.13', return_code='0', job_id='950110', GAL2='0.94', EG2='0.91', return_code2='0', energy_flux_error='9.59e-06', photon_flux_error2='4.32e-08', ts2='2.22', photon_index='2.55' WHERE bin_id='999' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:22:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 950110: <4FGL_J1136.2+3407_daily_bin999> in cluster <slac> Done

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

Your job looked like:

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

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

