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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin480
RA = 174.075, Dec = 34.129
tmin = 363744001, tmax = 364003201
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='946850', job_status='RUN', time_executed='2021-09-04 05:00:02.668419', time_epoch_executed='1630756802.67' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946850

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946850/ft1_4FGL_J1136.2+3407_daily_bin480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946850/ft2_4FGL_J1136.2+3407_daily_bin480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946850/ft1_4FGL_J1136.2+3407_daily_bin480.fits outfile=/scratch/kocevski/946850/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin480.fits ra=174.075 dec=34.129 rad=12.0 tmin=363744001.0 tmax=364003201.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 2.65
user 2.41
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/946850/ft2_4FGL_J1136.2+3407_daily_bin480.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/946850/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin480.fits evtable="EVENTS" outfile="/scratch/kocevski/946850/ft1_filtered_4FGL_J1136.2+3407_daily_bin480.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.43
user 0.26
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946850/ft1_filtered_4FGL_J1136.2+3407_daily_bin480.fits evtable="EVENTS" scfile=/scratch/kocevski/946850/ft2_4FGL_J1136.2+3407_daily_bin480.fits sctable="SC_DATA" expcube=/scratch/kocevski/946850/ltcube_363744001_364003201_4FGL_J1136.2+3407_daily_bin480.fits outfile=/scratch/kocevski/946850/expmap_363744001_364003201_4FGL_J1136.2+3407_daily_bin480.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/946850/ltcube_363744001_364003201_4FGL_J1136.2+3407_daily_bin480.fits
.....................!
real 148.95
user 144.69
sys 3.95

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/946850/ft1_filtered_4FGL_J1136.2+3407_daily_bin480.fits scfile=/scratch/kocevski/946850/ft2_4FGL_J1136.2+3407_daily_bin480.fits outfile=/scratch/kocevski/946850/cmap_363744001_364003201_4FGL_J1136.2+3407_daily_bin480.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.46
user 0.31
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946850/ft1_filtered_4FGL_J1136.2+3407_daily_bin480.fits scfile=/scratch/kocevski/946850/ft2_4FGL_J1136.2+3407_daily_bin480.fits outfile=/scratch/kocevski/946850/cmap_HighResolution_363744001_364003201_4FGL_J1136.2+3407_daily_bin480.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.47
user 0.31
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23942E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .22163E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.550       1.0000         .10000E-03   10000.    
     4 'norm      '    5.6965       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10559E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16226E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .83677E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7392       1.0000         .10000E-03   10000.    
     9 'norm      '    13.354       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5208       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24980E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27262E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6878       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .82276       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .79753E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .95485       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .66639E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2459       1.0000         .10000E-03   10000.    
    20 'norm      '    20.472       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.8586       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.726       1.0000         .10000E-03   10000.    
    23 'norm      '    4.8806       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13653E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    5.6243       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.4528       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.0312       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0009       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .78276       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=   7058.705     FROM MIGRAD    STATUS=CONVERGED    805 CALLS     2835 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.227       -.28405E-06** at limit **
   2  Prefactor     .10001E-03    28.534       -.19500E-05** at limit **
   3  Prefactor     18.580        12.835       -.15557E-06    .83450E-04
   4  norm          5.6958        .58929        .70519E-07   -.19132E-02
   5  Prefactor     .10000E-03    1.0314        .66339E-06** at limit **
   6  Prefactor     .10001E-03    132.97        .53373E-04** at limit **
   7  Prefactor     .10000E-03    15.215       -.24410E-06** at limit **
   8  norm          1.8720        20.649       -.10198E-04   -.15896E-03
   9  norm          13.470        11.758       -.16839E-06    .34435E-03
  10  Prefactor     7.5276        3.1629        .14614E-06   -.87224E-04
  11  Prefactor     .10000E-03    20.025        .47024E-06** at limit **
  12  Prefactor     .10000E-03    9.2791        .49416E-06** at limit **
  13  norm          1.6909        2.1242       -.14093E-05   -.31228E-04
  14  Prefactor     .10000E-03    4.3824        .40183E-06** at limit **
  15  Prefactor     .79930        3.2985        .63927E-07   -.26056E-03
  16  Prefactor     .10000E-03    42.909        .20990E-05** at limit **
  17  norm          .94753        .87576       -.18175E-06   -.11272E-03
  18  Prefactor     .10001E-03    40.244        .33898E-05** at limit **
  19  Prefactor     1.2468        1.8820       -.33971E-05   -.14715E-03
  20  norm          20.407        11.278        .21002E-06    .20396E-03
  21  Prefactor     9.6575        21.044        .14205E-05    .11759E-03
  22  Prefactor     16.450        36.423        .41779E-06   -.55953E-04
  23  norm          4.8835        1.3686       -.45094E-07    .16477E-03
  24  Prefactor     .10000E-03    26.895        .55728E-05** at limit **
  25  norm          5.6157        2.8733        .63249E-07   -.44807E-04
  26  Prefactor     8.4678        6.9907        .14368E-06    .97752E-04
  27  Prefactor     3.0294        2.2465       -.78261E-07    .31131E-04
  28  Prefactor     .10000E-03    .91684       -.20935E-06** at limit **
  29  Normalizat    1.0002        .17496       -.12335E-05    .32676E-03
  30  Prefactor     .78288        .19436        .50652E-05   -.27461E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 18.5802
  norm       = 5.69577
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 1.87199
  norm       = 13.4702
  Prefactor  = 7.52763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.69092
  Prefactor  = 0.0001
  Prefactor  = 0.799296
  Prefactor  = 0.000100001
  norm       = 0.947533
  Prefactor  = 0.000100008
  Prefactor  = 1.24683
  norm       = 20.4066
  Prefactor  = 9.65747
  Prefactor  = 16.45
  norm       = 4.88347
  Prefactor  = 0.000100002
  norm       = 5.61568
  Prefactor  = 8.46776
  Prefactor  = 3.02942
  Prefactor  = 0.0001
  Normalizat = 1.00023
  Prefactor  = 0.782885
 **********
 **   18 **HESSE 
 **********

 FCN=   7058.705     FROM HESSE     STATUS=OK           602 CALLS     3437 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    28.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.580        12.846        .92992E-04   -1.4846    
   4  norm          5.6958        .58928        .19636E-04   -1.5231    
   5  Prefactor     .10000E-03    1.0377        .83216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    11.747        .80672E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.409        .20875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8720        20.655        .31815E-03   -1.5434    
   9  norm          13.470        11.796        .10961E-03   -1.4974    
  10  Prefactor     7.5276        3.1349        .85475E-04   -1.5159    
  11  Prefactor     .10000E-03    20.036        .20019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.3198        .19930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6909        2.0997        .12815E-03   -1.5448    
  14  Prefactor     .10000E-03    4.3922        .17174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .79930        10.570        .26527E-02   -1.5529    
  16  Prefactor     .10000E-03    43.608        .18482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .94753        .83462        .69913E-03   -1.5513    
  18  Prefactor     .10001E-03    41.445        .42014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2468        1.8890        .13665E-03   -1.5485    
  20  norm          20.407        11.275        .88523E-04   -1.4804    
  21  Prefactor     9.6575        20.989        .12762E-03   -1.5086    
  22  Prefactor     16.450        36.364        .10437E-03   -1.4897    
  23  norm          4.8835        1.3688        .50058E-04   -1.5266    
  24  Prefactor     .10000E-03    27.060        .18182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.6157        2.8998        .91646E-04   -1.5234    
  26  Prefactor     8.4678        6.9948        .13788E-03   -1.5126    
  27  Prefactor     3.0294        2.2671        .97732E-04   -1.5360    
  28  Prefactor     .10000E-03    .94313        .15702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0002        .20122        .25276E-03   -.93023    
  30  Prefactor     .78288        .22037        .33013E-03   -1.0036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3572e-09
