/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 52 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 = 7009
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1136.2+3407_daily_bin43
RA = 174.075, Dec = 34.129
tmin = 250473601, tmax = 250732801
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='944110', job_status='RUN', time_executed='2021-09-04 04:48:48.756240', time_epoch_executed='1630756128.76' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='43'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/944110

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/944110/ft1_4FGL_J1136.2+3407_daily_bin43.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/944110/ft2_4FGL_J1136.2+3407_daily_bin43.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/944110/ft1_4FGL_J1136.2+3407_daily_bin43.fits outfile=/scratch/kocevski/944110/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin43.fits ra=174.075 dec=34.129 rad=12.0 tmin=250473601.0 tmax=250732801.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 1.32
user 1.16
sys 0.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/944110/ft2_4FGL_J1136.2+3407_daily_bin43.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/944110/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin43.fits evtable="EVENTS" outfile="/scratch/kocevski/944110/ft1_filtered_4FGL_J1136.2+3407_daily_bin43.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.45
user 0.33
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/944110/ft1_filtered_4FGL_J1136.2+3407_daily_bin43.fits" evtable="EVENTS" scfile=/scratch/kocevski/944110/ft2_4FGL_J1136.2+3407_daily_bin43.fits sctable="SC_DATA" outfile=/scratch/kocevski/944110/ltcube_250473601_250732801_4FGL_J1136.2+3407_daily_bin43.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/944110/ft2_4FGL_J1136.2+3407_daily_bin43.fits
.....................!
real 11.68
user 11.34
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/944110/ft1_filtered_4FGL_J1136.2+3407_daily_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/944110/ft2_4FGL_J1136.2+3407_daily_bin43.fits sctable="SC_DATA" expcube=/scratch/kocevski/944110/ltcube_250473601_250732801_4FGL_J1136.2+3407_daily_bin43.fits outfile=/scratch/kocevski/944110/expmap_250473601_250732801_4FGL_J1136.2+3407_daily_bin43.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/944110/ltcube_250473601_250732801_4FGL_J1136.2+3407_daily_bin43.fits
.....................!
real 189.20
user 184.86
sys 3.98

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/944110/ft1_filtered_4FGL_J1136.2+3407_daily_bin43.fits scfile=/scratch/kocevski/944110/ft2_4FGL_J1136.2+3407_daily_bin43.fits outfile=/scratch/kocevski/944110/cmap_250473601_250732801_4FGL_J1136.2+3407_daily_bin43.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.15

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .56123E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6976       1.0000         .10000E-03   10000.    
     4 'norm      '    1.0188       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4395       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9357       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.9976       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3064       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4061       1.0000         .10000E-03   10000.    
    16 'Prefactor '    75.502       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4243       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .88032E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    43.750       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.9891       1.0000         .10000E-03   10000.    
    23 'norm      '    4.2660       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.0062       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.1475       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.7175       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .72889       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .97176       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=   5936.302     FROM MIGRAD    STATUS=CONVERGED    740 CALLS     3916 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8120        .34803E-05** at limit **
   2  Prefactor     .10001E-03    309.33       -.34099E-03** at limit **
   3  Prefactor     5.6971        10.890       -.19357E-06   -.92044E-04
   4  norm          1.0188        .28135       -.10421E-07    .12987E-02
   5  Prefactor     1.4392        2.4300       -.35219E-06   -.65490E-03
   6  Prefactor     5.9373        11.886        .11124E-05   -.29797E-04
   7  Prefactor     .10000E-03    11.124        .37736E-05** at limit **
   8  norm          .10000E-03    5.9416       -.11157E-05** at limit **
   9  norm          2.9971        7.2224       -.52069E-06   -.30242E-03
  10  Prefactor     .10000E-03    .84065       -.24236E-07** at limit **
  11  Prefactor     .10000E-03    10.021       -.20493E-05** at limit **
  12  Prefactor     .10000E-03    8.4414       -.41190E-05** at limit **
  13  norm          .10000E-03    .83932       -.63417E-07** at limit **
  14  Prefactor     5.3066        11.339        .30718E-06   -.42426E-04
  15  Prefactor     1.4048        4.0604        .10030E-05   -.90802E-03
  16  Prefactor     75.501        39.266       -.83092E-06    .55282E-04
  17  norm          1.4241        .96001       -.23301E-06   -.46366E-03
  18  Prefactor     .10000E-03    7.0575        .24681E-05** at limit **
  19  Prefactor     .85774E-01    .77940       -.76534E-06    .13540E-02
  20  norm          .10000E-03    2.8885       -.18027E-07** at limit **
  21  Prefactor     43.750        27.821        .52493E-06    .11674E-04
  22  Prefactor     3.9952        41.913        .20687E-04   -.19871E-04
  23  norm          4.2662        1.3301       -.11974E-07    .17881E-03
  24  Prefactor     .10000E-03    16.782        .17141E-05** at limit **
  25  norm          2.0062        1.8009        .91763E-07    .11353E-03
  26  Prefactor     .10000E-03    7.4047       -.12377E-05** at limit **
  27  Prefactor     1.1475        1.0053        .26623E-07    .26433E-03
  28  Prefactor     6.7178        2.7259       -.28321E-06   -.44563E-04
  29  Normalizat    .72876        .16061        .14187E-05    .62409E-03
  30  Prefactor     .97198        .18363       -.12571E-05    .49317E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 5.69706
  norm       = 1.01879
  Prefactor  = 1.43915
  Prefactor  = 5.9373
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.99711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.30665
  Prefactor  = 1.4048
  Prefactor  = 75.5014
  norm       = 1.42413
  Prefactor  = 0.0001
  Prefactor  = 0.0857737
  norm       = 0.0001
  Prefactor  = 43.7501
  Prefactor  = 3.9952
  norm       = 4.26616
  Prefactor  = 0.0001
  norm       = 2.00621
  Prefactor  = 0.0001
  Prefactor  = 1.14748
  Prefactor  = 6.71782
  Normalizat = 0.728763
  Prefactor  = 0.971976
 **********
 **   18 **HESSE 
 **********

 FCN=   5936.302     FROM HESSE     STATUS=OK           592 CALLS     4508 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    309.44        .21099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.6971        10.743        .16828E-03   -1.5231    
   4  norm          1.0188        .28195        .20464E-04   -1.5506    
   5  Prefactor     1.4392        2.3688        .13928E-03   -1.5468    
   6  Prefactor     5.9373        11.885        .16482E-03   -1.5221    
   7  Prefactor     .10000E-03    11.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.9630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.9971        7.2070        .23445E-03   -1.5362    
  10  Prefactor     .10000E-03    .85507        .68862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.4777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4085        .13691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3066        11.310        .17448E-03   -1.5247    
  15  Prefactor     1.4048        4.0162        .24709E-03   -1.5471    
  16  Prefactor     75.501        39.181        .46210E-04   -1.3968    
  17  norm          1.4241        .94985        .55990E-04   -1.5469    
  18  Prefactor     .10000E-03    7.0796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .85774E-01    5.0856        .12987E-02   -1.5649    
  20  norm          .10000E-03    2.8892        .12786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     43.750        27.863        .60611E-04   -1.4384    
  22  Prefactor     3.9952        41.600        .20193E-03   -1.5308    
  23  norm          4.2662        1.3291        .47239E-04   -1.5295    
  24  Prefactor     .10000E-03    16.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.0062        1.8071        .93840E-04   -1.5425    
  26  Prefactor     .10000E-03    7.7527        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.1475        1.1319        .69900E-03   -1.5494    
  28  Prefactor     6.7178        2.7208        .77057E-04   -1.5190    
  29  Normalizat    .72876        .18382        .24704E-03   -1.0277    
  30  Prefactor     .97198        .21085        .25795E-03   -.93670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91213e-09
