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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin711
RA = 174.075, Dec = 34.129
tmin = 423619201, tmax = 423878401
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='948170', job_status='RUN', time_executed='2021-09-04 05:03:37.110026', time_epoch_executed='1630757017.11' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948170

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948170/ft1_4FGL_J1136.2+3407_daily_bin711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948170/ft2_4FGL_J1136.2+3407_daily_bin711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948170/ft1_4FGL_J1136.2+3407_daily_bin711.fits outfile=/scratch/kocevski/948170/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin711.fits ra=174.075 dec=34.129 rad=12.0 tmin=423619201.0 tmax=423878401.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 5.84
user 5.47
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948170/ft1_filtered_4FGL_J1136.2+3407_daily_bin711.fits" evtable="EVENTS" scfile=/scratch/kocevski/948170/ft2_4FGL_J1136.2+3407_daily_bin711.fits sctable="SC_DATA" outfile=/scratch/kocevski/948170/ltcube_423619201_423878401_4FGL_J1136.2+3407_daily_bin711.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/948170/ft2_4FGL_J1136.2+3407_daily_bin711.fits
.....................!
real 11.65
user 11.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948170/ft1_filtered_4FGL_J1136.2+3407_daily_bin711.fits evtable="EVENTS" scfile=/scratch/kocevski/948170/ft2_4FGL_J1136.2+3407_daily_bin711.fits sctable="SC_DATA" expcube=/scratch/kocevski/948170/ltcube_423619201_423878401_4FGL_J1136.2+3407_daily_bin711.fits outfile=/scratch/kocevski/948170/expmap_423619201_423878401_4FGL_J1136.2+3407_daily_bin711.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/948170/ltcube_423619201_423878401_4FGL_J1136.2+3407_daily_bin711.fits
.....................!
real 189.62
user 184.90
sys 4.25

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/948170/ft1_filtered_4FGL_J1136.2+3407_daily_bin711.fits scfile=/scratch/kocevski/948170/ft2_4FGL_J1136.2+3407_daily_bin711.fits outfile=/scratch/kocevski/948170/cmap_423619201_423878401_4FGL_J1136.2+3407_daily_bin711.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.59
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948170/ft1_filtered_4FGL_J1136.2+3407_daily_bin711.fits scfile=/scratch/kocevski/948170/ft2_4FGL_J1136.2+3407_daily_bin711.fits outfile=/scratch/kocevski/948170/cmap_HighResolution_423619201_423878401_4FGL_J1136.2+3407_daily_bin711.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=174.075 yref=34.129 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.308       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2506       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.876       1.0000         .10000E-03   10000.    
     7 'Prefactor '    53.571       1.0000         .10000E-03   10000.    
     8 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .61383       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    69.270       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.3612       1.0000         .10000E-03   10000.    
    13 'norm      '    2.4771       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    49.340       1.0000         .10000E-03   10000.    
    17 'norm      '    7.2820       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7920       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.772       1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.309       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .57884E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.7693       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10929E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    21.505       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1191       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .80005       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=   3580.539     FROM MIGRAD    STATUS=CONVERGED    771 CALLS     3909 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.248       -.64738E-06** at limit **
   2  Prefactor     18.272        151.48       -.82379E-04    .90978E-05
   3  Prefactor     .10000E-03    8.4953       -.16173E-06** at limit **
   4  norm          1.2507        .48325       -.38238E-07    .48332E-03
   5  Prefactor     .10000E-03    3.8006       -.39394E-06** at limit **
   6  Prefactor     11.849        23.022       -.16868E-06    .26672E-04
   7  Prefactor     53.556        30.740       -.50186E-06    .29185E-04
   8  norm          .10000E-03    5.9499       -.16107E-06** at limit **
   9  norm          .45891        16.945       -.32546E-05   -.13133E-03
  10  Prefactor     .10000E-03    2.6182        .23701E-06** at limit **
  11  Prefactor     69.266        57.512       -.50082E-05    .21113E-04
  12  Prefactor     8.3725        24.767        .39455E-05    .11101E-03
  13  norm          2.4764        2.5815        .70954E-06    .34719E-03
  14  Prefactor     .10000E-03    27.019       -.26227E-06** at limit **
  15  Prefactor     .10000E-03    2.1128        .15848E-06** at limit **
  16  Prefactor     49.320        70.826       -.26831E-04    .14442E-03
  17  norm          7.2817        2.4658        .10363E-05    .30405E-02
  18  Prefactor     1.7957        71.049       -.43248E-05   -.27318E-04
  19  Prefactor     .10000E-03    2.8454       -.21060E-06** at limit **
  20  norm          14.788        20.509       -.22843E-05    .34915E-03
  21  Prefactor     35.268        39.180       -.31485E-04    .98653E-04
  22  Prefactor     .10000E-03    492.54       -.17291E-03** at limit **
  23  norm          3.7689        2.0762        .34300E-06    .45598E-03
  24  Prefactor     .10001E-03    69.163       -.78697E-05** at limit **
  25  norm          21.504        6.8696        .52992E-07    .13444E-03
  26  Prefactor     .10000E-03    4.1248        .47863E-07** at limit **
  27  Prefactor     .10000E-03    1.5384       -.47734E-08** at limit **
  28  Prefactor     .10000E-03    1.1253       -.31382E-07** at limit **
  29  Normalizat    1.1197        .25765        .11217E-04    .28034E-03
  30  Prefactor     .79987        .26930       -.19302E-05    .55301E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.2717
  Prefactor  = 0.0001
  norm       = 1.25066
  Prefactor  = 0.0001
  Prefactor  = 11.8487
  Prefactor  = 53.556
  norm       = 0.0001
  norm       = 0.458906
  Prefactor  = 0.0001
  Prefactor  = 69.2658
  Prefactor  = 8.37247
  norm       = 2.47644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.3203
  norm       = 7.28175
  Prefactor  = 1.79574
  Prefactor  = 0.0001
  norm       = 14.7883
  Prefactor  = 35.2676
  Prefactor  = 0.000100002
  norm       = 3.76892
  Prefactor  = 0.000100006
  norm       = 21.5039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11966
  Prefactor  = 0.799868
 **********
 **   18 **HESSE 
 **********

 FCN=   3580.539     FROM HESSE     STATUS=OK           578 CALLS     4487 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.272        152.85        .93604E-04   -1.4853    
   3  Prefactor     .10000E-03    8.5182        .17033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2507        .48526        .23418E-04   -1.5484    
   5  Prefactor     .10000E-03    3.9769        .22750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.849        23.136        .11625E-03   -1.5019    
   7  Prefactor     53.556        30.910        .54800E-04   -1.4243    
   8  norm          .10000E-03    5.9549        .14254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .45891        249.97        .44859E-02   -1.5572    
  10  Prefactor     .10000E-03    2.6679        .18776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     69.266        57.118        .48229E-04   -1.4042    
  12  Prefactor     8.3725        24.833        .13864E-03   -1.5129    
  13  norm          2.4764        2.5760        .92598E-04   -1.5393    
  14  Prefactor     .10000E-03    27.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.1179        .84932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     49.320        71.203        .57090E-04   -1.4302    
  17  norm          7.2817        2.4850        .47594E-04   -1.5168    
  18  Prefactor     1.7957        70.729        .31243E-03   -1.5440    
  19  Prefactor     .10000E-03    2.9618        .19649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.788        20.504        .10421E-03   -1.4939    
  21  Prefactor     35.268        39.359        .67442E-04   -1.4520    
  22  Prefactor     .10000E-03    494.69        .21083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.7689        2.0759        .60912E-04   -1.5320    
  24  Prefactor     .10001E-03    69.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          21.504        6.8698        .85907E-04   -1.4780    
  26  Prefactor     .10000E-03    4.1304        .11869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.5428        .72448E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.1264        .61986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1197        .31339        .24949E-03   -.89123    
  30  Prefactor     .79987        .31909        .33430E-03   -.99733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55352e-09
