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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin886
RA = 174.075, Dec = 34.129
tmin = 468979201, tmax = 469238401
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='949950', job_status='RUN', time_executed='2021-09-04 05:06:57.997278', time_epoch_executed='1630757218.0' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='886'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/949950

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/949950/ft1_4FGL_J1136.2+3407_daily_bin886.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/949950/ft2_4FGL_J1136.2+3407_daily_bin886.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/949950/ft1_4FGL_J1136.2+3407_daily_bin886.fits outfile=/scratch/kocevski/949950/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin886.fits ra=174.075 dec=34.129 rad=12.0 tmin=468979201.0 tmax=469238401.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.38
user 3.17
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/949950/ft1_filtered_4FGL_J1136.2+3407_daily_bin886.fits" evtable="EVENTS" scfile=/scratch/kocevski/949950/ft2_4FGL_J1136.2+3407_daily_bin886.fits sctable="SC_DATA" outfile=/scratch/kocevski/949950/ltcube_468979201_469238401_4FGL_J1136.2+3407_daily_bin886.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/949950/ft2_4FGL_J1136.2+3407_daily_bin886.fits
.....................!
real 12.48
user 12.08
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/949950/ft1_filtered_4FGL_J1136.2+3407_daily_bin886.fits evtable="EVENTS" scfile=/scratch/kocevski/949950/ft2_4FGL_J1136.2+3407_daily_bin886.fits sctable="SC_DATA" expcube=/scratch/kocevski/949950/ltcube_468979201_469238401_4FGL_J1136.2+3407_daily_bin886.fits outfile=/scratch/kocevski/949950/expmap_468979201_469238401_4FGL_J1136.2+3407_daily_bin886.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/949950/ltcube_468979201_469238401_4FGL_J1136.2+3407_daily_bin886.fits
.....................!
real 189.44
user 184.51
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 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/949950/ft1_filtered_4FGL_J1136.2+3407_daily_bin886.fits scfile=/scratch/kocevski/949950/ft2_4FGL_J1136.2+3407_daily_bin886.fits outfile=/scratch/kocevski/949950/cmap_468979201_469238401_4FGL_J1136.2+3407_daily_bin886.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/949950/ft1_filtered_4FGL_J1136.2+3407_daily_bin886.fits scfile=/scratch/kocevski/949950/ft2_4FGL_J1136.2+3407_daily_bin886.fits outfile=/scratch/kocevski/949950/cmap_HighResolution_468979201_469238401_4FGL_J1136.2+3407_daily_bin886.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6501       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.744       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3108       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.2313       1.0000         .10000E-03   10000.    
     9 'norm      '    6.0737       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .97076       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.580       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.807       1.0000         .10000E-03   10000.    
    16 'Prefactor '    87.947       1.0000         .10000E-03   10000.    
    17 'norm      '    .10614E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3067       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5957       1.0000         .10000E-03   10000.    
    20 'norm      '    1.0595       1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.937       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.941       1.0000         .10000E-03   10000.    
    23 'norm      '    8.0150       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    12.041       1.0000         .10000E-03   10000.    
    26 'Prefactor '    24.535       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.4016       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .38013       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0117       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .83577       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=   7555.546     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     3965 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6339        22.117       -.63919E-06   -.10195E-03
   2  Prefactor     .10000E-03    39.241        .29922E-06** at limit **
   3  Prefactor     33.735        14.649        .17588E-06   -.37080E-04
   4  norm          1.3108        .30018        .47245E-08   -.79872E-03
   5  Prefactor     .10000E-03    2.2958       -.45069E-08** at limit **
   6  Prefactor     .10000E-03    14.802        .54812E-06** at limit **
   7  Prefactor     .10000E-03    6.3043        .78199E-08** at limit **
   8  norm          1.2317        5.3387        .22648E-05   -.75650E-04
   9  norm          6.0733        8.2910        .26472E-06   -.31924E-04
  10  Prefactor     .97048        1.8473        .71644E-06    .16122E-04
  11  Prefactor     .10000E-03    18.074       -.72148E-06** at limit **
  12  Prefactor     .10000E-03    26.062        .27970E-06** at limit **
  13  norm          .10000E-03    .89289        .23514E-06** at limit **
  14  Prefactor     18.586        13.181        .15046E-06   -.55718E-04
  15  Prefactor     12.808        6.5587       -.16509E-06   -.20080E-03
  16  Prefactor     87.972        38.364        .99745E-06    .18590E-03
  17  norm          .10000E-03    .27870        .15652E-06** at limit **
  18  Prefactor     4.2979        21.744        .38775E-06   -.45367E-04
  19  Prefactor     1.5962        1.6302        .56947E-07   -.15896E-04
  20  norm          1.0545        7.0156        .30608E-05   -.12868E-03
  21  Prefactor     28.941        27.906        .37858E-06   -.18081E-04
  22  Prefactor     12.925        34.022       -.35846E-05   -.14431E-03
  23  norm          8.0152        1.6964        .34864E-08   -.18780E-03
  24  Prefactor     .10000E-03    12.969       -.10389E-06** at limit **
  25  norm          12.042        4.1730       -.31044E-07   -.72828E-04
  26  Prefactor     24.535        9.4554        .78343E-07   -.43564E-04
  27  Prefactor     4.4016        2.8216       -.73246E-07   -.17829E-03
  28  Prefactor     .38024        1.5201        .12327E-05   -.20792E-03
  29  Normalizat    1.0115        .17292       -.15171E-05   -.18653E-03
  30  Prefactor     .83602        .18620        .31599E-06   -.21270E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.63387
  Prefactor  = 0.0001
  Prefactor  = 33.7346
  norm       = 1.31076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.23167
  norm       = 6.0733
  Prefactor  = 0.970482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.5856
  Prefactor  = 12.8079
  Prefactor  = 87.9723
  norm       = 0.0001
  Prefactor  = 4.29785
  Prefactor  = 1.59625
  norm       = 1.05452
  Prefactor  = 28.9408
  Prefactor  = 12.9252
  norm       = 8.01525
  Prefactor  = 0.0001
  norm       = 12.0417
  Prefactor  = 24.535
  Prefactor  = 4.40163
  Prefactor  = 0.380236
  Normalizat = 1.01147
  Prefactor  = 0.836022
 **********
 **   18 **HESSE 
 **********

 FCN=   7555.546     FROM HESSE     STATUS=OK           600 CALLS     4565 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6339        22.269        .12900E-03   -1.5087    
   2  Prefactor     .10000E-03    39.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.735        14.629        .68984E-04   -1.4546    
   4  norm          1.3108        .30067        .21928E-04   -1.5479    
   5  Prefactor     .10000E-03    2.3540        .25599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2317        5.1545        .38755E-03   -1.5486    
   9  norm          6.0733        8.2885        .16291E-03   -1.5215    
  10  Prefactor     .97048        1.6743        .15305E-02   -1.5511    
  11  Prefactor     .10000E-03    18.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.3364        .15603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.586        13.145        .92917E-04   -1.4845    
  15  Prefactor     12.808        6.4956        .11193E-03   -1.4992    
  16  Prefactor     87.972        38.609        .42843E-04   -1.3829    
  17  norm          .10000E-03    .35945        .86712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.2979        21.441        .19412E-03   -1.5293    
  19  Prefactor     1.5962        1.6118        .10472E-03   -1.5455    
  20  norm          1.0545        6.9395        .44239E-03   -1.5503    
  21  Prefactor     28.941        28.028        .74478E-04   -1.4632    
  22  Prefactor     12.925        34.101        .11135E-03   -1.4989    
  23  norm          8.0152        1.6949        .49377E-04   -1.5142    
  24  Prefactor     .10000E-03    12.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          12.042        4.1731        .92903E-04   -1.5014    
  26  Prefactor     24.535        9.4619        .80871E-04   -1.4717    
  27  Prefactor     4.4016        2.8239        .10512E-03   -1.5288    
  28  Prefactor     .38024        1.4974        .20488E-03   -1.5585    
  29  Normalizat    1.0115        .19977        .25494E-03   -.92647    
  30  Prefactor     .83602        .21408        .32047E-03   -.98414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.48575e-10
