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


Performing analysis on: 4FGL_J1136.4+6736_daily_bin75
RA = 174.118, Dec = 67.6127
tmin = 258768001, tmax = 259027201
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='953300', job_status='RUN', time_executed='2021-09-04 05:19:21.597408', time_epoch_executed='1630757961.6' WHERE source_name='4FGL J1136.4+6736' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953300

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953300/ft1_4FGL_J1136.4+6736_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953300/ft2_4FGL_J1136.4+6736_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953300/ft1_4FGL_J1136.4+6736_daily_bin75.fits outfile=/scratch/kocevski/953300/ft1_filteredMKT_4FGL_J1136.4+6736_daily_bin75.fits ra=174.118 dec=67.6127 rad=12.0 tmin=258768001.0 tmax=259027201.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.13
user 0.94
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/953300/ft2_4FGL_J1136.4+6736_daily_bin75.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953300/ft2_4FGL_J1136.4+6736_daily_bin75.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/953300/ft1_filteredMKT_4FGL_J1136.4+6736_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/953300/ft1_filtered_4FGL_J1136.4+6736_daily_bin75.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953300/ft1_filtered_4FGL_J1136.4+6736_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/953300/ft2_4FGL_J1136.4+6736_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/953300/ltcube_258768001_259027201_4FGL_J1136.4+6736_daily_bin75.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/953300/ft2_4FGL_J1136.4+6736_daily_bin75.fits
.....................!
real 9.01
user 8.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953300/ft1_filtered_4FGL_J1136.4+6736_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/953300/ft2_4FGL_J1136.4+6736_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/953300/ltcube_258768001_259027201_4FGL_J1136.4+6736_daily_bin75.fits outfile=/scratch/kocevski/953300/expmap_258768001_259027201_4FGL_J1136.4+6736_daily_bin75.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/953300/ltcube_258768001_259027201_4FGL_J1136.4+6736_daily_bin75.fits
.....................!
real 190.02
user 185.12
sys 4.53

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 237 point sources and 0 extended sources

Setting source of interest to:
4FGL J1136.4+6736 @ 174.118 67.6127

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/953300/ft1_filtered_4FGL_J1136.4+6736_daily_bin75.fits scfile=/scratch/kocevski/953300/ft2_4FGL_J1136.4+6736_daily_bin75.fits outfile=/scratch/kocevski/953300/cmap_258768001_259027201_4FGL_J1136.4+6736_daily_bin75.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.118 yref=67.6127 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953300/ft1_filtered_4FGL_J1136.4+6736_daily_bin75.fits scfile=/scratch/kocevski/953300/ft2_4FGL_J1136.4+6736_daily_bin75.fits outfile=/scratch/kocevski/953300/cmap_HighResolution_258768001_259027201_4FGL_J1136.4+6736_daily_bin75.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.118 yref=67.6127 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.65
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/953300/ft1_filtered_4FGL_J1136.4+6736_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/953300/ft2_4FGL_J1136.4+6736_daily_bin75.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/953300/Model_4FGL_J1136.4+6736_daily_bin75.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/953300/ft1_filtered_4FGL_J1136.4+6736_daily_bin75.fits.....................!
real 44.83
user 43.52
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/953300/ft1_filtered_4FGL_J1136.4+6736_daily_bin75.fits', '/scratch/kocevski/953300/ft2_4FGL_J1136.4+6736_daily_bin75.fits', expMap='/scratch/kocevski/953300/expmap_258768001_259027201_4FGL_J1136.4+6736_daily_bin75.fits', expCube='/scratch/kocevski/953300/ltcube_258768001_259027201_4FGL_J1136.4+6736_daily_bin75.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/953300/Model_4FGL_J1136.4+6736_daily_bin75.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1136.4+6736'

4FGL J1136.4+6736
   Spectrum: PowerLaw
