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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin997
RA = 174.075, Dec = 34.129
tmin = 497750401, tmax = 498009601
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='950107', job_status='RUN', time_executed='2021-09-04 05:10:33.050049', time_epoch_executed='1630757433.05' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='997'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950107

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950107/ft1_4FGL_J1136.2+3407_daily_bin997.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950107/ft2_4FGL_J1136.2+3407_daily_bin997.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950107/ft1_4FGL_J1136.2+3407_daily_bin997.fits outfile=/scratch/kocevski/950107/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin997.fits ra=174.075 dec=34.129 rad=12.0 tmin=497750401.0 tmax=498009601.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.66
user 4.42
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950107/ft1_filtered_4FGL_J1136.2+3407_daily_bin997.fits" evtable="EVENTS" scfile=/scratch/kocevski/950107/ft2_4FGL_J1136.2+3407_daily_bin997.fits sctable="SC_DATA" outfile=/scratch/kocevski/950107/ltcube_497750401_498009601_4FGL_J1136.2+3407_daily_bin997.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/950107/ft2_4FGL_J1136.2+3407_daily_bin997.fits
.....................!
real 11.67
user 11.33
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950107/ft1_filtered_4FGL_J1136.2+3407_daily_bin997.fits evtable="EVENTS" scfile=/scratch/kocevski/950107/ft2_4FGL_J1136.2+3407_daily_bin997.fits sctable="SC_DATA" expcube=/scratch/kocevski/950107/ltcube_497750401_498009601_4FGL_J1136.2+3407_daily_bin997.fits outfile=/scratch/kocevski/950107/expmap_497750401_498009601_4FGL_J1136.2+3407_daily_bin997.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/950107/ltcube_497750401_498009601_4FGL_J1136.2+3407_daily_bin997.fits
.....................!
real 189.66
user 185.06
sys 4.20

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/950107/ft1_filtered_4FGL_J1136.2+3407_daily_bin997.fits scfile=/scratch/kocevski/950107/ft2_4FGL_J1136.2+3407_daily_bin997.fits outfile=/scratch/kocevski/950107/cmap_497750401_498009601_4FGL_J1136.2+3407_daily_bin997.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950107/ft1_filtered_4FGL_J1136.2+3407_daily_bin997.fits scfile=/scratch/kocevski/950107/ft2_4FGL_J1136.2+3407_daily_bin997.fits outfile=/scratch/kocevski/950107/cmap_HighResolution_497750401_498009601_4FGL_J1136.2+3407_daily_bin997.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/950107/ft1_filtered_4FGL_J1136.2+3407_daily_bin997.fits evtable="EVENTS" scfile=/scratch/kocevski/950107/ft2_4FGL_J1136.2+3407_daily_bin997.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950107/Model_4FGL_J1136.2+3407_daily_bin997.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/950107/ft1_filtered_4FGL_J1136.2+3407_daily_bin997.fits....................!
real 45.54
user 43.99
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    64.463       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.159       1.0000         .10000E-03   10000.    
     4 'norm      '    .36342       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10501E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.906       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17161E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8500       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .48431E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .81846       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12303       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.6262       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.3351       1.0000         .10000E-03   10000.    
    24 'Prefactor '    50.755       1.0000         .10000E-03   10000.    
    25 'norm      '    12.384       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.2251       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1161       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .58529       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=   4764.467     FROM MIGRAD    STATUS=CONVERGED    791 CALLS     4001 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.154        .11774E-06** at limit **
   2  Prefactor     64.320        97.085       -.40609E-07   -.13594E-04
   3  Prefactor     17.159        12.811       -.49198E-06   -.32647E-03
   4  norm          .36345        .19664        .23404E-07    .12101E-02
   5  Prefactor     .10000E-03    2.1187        .21446E-06** at limit **
   6  Prefactor     .10000E-03    4.5059        .83206E-07** at limit **
   7  Prefactor     11.905        10.772        .43948E-07   -.35487E-04
   8  norm          .10000E-03    14.410        .20726E-06** at limit **
   9  norm          .10000E-03    4.4065        .24230E-07** at limit **
  10  Prefactor     .22270E-01    1.2570       -.76237E-06    .42951E-05
  11  Prefactor     .10000E-03    14.909        .11459E-06** at limit **
  12  Prefactor     .10000E-03    4.7419        .61595E-07** at limit **
  13  norm          2.8494        2.0948        .31159E-07   -.15093E-03
  14  Prefactor     .10000E-03    5.5626        .96428E-07** at limit **
  15  Prefactor     .37695E-01    32.015        .83180E-05   -.61118E-03
  16  Prefactor     .10000E-03    23.427        .35047E-07** at limit **
  17  norm          .81839        .78172        .86384E-07    .65593E-04
  18  Prefactor     .10000E-03    8.3158        .87349E-07** at limit **
  19  Prefactor     .12263        1.8622       -.36076E-06    .93840E-03
  20  norm          .10000E-03    3.0856        .22845E-07** at limit **
  21  Prefactor     4.5853        48.726        .51261E-06   -.12313E-03
  22  Prefactor     .10000E-03    27.611        .14785E-06** at limit **
  23  norm          1.3353        1.2418        .68937E-07    .30059E-04
  24  Prefactor     50.775        36.544        .75885E-06    .63408E-04
  25  norm          12.383        4.0938       -.17653E-06   -.85990E-04
  26  Prefactor     .10000E-03    2.4234        .28168E-07** at limit **
  27  Prefactor     .10003E-03    4.4915        .24786E-05** at limit **
  28  Prefactor     4.2249        2.7474        .11519E-07   -.60341E-04
  29  Normalizat    1.1160        .18999       -.45586E-05   -.56430E-03
  30  Prefactor     .58543        .21064        .50007E-05   -.38611E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 64.3202
  Prefactor  = 17.1591
  norm       = 0.363446
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 11.9049
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0222696
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.84941
  Prefactor  = 0.0001
  Prefactor  = 0.0376954
  Prefactor  = 0.0001
  norm       = 0.818389
  Prefactor  = 0.0001
  Prefactor  = 0.122632
  norm       = 0.0001
  Prefactor  = 4.58526
  Prefactor  = 0.0001
  norm       = 1.33527
  Prefactor  = 50.7749
  norm       = 12.3835
  Prefactor  = 0.0001
  Prefactor  = 0.000100027
  Prefactor  = 4.22493
  Normalizat = 1.11599
  Prefactor  = 0.585427
 **********
 **   18 **HESSE 
 **********

 FCN=   4764.467     FROM HESSE     STATUS=OK           598 CALLS     4599 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     64.320        96.999        .24991E-03   -1.4102    
   3  Prefactor     17.159        12.674        .96689E-04   -1.4879    
   4  norm          .36345        .19820        .21633E-04   -1.5587    
   5  Prefactor     .10000E-03    3.7378        .18841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.5151        .14311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.905        10.777        .11610E-03   -1.5018    
   8  norm          .10000E-03    14.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.4239        .14152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22270E-01    24.313        .12810E-02   -1.5678    
  11  Prefactor     .10000E-03    14.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.7462        .14681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8494        2.0917        .82034E-04   -1.5370    
  14  Prefactor     .10000E-03    5.5833        .15900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .37695E-01    4.4831        .38923E-01   -1.5669    
  16  Prefactor     .10000E-03    23.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .81839        .76195        .57202E-04   -1.5527    
  18  Prefactor     .10000E-03    8.3397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .12263        3.0401        .15084E-02   -1.5638    
  20  norm          .10000E-03    3.0869        .11842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.5853        48.700        .18713E-03   -1.5280    
  22  Prefactor     .10000E-03    27.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.3353        1.2174        .69884E-04   -1.5477    
  24  Prefactor     50.775        36.519        .56292E-04   -1.4282    
  25  norm          12.383        3.9435        .73328E-04   -1.5004    
  26  Prefactor     .10000E-03    2.4346        .10498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10003E-03    7.2224        .15419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.2249        2.7408        .87368E-04   -1.5297    
  29  Normalizat    1.1160        .19894        .20020E-03   -.89240    
  30  Prefactor     .58543        .21919        .30883E-03   -1.0820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.65354e-09