Minuit parameter uncertainties:
  1  22.2879
  2  7.14858e-05
  3  14.6305
  4  0.30067
  5  6.67369e-06
  6  6.51718e-05
  7  2.42503e-06
  8  5.03984
  9  8.29004
  10  1.67439
  11  0.000134053
  12  5.01435e-05
  13  4.41553e-05
  14  13.1467
  15  6.49601
  16  38.6203
  17  2.68587e-06
  18  19.2097
  19  1.61186
  20  5.41094
  21  28.0407
  22  34.152
  23  1.69486
  24  1.99515e-05
  25  4.17322
  26  9.46246
  27  2.82399
  28  1.49756
  29  0.199917
  30  0.214291
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.281e+01  6.496e+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:  8.360e-01  2.143e-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.011e+00  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.96
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 8.86e-08 +/- 4.49e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.23e-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) = 7555.44894348
delta logL = 0.0967583864658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7555.44150921
delta logL = 0.10419265876

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.955       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7861       1.0000          .0000       10.000    
     3 'Normalizat'    .99478       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85023       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=   7555.442     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      262 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.959        83.680        .30262E-02    .20022E-03
   2  Index         2.7866        3.3908        .15802        .11524E-03
   3  Normalizat    .99468        .76143E-01    .46101E-01    .14139E-04
   4  Prefactor     .85012        .80643E-01    .71885E-01    .19249E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9587
  Index      = 2.78662
  Normalizat = 0.994684
  Prefactor  = 0.850116
 **********
 **   18 **HESSE 
 **********

 FCN=   7555.442     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.959        7.4462        .12105E-03   -1.5046    
   2  Index         2.7866        .56204        .59114E-02   -.45858    
   3  Normalizat    .99468        .18761        .25673E-03   -.93209    
   4  Prefactor     .85012        .21303        .31808E-03   -.97907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13925e-12