Minuit parameter uncertainties:
  1  1.18491e-05
  2  0.000895379
  3  12.848
  4  0.589282
  5  2.30361e-06
  6  0.000525208
  7  8.21484e-05
  8  12.4415
  9  11.7979
  10  3.13494
  11  4.19233e-05
  12  5.3447e-06
  13  2.09975
  14  1.14464e-06
  15  5.81407
  16  0.00044546
  17  0.834635
  18  0.00116217
  19  1.88909
  20  11.276
  21  21.005
  22  36.4134
  23  1.36881
  24  0.000467983
  25  2.8999
  26  6.99546
  27  2.26716
  28  8.97663e-07
  29  0.201377
  30  0.220614
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  7.993e-01  5.814e+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:  7.829e-01  2.206e-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.000e+00  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/946850/likelihoodResults_363744001_364003201_4FGL_J1136.2+3407_daily_bin480.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) = 7058.621461
delta logL = 0.0836757611287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7058.55161624
delta logL = 0.15352051939

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13297       1.0000         .10000E-03   10000.    
     2 'Index     '    4.8859       1.0000          .0000       10.000    
     3 'Normalizat'    .97134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80565       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=   7058.552     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      223 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13286        3.2540        .96673E-02    .30616E-02
   2  Index         4.8857        3.6527        .20141        .12490E-03
   3  Normalizat    .97147        .23998E-01    .45807E-01    .14541E-04
   4  Prefactor     .80562        .28224E-01    .73638E-01    .25378E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.132856
  Index      = 4.88571
  Normalizat = 0.971472
  Prefactor  = 0.805617
 **********
 **   18 **HESSE 
 **********

 FCN=   7058.552     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      256 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13286        21.333        .52503E-04   -1.5635    
   2  Index         4.8857        5.1228        .11924E-01   -.22861E-01
   3  Normalizat    .97147        .14892        .25598E-03   -.93992    
   4  Prefactor     .80562        .17199        .32589E-03   -.99522    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.45225e-08
Minuit parameter uncertainties:
  1  3.36697
  2  15.7209
  3  0.148985
  4  0.172102
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946850': 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): 102
logL (Free Index) = 7058.55161555
delta logL = 0.153521214736

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.329e-01  3.367e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  4.886e+00  1.572e+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:  8.056e-01  1.721e-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.715e-01  1.490e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/946850/cmap_HighResolution_363744001_364003201_4FGL_J1136.2+3407_daily_bin480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.31e-03', job_status='DONE', photon_flux_upper_limit='9.37e-08', time_completed='2021-09-04 05:11:38.775490', job_id='946850', GAL2='0.81', fit_tolerance='1e-08', EG2='0.97', EG='1.00', time_epoch_completed='1630757498.78', return_code2='102', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.54e-01', ts2='0.35', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='480' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:11:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 946850: <4FGL_J1136.2+3407_daily_bin480> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin480> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 04:56:38 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:56:40 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:56:40 2021
Terminated at Sat Sep  4 05:11:39 2021
Results reported at Sat Sep  4 05:11:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin480 174.075 34.129 363744001 364003201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1136.2+3407 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   691.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            901 sec.

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

