/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 123 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 = 7390
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1136.2+3407_daily_bin199
RA = 174.075, Dec = 34.129
tmin = 290908801, tmax = 291168001
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='945589', job_status='RUN', time_executed='2021-09-04 04:54:46.589127', time_epoch_executed='1630756486.59' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945589

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945589/ft1_4FGL_J1136.2+3407_daily_bin199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945589/ft2_4FGL_J1136.2+3407_daily_bin199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945589/ft1_4FGL_J1136.2+3407_daily_bin199.fits outfile=/scratch/kocevski/945589/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin199.fits ra=174.075 dec=34.129 rad=12.0 tmin=290908801.0 tmax=291168001.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.45
user 3.22
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/945589/ft1_filtered_4FGL_J1136.2+3407_daily_bin199.fits" evtable="EVENTS" scfile=/scratch/kocevski/945589/ft2_4FGL_J1136.2+3407_daily_bin199.fits sctable="SC_DATA" outfile=/scratch/kocevski/945589/ltcube_290908801_291168001_4FGL_J1136.2+3407_daily_bin199.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/945589/ft2_4FGL_J1136.2+3407_daily_bin199.fits
.....................!
real 11.82
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945589/ft1_filtered_4FGL_J1136.2+3407_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/945589/ft2_4FGL_J1136.2+3407_daily_bin199.fits sctable="SC_DATA" expcube=/scratch/kocevski/945589/ltcube_290908801_291168001_4FGL_J1136.2+3407_daily_bin199.fits outfile=/scratch/kocevski/945589/expmap_290908801_291168001_4FGL_J1136.2+3407_daily_bin199.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/945589/ltcube_290908801_291168001_4FGL_J1136.2+3407_daily_bin199.fits
.....................!
real 190.02
user 185.36
sys 4.21

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/945589/ft1_filtered_4FGL_J1136.2+3407_daily_bin199.fits scfile=/scratch/kocevski/945589/ft2_4FGL_J1136.2+3407_daily_bin199.fits outfile=/scratch/kocevski/945589/cmap_290908801_291168001_4FGL_J1136.2+3407_daily_bin199.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.54
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.310       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9857       1.0000         .10000E-03   10000.    
     4 'norm      '    1.6114       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5260       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    21.640       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.335       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .75054       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.928       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .30141E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.888       1.0000         .10000E-03   10000.    
    17 'norm      '    3.2149       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9516       1.0000         .10000E-03   10000.    
    20 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.827       1.0000         .10000E-03   10000.    
    23 'norm      '    10.030       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.8900       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.8041       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.666       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .91165       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .75412       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5737.995     FROM MIGRAD    STATUS=CONVERGED     96 CALLS     3368 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.310        1.0016       -.21294E-07    .98564E-04
   2  Prefactor     .10012E-03    66.967       -.54840E-05** at limit **
   3  Prefactor     4.9798        1.2455        .71970E-06   -.90297E-03
   4  norm          1.6114        .36439       -.14898E-07    .65688E-03
   5  Prefactor     1.5276        2.8421       -.15818E-05   -.30111E-03
   6  Prefactor     .10007E-03    4.6338        .23111E-05** at limit **
   7  Prefactor     .10002E-03    4.1737        .52224E-05** at limit **
   8  norm          21.640        1.0008       -.64598E-08    .86074E-04
   9  norm          .10003E-03    10.292       -.12245E-04** at limit **
  10  Prefactor     .10000E-03    1.3067       -.10731E-06** at limit **
  11  Prefactor     33.325        1.7768       -.67920E-06    .54467E-02
  12  Prefactor     .10002E-03    2.3956       -.35819E-05** at limit **
  13  norm          .75286        1.8147        .75393E-07   -.93036E-04
  14  Prefactor     21.927        1.0032        .29628E-07   -.42555E-04
  15  Prefactor     .10000E-03    .38035        .52989E-06** at limit **
  16  Prefactor     14.880        1.4450       -.63418E-06    .21645E-02
  17  norm          3.2153        1.2937        .12055E-07    .55953E-03
  18  Prefactor     .10002E-03    2.4062       -.36164E-05** at limit **
  19  Prefactor     1.9519        2.0225        .32184E-06    .60399E-03
  20  norm          .10000E-03    3.8456       -.11499E-05** at limit **
  21  Prefactor     .10001E-03    12.932        .11564E-04** at limit **
  22  Prefactor     24.812        2.9949       -.16663E-05    .10605E-01
  23  norm          10.030        1.9801        .48496E-07    .98248E-03
  24  Prefactor     .10007E-03    6.2321        .57865E-06** at limit **
  25  norm          7.8901        2.6510       -.27077E-05   -.33718E-02
  26  Prefactor     .10000E-03    1.6857        .14440E-06** at limit **
  27  Prefactor     2.8041        2.1546        .12757E-05    .78781E-03
  28  Prefactor     10.666        2.1605       -.16523E-05   -.18797E-02
  29  Normalizat    .91164        .20313        .24513E-05    .48209E-04
  30  Prefactor     .75404        .23335       -.73428E-06   -.39546E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3102
  Prefactor  = 0.000100119
  Prefactor  = 4.97978
  norm       = 1.61143
  Prefactor  = 1.52759
  Prefactor  = 0.000100073
  Prefactor  = 0.000100016
  norm       = 21.6395
  norm       = 0.000100032
  Prefactor  = 0.0001
  Prefactor  = 33.325
  Prefactor  = 0.000100017
  norm       = 0.752861
  Prefactor  = 21.9271
  Prefactor  = 0.0001
  Prefactor  = 14.8796
  norm       = 3.21526
  Prefactor  = 0.000100017
  Prefactor  = 1.9519
  norm       = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 24.8118
  norm       = 10.0305
  Prefactor  = 0.00010007
  norm       = 7.89007
  Prefactor  = 0.0001
  Prefactor  = 2.80413
  Prefactor  = 10.6664
  Normalizat = 0.911639
  Prefactor  = 0.754044
 **********
 **   18 **HESSE 
 **********

 FCN=   5737.995     FROM HESSE     STATUS=OK           660 CALLS     4028 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.310        22.251        .31197E-02   -1.5066    
   2  Prefactor     .10012E-03    67.317        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.9798        13.999        .45027E-02   -1.5262    
   4  norm          1.6114        .36456        .47475E-02   -1.5454    
   5  Prefactor     1.5276        3.3898        .86420E-02   -1.5461    
   6  Prefactor     .10007E-03    6.3499        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    4.4572        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          21.640        13.586        .21526E-02   -1.4777    
   9  norm          .10003E-03    12.512        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.2592        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     33.325        30.796        .17351E-02   -1.4553    
  12  Prefactor     .10002E-03    5.0288        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .75286        1.9496        .12254E-01   -1.5534    
  14  Prefactor     21.927        12.889        .21384E-02   -1.4771    
  15  Prefactor     .10000E-03    2.3224        .62529E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.880        24.775        .25951E-02   -1.4936    
  17  norm          3.2153        1.4204        .56486E-02   -1.5349    
  18  Prefactor     .10002E-03    5.0332        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.9519        2.0413        .74261E-02   -1.5429    
  20  norm          .10000E-03    3.8491        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    14.866        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     24.812        52.835        .20099E-02   -1.4711    
  23  norm          10.030        1.9835        .31630E-02   -1.5074    
  24  Prefactor     .10007E-03    7.6654        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.8901        3.5498        .35687E-02   -1.5146    
  26  Prefactor     .10000E-03    1.6848        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.8041        2.1685        .60734E-02   -1.5373    
  28  Prefactor     10.666        3.8299        .30669E-02   -1.5055    
  29  Normalizat    .91164        .17730        .45050E-01   -.96052    
  30  Prefactor     .75404        .20090        .70613E-01   -1.0145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42058e-06