Minuit parameter uncertainties:
  1  1.42742e-06
  2  0.00317613
  3  10.7471
  4  0.281945
  5  2.36891
  6  11.8894
  7  1.66443e-05
  8  1.00483e-05
  9  7.20903
  10  3.30192e-06
  11  4.38052e-06
  12  4.33902e-06
  13  3.18487e-06
  14  11.3142
  15  4.01697
  16  39.1943
  17  0.949862
  18  1.08956e-05
  19  1.32028
  20  1.92553e-05
  21  27.8715
  22  25.8064
  23  1.3291
  24  1.87909e-05
  25  1.80712
  26  8.68238e-06
  27  1.13189
  28  2.72083
  29  0.18398
  30  0.211027
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.405e+00  4.017e+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.720e-01  2.110e-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:  7.288e-01  1.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 174.075 34.129
Photon Flux Upper Limit: 7.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/944110/likelihoodResults_250473601_250732801_4FGL_J1136.2+3407_daily_bin43.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) = 5936.29820248
delta logL = 0.00379855791653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5936.29716197
delta logL = 0.00483906395311

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5787       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4092       1.0000          .0000       10.000    
     3 'Normalizat'    .72989       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97076       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5936.297     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      259 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5830        4.6115        .25540E-03    .34889E-04
   2  Index         2.4052        1.4426        .12467E-01    .13806E-05
   3  Normalizat    .72995        .17380        .24685E-03   -.55266E-06
   4  Prefactor     .97062        .20797        .25810E-03   -.39642E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.58296
  Index      = 2.40524
  Normalizat = 0.729955
  Prefactor  = 0.97062
 **********
 **   18 **HESSE 
 **********

 FCN=   5936.297     FROM HESSE     STATUS=OK            27 CALLS      286 TOTAL
                     EDM=   .71E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5830        4.5016        .51080E-04   -1.5456    
   2  Index         2.4052        1.4099        .49869E-03   -.54563    
   3  Normalizat    .72995        .17395        .98739E-05   -1.0272    
   4  Prefactor     .97062        .20809        .10324E-04   -.93715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.05287e-16
Minuit parameter uncertainties:
  1  4.50252
  2  1.43686
  3  0.174083
  4  0.208258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/944110': 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) = 5936.29715795
delta logL = 0.00484308792238

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.583e+00  4.503e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.405e+00  1.437e+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.706e-01  2.083e-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:  7.300e-01  1.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
Ra Dec: 174.075 34.129

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/944110/cmap_HighResolution_250473601_250732801_4FGL_J1136.2+3407_daily_bin43.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.15e-03', job_status='DONE', photon_flux_upper_limit='7.88e-08', time_completed='2021-09-04 05:02:57.493373', job_id='944110', GAL2='0.97', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1630756977.49', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='4.84e-03', ts2='0.15', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='43' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:02:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 944110: <4FGL_J1136.2+3407_daily_bin43> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin43> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 04:47:37 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:47:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 04:47:39 2021
Terminated at Sat Sep  4 05:02:58 2021
Results reported at Sat Sep  4 05:02:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin43 174.075 34.129 250473601 250732801 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 :                                   847.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            921 sec.

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

