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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin854
RA = 174.075, Dec = 34.129
tmin = 460684801, tmax = 460944001
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='949902', job_status='RUN', time_executed='2021-09-04 05:06:53.833299', time_epoch_executed='1630757213.83' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/949902

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/949902/ft1_4FGL_J1136.2+3407_daily_bin854.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/949902/ft2_4FGL_J1136.2+3407_daily_bin854.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/949902/ft1_4FGL_J1136.2+3407_daily_bin854.fits outfile=/scratch/kocevski/949902/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin854.fits ra=174.075 dec=34.129 rad=12.0 tmin=460684801.0 tmax=460944001.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 3.32
user 3.10
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/949902/ft1_filtered_4FGL_J1136.2+3407_daily_bin854.fits evtable="EVENTS" scfile=/scratch/kocevski/949902/ft2_4FGL_J1136.2+3407_daily_bin854.fits sctable="SC_DATA" expcube=/scratch/kocevski/949902/ltcube_460684801_460944001_4FGL_J1136.2+3407_daily_bin854.fits outfile=/scratch/kocevski/949902/expmap_460684801_460944001_4FGL_J1136.2+3407_daily_bin854.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/949902/ltcube_460684801_460944001_4FGL_J1136.2+3407_daily_bin854.fits
.....................!
real 191.30
user 186.44
sys 4.45

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/949902/ft1_filtered_4FGL_J1136.2+3407_daily_bin854.fits scfile=/scratch/kocevski/949902/ft2_4FGL_J1136.2+3407_daily_bin854.fits outfile=/scratch/kocevski/949902/cmap_460684801_460944001_4FGL_J1136.2+3407_daily_bin854.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/949902/ft1_filtered_4FGL_J1136.2+3407_daily_bin854.fits scfile=/scratch/kocevski/949902/ft2_4FGL_J1136.2+3407_daily_bin854.fits outfile=/scratch/kocevski/949902/cmap_HighResolution_460684801_460944001_4FGL_J1136.2+3407_daily_bin854.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.61
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.546       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.8595       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9407       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4851       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .77044       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.185       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8686       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9644       1.0000         .10000E-03   10000.    
    20 'norm      '    6.5948       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6316       1.0000         .10000E-03   10000.    
    23 'norm      '    4.8411       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.0154       1.0000         .10000E-03   10000.    
    25 'norm      '    6.0245       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.2486       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .29227       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1207       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93346       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=   6693.608     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3897 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.545        32.815       -.20499E-05    .42185E-06
   2  Prefactor     .10000E-03    23.866        .97138E-05** at limit **
   3  Prefactor     .10000E-03    6.9949       -.52709E-05** at limit **
   4  norm          1.8595        .35822       -.11674E-07   -.44449E-03
   5  Prefactor     1.9404        2.3350       -.17983E-06   -.33423E-03
   6  Prefactor     .10000E-03    6.3977        .17438E-05** at limit **
   7  Prefactor     .10000E-03    8.1290        .34364E-05** at limit **
   8  norm          .10000E-03    7.8047        .30305E-05** at limit **
   9  norm          .10000E-03    2.8984       -.14945E-07** at limit **
  10  Prefactor     2.4842        2.1426       -.78005E-07   -.35593E-03
  11  Prefactor     .10000E-03    14.434        .87237E-05** at limit **
  12  Prefactor     .10000E-03    7.4365        .97903E-07** at limit **
  13  norm          .77225        1.6388       -.39690E-06   -.15160E-02
  14  Prefactor     .10000E-03    4.4697       -.38954E-07** at limit **
  15  Prefactor     10.185        5.7342       -.88470E-07    .20177E-05
  16  Prefactor     .10000E-03    19.215       -.17689E-04** at limit **
  17  norm          1.8688        .93444        .19641E-06    .10587E-02
  18  Prefactor     .10000E-03    15.402        .37635E-05** at limit **
  19  Prefactor     3.9646        2.0875       -.81903E-07   -.20135E-03
  20  norm          6.5955        6.8778        .22326E-06    .94501E-04
  21  Prefactor     .10000E-03    10.252       -.66616E-05** at limit **
  22  Prefactor     1.5768        175.17       -.33339E-04   -.20161E-04
  23  norm          4.8412        1.4202       -.16136E-07    .25251E-03
  24  Prefactor     8.0149        24.713       -.10890E-05    .15465E-04
  25  norm          6.0246        2.8370        .63402E-07    .34577E-03
  26  Prefactor     5.2487        6.7514       -.24279E-06   -.13715E-03
  27  Prefactor     .10000E-03    .77739        .11620E-07** at limit **
  28  Prefactor     .29263        1.5662       -.89691E-06   -.63604E-03
  29  Normalizat    1.1207        .17538        .87107E-06    .22612E-03
  30  Prefactor     .93346        .20305        .59731E-06    .17453E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.5452
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.85951
  Prefactor  = 1.94045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.48416
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.772254
  Prefactor  = 0.0001
  Prefactor  = 10.1848
  Prefactor  = 0.0001
  norm       = 1.86878
  Prefactor  = 0.0001
  Prefactor  = 3.96456
  norm       = 6.59547
  Prefactor  = 0.0001
  Prefactor  = 1.57684
  norm       = 4.8412
  Prefactor  = 8.01485
  norm       = 6.02456
  Prefactor  = 5.24867
  Prefactor  = 0.0001
  Prefactor  = 0.292634
  Normalizat = 1.12068
  Prefactor  = 0.933455
 **********
 **   18 **HESSE 
 **********

 FCN=   6693.608     FROM HESSE     STATUS=OK           590 CALLS     4487 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.545        32.891        .73708E-04   -1.4620    
   2  Prefactor     .10000E-03    23.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.0008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.8595        .35875        .20760E-04   -1.5435    
   5  Prefactor     1.9404        2.3198        .13144E-03   -1.5429    
   6  Prefactor     .10000E-03    6.4082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.1510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.8189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.9019        .13602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4842        2.1058        .10378E-03   -1.5393    
  11  Prefactor     .10000E-03    14.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.4528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .77225        1.3802        .14435E-02   -1.5532    
  14  Prefactor     .10000E-03    4.4780        .16891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.185        5.7352        .12555E-03   -1.5070    
  16  Prefactor     .10000E-03    19.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8688        .92781        .52507E-04   -1.5435    
  18  Prefactor     .10000E-03    15.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.9646        2.0879        .82547E-04   -1.5310    
  20  norm          6.5955        6.8768        .15627E-03   -1.5194    
  21  Prefactor     .10000E-03    10.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.5768        179.09        .33103E-03   -1.5457    
  23  norm          4.8412        1.4198        .50770E-04   -1.5268    
  24  Prefactor     8.0149        24.774        .14162E-03   -1.5142    
  25  norm          6.0246        2.8302        .89516E-04   -1.5217    
  26  Prefactor     5.2487        6.7475        .17545E-03   -1.5250    
  27  Prefactor     .10000E-03    .78626        .70357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .29263        3.1406        .19352E-02   -1.5600    
  29  Normalizat    1.1207        .20950        .24257E-03   -.89091    
  30  Prefactor     .93346        .24183        .31388E-03   -.94982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0687e-09