Minuit parameter uncertainties:
  1  1.90056e-05
  2  106.063
  3  4.74131e-05
  4  0.485261
  5  7.29947e-05
  6  23.1533
  7  30.9195
  8  1.11778e-05
  9  21.5092
  10  4.10055e-05
  11  57.1635
  12  24.8637
  13  2.57608
  14  0.000146022
  15  1.59417e-05
  16  71.3266
  17  2.48508
  18  22.5679
  19  3.9917e-05
  20  20.5137
  21  39.388
  22  0.00222373
  23  2.07592
  24  0.00126814
  25  6.87004
  26  2.80035e-07
  27  2.33964e-06
  28  8.10602e-07
  29  0.313915
  30  0.319831
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  1.594e-05  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.999e-01  3.198e-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.120e+00  3.139e-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.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948170/likelihoodResults_423619201_423878401_4FGL_J1136.2+3407_daily_bin711.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) = 3580.54149976
delta logL = -0.00212378513606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3580.53937585
delta logL = 1.20171534945e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5401       1.0000          .0000       10.000    
     3 'Normalizat'    1.1197       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79987       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=   3580.539     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      256 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.554        .85595E-02** at limit **
   2  Index         2.0319        8.1627        .50000        .16423E-06
   3  Normalizat    1.1197        .19346E-01    .24948E-03   -.19780E-03
   4  Prefactor     .79985        .22374E-01    .33431E-03   -.14373E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.03187
  Normalizat = 1.11967
  Prefactor  = 0.799854
 **********
 **   18 **HESSE 
 **********

 FCN=   3580.539     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    208.72        .92359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0319        7.0444        .50000       -.63556    
   3  Normalizat    1.1197        .61074E-01    .49897E-04   -.89123    
   4  Prefactor     .79985        .70630E-01    .13372E-04   -.99734    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.79299e-10
Minuit parameter uncertainties:
  1  4.77048e-05
  2  906.673
  3  0.0610775
  4  0.0706377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948170': 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) = 3580.53937236
delta logL = 3.60757894668e-06

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  4.770e-05  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.032e+00  9.067e+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.999e-01  7.064e-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:  1.120e+00  6.108e-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/948170/cmap_HighResolution_423619201_423878401_4FGL_J1136.2+3407_daily_bin711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2021-09-04 05:14:48.656078', job_id='948170', GAL2='0.80', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630757688.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='3.61e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='711' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:14:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 948170: <4FGL_J1136.2+3407_daily_bin711> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin711> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 05:01:24 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:01:25 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:01:25 2021
Terminated at Sat Sep  4 05:14:49 2021
Results reported at Sat Sep  4 05:14:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin711 174.075 34.129 423619201 423878401 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 :                                   668.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