Minuit parameter uncertainties:
  1  1.02995e-05
  2  97.2391
  3  12.6763
  4  0.198198
  5  9.90018e-05
  6  1.32237e-05
  7  10.7788
  8  5.7961e-07
  9  1.48135e-06
  10  1.46894
  11  1.50007e-05
  12  7.14406e-06
  13  2.09173
  14  1.79312e-05
  15  0.821147
  16  4.42488e-05
  17  0.761956
  18  4.06319e-05
  19  1.22073
  20  2.36277e-07
  21  29.9174
  22  3.98252e-06
  23  1.21742
  24  36.5352
  25  3.94363
  26  8.48794e-06
  27  0.000876277
  28  2.7409
  29  0.199072
  30  0.219514
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  3.770e-02  8.211e-01  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.854e-01  2.195e-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.116e+00  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/950107/likelihoodResults_497750401_498009601_4FGL_J1136.2+3407_daily_bin997.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): 102
logL (Free Index) = 4764.46654564
delta logL = 0.000248245019975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4764.44296239
delta logL = 0.0238314882417

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73428       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9823       1.0000          .0000       10.000    
     3 'Normalizat'    1.1169       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58131       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=   4764.443     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      333 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73791        4.4380        .28416E-03    .39688E-04
   2  Index         1.9844        1.6929        .20875E-01   -.22612E-05
   3  Normalizat    1.1173        .18673        .20010E-03    .22726E-05
   4  Prefactor     .58104        .21579        .30992E-03   -.10271E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.737909
  Index      = 1.98436
  Normalizat = 1.11727
  Prefactor  = 0.581039
 **********
 **   18 **HESSE 
 **********

 FCN=   4764.443     FROM HESSE     STATUS=OK            27 CALLS      360 TOTAL
                     EDM=   .55E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73791        4.4443        .56832E-04   -1.5536    
   2  Index         1.9844        1.6962        .83500E-03   -.64742    
   3  Normalizat    1.1173        .18685        .80038E-05   -.89199    
   4  Prefactor     .58104        .21592        .12397E-04   -1.0839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4849e-14
Minuit parameter uncertainties:
  1  3.62205
  2  1.75204
  3  0.186963
  4  0.216227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950107': 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) = 4764.44295869
delta logL = 0.0238351858379

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  7.379e-01  3.622e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  1.984e+00  1.752e+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:  5.810e-01  2.162e-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.117e+00  1.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
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/950107/cmap_HighResolution_497750401_498009601_4FGL_J1136.2+3407_daily_bin997.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-03', job_status='DONE', photon_flux_upper_limit='7.37e-08', time_completed='2021-09-04 05:23:35.803249', job_id='950107', GAL2='0.58', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630758215.8', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='2.38e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='997' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:23:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 950107: <4FGL_J1136.2+3407_daily_bin997> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin997> 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) <bullet0232>, 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:23:36 2021
Results reported at Sat Sep  4 05:23:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin997 174.075 34.129 497750401 498009601 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 :                                   780.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             261.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            994 sec.

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