389    Prefactor:  3.601e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
390        Index:  1.747e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
391        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/953300/ft1_filtered_4FGL_J1136.4+6736_daily_bin75.fits
Spacecraft file(s): /scratch/kocevski/953300/ft2_4FGL_J1136.4+6736_daily_bin75.fits
Exposure map: /scratch/kocevski/953300/expmap_258768001_259027201_4FGL_J1136.4+6736_daily_bin75.fits
Exposure cube: /scratch/kocevski/953300/ltcube_258768001_259027201_4FGL_J1136.4+6736_daily_bin75.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/953300/Model_4FGL_J1136.4+6736_daily_bin75.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) = 3548.5115501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11493E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0878       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.838       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.286       1.0000         .10000E-03   10000.    
     7 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .84422       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.630       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7878       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.817       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.645       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .78521       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12667E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.451       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.997       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1979       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .77482       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3548.333     FROM MIGRAD    STATUS=CONVERGED    874 CALLS     4574 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10041E-03    13.915       -.17041E-05** at limit **
   2  norm          1.0880        1.1867        .15629E-06    .16751E-03
   3  norm          .10000E-03    11.513       -.28345E-06** at limit **
   4  Prefactor     32.839        18.579       -.22807E-07    .22829E-04
   5  Prefactor     .10000E-03    36.856       -.22492E-05** at limit **
   6  Prefactor     33.280        29.144        .33686E-07   -.18356E-04
   7  norm          .10000E-03    3.5203       -.14746E-06** at limit **
   8  Prefactor     .10000E-03    55.211        .93419E-07** at limit **
   9  Prefactor     .10000E-03    104.26       -.17842E-05** at limit **
  10  Prefactor     .10000E-03    2.6692       -.96175E-08** at limit **
  11  norm          .84436        .66198        .51924E-07    .35245E-05
  12  norm          .10000E-03    1.6445       -.67626E-07** at limit **
  13  norm          12.630        6.8952       -.13355E-06   -.61228E-04
  14  Prefactor     .10000E-03    2.5733       -.18338E-07** at limit **
  15  Prefactor     .10000E-03    24.721        .10426E-05** at limit **
  16  Prefactor     3.7835        11.333        .10765E-04   -.20029E-03
  17  Prefactor     11.808        62.270       -.10541E-04   -.77894E-04
  18  Prefactor     .10000E-03    19.909       -.61482E-06** at limit **
  19  Prefactor     10.644        6.5503        .44902E-07   -.91598E-05
  20  norm          .10000E-03    7.4576       -.10143E-06** at limit **
  21  norm          .10000E-03    4.6174       -.22736E-06** at limit **
  22  Prefactor     .81311        13.607        .16875E-05   -.19882E-03
  23  Prefactor     .10000E-03    94.897        .38216E-07** at limit **
  24  Prefactor     11.549        191.11        .25839E-04    .13267E-03
  25  Prefactor     .10000E-03    54.839       -.28461E-06** at limit **
  26  Prefactor     .10000E-03    29.382        .18873E-06** at limit **
  27  norm          .10000E-03    7.3748        .20092E-06** at limit **
  28  Prefactor     15.988        40.712       -.61147E-06   -.48966E-04
  29  Prefactor     .10000E-03    70.416        .28787E-05** at limit **
  30  Prefactor     .10000E-03    14.541       -.71402E-06** at limit **
  31  Prefactor     .10000E-03    13.161        .84295E-06** at limit **
  32  Normalizat    1.1981        .21545        .29651E-06   -.10561E-03
  33  Prefactor     .77458        .21346       -.23089E-05    .22293E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100411
  norm       = 1.08797
  norm       = 0.0001
  Prefactor  = 32.8392
  Prefactor  = 0.000100002
  Prefactor  = 33.28
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.844364
  norm       = 0.0001
  norm       = 12.6304
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.78348
  Prefactor  = 11.8078
  Prefactor  = 0.0001
  Prefactor  = 10.6439
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.813115
  Prefactor  = 0.0001
  Prefactor  = 11.5492
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.9883
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.19812
  Prefactor  = 0.774578
 **********
 **   18 **HESSE 
 **********

 FCN=   3548.333     FROM HESSE     STATUS=OK           691 CALLS     5265 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10041E-03    101.31        .42791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0880        1.1558        .64353E-03   -1.5499    
   3  norm          .10000E-03    11.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.839        18.529        .69926E-04   -1.4561    
   5  Prefactor     .10000E-03    37.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     33.280        28.978        .69455E-04   -1.4554    
   7  norm          .10000E-03    3.5470        .10824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    55.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    104.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.6919        .94930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .84436        .65081        .41155E-04   -1.5524    
  12  norm          .10000E-03    1.6945        .14890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.630        6.8953        .11221E-03   -1.4997    
  14  Prefactor     .10000E-03    2.5816        .93284E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7835        11.543        .10371E-02   -1.5319    
  17  Prefactor     11.808        62.907        .11654E-03   -1.5021    
  18  Prefactor     .10000E-03    19.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.644        6.5539        .11580E-03   -1.5055    
  20  norm          .10000E-03    7.4587        .15888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.6334        .12476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .81311        37.579        .40816E-02   -1.5528    
  23  Prefactor     .10000E-03    95.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.549        209.41        .11839E-03   -1.5028    
  25  Prefactor     .10000E-03    55.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    29.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    7.5537        .31575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     15.988        40.759        .10014E-03   -1.4908    
  29  Prefactor     .10000E-03    70.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    14.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    13.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1981        .24815        .22544E-03   -.86661    
  33  Prefactor     .77458        .24428        .27487E-03   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95129e-09