Minuit parameter uncertainties:
  1  32.9115
  2  2.60134e-06
  3  7.41262e-06
  4  0.358752
  5  2.31989
  6  4.40896e-06
  7  6.82004e-06
  8  7.90933e-06
  9  2.06854e-06
  10  2.1059
  11  4.72218e-06
  12  5.98142e-06
  13  1.38027
  14  3.38697e-06
  15  5.7355
  16  1.7438e-05
  17  0.92782
  18  2.66224e-05
  19  2.08798
  20  6.87762
  21  3.65955e-06
  22  33.7122
  23  1.41977
  24  24.8054
  25  2.83022
  26  6.74845
  27  1.2282e-06
  28  1.91714
  29  0.209654
  30  0.24211
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.018e+01  5.735e+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.335e-01  2.421e-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.121e+00  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.18
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 7.05e-08 +/- 3.97e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.09e-05

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) = 6693.41864894
delta logL = 0.189078487237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6693.40970079
delta logL = 0.198026644281

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6693.410     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      275 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.406        6.6453        .11862E-03   -.16408E-02
   2  Index         2.1909        .54772        .86989E-02   -.27888E-03
   3  Normalizat    1.1482        .20515        .24007E-03    .12019E-03
   4  Prefactor     .91078        .24120        .31722E-03    .85617E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4064
  Index      = 2.19092
  Normalizat = 1.14824
  Prefactor  = 0.910781
 **********
 **   18 **HESSE 
 **********

 FCN=   6693.410     FROM HESSE     STATUS=OK            23 CALLS      298 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.406        6.6455        .23724E-04   -1.5032    
   2  Index         2.1909        .54734        .34795E-03   -.59658    
   3  Normalizat    1.1482        .20530        .96028E-05   -.88218    
   4  Prefactor     .91078        .24137        .12689E-04   -.95765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5696e-09
Minuit parameter uncertainties:
  1  6.64596
  2  0.548949
  3  0.205443
  4  0.24165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/949902': 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) = 6693.40970066
delta logL = 0.198026773706

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.141e+01  6.646e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.191e+00  5.489e-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:  9.108e-01  2.416e-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.148e+00  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.54
Ra Dec: 174.075 34.129
Photon Index (Free Index): 2.19 +/- 0.55
Photon Flux (Free Index): 5.30e-08 +/- 4.27e-08
Energy Flux (Free Index): 2.42e-05 +/- 1.82e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/949902/cmap_HighResolution_460684801_460944001_4FGL_J1136.2+3407_daily_bin854.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.05e-08', energy_flux2='2.42e-05', photon_flux_error='3.97e-08', dlogl='1.98e-01', energy_flux='1.93e-05', photon_flux2='5.30e-08', job_status='DONE', time_completed='2021-09-04 05:20:56.772086', photon_index_error2='0.55', photon_index2='2.19', ts='7.18', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.82e-05', EG='1.12', time_epoch_completed='1630758056.77', return_code='0', job_id='949902', GAL2='0.91', EG2='1.15', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='4.27e-08', ts2='7.54', photon_index='2.55' WHERE bin_id='854' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:20:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 949902: <4FGL_J1136.2+3407_daily_bin854> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin854> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 05:06:43 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:06:44 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:06:44 2021
Terminated at Sat Sep  4 05:20:57 2021
Results reported at Sat Sep  4 05:20:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin854 174.075 34.129 460684801 460944001 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 :                                   839.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            854 sec.

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