Minuit parameter uncertainties:
  1  7.44678
  2  0.563527
  3  0.187733
  4  0.213234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/949950': 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) = 7555.44150608
delta logL = 0.104195786628

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.096e+01  7.447e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.787e+00  5.635e-01  0.000e+00  1.000e+01 (-1.000e+00)
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  8.501e-01  2.132e-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.947e-01  1.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.12
Ra Dec: 174.075 34.129
Photon Index (Free Index): 2.79 +/- 0.56
Photon Flux (Free Index): 1.01e-07 +/- 5.24e-08
Energy Flux (Free Index): 2.28e-05 +/- 1.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/949950/cmap_HighResolution_468979201_469238401_4FGL_J1136.2+3407_daily_bin886.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.86e-08', energy_flux2='2.28e-05', photon_flux_error='4.49e-08', dlogl='1.04e-01', energy_flux='2.43e-05', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-04 05:22:17.689104', photon_index_error2='0.56', photon_index2='2.79', ts='7.96', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='1.01', time_epoch_completed='1630758137.69', return_code='0', job_id='949950', GAL2='0.85', EG2='0.99', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='5.24e-08', ts2='8.12', photon_index='2.55' WHERE bin_id='886' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:22:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 949950: <4FGL_J1136.2+3407_daily_bin886> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin886> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 05:06:47 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:06:48 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:48 2021
Terminated at Sat Sep  4 05:22:18 2021
Results reported at Sat Sep  4 05:22:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin886 174.075 34.129 468979201 469238401 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 :                                   916.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