Minuit parameter uncertainties:
  1  22.2693
  2  0.00567687
  3  14.0083
  4  0.364565
  5  3.39022
  6  0.00136152
  7  0.000533384
  8  13.5883
  9  0.00127293
  10  1.54138e-05
  11  30.811
  12  0.000583852
  13  1.94976
  14  12.8909
  15  7.15523e-06
  16  24.7923
  17  1.42043
  18  0.000582287
  19  2.04134
  20  8.04162e-05
  21  0.000884084
  22  52.935
  23  1.98355
  24  0.00146968
  25  3.54992
  26  1.32875e-05
  27  2.16856
  28  3.83003
  29  0.177417
  30  0.201096
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  7.155e-06  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.540e-01  2.011e-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.116e-01  1.774e-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.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/945589/likelihoodResults_290908801_291168001_4FGL_J1136.2+3407_daily_bin199.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) = 5737.99589216
delta logL = -0.000478168970403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5737.99541411
delta logL = -1.19122887554e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5592       1.0000          .0000       10.000    
     3 'Normalizat'    .91163       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75411       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=   5737.995     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      235 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .31290        .61306E-01** at limit **
   2  Index         2.5648        5.1803        .50000       -.47458E-05
   3  Normalizat    .91164        .15698E-02    .45050E-01    .10920E-03
   4  Prefactor     .75405        .18596E-02    .70613E-01    .10591E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.56475
  Normalizat = 0.911638
  Prefactor  = 0.754046
 **********
 **   18 **HESSE 
 **********

 FCN=   5737.995     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      270 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    87.797        .22184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5648        8.0265        .50000       -.50871    
   3  Normalizat    .91164        .12602E-01    .24330E-03   -.96052    
   4  Prefactor     .75405        .14909E-01    .31247E-03   -1.0145    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19132e-07
Minuit parameter uncertainties:
  1  0.000616149
  2  289.409
  3  0.0126017
  4  0.0149095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945589': 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) = 5737.99541398
delta logL = 1.38952600537e-08

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  6.161e-04  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.565e+00  2.894e+02  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:  7.540e-01  1.491e-02  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.116e-01  1.260e-02  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/945589/cmap_HighResolution_290908801_291168001_4FGL_J1136.2+3407_daily_bin199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.48e-03', job_status='DONE', photon_flux_upper_limit='7.03e-08', time_completed='2021-09-04 05:08:53.220501', job_id='945589', GAL2='0.75', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630757333.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.39e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='199' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:08:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 945589: <4FGL_J1136.2+3407_daily_bin199> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin199> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 04:52:33 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:52:35 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:52:35 2021
Terminated at Sat Sep  4 05:08:53 2021
Results reported at Sat Sep  4 05:08:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin199 174.075 34.129 290908801 291168001 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 :                                   843.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