Minuit parameter uncertainties:
  1  0.012928
  2  1.15578
  3  3.68418e-05
  4  18.5322
  5  0.000572178
  6  28.9907
  7  4.16151e-06
  8  6.48392e-05
  9  0.000766127
  10  1.70148e-06
  11  0.650819
  12  2.36503e-06
  13  6.89573
  14  7.86069e-07
  15  0.000261336
  16  11.55
  17  54.598
  18  9.38904e-05
  19  6.55439
  20  3.5348e-06
  21  4.9445e-06
  22  11.0622
  23  8.25059e-05
  24  98.7614
  25  0.000153057
  26  5.61463e-05
  27  9.66945e-06
  28  40.8304
  29  0.00115272
  30  0.00011465
  31  0.000146678
  32  0.248396
  33  0.244618
Done.

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

Extracting fit parameters...

4FGL J1136.4+6736
   Spectrum: PowerLaw
389    Prefactor:  1.000e-04  9.389e-05  1.000e-04  1.000e+04 ( 1.000e-14)
390        Index:  1.747e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
391        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
758    Prefactor:  7.746e-01  2.446e-01  0.000e+00  1.000e+01 ( 1.000e+00)
759        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
760        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
757   Normalization:  1.198e+00  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 174.118 67.613
Photon Flux Upper Limit: 6.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/953300/likelihoodResults_258768001_259027201_4FGL_J1136.4+6736_daily_bin75.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) = 3548.33301626
delta logL = -0.000238594286657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3547.13185808
delta logL = 1.20091957981

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20196E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.5804       1.0000          .0000       10.000    
     3 'Normalizat'    1.0770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84627       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3547.132     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      323 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19950E-01    .29765        .14005E-02    .48778E-02
   2  Index         4.5843        1.9492        .57537E-01    .17724E-03
   3  Normalizat    1.0768        .66134E-01    .39026E-01   -.15621E-03
   4  Prefactor     .84651        .66262E-01    .44316E-01   -.73375E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0199497
  Index      = 4.58425
  Normalizat = 1.07684
  Prefactor  = 0.846514
 **********
 **   18 **HESSE 
 **********

 FCN=   3547.132     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      354 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19950E-01    .58546        .62705E-05   -1.5680    
   2  Index         4.5843        2.9889        .23085E-02   -.83246E-01
   3  Normalizat    1.0768        .21946        .23564E-03   -.90499    
   4  Prefactor     .84651        .21624        .26410E-03   -.98036    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.36448e-10
Minuit parameter uncertainties:
  1  0.215606
  2  3.20541
  3  0.219641
  4  0.216456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953300': 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) = 3547.13185514
delta logL = 1.200922526

Extracting fit parameters...

4FGL J1136.4+6736
   Spectrum: PowerLaw
389    Prefactor:  1.995e-02  2.156e-01  1.000e-04  1.000e+04 ( 1.000e-14)
390        Index:  4.584e+00  3.205e+00  0.000e+00  1.000e+01 (-1.000e+00)
391        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
758    Prefactor:  8.465e-01  2.165e-01  0.000e+00  1.000e+01 ( 1.000e+00)
759        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
760        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
757   Normalization:  1.077e+00  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.57
Ra Dec: 174.118 67.613
Photon Index (Free Index): 4.58 +/- 3.21
Photon Flux (Free Index): 1.00e-07 +/- 7.64e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.16e-05

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/953300/cmap_HighResolution_258768001_259027201_4FGL_J1136.4+6736_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-03', comment='SUCCESS', energy_flux2='1.39e-05', dlogl='1.20e+00', photon_flux2='1.00e-07', job_status='DONE', time_completed='2021-09-04 05:32:23.993134', photon_index_error2='3.21', photon_index2='4.58', ts='-0.00', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='6.25e-08', energy_flux_error2='1.16e-05', EG='1.20', time_epoch_completed='1630758743.99', return_code='0', job_id='953300', GAL2='0.85', EG2='1.08', return_code2='102', photon_flux_error2='7.64e-08', ts2='2.57', photon_index='1.75' WHERE bin_id='75' AND source_name='4FGL J1136.4+6736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:32:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 953300: <4FGL_J1136.4+6736_daily_bin75> in cluster <slac> Done

Job <4FGL_J1136.4+6736_daily_bin75> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 05:16:55 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:16:56 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:16:56 2021
Terminated at Sat Sep  4 05:32:24 2021
Results reported at Sat Sep  4 05:32:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.4+6736_daily_bin75 174.118 67.6127 258768001 259027201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1136.4+6736 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   782.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             279.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            929 sec.

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

